|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsf.qof.session.SessionContextFactory.DefaultUserTransaction
protected static class SessionContextFactory.DefaultUserTransaction
Internal implementation of UserTransaction.
| Constructor Summary | |
|---|---|
SessionContextFactory.DefaultUserTransaction(Connection connection)
Constructs a DefaultUserTransaction object. |
|
| Method Summary | |
|---|---|
void |
begin()
Create a new transaction and associate it with the current thread. |
void |
close()
Closes the transaction. |
void |
commit()
Complete the transaction associated with the current thread. |
boolean |
isRollbackOnly()
Returns true if the only possible outcome of the transaction that is associated with the current thread is to roll back the transaction. |
void |
rollback()
Roll back the transaction associated with the current thread. |
void |
setRollbackOnly()
Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionContextFactory.DefaultUserTransaction(Connection connection)
connection - the current database connection| Method Detail |
|---|
public void begin()
throws SystemException
UserTransaction
begin in interface UserTransactionSystemException - Thrown if the transaction manager encounters an unexpected
error condition.
public void commit()
throws SystemException,
RollbackException
UserTransaction
commit in interface UserTransactionSystemException - Thrown if the transaction manager encounters an unexpected
error condition.
RollbackException - Thrown to indicate that the transaction has been rolled back
rather than committed.public boolean isRollbackOnly()
UserTransaction
isRollbackOnly in interface UserTransaction
public void rollback()
throws SystemException
UserTransaction
rollback in interface UserTransactionSystemException - Thrown if the transaction manager encounters an unexpected
error condition.
public void setRollbackOnly()
throws SystemException
UserTransaction
setRollbackOnly in interface UserTransactionSystemException - Thrown if the transaction manager encounters an unexpected
error condition.public void close()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||