org.crusoe.jdbc
-
public class
JDBCAccessManager
extends java.lang.Object
This class is used to manage a connection pool. JDBC-ODBC bridge is used to connect datebase.
Method Summary | |
static void | close(java.sql.Connection conn) Close a Connection Object. |
static void | close(java.sql.PreparedStatement stmt) Close a PreparedStatement Object. |
static void | close(java.sql.ResultSet rs) Close a ResulttSet Object. |
static void | close(java.sql.Statement st) Close a Statement Object. |
java.sql.Connection | getConnection() This method is called when you need a connection to the datebase. |
static JDBCAccessManager | getPool() This method is called when you need the connection pool. |
static int | getRow(java.sql.ResultSet rs) This method is called when you want to know the row number of ResultSet Object. |
java.lang.String | getStatus() This method describes the status of the connection pool. |
static void | init(java.lang.String ODBC_NAME, java.lang.String ODBC_USER, java.lang.String ODBC_PASSWORD, int MaxConnectionNum, int MinConnectionNum, int timeOutNum) This method is called when the connection pool is first initialized. |
void | releaseConnection(java.sql.Connection conn) This method is called when the connection isn't needed. |