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, withOperation
public 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>
StateException
public void executeInner() throws StateException
StateCursor
StateException
Copyright © 2022. All rights reserved.