P
- type of the persistent objectT
- type of the transport object with a reference to the ownerF
- 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() correctlyW
- type of the owner persistent objectR
- type of the owner transport objectpublic class DaoFindFullDependentQuery<P extends Storable<?> & Dependable<E>,T extends Transportable<? super T,?> & Dependent<R>,F,S,E extends Serializable,W extends Storable<E>,R extends Transportable<? super R,E>> 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>,R extends Transportable<? super R,E>> |
createQuery(F filter,
SortSpecification<S> sortSpecification,
BidirectionalDependentDao<?,P,T,?,F,S,E,W,R> dao,
Dao<E,W,R,?,?> ownerDao)
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>,R extends Transportable<? super R,E>> ReadQuery<List<T>> createQuery(F filter, SortSpecification<S> sortSpecification, BidirectionalDependentDao<?,P,T,?,F,S,E,W,R> dao, Dao<E,W,R,?,?> ownerDao)
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.Copyright © 2015. All Rights Reserved.