| org.objectweb.speedo.mapper.rdb.JDBCMapper
JDBCMapper | public class JDBCMapper extends MapperJDBC implements BindingController,LifeCycleController,JDBCMapperAttributes,PoolMatchFactory,ConnectionHolderFactory(Code) | | A JDBC mapper component able to pool the JDBC connection in non managed
environnement.
author: S.Chassande-Barrioz |
connectionPool | protected Pool connectionPool(Code) | | The pool of JDBC connection.
|
JDBCMapper | public JDBCMapper() throws PException(Code) | | |
closeConnection | public void closeConnection(Object conn) throws PException(Code) | | The connection is release into the pool
Parameters: conn - throws: org.objectweb.jorm.api.PException - |
createConnectionHolder | public ConnectionHolder createConnectionHolder() throws PersistenceException(Code) | | |
createResource | public Object createResource(Object hints) throws PoolException(Code) | | createResource creates a new PoolResource.
Parameters: hints - The "properties" that the created PoolResource shouldconform to. The created PoolResource. |
destroyResource | public void destroyResource(Object resource)(Code) | | |
getCheckConnectivityAtStartup | public boolean getCheckConnectivityAtStartup()(Code) | | |
getConnection | public Object getConnection() throws PException(Code) | | The pool is used to fetch a connection.
|
getPoolConnection | public boolean getPoolConnection()(Code) | | |
matchResource | public boolean matchResource(Object pr, Object hints)(Code) | | matchResource tests if a given resource of a Pool matches with
the hints passed with the Pool getResource method.
Parameters: pr - The PoolResource to test its matching with some"properties" specified by hints. Parameters: hints - The "properties" that the PoolResource specified by prshould match. true if the pr PoolResource matches the hints"properties". |
setCheckConnectivityAtStartup | public void setCheckConnectivityAtStartup(boolean b)(Code) | | |
setDriverClassName | public void setDriverClassName(String dcn)(Code) | | |
setPoolConnection | public void setPoolConnection(boolean pc)(Code) | | |
startFc | public void startFc()(Code) | | |
stopFc | public void stopFc()(Code) | | |
|
|