Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.dao.engine.transaction.toplink
Class ToplinkDaoTransactionManager  view ToplinkDaoTransactionManager download ToplinkDaoTransactionManager.java

java.lang.Object
  extended bycom.ibatis.dao.engine.transaction.toplink.ToplinkDaoTransactionManager
All Implemented Interfaces:
com.ibatis.dao.engine.transaction.DaoTransactionManager

public class ToplinkDaoTransactionManager
extends java.lang.Object
implements com.ibatis.dao.engine.transaction.DaoTransactionManager

The ToplinkDaoTransactionManager is used by the Dao framework to manage transactions for the Toplink DAO implementation.

Version:
$Revision: 152595 $ $Date: 2004-12-28 09:46:14 -0700 (Tue, 28 Dec 2004) $

Field Summary
private  Server server
           
private  UnitOfWork uow
           
 
Constructor Summary
ToplinkDaoTransactionManager()
           
 
Method Summary
 void commitTransaction(com.ibatis.dao.client.DaoTransaction transaction)
          Commits pending object changes to permanent storage.
 void configure(java.util.Properties properties)
          Called by the DAO framework upon instantiation to set configuration properties for the manager.
 void rollbackTransaction(com.ibatis.dao.client.DaoTransaction transaction)
          Reverts pending object changes and returns objects to their original state.
 com.ibatis.dao.client.DaoTransaction startTransaction()
          Starts a new transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

private Server server

uow

private UnitOfWork uow
Constructor Detail

ToplinkDaoTransactionManager

public ToplinkDaoTransactionManager()
Method Detail

commitTransaction

public void commitTransaction(com.ibatis.dao.client.DaoTransaction transaction)
                       throws com.ibatis.dao.client.DaoException
Commits pending object changes to permanent storage.

Specified by:
commitTransaction in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

configure

public void configure(java.util.Properties properties)
               throws com.ibatis.dao.client.DaoException
Called by the DAO framework upon instantiation to set configuration properties for the manager.

Properties are specified in the iBATIS dao.xml file.

Specified by:
configure in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

rollbackTransaction

public void rollbackTransaction(com.ibatis.dao.client.DaoTransaction transaction)
                         throws com.ibatis.dao.client.DaoException
Reverts pending object changes and returns objects to their original state.

Specified by:
rollbackTransaction in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

startTransaction

public com.ibatis.dao.client.DaoTransaction startTransaction()
                                                      throws com.ibatis.dao.client.DaoException
Starts a new transaction. Changes to objects will not be committed until further instructions are executed.

Specified by:
startTransaction in interface com.ibatis.dao.engine.transaction.DaoTransactionManager