P
- type of the persistent object.Q
- type of the transport object with a reference to the owner's id.F
- type of the associated filter.S
- type of the associated sort specification type.E
- 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 DaoPagedFindDependentQuery<P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>,F,S,E extends Serializable> extends ReadQuery<Page<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,
PageRequest pageRequest,
BidirectionalDependentDao<?,P,?,Q,F,S,E,?,?> dao)
Creates a query.
|
protected Page<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<Page<Q>> createQuery(F filter, SortSpecification<S> sortSpecification, PageRequest pageRequest, BidirectionalDependentDao<?,P,?,Q,F,S,E,?,?> dao)
This method is a convenience to infer the generic types.
filter
- filter used to select the transport objects.sortSpecification
- sort specification.pageRequest
- page request.dao
- DAO used to perform the database operations for the query.Copyright © 2015. All Rights Reserved.