nl.knowledgeplaza.util.pool
Class JdbcConnectionPoolWrapper
java.lang.Object
nl.knowledgeplaza.util.pool.JdbcConnectionPoolWrapper
- All Implemented Interfaces:
- JdbcConnectionPool, ObjectPool
public class JdbcConnectionPoolWrapper
- extends java.lang.Object
- implements JdbcConnectionPool
This is a JdbcConnection specific pool, it serves to get rid of the casting.
- Version:
- $Revision: 1.2 $
|
Field Summary |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final java.lang.String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
JdbcConnectionPoolWrapper
public JdbcConnectionPoolWrapper(ObjectPool pool)
JdbcConnectionPoolWrapper
public JdbcConnectionPoolWrapper(java.lang.String name,
ObjectPool pool)
addConnection
public void addConnection()
- Specified by:
addConnection in interface JdbcConnectionPool
borrowConnection
public java.sql.Connection borrowConnection()
- Specified by:
borrowConnection in interface JdbcConnectionPool
invalidateConnection
public void invalidateConnection(java.sql.Connection arg0)
- Specified by:
invalidateConnection in interface JdbcConnectionPool
returnConnection
public void returnConnection(java.sql.Connection arg0)
- Specified by:
returnConnection in interface JdbcConnectionPool
addObject
public void addObject()
- Specified by:
addObject in interface ObjectPool
borrowObject
public java.lang.Object borrowObject()
- Specified by:
borrowObject in interface ObjectPool
clear
public void clear()
throws java.lang.UnsupportedOperationException
- Specified by:
clear in interface ObjectPool
- Throws:
java.lang.UnsupportedOperationException
close
public void close()
- Specified by:
close in interface ObjectPool
getNumActive
public int getNumActive()
throws java.lang.UnsupportedOperationException
- Specified by:
getNumActive in interface ObjectPool
- Throws:
java.lang.UnsupportedOperationException
getNumIdle
public int getNumIdle()
throws java.lang.UnsupportedOperationException
- Specified by:
getNumIdle in interface ObjectPool
- Throws:
java.lang.UnsupportedOperationException
invalidateObject
public void invalidateObject(java.lang.Object arg0)
- Specified by:
invalidateObject in interface ObjectPool
returnObject
public void returnObject(java.lang.Object arg0)
- Specified by:
returnObject in interface ObjectPool
setFactory
public void setFactory(PoolableObjectFactory arg0)
throws java.lang.IllegalStateException,
java.lang.UnsupportedOperationException
- Specified by:
setFactory in interface ObjectPool
- Throws:
java.lang.IllegalStateException
java.lang.UnsupportedOperationException
shutdown
public void shutdown()
- Specified by:
shutdown in interface ObjectPool
isSynchronized
public boolean isSynchronized()
- Specified by:
isSynchronized in interface ObjectPool
setSynchronized
public void setSynchronized(boolean value)
- Specified by:
setSynchronized in interface ObjectPool
Copyright © 2010. All Rights Reserved.