com.framework.jdto.jdbc.wrapper
Class JDBCTemplate

java.lang.Object
  extended bycom.framework.jdto.jdbc.wrapper.JDBCTemplate
Direct Known Subclasses:
PreparedStatementWrapper, StatementWrapper

public class JDBCTemplate
extends Object

This is the super class of PreparedStatementWrapper and StatementWrapper Classes. This class is mainly responsible for handling the transactions.

Author:
msatish

Constructor Summary
JDBCTemplate()
          Default constructor sets the datasource to the current object from ServiceFinder class.
JDBCTemplate(DataSource ds)
          Constructor that sets the DataSource to the current PreparedStatementWrapper or StatementWrapper object
 
Method Summary
 void setDatasource(DataSource datasource)
          This Method Sets the DataSource to the current PreparedStatementWrapper Object or StatementWrapper Object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCTemplate

public JDBCTemplate()
Default constructor sets the datasource to the current object from ServiceFinder class.


JDBCTemplate

public JDBCTemplate(DataSource ds)
Constructor that sets the DataSource to the current PreparedStatementWrapper or StatementWrapper object

Parameters:
ds - javax.sql.DataSource
Method Detail

setDatasource

public void setDatasource(DataSource datasource)
This Method Sets the DataSource to the current PreparedStatementWrapper Object or StatementWrapper Object

Parameters:
datasource -