|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionService
Database Connection Service Interface
| Field Summary | |
|---|---|
static int |
INFO_NOT_AVAILABLE
|
| Method Summary | |
|---|---|
void |
freeConnection(java.sql.Connection conn)
Release the connection |
java.sql.Connection |
getConnection()
Get a connection |
int |
getCurrentConnections()
Gets the number of opened connections |
org.apache.log4j.Logger |
getLogger()
Gets the logger |
int |
getMaxConnections()
Gets the max connections |
java.lang.String |
getPoolName()
Gets the pool name |
java.lang.String |
getPoolProvider()
Gets the pool manager provider |
void |
init(java.util.Hashtable<java.lang.String,java.lang.String> htParamsConnectionPool)
Initialize pool parameters |
void |
release()
Free all connections |
void |
setLogger(org.apache.log4j.Logger logger)
Define the logger |
void |
setPoolName(java.lang.String strPoolName)
Define the pool name |
| Field Detail |
|---|
static final int INFO_NOT_AVAILABLE
| Method Detail |
|---|
java.sql.Connection getConnection()
void freeConnection(java.sql.Connection conn)
conn - The connection to releasevoid release()
void init(java.util.Hashtable<java.lang.String,java.lang.String> htParamsConnectionPool)
htParamsConnectionPool - Parametersvoid setPoolName(java.lang.String strPoolName)
strPoolName - The pool namejava.lang.String getPoolName()
void setLogger(org.apache.log4j.Logger logger)
logger - The loggerorg.apache.log4j.Logger getLogger()
int getCurrentConnections()
int getMaxConnections()
java.lang.String getPoolProvider()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||