|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.dataquery.PostgresDatabaseConnectionPool
public class PostgresDatabaseConnectionPool
This class implements DataConnetionPoolInterface to provide a connection for testing. Database information in this class will be read from property file.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
PostgresDatabaseConnectionPool()
Constructor. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Gets a database connection from the pool |
java.lang.String |
getDBAdapterName()
Get dabase adpater name. |
static void |
main(java.lang.String[] arg)
|
boolean |
returnConnection(java.sql.Connection conn)
Returns checked out dabase connection 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 org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public PostgresDatabaseConnectionPool()
| Method Detail |
|---|
public java.lang.String getDBAdapterName()
getDBAdapterName in interface org.ecoinformatics.datamanager.database.DatabaseConnectionPoolInterface
public java.sql.Connection getConnection()
throws java.sql.SQLException,
org.ecoinformatics.datamanager.database.ConnectionNotAvailableException
getConnection in interface org.ecoinformatics.datamanager.database.DatabaseConnectionPoolInterfacejava.sql.SQLException
org.ecoinformatics.datamanager.database.ConnectionNotAvailableExceptionpublic boolean returnConnection(java.sql.Connection conn)
returnConnection in interface org.ecoinformatics.datamanager.database.DatabaseConnectionPoolInterfaceconn - Connection needs to be returned.
public static void main(java.lang.String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||