public class PooledConnectionFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean
The
resourceName
property should be used along with the GenericResourceManager
and have
the same value than its resourceName
property. This will make sure the transaction manager
maps correctly the connection factory to the recovery process.Constructor and Description |
---|
PooledConnectionFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
ConnectionFactory |
getConnectionFactory() |
int |
getMaxConnections() |
int |
getMaximumActive() |
Object |
getObject() |
Class |
getObjectType() |
String |
getResourceName() |
Object |
getTransactionManager() |
boolean |
isSingleton() |
void |
setConnectionFactory(ConnectionFactory connectionFactory) |
void |
setMaxConnections(int maxConnections) |
void |
setMaximumActive(int maximumActive) |
void |
setResourceName(String resourceName) |
void |
setTransactionManager(Object transactionManager) |
public PooledConnectionFactoryBean()
public int getMaxConnections()
public void setMaxConnections(int maxConnections)
public int getMaximumActive()
public void setMaximumActive(int maximumActive)
public Object getTransactionManager()
public void setTransactionManager(Object transactionManager)
public String getResourceName()
public void setResourceName(String resourceName)
public ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
public void afterPropertiesSet() throws Exception
Exception
public Object getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean
Exception
public Class getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.