nl.knowledgeplaza.util.pool
Class JdbcConnectionPoolWrapper
java.lang.Object
nl.knowledgeplaza.util.pool.JdbcConnectionPoolWrapper
- All Implemented Interfaces:
- JdbcConnectionPool, ObjectPool
public class JdbcConnectionPoolWrapper
- extends Object
- implements JdbcConnectionPool
This is a JdbcConnection specific pool, it serves to get rid of the casting.
- Version:
- $Revision: 1.2 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final 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(String name,
ObjectPool pool)
addConnection
public void addConnection()
- Specified by:
addConnection in interface JdbcConnectionPool
borrowConnection
public Connection borrowConnection()
- Specified by:
borrowConnection in interface JdbcConnectionPool
invalidateConnection
public void invalidateConnection(Connection arg0)
- Specified by:
invalidateConnection in interface JdbcConnectionPool
returnConnection
public void returnConnection(Connection arg0)
- Specified by:
returnConnection in interface JdbcConnectionPool
addObject
public void addObject()
- Specified by:
addObject in interface ObjectPool
borrowObject
public Object borrowObject()
- Specified by:
borrowObject in interface ObjectPool
clear
public void clear()
throws UnsupportedOperationException
- Specified by:
clear in interface ObjectPool
- Throws:
UnsupportedOperationException
close
public void close()
- Specified by:
close in interface ObjectPool
getNumActive
public int getNumActive()
throws UnsupportedOperationException
- Specified by:
getNumActive in interface ObjectPool
- Throws:
UnsupportedOperationException
getNumIdle
public int getNumIdle()
throws UnsupportedOperationException
- Specified by:
getNumIdle in interface ObjectPool
- Throws:
UnsupportedOperationException
invalidateObject
public void invalidateObject(Object arg0)
- Specified by:
invalidateObject in interface ObjectPool
returnObject
public void returnObject(Object arg0)
- Specified by:
returnObject in interface ObjectPool
setFactory
public void setFactory(PoolableObjectFactory arg0)
throws IllegalStateException,
UnsupportedOperationException
- Specified by:
setFactory in interface ObjectPool
- Throws:
IllegalStateException
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 © 2012 KnowledgePlaza. All Rights Reserved.