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

Quick Search    Search Deep

com.ibatis.dao.engine.transaction.hibernate
Class HibernateDaoTransaction  view HibernateDaoTransaction download HibernateDaoTransaction.java

java.lang.Object
  extended bycom.ibatis.dao.engine.transaction.hibernate.HibernateDaoTransaction
All Implemented Interfaces:
com.ibatis.dao.engine.transaction.ConnectionDaoTransaction, com.ibatis.dao.client.DaoTransaction

public class HibernateDaoTransaction
extends java.lang.Object
implements com.ibatis.dao.engine.transaction.ConnectionDaoTransaction


Field Summary
private  Session session
           
private  Transaction transaction
           
 
Constructor Summary
HibernateDaoTransaction(SessionFactory factory)
           
 
Method Summary
 void commit()
           
 java.sql.Connection getConnection()
           
 Session getSession()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private Session session

transaction

private Transaction transaction
Constructor Detail

HibernateDaoTransaction

public HibernateDaoTransaction(SessionFactory factory)
Method Detail

commit

public void commit()

rollback

public void rollback()

getSession

public Session getSession()

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface com.ibatis.dao.engine.transaction.ConnectionDaoTransaction