I - type of the persistent object and transport object id. This type
should be immutable. It is critical this type implements equals()
and hashCode() correctly.P - type of the persistent object.T - type of the transport objectQ - type of the transport object with a reference to the owner's id.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.R - type of the owner transport objectpublic class DaoGetDependentQuery<I extends Serializable,P extends Storable<I> & Dependable<E>,T extends Transportable<? super T,I> & Dependent<R>,Q extends Transportable<? super Q,I> & Dependent<E>,E extends Serializable,R extends Transportable<? super R,E>> extends ReadQuery<Q>
| Modifier and Type | Method and Description |
|---|---|
static <I extends Serializable,P extends Storable<I> & Dependable<E>,T extends Transportable<? super T,I> & Dependent<R>,Q extends Transportable<? super Q,I> & Dependent<E>,E extends Serializable,R extends Transportable<? super R,E>> |
createQuery(Id<? extends Q,I> id,
BidirectionalDependentDao<I,P,T,Q,?,?,E,?,R> dao)
Creates a query.
|
protected Q |
execute(DataStoreContext context)
Executes the query.
|
public static <I extends Serializable,P extends Storable<I> & Dependable<E>,T extends Transportable<? super T,I> & Dependent<R>,Q extends Transportable<? super Q,I> & Dependent<E>,E extends Serializable,R extends Transportable<? super R,E>> ReadQuery<Q> createQuery(Id<? extends Q,I> id, BidirectionalDependentDao<I,P,T,Q,?,?,E,?,R> dao)
This method is a convenience to infer the generic types.
id - transport object's id.dao - DAO used to perform the database operations for the query.Copyright © 2014. All Rights Reserved.