Method Summary |
|
public void | addTransactionEventListener(TransactionEventListener listener) |
public void | begin() Method to begin the transaction. |
public void | commit() Method to commit the transaction. |
public void | end() Method to allow the transaction to flush any resources. |
public void | flush() Method to flush the transaction. |
public boolean | getNontransactionalRead() Accessor for the nontransactionalRead flag for this transaction. |
public boolean | getNontransactionalWrite() Accessor for the nontransactionalWrite flag for this transaction. |
public boolean | getOptimistic() |
public Map | getOptions() |
public boolean | getRestoreValues() Accessor for the restoreValues flag for this transaction. |
public boolean | getRetainValues() Accessor for the retainValues flag for this transaction. |
public boolean | getRollbackOnly() Accessor for the "rollback only" flag. |
public Synchronization | getSynchronization() Accessor for the synchronization object to be notified on transaction completion. |
protected void | internalBegin() Method to begin the transaction. |
protected void | internalCommit() Internal commit, JPOX invokes it's own transaction manager implementation, if
an external transaction manager is not used. |
protected void | internalPostCommit() Method to perform any post-commit operations like calling the users "afterCompletion"
and general clean up after the commit. |
protected void | internalPreCommit() Method to perform any pre-commit operations like flushing to the datastore, calling the users
"beforeCompletion", and general preparation for the commit. |
protected void | internalPreRollback() Call om.preRollback() and listeners. |
protected void | internalRollback() Internal rollback, JPOX invokes it's own transaction manager implementation, if
an external transaction manager is not used. |
public boolean | isActive() Accessor for whether the transaction is active. |
public boolean | isCommitting() Accessor for whether the transaction is comitting. |
public void | removeTransactionEventListener(TransactionEventListener listener) |
public void | rollback() Method to rollback the transaction. |
public void | setNontransactionalRead(boolean nontransactionalRead) Mutator for the setting of nontransactional read. |
public synchronized void | setNontransactionalWrite(boolean nontransactionalWrite) Mutator for the setting of nontransactional write. |
public synchronized void | setOptimistic(boolean optimistic) Mutator for the optimistic transaction setting. |
public void | setOption(String option, int value) |
public void | setOption(String option, boolean value) |
public void | setOption(String option, String value) |
public synchronized void | setRestoreValues(boolean restoreValues) Mutator for the setting of restore values. |
public synchronized void | setRetainValues(boolean retainValues) Mutator for the setting of retain values. |
public void | setRollbackOnly() Mutator for the "rollback only" flag. |
public synchronized void | setSynchronization(Synchronization sync) Mutator for the synchronization object to be notified on transaction completion. |