Package psiprobe.beans.accessors
Class OracleDatasourceAccessor
- java.lang.Object
-
- psiprobe.beans.accessors.OracleDatasourceAccessor
-
- All Implemented Interfaces:
DatasourceAccessor
public class OracleDatasourceAccessor extends Object implements DatasourceAccessor
Accesses oracle.jdbc.pool.OracleDataSource.Oracle connection pool is quite different from any other available for Tomcat. Datasources are run by static OracleConnectionCacheManager, whereby application context scope datasource would have a named entry in OracleConnectionCacheManager.
Datasources do not have information about pool as such, therefore this accessor has to do quite tedious job of verifying whether the datasource has a record in the cache manager or not. The pool information is subsequently retrieved from the relevant cache manager entry.
-
-
Constructor Summary
Constructors Constructor Description OracleDatasourceAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanMap(Object resource)Can map.DataSourceInfogetInfo(Object resource)Gets the info.booleanreset(Object resource)Reset.
-
-
-
Method Detail
-
getInfo
public DataSourceInfo getInfo(Object resource) throws Exception
Description copied from interface:DatasourceAccessorGets the info.- Specified by:
getInfoin interfaceDatasourceAccessor- Parameters:
resource- the resource- Returns:
- the info
- Throws:
Exception- the exception
-
reset
public boolean reset(Object resource) throws Exception
Description copied from interface:DatasourceAccessorReset.- Specified by:
resetin interfaceDatasourceAccessor- Parameters:
resource- the resource- Returns:
- true, if successful
- Throws:
Exception- the exception
-
canMap
public boolean canMap(Object resource)
Description copied from interface:DatasourceAccessorCan map.- Specified by:
canMapin interfaceDatasourceAccessor- Parameters:
resource- the resource- Returns:
- true, if successful
-
-