public class PostgresDatabaseConnectionPool
extends java.lang.Object
implements org.ecoinformatics.datamanager.database.DatabaseConnectionPoolInterface
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PostgresDatabaseConnectionPool()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
public PostgresDatabaseConnectionPool()
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.DatabaseConnectionPoolInterface
java.sql.SQLException
org.ecoinformatics.datamanager.database.ConnectionNotAvailableException
public boolean returnConnection(java.sql.Connection conn)
returnConnection
in interface org.ecoinformatics.datamanager.database.DatabaseConnectionPoolInterface
conn
- Connection needs to be returned.public static void main(java.lang.String[] arg)
Copyright © 2020 Regents of the University of California. All Rights Reserved.