class documentation

class UOWTransaction(object):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method ​_generate​_actions Generate the full, unsorted collection of PostSortRecs as well as dependency pairs for this UOWTransaction.
Method ​_per​_mapper​_flush​_actions Undocumented
Method execute Undocumented
Method filter​_states​_for​_dep Filter the given list of InstanceStates to those relevant to the given DependencyProcessor.
Method finalize​_flush​_changes Mark processed objects as clean / deleted after a successful flush().
Method get​_attribute​_history Facade to attributes.get_state_history(), including caching of results.
Method has​_dep Undocumented
Method is​_deleted Return True if the given state is marked as deleted within this uowtransaction.
Method memo Undocumented
Method register​_object Undocumented
Method register​_post​_update Undocumented
Method register​_preprocessor Undocumented
Method remove​_state​_actions Remove pending actions for a state from the uowtransaction.
Method states​_for​_mapper​_hierarchy Undocumented
Method was​_already​_deleted Return True if the given state is expired and was deleted previously.
Instance Variable attributes Undocumented
Instance Variable cycles Undocumented
Instance Variable dependencies Undocumented
Instance Variable deps Undocumented
Instance Variable mappers Undocumented
Instance Variable post​_update​_states Undocumented
Instance Variable postsort​_actions Undocumented
Instance Variable presort​_actions Undocumented
Instance Variable session Undocumented
Instance Variable states Undocumented
Property ​_mapper​_for​_dep return a dynamic mapping of (Mapper, DependencyProcessor) to True or False, indicating if the DependencyProcessor operates on objects of that Mapper.
Property has​_work Undocumented
def __init__(self, session):

Undocumented

def _generate_actions(self):
Generate the full, unsorted collection of PostSortRecs as well as dependency pairs for this UOWTransaction.
def _per_mapper_flush_actions(self, mapper):

Undocumented

def execute(self):

Undocumented

def filter_states_for_dep(self, dep, states):
Filter the given list of InstanceStates to those relevant to the given DependencyProcessor.
def finalize_flush_changes(self):

Mark processed objects as clean / deleted after a successful flush().

This method is called within the flush() method after the execute() method has succeeded and the transaction has been committed.

def get_attribute_history(self, state, key, passive=attributes.PASSIVE_NO_INITIALIZE):
Facade to attributes.get_state_history(), including caching of results.
def has_dep(self, processor):

Undocumented

def is_deleted(self, state):
Return True if the given state is marked as deleted within this uowtransaction.
def memo(self, key, callable_):

Undocumented

def register_object(self, state, isdelete=False, listonly=False, cancel_delete=False, operation=None, prop=None):

Undocumented

def register_post_update(self, state, post_update_cols):

Undocumented

def register_preprocessor(self, processor, fromparent):

Undocumented

def remove_state_actions(self, state):
Remove pending actions for a state from the uowtransaction.
def states_for_mapper_hierarchy(self, mapper, isdelete, listonly):

Undocumented

def was_already_deleted(self, state):
Return True if the given state is expired and was deleted previously.
attributes: dict =

Undocumented

cycles =

Undocumented

dependencies: set =

Undocumented

deps =

Undocumented

mappers =

Undocumented

post_update_states =

Undocumented

postsort_actions: dict =

Undocumented

presort_actions: dict =

Undocumented

session =

Undocumented

states: dict =

Undocumented

@util.memoized_property
_mapper_for_dep =

return a dynamic mapping of (Mapper, DependencyProcessor) to True or False, indicating if the DependencyProcessor operates on objects of that Mapper.

The result is stored in the dictionary persistently once calculated.

@property
has_work =

Undocumented