Class OsidTransactionManager

Description

OsidTransactionManager is the key binding for controlling persistent store transactions from an application or an implementation of an OSID.

Operations involved with these methods have the following characteristics:

<p> either the entire set of actions occurs or nothing happens; </p>

<p> actions occurring within a transaction are hidden from other concurrent transactions; </p>

<p> successfully committed transactions result in a consistent persisted data store. </p>

<p> mark() identifies a point in processing. After mark(), at any point up until commit() is called, a call to rollback() causes all processing after mark() to be ignored. The system is the same state it was at the time mark() was called. If instead commit() is called after mark(), all processing since mark() was called is made permanent. Once committed, these actions cannot be rolled back. </p>

<p> OSID Version: 2.0 </p>

<p> Licensed under the org.osid.SidImplementationLicenseMIT. </p>

Located in /harmoni/oki2/osid/OsidTransactionManager.php (line 43)

OsidManager
   |
   --OsidTransactionManager
Method Summary
void commit ()
void mark ()
void rollback ()
Methods
commit (line 80)

Commits a transaction, persisting its operations since a call to mark().

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NOTHING_MARKED
void commit ()
mark (line 61)

Marks the beginning of a transaction.

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, ALREADY_MARKED
void mark ()
rollback (line 99)

Rolls back a transaction's operations since a call to mark().

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NOTHING_MARKED
void rollback ()

Inherited Methods

Inherited From OsidManager

OsidManager::assignConfiguration()
OsidManager::assignOsidContext()
OsidManager::getOsidContext()
OsidManager::osidVersion_2_0()

Documentation generated on Wed, 19 Sep 2007 10:25:25 -0400 by phpDocumentor 1.3.0RC3