Class TransactionWrapper
java.lang.Object
com.googlecode.objectify.util.cmd.TransactionWrapper
- All Implemented Interfaces:
com.google.cloud.datastore.DatastoreBatchWriter,com.google.cloud.datastore.DatastoreReader,com.google.cloud.datastore.DatastoreReaderWriter,com.google.cloud.datastore.DatastoreWriter,com.google.cloud.datastore.Transaction
Simple pass-through to the base methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.cloud.datastore.Transaction
com.google.cloud.datastore.Transaction.Response -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.datastore.Entityadd(com.google.cloud.datastore.FullEntity<?> entity) List<com.google.cloud.datastore.Entity>add(com.google.cloud.datastore.FullEntity<?>... entities) voidaddWithDeferredIdAllocation(com.google.cloud.datastore.FullEntity<?>... entities) com.google.cloud.datastore.Transaction.Responsecommit()voiddelete(com.google.cloud.datastore.Key... keys) List<com.google.cloud.datastore.Entity>fetch(com.google.cloud.datastore.Key... keys) com.google.cloud.datastore.Entityget(com.google.cloud.datastore.Key key) Iterator<com.google.cloud.datastore.Entity>get(com.google.cloud.datastore.Key... key) com.google.cloud.datastore.Datastorecom.google.protobuf.ByteStringbooleanisActive()com.google.cloud.datastore.Entityput(com.google.cloud.datastore.FullEntity<?> entity) List<com.google.cloud.datastore.Entity>put(com.google.cloud.datastore.FullEntity<?>... entities) voidputWithDeferredIdAllocation(com.google.cloud.datastore.FullEntity<?>... entities) voidrollback()<T> com.google.cloud.datastore.QueryResults<T>run(com.google.cloud.datastore.Query<T> query) voidupdate(com.google.cloud.datastore.Entity... entities) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.cloud.datastore.DatastoreReader
runAggregation
-
Constructor Details
-
TransactionWrapper
public TransactionWrapper()
-
-
Method Details
-
get
public com.google.cloud.datastore.Entity get(com.google.cloud.datastore.Key key) - Specified by:
getin interfacecom.google.cloud.datastore.DatastoreReader- Specified by:
getin interfacecom.google.cloud.datastore.Transaction
-
get
- Specified by:
getin interfacecom.google.cloud.datastore.DatastoreReader- Specified by:
getin interfacecom.google.cloud.datastore.Transaction
-
fetch
- Specified by:
fetchin interfacecom.google.cloud.datastore.DatastoreReader- Specified by:
fetchin interfacecom.google.cloud.datastore.Transaction
-
run
public <T> com.google.cloud.datastore.QueryResults<T> run(com.google.cloud.datastore.Query<T> query) - Specified by:
runin interfacecom.google.cloud.datastore.DatastoreReader- Specified by:
runin interfacecom.google.cloud.datastore.Transaction
-
addWithDeferredIdAllocation
public void addWithDeferredIdAllocation(com.google.cloud.datastore.FullEntity<?>... entities) - Specified by:
addWithDeferredIdAllocationin interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
addWithDeferredIdAllocationin interfacecom.google.cloud.datastore.Transaction
-
add
public com.google.cloud.datastore.Entity add(com.google.cloud.datastore.FullEntity<?> entity) - Specified by:
addin interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
addin interfacecom.google.cloud.datastore.DatastoreWriter- Specified by:
addin interfacecom.google.cloud.datastore.Transaction
-
add
public List<com.google.cloud.datastore.Entity> add(com.google.cloud.datastore.FullEntity<?>... entities) - Specified by:
addin interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
addin interfacecom.google.cloud.datastore.DatastoreWriter- Specified by:
addin interfacecom.google.cloud.datastore.Transaction
-
update
public void update(com.google.cloud.datastore.Entity... entities) - Specified by:
updatein interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
updatein interfacecom.google.cloud.datastore.DatastoreWriter- Specified by:
updatein interfacecom.google.cloud.datastore.Transaction
-
delete
public void delete(com.google.cloud.datastore.Key... keys) - Specified by:
deletein interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
deletein interfacecom.google.cloud.datastore.DatastoreWriter- Specified by:
deletein interfacecom.google.cloud.datastore.Transaction
-
putWithDeferredIdAllocation
public void putWithDeferredIdAllocation(com.google.cloud.datastore.FullEntity<?>... entities) - Specified by:
putWithDeferredIdAllocationin interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
putWithDeferredIdAllocationin interfacecom.google.cloud.datastore.Transaction
-
put
public com.google.cloud.datastore.Entity put(com.google.cloud.datastore.FullEntity<?> entity) - Specified by:
putin interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
putin interfacecom.google.cloud.datastore.DatastoreWriter- Specified by:
putin interfacecom.google.cloud.datastore.Transaction
-
put
public List<com.google.cloud.datastore.Entity> put(com.google.cloud.datastore.FullEntity<?>... entities) - Specified by:
putin interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
putin interfacecom.google.cloud.datastore.DatastoreWriter- Specified by:
putin interfacecom.google.cloud.datastore.Transaction
-
commit
public com.google.cloud.datastore.Transaction.Response commit()- Specified by:
commitin interfacecom.google.cloud.datastore.Transaction
-
isActive
public boolean isActive()- Specified by:
isActivein interfacecom.google.cloud.datastore.DatastoreBatchWriter- Specified by:
isActivein interfacecom.google.cloud.datastore.Transaction
-
getDatastore
public com.google.cloud.datastore.Datastore getDatastore()- Specified by:
getDatastorein interfacecom.google.cloud.datastore.Transaction
-
getTransactionId
public com.google.protobuf.ByteString getTransactionId()- Specified by:
getTransactionIdin interfacecom.google.cloud.datastore.Transaction
-
rollback
public void rollback()- Specified by:
rollbackin interfacecom.google.cloud.datastore.Transaction
-