I
- type of the persistent object and transport object id.P
- type of model persistent object.T
- type of the transport object.public class DaoTryAddQuery<I extends Serializable,P extends Storable<I>,T extends Transportable<? super T,I>> extends WriteQuery<Boolean>
Returns true
if the object was persisted, false
if it
already existed.
Note: This should not be used for persistent objects with auto-generated keys.
Constructor and Description |
---|
DaoTryAddQuery(T transportable,
Dao<I,P,T,?,?> dao)
Creates a query.
|
Modifier and Type | Method and Description |
---|---|
protected Boolean |
execute(DataStoreContext context)
Executes the query.
|
execute
protected Boolean execute(DataStoreContext context)
WriteQuery
execute
in class WriteQuery<Boolean>
context
- data store context.Copyright © 2015. All Rights Reserved.