|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.experlog.db.ESDataSourceWrapper
public class ESDataSourceWrapper
ESDataSourceWrapper is a dataSource wrapper. If there is a loaded datasource in jndi, this datasource is used. in other case, an ESDataSource is created (openeas dataSource) This wrapper only creates (or lookups) the dataSource, and do some delegation operations to the datasource method.
Field Summary | |
---|---|
int |
errorCount
|
int |
maxCount
|
Constructor Summary | |
---|---|
ESDataSourceWrapper(java.lang.String name)
constructor no work is done here. |
Method Summary | |
---|---|
void |
cleanup()
|
int |
getCheckLevelObject()
|
java.sql.Connection |
getConnection()
get a connection from the datasource |
java.sql.Connection |
getConnection(java.lang.String _user,
java.lang.String _password)
get a connection from the datasource with a specific user and password properties |
javax.sql.DataSource |
getDataSource()
|
java.lang.String |
getDataSourceName()
|
java.lang.String |
getDriverName()
|
int |
getErrorCount()
|
java.lang.String |
getJdbcTestStmt()
|
java.io.PrintWriter |
getLogWriter()
|
int |
getMaxCon()
|
int |
getMaxCount()
|
int |
getMinCon()
|
java.lang.String |
getPassword()
|
java.util.Hashtable |
getPool()
|
java.lang.String |
getUrl()
|
java.util.Hashtable |
getUsedPool()
|
java.lang.String |
getUser()
|
void |
init(AppConfiguration shopConfig,
DatasourceProperty dsprop)
initialize the datasource wrapper, |
boolean |
isDebug()
|
void |
removeLockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
|
void |
removeUnlockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
|
void |
setCheckLevelObject(int checkLevelObject)
|
void |
setDataSourceName(java.lang.String name)
|
void |
setDebug(boolean debug)
|
void |
setJdbcTestStmt(java.lang.String jdbcTestStmt)
|
void |
setLogWriter(java.io.PrintWriter log)
|
void |
setMaxCon(int max)
|
void |
setMinCon(int min)
|
void |
setPassword(java.lang.String password)
|
void |
setUser(java.lang.String user)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int errorCount
public int maxCount
Constructor Detail |
---|
public ESDataSourceWrapper(java.lang.String name)
Method Detail |
---|
public void init(AppConfiguration shopConfig, DatasourceProperty dsprop) throws java.lang.Exception, java.sql.SQLException
java.lang.Exception
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException, java.lang.Exception
java.sql.SQLException
java.lang.Exception
public java.sql.Connection getConnection(java.lang.String _user, java.lang.String _password) throws java.sql.SQLException, java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void setDataSourceName(java.lang.String name)
public java.lang.String getDataSourceName()
public javax.sql.DataSource getDataSource()
public int getMinCon()
public int getMaxCon()
public java.lang.String getJdbcTestStmt()
public int getCheckLevelObject()
public void setMinCon(int min)
public void setMaxCon(int max)
public void setJdbcTestStmt(java.lang.String jdbcTestStmt)
public void setCheckLevelObject(int checkLevelObject)
public void setLogWriter(java.io.PrintWriter log)
public void setDebug(boolean debug)
public void setUser(java.lang.String user)
public void setPassword(java.lang.String password)
public java.io.PrintWriter getLogWriter()
public boolean isDebug()
public java.lang.String getUser()
public java.lang.String getPassword()
public java.lang.String getUrl()
public java.lang.String getDriverName()
public int getMaxCount()
public int getErrorCount()
public void cleanup()
public java.util.Hashtable getPool()
public void removeUnlockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
public java.util.Hashtable getUsedPool()
public void removeLockedObject(org.enhydra.jdbc.pool.GenerationObject obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |