org.acmsl.queryj
Class ConditionFactory._VariableConditionWrapper

java.lang.Object
  |
  +--org.acmsl.queryj.Condition
        |
        +--org.acmsl.queryj.AtomicCondition
              |
              +--org.acmsl.queryj.VariableCondition
                    |
                    +--org.acmsl.queryj.ConditionFactory._VariableConditionWrapper
Enclosing class:
ConditionFactory

protected static class ConditionFactory._VariableConditionWrapper
extends VariableCondition

Envelopes a variable condition surrounding it with appropiate prefix and suffix.

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

Constructor Summary
ConditionFactory._VariableConditionWrapper(VariableCondition condition, java.lang.String prefix, java.lang.String suffix)
          Creates a condition wrapper with given information.
 
Method Summary
 VariableCondition getCondition()
          Retrieves the wrapped condition.
 Field getLeftSideField()
          Retrieves the left-side field.
 ConditionOperator getOperator()
          Retrieves the condition operator.
 java.lang.String getPrefix()
          Retrieves the prefix.
 Field getRightSideField()
          Retrieves the right-side field.
 java.lang.String getRightSideValue()
          Retrieves the right-side value.
 java.lang.String getSuffix()
          Retrieves the suffix.
protected  void setCondition(VariableCondition condition)
          Specifies the condition to wrap.
protected  void setPrefix(java.lang.String prefix)
          Specifies the prefix.
protected  void setSuffix(java.lang.String suffix)
          Specifies the suffix.
 java.lang.String toString()
          Outputs a text version of the condition.
 
Methods inherited from class org.acmsl.queryj.AtomicCondition
setLeftSideField, setOperator, setRightSideField, setRightSideValue
 
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

ConditionFactory._VariableConditionWrapper

public ConditionFactory._VariableConditionWrapper(VariableCondition condition,
                                                  java.lang.String prefix,
                                                  java.lang.String suffix)
Creates a condition wrapper with given information.

Parameters:
condition - the condition to wrap.
prefix - the prefix.
suffix - the suffix.
Method Detail

setCondition

protected void setCondition(VariableCondition condition)
Specifies the condition to wrap.

Parameters:
condition - such condition.

getCondition

public VariableCondition getCondition()
Retrieves the wrapped condition.

Returns:
such condition.

setPrefix

protected void setPrefix(java.lang.String prefix)
Specifies the prefix.

Parameters:
prefix - such prefix.

getPrefix

public java.lang.String getPrefix()
Retrieves the prefix.

Returns:
such prefix.

setSuffix

protected void setSuffix(java.lang.String suffix)
Specifies the suffix.

Parameters:
suffix - such suffix.

getSuffix

public java.lang.String getSuffix()
Retrieves the suffix.

Returns:
such suffix.

getLeftSideField

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

Overrides:
getLeftSideField in class AtomicCondition
Returns:
such reference.

getOperator

public ConditionOperator getOperator()
Retrieves the condition operator.

Overrides:
getOperator in class AtomicCondition
Returns:
such reference.

getRightSideField

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

Overrides:
getRightSideField in class AtomicCondition
Returns:
such reference.

getRightSideValue

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

Overrides:
getRightSideValue in class AtomicCondition
Returns:
such reference.

toString

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

Overrides:
toString in class AtomicCondition
Returns:
such text.


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