App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.datastore.datastore_stub_util.BaseTransactionManager Class Reference
Inheritance diagram for google.appengine.datastore.datastore_stub_util.BaseTransactionManager:
google.appengine.datastore.datastore_stub_util.BaseDatastore google.appengine.datastore.datastore_sqlite_stub.DatastoreSqliteStub

Public Member Functions

def __init__
 
def SetConsistencyPolicy
 
def Clear
 
def BeginTransaction
 
def GetTxn
 
def Groom
 
def Flush
 

Detailed Description

A class that manages the state of transactions.

This includes creating consistent snap shots for transactions.

Member Function Documentation

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: