|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.framework.jdto.jdbc.wrapper.JDBCTemplate
This is the super class of PreparedStatementWrapper and StatementWrapper Classes. This class is mainly responsible for handling the transactions.
Constructor Summary | |
JDBCTemplate()
Default constructor sets the datasource to the current object from ServiceFinder class. |
|
JDBCTemplate(javax.sql.DataSource ds)
Constructor that sets the DataSource to the current PreparedStatementWrapper or StatementWrapper object |
Method Summary | |
static void |
finishTransaction()
Calls the endTransaction() method of TransactionContextManager, which either commits or rollback the transaction based on the current Transaction Status. |
void |
setDatasource(javax.sql.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 |
public JDBCTemplate()
public JDBCTemplate(javax.sql.DataSource ds)
ds
- javax.sql.DataSourceMethod Detail |
public void setDatasource(javax.sql.DataSource datasource)
datasource
- public static void finishTransaction() throws java.sql.SQLException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |