|
||||||||||
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(Connection conn)
Release the connection |
Connection |
getConnection()
Get a connection |
int |
getCurrentConnections()
Gets the number of opened connections |
DataSource |
getDataSource()
Get datasource |
org.apache.log4j.Logger |
getLogger()
Gets the logger |
int |
getMaxConnections()
Gets the max connections |
String |
getPoolName()
Gets the pool name |
String |
getPoolProvider()
Gets the pool manager provider |
void |
init(Hashtable<String,String> htParamsConnectionPool)
Initialize pool parameters |
void |
release()
Free all connections |
void |
setLogger(org.apache.log4j.Logger logger)
Define the logger |
void |
setPoolName(String strPoolName)
Define the pool name |
Field Detail |
---|
static final int INFO_NOT_AVAILABLE
Method Detail |
---|
Connection getConnection()
void freeConnection(Connection conn)
conn
- The connection to releasevoid release()
void init(Hashtable<String,String> htParamsConnectionPool)
htParamsConnectionPool
- Parametersvoid setPoolName(String strPoolName)
strPoolName
- The pool nameString getPoolName()
void setLogger(org.apache.log4j.Logger logger)
logger
- The loggerorg.apache.log4j.Logger getLogger()
int getCurrentConnections()
int getMaxConnections()
String getPoolProvider()
DataSource getDataSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |