|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.experlog.db.ESConnectionPool
public class ESConnectionPool
ESConnectionPool is a database tool object. it is used by openeas to do some specific operation on jdbc object. The main property of this object is the ESDataSourceWrapper object which is a wrapper to a DataSource.
Constructor Summary | |
---|---|
ESConnectionPool()
constructor of the connection pool object NO WORK is done here |
Method Summary | |
---|---|
void |
cleanup()
|
java.sql.Connection |
connectDb(java.lang.String datasourcename)
load the JDBC driver by a class forName method. |
ESDataSourceWrapper |
getDataSource()
|
java.util.Hashtable |
getPool()
|
int |
getQryattempts()
|
java.util.Hashtable |
getUsedPool()
|
boolean |
isNew()
|
boolean |
isReconnect_on_err()
|
void |
removeLockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
|
void |
removeUnlockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
|
void |
setNew(boolean newb)
|
void |
setQryattempts(int qryattempts)
|
void |
setReconnect_on_err(boolean reconnect)
|
void |
setShopConfig(Configuration shopConfig,
java.lang.String name)
set the configuration of the shop, and before the call of this method. |
void |
updateDB(java.sql.Connection con,
java.lang.String sql)
Update the store's database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.experlog.util.ConnectionPool |
---|
toString |
Constructor Detail |
---|
public ESConnectionPool()
Method Detail |
---|
public void setShopConfig(Configuration shopConfig, java.lang.String name) throws java.lang.Exception
setShopConfig
in interface ConnectionPool
java.lang.Exception
public java.sql.Connection connectDb(java.lang.String datasourcename) throws java.lang.Exception
connectDb
in interface ConnectionPool
java.lang.Exception
public void updateDB(java.sql.Connection con, java.lang.String sql) throws java.sql.SQLException
updateDB
in interface ConnectionPool
java.sql.SQLException
public int getQryattempts()
public boolean isReconnect_on_err()
public boolean isNew()
public ESDataSourceWrapper getDataSource()
public void setQryattempts(int qryattempts)
public void setReconnect_on_err(boolean reconnect)
setReconnect_on_err
in interface ConnectionPool
public void setNew(boolean newb)
public void cleanup()
public java.util.Hashtable getPool()
getPool
in interface ConnectionPool
public void removeUnlockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
removeUnlockedObject
in interface ConnectionPool
public java.util.Hashtable getUsedPool()
getUsedPool
in interface ConnectionPool
public void removeLockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
removeLockedObject
in interface ConnectionPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |