Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.odbms.Constraint Interface Reference

Inheritance diagram for org.odbms.Constraint:

org.odbms.Constraints org.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraints List of all members.

Detailed Description

constraint to limit the objects returned upon Query.execute() query execution.



Constraints are constructed by calling Query.constrain Query.constrain().

Constraints can be joined with the methods and and() and or or().

The methods to modify the constraint evaluation algorithm may be merged, to construct combined evaluation rules. Examples:

Definition at line 27 of file Constraint.java.

Public Member Functions

Constraint and (Constraint with)
 links two Constraints for AND evaluation.
Constraint or (Constraint with)
 links two Constraints for OR evaluation.
Constraint equal ()
 sets the evaluation mode to ==.
Constraint greater ()
 sets the evaluation mode to >.
Constraint smaller ()
 sets the evaluation mode to <.
Constraint identity ()
 sets the evaluation mode to identity comparison.
Constraint like ()
 sets the evaluation mode to "like" comparison.
Constraint contains ()
 sets the evaluation mode to containment comparison.
Constraint not ()
 turns on not() comparison.
Object getObject ()
 returns the Object the query graph was constrained with to create this Constraint.
Constraint distinct ()
 return only object that are distinct for this constraint.


Member Function Documentation

Constraint org.odbms.Constraint.and Constraint  with  ) 
 

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()}

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().

Constraint org.odbms.Constraint.contains  ) 
 

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.

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Constraint org.odbms.Constraint.distinct  ) 
 

return only object that are distinct for this constraint.

If two object has the sa

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Constraint org.odbms.Constraint.equal  ) 
 

sets the evaluation mode to ==.

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.crm.database.common.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.crm.database.common.fodb.FODBLabelFactory.getLabelWithIds(), org.openmobileis.modules.crm.database.common.fodb.FODBRepresentantFactory.getRepresentant(), org.openmobileis.database.fastobjectdb.db.test.TestThreadRequest2.run(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testMultipleIndex(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testRomvedTree(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testTree().

Object org.odbms.Constraint.getObject  ) 
 

returns the Object the query graph was constrained with to create this Constraint.

Returns:
Object the constraining object.

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Constraint org.odbms.Constraint.greater  ) 
 

sets the evaluation mode to >.

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().

Constraint org.odbms.Constraint.identity  ) 
 

sets the evaluation mode to identity comparison.

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Constraint org.odbms.Constraint.like  ) 
 

sets the evaluation mode to "like" comparison.

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testFindLike().

Constraint org.odbms.Constraint.not  ) 
 

turns on not() comparison.

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Constraint org.odbms.Constraint.or Constraint  with  ) 
 

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()

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().

Constraint org.odbms.Constraint.smaller  ) 
 

sets the evaluation mode to <.

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

Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.

Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().


The documentation for this interface was generated from the following file:
Generated on Wed Dec 14 21:05:37 2005 for OpenMobileIS by  doxygen 1.4.4