P
- type of the persistent object.Q
- 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.public class DaoUpdateDependentQuery<P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>,E extends Serializable> extends WriteQuery<Q>
Modifier and Type | Method and Description |
---|---|
static <E extends Serializable,P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>> |
createQuery(Q transportable,
BidirectionalDependentDao<?,P,?,Q,?,?,E,?,?> dao)
Creates a query.
|
protected Q |
execute(DataStoreContext context)
Executes the query.
|
execute
public static <E extends Serializable,P extends Storable<?> & Dependable<E>,Q extends Transportable<? super Q,?> & Dependent<E>> WriteQuery<Q> createQuery(Q transportable, BidirectionalDependentDao<?,P,?,Q,?,?,E,?,?> dao)
This method is a convenience to infer the generic types.
transportable
- transport object to update.dao
- DAO used to perform the database operations for the query.protected Q execute(DataStoreContext context)
WriteQuery
execute
in class WriteQuery<Q extends Transportable<? super Q,?> & Dependent<E>>
context
- data store context.Copyright © 2015. All Rights Reserved.