net.sf.jso.query
Class FieldOperand

java.lang.Object
  extended bynet.sf.jso.query.CriteriaOperand
      extended bynet.sf.jso.query.FieldOperand
All Implemented Interfaces:
java.io.Serializable

public class FieldOperand
extends CriteriaOperand

Criteria operand which points to a variable's (class) field.

See Also:
Serialized Form

Constructor Summary
FieldOperand(java.lang.String aField)
          Constructs operand.
FieldOperand(Variable aVariable, java.lang.String aField)
          Constructs operand.
 
Method Summary
 java.lang.String getField()
          Returns operand's field.
 Variable getVariable()
          Returns operand's variable.
 boolean isEmpty()
          Indicates operands attributes have been specified.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldOperand

public FieldOperand(java.lang.String aField)
Constructs operand. Operand's variable will be set to parameter's first variable.

Parameters:
aField - Operand's field.
See Also:
Parameters.variables

FieldOperand

public FieldOperand(Variable aVariable,
                    java.lang.String aField)
Constructs operand. Operand's variable will be set to parameter's first variable if a variable is not supplied.

Parameters:
aVariable - Operand's variable.
aField - Operand's field.
See Also:
Parameters.variables
Method Detail

getVariable

public Variable getVariable()
Returns operand's variable.

Returns:
operand's variable.

getField

public java.lang.String getField()
Returns operand's field.

Returns:
Operand's field.

isEmpty

public boolean isEmpty()
Indicates operands attributes have been specified.

Specified by:
isEmpty in class CriteriaOperand
Returns:
true if attributes have been set; false.

toString

public java.lang.String toString()