Inheritance diagram for org.odbms.Constraint:
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:
Constraint.smaller().equal()
for "smaller or equal" Constraint.not().like()
for "not like" Constraint.not().greater().equal()
for "not greater or equal"
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. |
Constraint org.odbms.Constraint.and | ( | Constraint | with | ) |
links two Constraints for AND evaluation.
with | the other Constraint |
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().
Constraint org.odbms.Constraint.or | ( | Constraint | with | ) |
links two Constraints for OR evaluation.
with | the other Constraint |
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch().
Constraint org.odbms.Constraint.equal | ( | ) |
sets the evaluation mode to ==
.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getTerminalUser(), 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().
Constraint org.odbms.Constraint.greater | ( | ) |
sets the evaluation mode to >
.
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.smaller | ( | ) |
sets the evaluation mode to <
.
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.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Constraint org.odbms.Constraint.like | ( | ) |
sets the evaluation mode to "like" comparison.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Referenced by org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testFindLike().
Constraint org.odbms.Constraint.contains | ( | ) |
sets the evaluation mode to containment comparison.
Evaluation is dependant on the constrained query node:
String
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Constraint org.odbms.Constraint.not | ( | ) |
turns on not() comparison.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.
Object org.odbms.Constraint.getObject | ( | ) |
returns the Object the query graph was constrained with to create this Constraint.
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
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.