it.amattioli.dominate.specifications
Class ChainedSpecification<T extends Entity<?>>
java.lang.Object
it.amattioli.dominate.specifications.AbstractSpecification<T>
it.amattioli.dominate.specifications.ChainedSpecification<T>
- All Implemented Interfaces:
- Specification<T>, PropertyChangeEmitter
- Direct Known Subclasses:
- EntitySpecification, EnumSpecification, ExclusionListSpecification, LongSpecification, MultipleEntitySpecification, MultipleEnumSpecification, ObjectSpecification, StringSpecification
public abstract class ChainedSpecification<T extends Entity<?>>
- extends AbstractSpecification<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedSpecification
public ChainedSpecification()
ChainedSpecification
public ChainedSpecification(Specification<T> nextInChain)
createChain
public static <T extends Entity<?>,S extends ChainedSpecification<T>> S createChain(Class<S> specClass)
getNextInChain
protected Specification<T> getNextInChain()
setNextInChain
protected void setNextInChain(Specification<T> nextInChain)
supportsAssembler
public boolean supportsAssembler(Assembler assembler)
- Description copied from interface:
Specification
- Check if the passed query assembler can be passed to the
Specification.assembleQuery(Assembler)
of thie specification
- Returns:
itselfSupportsAssembler
public abstract boolean itselfSupportsAssembler(Assembler assembler)
assembleQuery
public void assembleQuery(Assembler assembler)
- Description copied from interface:
Specification
- Assemble a query object that can be used with a repository to filter
the objects returned by
Repository.list(Specification)
itselfAssembleQuery
public abstract void itselfAssembleQuery(Assembler assembler)
chainAssembler
protected void chainAssembler(Assembler assembler)
Copyright © 2011. All Rights Reserved.