framework.db
Class ConnectionManager
java.lang.Object
framework.db.ConnectionManager
public class ConnectionManager
- extends java.lang.Object
Constructor Summary |
ConnectionManager(java.lang.String dsName,
java.lang.Object caller)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionManager
public ConnectionManager(java.lang.String dsName,
java.lang.Object caller)
createPrepareStatement
public SQLPreparedStatement createPrepareStatement(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createBatchPrepareStatement
public SQLBatchPreparedStatement createBatchPrepareStatement(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createStatement
public SQLStatement createStatement(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createBatchStatement
public SQLBatchStatement createBatchStatement()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
commit
public void commit()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
connect
public void connect()
throws java.lang.Exception
- Throws:
java.lang.Exception
connect
public void connect(java.lang.String jdbcDriver,
java.lang.String url,
java.lang.String userID,
java.lang.String userPW)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnection
public java.sql.Connection getConnection()
setConnection
public void setConnection(java.sql.Connection conn)
release
public void release()
rollback
public void rollback()
setAutoCommit
public void setAutoCommit(boolean isAuto)