org.objectweb.speedo.mapper.rdb
Class JDBCMapper
java.lang.Object
MapperJDBC
org.objectweb.speedo.mapper.rdb.JDBCMapper
- All Implemented Interfaces:
- JDBCMapperAttributes, MapperAttributes
- public class JDBCMapper
- extends MapperJDBC
- implements JDBCMapperAttributes
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POOL_BINDING
public static final java.lang.String POOL_BINDING
- See Also:
- Constant Field Values
connectionPool
protected Pool connectionPool
- The pool of ConnectionResource
JDBCMapper
public JDBCMapper()
throws PException
createConnectionHolder
public ConnectionHolder createConnectionHolder()
throws PersistenceException
- Throws:
PersistenceException
createResource
public java.lang.Object createResource(java.lang.Object hints)
throws PoolException
- createResource creates a new PoolResource.
- Parameters:
hints
- The "properties" that the created PoolResource should
conform to.
- Returns:
- The created PoolResource.
- Throws:
PoolException
matchResource
public boolean matchResource(java.lang.Object pr,
java.lang.Object hints)
- 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.hints
- The "properties" that the PoolResource specified by pr
should match.
- Returns:
- true if the pr PoolResource matches the hints
"properties".
destroyResource
public void destroyResource(java.lang.Object resource)
getDriverClassName
public java.lang.String getDriverClassName()
- Specified by:
getDriverClassName
in interface JDBCMapperAttributes
setDriverClassName
public void setDriverClassName(java.lang.String dcn)
- Specified by:
setDriverClassName
in interface JDBCMapperAttributes
getURL
public java.lang.String getURL()
- Specified by:
getURL
in interface JDBCMapperAttributes
setURL
public void setURL(java.lang.String url)
- Specified by:
setURL
in interface JDBCMapperAttributes
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interface JDBCMapperAttributes
setUserName
public void setUserName(java.lang.String userName)
- Specified by:
setUserName
in interface JDBCMapperAttributes
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interface JDBCMapperAttributes
setPassword
public void setPassword(java.lang.String password)
- Specified by:
setPassword
in interface JDBCMapperAttributes
setPoolConnection
public void setPoolConnection(boolean pc)
- Specified by:
setPoolConnection
in interface JDBCMapperAttributes
getPoolConnection
public boolean getPoolConnection()
- Specified by:
getPoolConnection
in interface JDBCMapperAttributes
listFc
public java.lang.String[] listFc()
lookupFc
public java.lang.Object lookupFc(java.lang.String s)
bindFc
public void bindFc(java.lang.String s,
java.lang.Object o)
unbindFc
public void unbindFc(java.lang.String s)
getFcState
public java.lang.String getFcState()
startFc
public void startFc()
stopFc
public void stopFc()
getConnection
public java.lang.Object getConnection()
throws PException
- The pool is used to fetch a connection.
- Throws:
PException
getConnection
public java.lang.Object getConnection(java.lang.Object connectionContext,
java.lang.Object user)
throws PException
- Throws:
PException
closeConnection
public void closeConnection(java.lang.Object conn)
throws PException
- The connection is release into the pool
- Parameters:
conn
-
- Throws:
org.objectweb.jorm.api.PException
PException