Class SQLDatabase
- java.lang.Object
- 
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
 
- 
- Direct Known Subclasses:
- DBInitializer,- SQLStore,- TableInitializer
 
 public class SQLDatabase extends Object /** Top-level SQL object. This simply maintains a connection pool to a database.Created by Jeff Gaynor 
 on Mar 12, 2010 at 12:58:14 PM
- 
- 
Constructor SummaryConstructors Constructor Description SQLDatabase()SQLDatabase(ConnectionPool connectionPool)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyConnection(ConnectionRecord c)ConnectionRecordgetConnection()ConnectionPoolgetConnectionPool()voidreleaseConnection(ConnectionRecord c)Put the connection back on the stack for future use.static ColumnMaprsToMap(ResultSet rs)Take the values in the current row and stash them in a map, keyed by column name.voidsetConnectionPool(ConnectionPool connectionPool)
 
- 
- 
- 
Constructor Detail- 
SQLDatabasepublic SQLDatabase(ConnectionPool connectionPool) 
 - 
SQLDatabasepublic SQLDatabase() 
 
- 
 - 
Method Detail- 
getConnectionpublic ConnectionRecord getConnection() 
 - 
releaseConnectionpublic void releaseConnection(ConnectionRecord c) Put the connection back on the stack for future use. This should be invoked in a finally clause at the end of every method that uses a connection.- Parameters:
- c-
 
 - 
destroyConnectionpublic void destroyConnection(ConnectionRecord c) 
 - 
setConnectionPoolpublic void setConnectionPool(ConnectionPool connectionPool) 
 - 
getConnectionPoolpublic ConnectionPool getConnectionPool() 
 - 
rsToMappublic static ColumnMap rsToMap(ResultSet rs) throws SQLException Take the values in the current row and stash them in a map, keyed by column name.- Parameters:
- rs-
- Returns:
- Throws:
- SQLException
 
 
- 
 
-