P
- type of the persistent objectQ
- type of the transport object with a reference to the owner's idF
- type of the associated filterS
- type of the associated sort specification typeE
- type of the owner persistent object and owner transport object
id. This type should be immutable. It is critical this type
implements equals() and hashCode() correctly.public class DaoFindDependentQuery<P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>,F,S,E extends Serializable> extends ReadQuery<List<Q>>
Modifier and Type | Method and Description |
---|---|
static <P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>,F,S,E extends Serializable> |
createQuery(F filter,
SortSpecification<S> sortSpecification,
BidirectionalDependentDao<?,P,?,Q,F,S,E,?,?> dao)
Creates a query.
|
protected List<Q> |
execute(DataStoreContext context)
Executes the query.
|
public static <P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>,F,S,E extends Serializable> ReadQuery<List<Q>> createQuery(F filter, SortSpecification<S> sortSpecification, BidirectionalDependentDao<?,P,?,Q,F,S,E,?,?> dao)
This method is a convenience to infer the generic types.
filter
- filter used to select the transport objectssortSpecification
- sort specificationdao
- DAO used to perform the database operations for the queryCopyright © 2015. All Rights Reserved.