P
- type of the persistent object.T
- type of the transport object with a reference to the owner.F
- type of the associated filter.S
- type of the associated sort specification type.E
- type of the owner persistent object and transport object id.
This type should be immutable. It is critical this type implements
equals() and hashCode() correctly.W
- type of the owner persistent object.R
- type of the owner transport object.H
- type of the owner's owner (or root owner) persistent object and
transport object id. This type should be immutable. It is critical
this type implements equals() and hashCode() correctly.M
- type of the root owner persistent object.N
- type of the root owner transport object.public class DaoFindFullNestedDependentQuery<P extends Storable<?> & Dependable<E>,T extends Transportable<? super T,?> & Dependent<R>,F,S,E extends Serializable,W extends Storable<E> & Dependable<H>,R extends Transportable<? super R,E> & Dependent<N>,H extends Serializable,M extends Storable<H>,N extends Transportable<? super N,H>> extends ReadQuery<List<T>>
Dao
.
Note this query is extremely inefficient because for each dependent found in the database the owner is loaded when the dependent is converted to a transport object.
Modifier and Type | Method and Description |
---|---|
static <P extends Storable<?> & Dependable<E>,T extends Transportable<? super T,?> & Dependent<R>,F,S,E extends Serializable,W extends Storable<E> & Dependable<H>,R extends Transportable<? super R,E> & Dependent<N>,H extends Serializable,M extends Storable<H>,N extends Transportable<? super N,H>> |
createQuery(F filter,
SortSpecification<S> sortSpecification,
BidirectionalDependentDao<?,P,T,?,F,S,E,W,R> dao,
BidirectionalDependentDao<E,W,R,?,?,?,H,M,N> ownerDao,
Dao<H,M,N,?,?> rootOwnerDao)
Creates a query.
|
protected List<T> |
execute(DataStoreContext context)
Executes the query.
|
public static <P extends Storable<?> & Dependable<E>,T extends Transportable<? super T,?> & Dependent<R>,F,S,E extends Serializable,W extends Storable<E> & Dependable<H>,R extends Transportable<? super R,E> & Dependent<N>,H extends Serializable,M extends Storable<H>,N extends Transportable<? super N,H>> ReadQuery<List<T>> createQuery(F filter, SortSpecification<S> sortSpecification, BidirectionalDependentDao<?,P,T,?,F,S,E,W,R> dao, BidirectionalDependentDao<E,W,R,?,?,?,H,M,N> ownerDao, Dao<H,M,N,?,?> rootOwnerDao)
This method is a convenience to infer the generic types.
filter
- filter used to select the transport objects.sortSpecification
- sort specification.dao
- DAO used to perform the database operations for the query.ownerDao
- owner DAO.rootOwnerDao
- root owner DAO (the owner's owner).Copyright © 2015. All Rights Reserved.