public class DatastoreStateCursor<T> extends StateCursor<T>
| Constructor and Description |
|---|
DatastoreStateCursor(com.google.cloud.datastore.Datastore d,
String namespace,
String kind,
Class<T> stateClass,
boolean transaction)
Initialize a new Datastore cursor
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit datastore transaction
|
void |
executeInner()
Execute all operations in cursor
|
execute, get, getAll, getResultValueForId, getResultValuesForId, set, withOperationpublic DatastoreStateCursor(com.google.cloud.datastore.Datastore d,
String namespace,
String kind,
Class<T> stateClass,
boolean transaction)
d - Initialized Datastore objectnamespace - Datastore namespacekind - Datastore kindstateClass - Class used in stage storagetransaction - True to initialize cursor as a transactionpublic void commit()
throws StateException
commit in class StateCursor<T>StateExceptionpublic void executeInner()
throws StateException
StateCursorStateExceptionCopyright © 2022. All rights reserved.