org.jaffa.persistence
Class Criteria.CriteriaEntry

java.lang.Object
  extended byorg.jaffa.persistence.Criteria.CriteriaEntry
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Criteria.AtomicCriteriaEntry
Enclosing class:
Criteria

public class Criteria.CriteriaEntry
extends Object
implements Serializable

This class is used by the Criteria for each criteria entry.

See Also:
Serialized Form

Field Summary
static int LOGICAL_AND
          A static indicating the criteria entry is to be AND-ed
static int LOGICAL_OR
          A static indicating the criteria entry is to be OR-ed
 
Method Summary
 boolean getDual()
          A true is returned for a dual criteria entry.
 int getLogic()
          Returns an int indicating AND or OR condition.
 String getName()
          Returns the name of the field.
 int getOperator()
          Returns the operator to be used in the assignment.
 Object getValue()
          Returns the value to be assigned to the field.
 boolean isLogicAND()
          A true is returned, if this criteria entry will be AND-ed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGICAL_AND

public static final int LOGICAL_AND
A static indicating the criteria entry is to be AND-ed

See Also:
Constant Field Values

LOGICAL_OR

public static final int LOGICAL_OR
A static indicating the criteria entry is to be OR-ed

See Also:
Constant Field Values
Method Detail

getLogic

public int getLogic()
Returns an int indicating AND or OR condition.

Returns:
an int indicating AND or OR condition.

isLogicAND

public boolean isLogicAND()
A true is returned, if this criteria entry will be AND-ed.

Returns:
a true is returned, if this criteria entry will be AND-ed.

getName

public String getName()
Returns the name of the field.

Returns:
the name of the field.

getValue

public Object getValue()
Returns the value to be assigned to the field. For a dual criteria entry, the name of the second field is returned.

Returns:
the value to be assigned to the field. For a dual criteria entry, the name of the second field is returned.

getOperator

public int getOperator()
Returns the operator to be used in the assignment.

Returns:
the operator to be used in the assignment.

getDual

public boolean getDual()
A true is returned for a dual criteria entry.

Returns:
true for a dual criteria entry.


Copyright © 2002-2004 JAFFA Project.