NAME

EntityModel::Transaction - transaction co-ordinator

VERSION

version 0.102

SYNOPSIS

See EntityModel.

DESCRIPTION

Contacts each EntityModel::Storage instance and requests that they join a new transaction.

See EntityModel.

apply

Applies the current transaction. Typically called as the last step in the transaction codeblock. The &{} overload will call this method (so you can use $tran-() > or $tran-apply > interchangeably).

Takes no parameters.

Returns $self.

mark_failure

Mark this transaction as failed, applying rollback if required, and calls the failure coderef.

Takes no parameters.

Returns $self.

mark_success

Mark this transaction as successful, committing if required, and calls the success coderef.

Takes no parameters.

Returns $self.

mark_goodbye

Mark this transaction as completed. Calls the goodbye coderef if available.

Takes no parameters.

Returns $self.

run

Takes the following (named) parameters:

Returns $self.

INHERITED METHODS

EntityModel::BaseClass

clone, dump, new

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.