|
S.O.D.A. - Simple Object Database Access - design documentation v. (unknown). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
constraint to limit the objects returned upon
query execution.
Constraints are constructed by calling
Query.constrain()
.
Constraints can be joined with the methods and()
and 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"
Method Summary | |
Constraint |
and(Constraint with)
links two Constraints for AND evaluation. |
Constraint |
contains()
sets the evaluation mode to containment comparison. |
Constraint |
equal()
sets the evaluation mode to == . |
Object |
getObject()
returns the Object the query graph was constrained with to create this Constraint . |
Constraint |
greater()
sets the evaluation mode to > . |
Constraint |
identity()
sets the evaluation mode to identity comparison. |
Constraint |
like()
sets the evaluation mode to "like" comparison. |
Constraint |
not()
turns on not() comparison. |
Constraint |
or(Constraint with)
links two Constraints for OR evaluation. |
Constraint |
smaller()
sets the evaluation mode to < . |
Method Detail |
public Constraint and(Constraint with)
with
- the other Constraint
Constraint
, that can be used for further calls
to and()
and or()
public Constraint or(Constraint with)
with
- the other Constraint
Constraint
, that can be used for further calls
to and()
and or()
public Constraint equal()
==
.
Constraint
to allow the chaining of method calls.public Constraint greater()
>
.
Constraint
to allow the chaining of method calls.public Constraint smaller()
<
.
Constraint
to allow the chaining of method calls.public Constraint identity()
Constraint
to allow the chaining of method calls.public Constraint like()
Constraint
to allow the chaining of method calls.public Constraint contains()
String
Constraint
to allow the chaining of method calls.public Constraint not()
Constraint
to allow the chaining of method calls.public Object getObject()
Constraint
.
|
S.O.D.A. - Simple Object Database Access - design documentation v. (unknown). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |