|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.container.ContainerConnectionFactory
public class ContainerConnectionFactory
ContainerConnectionFactory is used to create RDBConnections for a pool
| Constructor Summary | |
|---|---|
ContainerConnectionFactory(ContainerConnectionPool repositoryConnectionPool,
org.apache.commons.pool.impl.GenericObjectPool parentPool,
LiteralIndexer literalIndexer,
int type,
int maxActive,
RDBConfiguration configuration)
Create new ContainerConnectionPoolFactory |
|
| Method Summary | |
|---|---|
void |
activateObject(java.lang.Object obj)
Activate RDBConnection from pool |
void |
close()
Close the factory |
void |
destroyObject(java.lang.Object obj)
Destory RDBConnection |
java.lang.Object |
makeObject()
Make new RDBConnection |
void |
passivateObject(java.lang.Object obj)
Put RDBConnection back in pool |
boolean |
validateObject(java.lang.Object obj)
Validate RDBConnection is still good |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerConnectionFactory(ContainerConnectionPool repositoryConnectionPool,
org.apache.commons.pool.impl.GenericObjectPool parentPool,
LiteralIndexer literalIndexer,
int type,
int maxActive,
RDBConfiguration configuration)
repositoryConnectionPool - Pool of jdbc connectionsparentPool - Parent pool that is using this factory to create connectionsliteralIndexer - Literal indexer for the connections in this pooltype - rw or query connectionsmaxActive - connections allowedconfiguration - data for connections| Method Detail |
|---|
public void close()
throws java.lang.Exception
java.lang.Exception
public void activateObject(java.lang.Object obj)
throws java.lang.Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exception
public void destroyObject(java.lang.Object obj)
throws java.lang.Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exception
public java.lang.Object makeObject()
throws java.lang.Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exception
public void passivateObject(java.lang.Object obj)
throws java.lang.Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactoryjava.lang.Exceptionpublic boolean validateObject(java.lang.Object obj)
validateObject in interface org.apache.commons.pool.PoolableObjectFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||