A class that manages the state of transactions.
This includes creating consistent snap shots for transactions.
def google.appengine.datastore.datastore_stub_util.BaseTransactionManager.BeginTransaction |
( |
|
self, |
|
|
|
app, |
|
|
|
allow_multiple_eg |
|
) |
| |
Start a transaction on the given app.
Args:
app: A string representing the app for which to start the transaction.
allow_multiple_eg: True if transactions can span multiple entity groups.
Returns:
A datastore_pb.Transaction for the created transaction
def google.appengine.datastore.datastore_stub_util.BaseTransactionManager.Clear |
( |
|
self | ) |
|
Discards any pending transactions and resets the meta data.
def google.appengine.datastore.datastore_stub_util.BaseTransactionManager.Flush |
( |
|
self | ) |
|
Applies all outstanding transactions.
def google.appengine.datastore.datastore_stub_util.BaseTransactionManager.GetTxn |
( |
|
self, |
|
|
|
transaction, |
|
|
|
request_trusted, |
|
|
|
request_app |
|
) |
| |
Gets the LiveTxn object associated with the given transaction.
Args:
transaction: The datastore_pb.Transaction to look up.
request_trusted: A boolean indicating If the requesting app is trusted.
request_app: A string representing the app making the request.
Returns:
The associated LiveTxn object.
def google.appengine.datastore.datastore_stub_util.BaseTransactionManager.Groom |
( |
|
self | ) |
|
Attempts to apply any outstanding transactions.
The consistency policy determins if a transaction should be applied.
def google.appengine.datastore.datastore_stub_util.BaseTransactionManager.SetConsistencyPolicy |
( |
|
self, |
|
|
|
policy |
|
) |
| |
Set the consistency to use.
Causes all data to be flushed.
Args:
policy: A obj inheriting from BaseConsistencyPolicy.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/datastore/datastore_stub_util.py