|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spo.src.SPDB.Util.spoUtil
A utility class for the spo data server
| Field Summary | |
static AbstractDatabase |
dbAdapter
|
| Constructor Summary | |
spoUtil()
Initialize an instance of the utility class |
|
| Method Summary | |
void |
closeConnection(java.sql.Connection conn)
Close the specified connection |
void |
closeConnections()
Close all the connection from the pool |
java.sql.Connection |
getConnection()
Obtain a Connection from the connection pool |
java.util.Hashtable |
getConnectionPool()
Create and return a pool of Connections |
int |
getPoolSize()
Return the size of the pool |
java.sql.Connection |
openConnection()
Establish a JDBC database connection using connection info from the properties file |
void |
returnConnection(java.sql.Connection conn)
Return the connection back to the pool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static AbstractDatabase dbAdapter
| Constructor Detail |
public spoUtil()
| Method Detail |
public java.util.Hashtable getConnectionPool()
throws java.sql.SQLException,
java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public java.sql.Connection openConnection()
throws java.sql.SQLException,
java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public java.sql.Connection getConnection()
throws java.sql.SQLException,
java.lang.ClassNotFoundException,
java.lang.Exception
java.sql.SQLException
java.lang.ClassNotFoundException
java.lang.Exceptionpublic void returnConnection(java.sql.Connection conn)
public void closeConnections()
public void closeConnection(java.sql.Connection conn)
public int getPoolSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||