org.acmsl.queryj
Class AtomicCondition

java.lang.Object
  |
  +--org.acmsl.queryj.Condition
        |
        +--org.acmsl.queryj.AtomicCondition
Direct Known Subclasses:
ConditionFactory._AtomicConditionWrapper, VariableCondition

public abstract class AtomicCondition
extends Condition

Represents indivisible conditions in statements.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro

Constructor Summary
  AtomicCondition(Field leftSideField, ConditionOperator operator, Field rightSideField)
          Creates a condition using given information.
  AtomicCondition(Field leftSideField, ConditionOperator operator, int rightSideValue)
          Creates a condition using given information.
protected AtomicCondition(Field leftSideField, ConditionOperator operator, java.lang.String rightSideValue)
          Creates a condition using given information.
 
Method Summary
 Field getLeftSideField()
          Retrieves the left-side field.
 ConditionOperator getOperator()
          Retrieves the operator.
 Field getRightSideField()
          Retrieves the right-side field.
 java.lang.String getRightSideValue()
          Retrieves the right-side value.
protected  void setLeftSideField(Field leftSideField)
          Specifies the left side field.
protected  void setOperator(ConditionOperator operator)
          Specifies the operator.
protected  void setRightSideField(Field rightSideField)
          Specifies the right side field.
protected  void setRightSideValue(java.lang.String rightSideValue)
          Specifies the right side value.
 java.lang.String toString()
          Outputs a text version of the condition.
 
Methods inherited from class org.acmsl.queryj.Condition
and, getInnerCondition, or, setInnerCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtomicCondition

public AtomicCondition(Field leftSideField,
                       ConditionOperator operator,
                       Field rightSideField)
Creates a condition using given information.

Parameters:
leftSideField - the left-side field.
operator - the operator.
rightSideField - the right-side field.

AtomicCondition

protected AtomicCondition(Field leftSideField,
                          ConditionOperator operator,
                          java.lang.String rightSideValue)
Creates a condition using given information.

Parameters:
leftSideField - the left-side field.
operator - the operator.

AtomicCondition

public AtomicCondition(Field leftSideField,
                       ConditionOperator operator,
                       int rightSideValue)
Creates a condition using given information.

Parameters:
leftSideField - the left-side field.
operator - the operator.
Method Detail

setLeftSideField

protected void setLeftSideField(Field leftSideField)
Specifies the left side field.

Parameters:
leftSideField - such field.

getLeftSideField

public Field getLeftSideField()
Retrieves the left-side field.

Returns:
such reference.

setOperator

protected void setOperator(ConditionOperator operator)
Specifies the operator.

Parameters:
operator - such operator.

getOperator

public ConditionOperator getOperator()
Retrieves the operator.

Returns:
such reference.

setRightSideField

protected void setRightSideField(Field rightSideField)
Specifies the right side field.

Parameters:
rightSideField - such field.

getRightSideField

public Field getRightSideField()
Retrieves the right-side field.

Returns:
such reference.

setRightSideValue

protected void setRightSideValue(java.lang.String rightSideValue)
Specifies the right side value.

Parameters:
rightSideValue - such value.

getRightSideValue

public java.lang.String getRightSideValue()
Retrieves the right-side value.

Returns:
such reference.

toString

public java.lang.String toString()
Outputs a text version of the condition.

Overrides:
toString in class Condition
Returns:
the condition.


Copyright © 2003 ACM S.L.. All Rights Reserved.