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

Quick Search    Search Deep

com.ibatis.dao.engine.transaction.jdbc
Class JdbcDaoTransactionManager  view JdbcDaoTransactionManager download JdbcDaoTransactionManager.java

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

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

DaoTransactionManager implementation for JDBC


Field Summary
private  javax.sql.DataSource dataSource
           
 
Constructor Summary
JdbcDaoTransactionManager()
           
 
Method Summary
 void commitTransaction(com.ibatis.dao.client.DaoTransaction trans)
           
 void configure(java.util.Properties properties)
           
private  void configureDbcp(java.util.Map properties)
           
private  void configureJndi(java.util.Map properties)
           
private  void configureSimpleDataSource(java.util.Map properties)
           
private static java.util.Hashtable getContextProperties(java.util.Map allProps)
           
 void rollbackTransaction(com.ibatis.dao.client.DaoTransaction trans)
           
 com.ibatis.dao.client.DaoTransaction startTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

private javax.sql.DataSource dataSource
Constructor Detail

JdbcDaoTransactionManager

public JdbcDaoTransactionManager()
Method Detail

configure

public void configure(java.util.Properties properties)
Specified by:
configure in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

startTransaction

public com.ibatis.dao.client.DaoTransaction startTransaction()
Specified by:
startTransaction in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

configureSimpleDataSource

private void configureSimpleDataSource(java.util.Map properties)

configureDbcp

private void configureDbcp(java.util.Map properties)

configureJndi

private void configureJndi(java.util.Map properties)

commitTransaction

public void commitTransaction(com.ibatis.dao.client.DaoTransaction trans)
Specified by:
commitTransaction in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

rollbackTransaction

public void rollbackTransaction(com.ibatis.dao.client.DaoTransaction trans)
Specified by:
rollbackTransaction in interface com.ibatis.dao.engine.transaction.DaoTransactionManager

getContextProperties

private static java.util.Hashtable getContextProperties(java.util.Map allProps)