|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.dao.engine.transaction.toplink.ToplinkDaoTransaction
The ToplinkDaoTransaction
class represents an abstract
DaoTransaction implemented using Toplink. Toplink provides transaction
management methods to commit and rollback transactions.
Constructor Summary | |
ToplinkDaoTransaction(oracle.toplink.sessions.UnitOfWork uow,
oracle.toplink.threetier.Server server)
Constructor for the ToplinkDaoTransaction class that
accepts a Toplink Server object for creating client sessions. |
Method Summary | |
void |
commit()
Commits all pending changes to persistent storage. |
protected void |
finalize()
Clean up outstanding units of work and sessions. |
oracle.toplink.sessions.Session |
getSession()
Gets the Toplink Session associated with this transaction. |
oracle.toplink.sessions.UnitOfWork |
getUnitOfWork()
Gets the active unit of work. |
void |
rollback()
Rollback all pending changes to persistent storage and revert changes back to the original state. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ToplinkDaoTransaction(oracle.toplink.sessions.UnitOfWork uow, oracle.toplink.threetier.Server server) throws DaoException
ToplinkDaoTransaction
class that
accepts a Toplink Server object for creating client sessions.
uow
- The Toplink UnitOfWork associated with the transactionserver
- The Toplink server used to acquire client sessions
DaoException
- If a DaoException is thrownMethod Detail |
public oracle.toplink.sessions.Session getSession() throws DaoException
DaoException
- If a data access exception occurspublic oracle.toplink.sessions.UnitOfWork getUnitOfWork() throws DaoException
DaoException
- If a data access exception occurspublic void commit() throws DaoException
DaoException
- If a data access exception occurspublic void rollback() throws DaoException
DaoException
- If a data access exception occursprotected void finalize() throws java.lang.Throwable
java.lang.Throwable
- If any exception occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |