
public class LocalManagedConnectionFactory extends BaseWrapperManagedConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
protected String |
connectionProperties
The connection properties
|
protected Properties |
connectionProps
The connection properties
|
bundle, checkValidConnectionSQL, connectionChecker, doQueryTimeout, isTransactionQueryTimeout, log, newConnectionSQL, password, preparedStatementCacheSize, queryTimeout, sharePS, staleConnectionChecker, staleConnectionCheckerProps, TRACK_STATEMENTS_FALSE, TRACK_STATEMENTS_FALSE_INT, TRACK_STATEMENTS_NOWARN, TRACK_STATEMENTS_NOWARN_INT, TRACK_STATEMENTS_TRUE, TRACK_STATEMENTS_TRUE_INT, trackStatements, transactionIsolation, urlDelimiter, urlSelectorStrategyClassName, userName, validConnectionCheckerClassName, validConnectionCheckerProps| Constructor and Description |
|---|
LocalManagedConnectionFactory()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cm) |
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri) |
boolean |
equals(Object other) |
String |
getConnectionProperties()
Get the value of connectionProperties.
|
String |
getConnectionURL()
Get the value of ConnectionURL.
|
String |
getDataSourceClass()
Get the DataSourceClass value.
|
protected Driver |
getDriver(String url)
Check the driver for the given URL.
|
String |
getDriverClass()
Get the DriverClass value.
|
int |
hashCode() |
protected void |
initUrlSelector()
Init URL selector
|
protected String |
internalGetConnectionURL()
Get the connection url
|
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set mcs,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri) |
void |
setConnectionProperties(String connectionProperties)
Set the value of connectionProperties.
|
void |
setConnectionURL(String connectionURL)
Set the value of ConnectionURL.
|
void |
setDataSourceClass(String dataSourceClass)
Set the DataSourceClass value.
|
void |
setDriverClass(String driverClass)
Set the DriverClass value.
|
String |
toString() |
createConnectionFactory, getCheckValidConnectionSQL, getClassLoaderPlugin, getConnectionListenerClassName, getConnectionListenerProperties, getConnectionProperties, getExceptionSorterClassName, getExceptionSorterProperties, getExceptionSorterProps, getInvalidConnections, getJndiName, getLogWriter, getNewConnectionSQL, getPassword, getPreparedStatementCacheSize, getQueryTimeout, getReauthEnabled, getReauthPluginClassName, getReauthPluginProperties, getResourceAdapter, getSharePreparedStatements, getSpy, getStaleConnectionCheckerClassName, getStaleConnectionCheckerProperties, getStaleConnectionCheckerProps, getStatistics, getTrackStatements, getTransactionIsolation, getURLDelimiter, getUrlSelectorStrategyClassName, getUserName, getUseTryLock, getValidConnectionCheckerClassName, getValidConnectionCheckerProperties, getValidConnectionCheckerProps, isJTA, isTransactionQueryTimeout, setCheckValidConnectionSQL, setClassLoaderPlugin, setConnectionListenerClassName, setConnectionListenerProperties, setExceptionSorterClassName, setExceptionSorterProperties, setJndiName, setJTA, setLogWriter, setNewConnectionSQL, setPassword, setPreparedStatementCacheSize, setQueryTimeout, setReauthEnabled, setReauthPluginClassName, setReauthPluginProperties, setResourceAdapter, setSharePreparedStatements, setSpy, setStaleConnectionCheckerClassName, setStaleConnectionCheckerProperties, setTrackStatements, setTransactionIsolation, setTransactionQueryTimeout, setURLDelimiter, setUrlSelectorStrategyClassName, setUserName, setUseTryLock, setValidConnectionCheckerClassName, setValidConnectionCheckerPropertiesprotected String connectionProperties
protected final Properties connectionProps
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class BaseWrapperManagedConnectionFactoryjavax.resource.ResourceExceptionpublic String getConnectionURL()
public void setConnectionURL(String connectionURL)
connectionURL - Value to assign to ConnectionURL.public String getDriverClass()
public void setDriverClass(String driverClass)
driverClass - The new DriverClass value.public String getDataSourceClass()
public void setDataSourceClass(String dataSourceClass)
dataSourceClass - The new DataSourceClass value.public String getConnectionProperties()
public void setConnectionProperties(String connectionProperties)
connectionProperties - Value to assign to connectionProperties.public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected void initUrlSelector()
public javax.resource.spi.ManagedConnection matchManagedConnections(Set mcs, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic int hashCode()
public boolean equals(Object other)
protected Driver getDriver(String url) throws javax.resource.ResourceException
url - The JDBC URL which we need a driver for.javax.resource.ResourceException - Thrown if an error occursprotected String internalGetConnectionURL()
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)