org.openmobileis.database.fastobjectdb.db.query.soda
Class FODBSodaConstraint

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint
      extended byorg.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint
All Implemented Interfaces:
org.odbms.Constraint
Direct Known Subclasses:
FODBSodaConstraints

public class FODBSodaConstraint
extends BaseConstraint

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
 
Fields inherited from class org.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint
COMPARATOR_NONE, CONSTRAINT_AND, CONSTRAINT_NONE, CONSTRAINT_OR, CONTAINS, DISTINCT, EQUALGREATER, EQUALS, EQUALSMALLER, GREATER, IDENTITY, LIKE, nextContraintLink, NOT, SMALLER
 
Constructor Summary
FODBSodaConstraint(FODBSodaQuery query, int constraintId)
           
 
Method Summary
 org.odbms.Constraint and(org.odbms.Constraint with)
          links two Constraints for AND evaluation.
 org.odbms.Constraint contains()
          sets the evaluation mode to containment comparison.
 org.odbms.Constraint distinct()
          return only object that are distinct for this constraint.
 org.odbms.Constraint equal()
          sets the evaluation mode to ==.
 boolean equals(java.lang.Object con)
           
protected  void execute(LongArray longArray)
           
 int getConstraintId()
           
 java.lang.Object getObject()
          returns the Object the query graph was constrained with to create this Constraint.
 org.odbms.Constraint greater()
          sets the evaluation mode to >.
 org.odbms.Constraint identity()
          sets the evaluation mode to identity comparison.
 org.odbms.Constraint like()
          sets the evaluation mode to "like" comparison.
 org.odbms.Constraint not()
          turns on not() comparison.
 org.odbms.Constraint or(org.odbms.Constraint with)
          links two Constraints for OR evaluation.
 org.odbms.Constraint smaller()
          sets the evaluation mode to <.
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint
getNextConstraint, setNextConstraint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FODBSodaConstraint

public FODBSodaConstraint(FODBSodaQuery query,
                          int constraintId)
Method Detail

execute

protected void execute(LongArray longArray)
                throws FODBException
Specified by:
execute in class BaseConstraint
Throws:
FODBException

and

public org.odbms.Constraint and(org.odbms.Constraint with)
Description copied from interface: org.odbms.Constraint
links two Constraints for AND evaluation.

Parameters:
with - the other Constraint
Returns:
a new Constraint, that can be used for further calls to and() and or()}

or

public org.odbms.Constraint or(org.odbms.Constraint with)
Description copied from interface: org.odbms.Constraint
links two Constraints for OR evaluation.

Parameters:
with - the other Constraint
Returns:
a new Constraint, that can be used for further calls to and() and or()

equal

public org.odbms.Constraint equal()
Description copied from interface: org.odbms.Constraint
sets the evaluation mode to ==.

Returns:
this Constraint to allow the chaining of method calls.

greater

public org.odbms.Constraint greater()
Description copied from interface: org.odbms.Constraint
sets the evaluation mode to >.

Returns:
this Constraint to allow the chaining of method calls.

smaller

public org.odbms.Constraint smaller()
Description copied from interface: org.odbms.Constraint
sets the evaluation mode to <.

Returns:
this Constraint to allow the chaining of method calls.

identity

public org.odbms.Constraint identity()
Description copied from interface: org.odbms.Constraint
sets the evaluation mode to identity comparison.

Returns:
this Constraint to allow the chaining of method calls.

like

public org.odbms.Constraint like()
Description copied from interface: org.odbms.Constraint
sets the evaluation mode to "like" comparison.

Returns:
this Constraint to allow the chaining of method calls.

distinct

public org.odbms.Constraint distinct()
return only object that are distinct for this constraint. If two object has the same value, only the first on is return.

Returns:
linked constraint.

contains

public org.odbms.Constraint contains()
Description copied from interface: org.odbms.Constraint
sets the evaluation mode to containment comparison.

Evaluation is dependant on the constrained query node:
String
the persistent object is tested to contain a substring.
arrays, java.util.Collection collections
the persistent object is tested to contain all elements of the constraining object.

Returns:
this Constraint to allow the chaining of method calls.

not

public org.odbms.Constraint not()
Description copied from interface: org.odbms.Constraint
turns on not() comparison.

Returns:
this Constraint to allow the chaining of method calls.

getObject

public java.lang.Object getObject()
Description copied from interface: org.odbms.Constraint
returns the Object the query graph was constrained with to create this Constraint.

Returns:
Object the constraining object.

getConstraintId

public int getConstraintId()
Returns:

equals

public boolean equals(java.lang.Object con)


Copyright 2005 e-Care. All Rights Reserved.