|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the class of the entities this specification can checkpublic interface Specification<T extends Entity<?>>
An object that implements this interface can check if an entity satisfies or
not certain conditions.
A specification can also be used to assemble a query object (using an Assembler)
that can be used to filter the results returned by Repository.list(Specification)
| Method Summary | |
|---|---|
void |
assembleQuery(Assembler assembler)
Assemble a query object that can be used with a repository to filter the objects returned by Repository.list(Specification) |
boolean |
isSatisfiedBy(T object)
Check if an object satisfies this specification. |
void |
setSatisfiedIfNotSet(boolean value)
For a parametric specification sets the value to be returned by isSatisfiedBy(Entity)
when the parameter(s) has not been set. |
boolean |
supportsAssembler(Assembler assembler)
Check if the passed query assembler can be passed to the assembleQuery(Assembler)
of thie specification |
boolean |
wasSet()
If this specification is parametric check if the parameter(s) has been set. |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
boolean isSatisfiedBy(T object)
object -
void assembleQuery(Assembler assembler)
Repository.list(Specification)
assembler - boolean supportsAssembler(Assembler assembler)
assembleQuery(Assembler)
of thie specification
assembler -
boolean wasSet()
void setSatisfiedIfNotSet(boolean value)
isSatisfiedBy(Entity)
when the parameter(s) has not been set.
value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||