|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Constraint
constraint to limit the objects returned upon
query execution
.
Constraints are constructed by calling
Query.constrain()
.
Constraints can be joined with the methods and(com.db4o.query.Constraint)
and or(com.db4o.query.Constraint)
.
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 |
endsWith(boolean caseSensitive)
sets the evaluation mode to string endsWith comparison. |
Constraint |
equal()
sets the evaluation mode to == . |
java.lang.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 < . |
Constraint |
startsWith(boolean caseSensitive)
sets the evaluation mode to string startsWith comparison. |
Method Detail |
---|
Constraint and(Constraint with)
with
- the other Constraint
Constraint
, that can be used for further calls
to and()
and or()
Constraint or(Constraint with)
with
- the other Constraint
Constraint
, that can be used for further calls
to and()
and or()
Constraint equal()
==
.
Constraint
to allow the chaining of method calls.Constraint greater()
>
.
Constraint
to allow the chaining of method calls.Constraint smaller()
<
.
Constraint
to allow the chaining of method calls.Constraint identity()
Constraint
to allow the chaining of method calls.Constraint like()
Constraint
to allow the chaining of method calls.Constraint contains()
Constraint
to allow the chaining of method calls.Constraint startsWith(boolean caseSensitive)
caseSensitive
- comparison will be case sensitive if true, case insensitive otherwise
Constraint
to allow the chaining of method calls.Constraint endsWith(boolean caseSensitive)
caseSensitive
- comparison will be case sensitive if true, case insensitive otherwise
Constraint
to allow the chaining of method calls.Constraint not()
Constraint
to allow the chaining of method calls.java.lang.Object getObject()
Constraint
.
|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |