|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.persist.jdbc.DataSourceConnectionPool
public class DataSourceConnectionPool
The IConnectionPool is an interface to allow simple custom connection pool implementations.
DBAccess| Constructor Summary | |
|---|---|
DataSourceConnectionPool(DataSource pDataSource)
Creates a new DataSourceConnectionPool. |
|
DataSourceConnectionPool(DataSource pDataSource,
String pUsername,
String pPassword)
Creates a new DataSourceConnectionPool. |
|
| Method Summary | |
|---|---|
protected static void |
debug(Object... pInfo)
Logs debug information. |
Connection |
getConnection()
Gets a connection from the pool. |
DataSource |
getDataSource()
Gets the data source. |
String |
getPassword()
Gets the password. |
String |
getUsername()
Gets the user name. |
void |
releaseConnection(Connection pConnection)
Gets a connection from the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceConnectionPool(DataSource pDataSource)
pDataSource - the data source.
public DataSourceConnectionPool(DataSource pDataSource,
String pUsername,
String pPassword)
pDataSource - the data source.pUsername - the username.pPassword - the password.| Method Detail |
|---|
public Connection getConnection()
throws SQLException
getConnection in interface IConnectionPoolSQLException - if connection is not availablepublic void releaseConnection(Connection pConnection)
releaseConnection in interface IConnectionPoolpConnection - the jdbc connectionpublic DataSource getDataSource()
public String getUsername()
public String getPassword()
protected static void debug(Object... pInfo)
pInfo - the debug information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||