org.tranql.connector.jdbc
Class AbstractPooledConnectionDataSourceMCF<T extends ConnectionPoolDataSource>
java.lang.Object
org.tranql.connector.jdbc.AbstractPooledConnectionDataSourceMCF<T>
- All Implemented Interfaces:
- Serializable, javax.resource.spi.ManagedConnectionFactory, AutocommitSpecCompliant, UserPasswordManagedConnectionFactory
public abstract class AbstractPooledConnectionDataSourceMCF<T extends ConnectionPoolDataSource>
- extends Object
- implements UserPasswordManagedConnectionFactory, AutocommitSpecCompliant
- Version:
- $Revision: 805 $ $Date: 2010-11-12 00:06:35 +0100 (Fri, 12 Nov 2010) $
- See Also:
- Serialized Form
connectionPoolDataSource
protected final T extends ConnectionPoolDataSource connectionPoolDataSource
exceptionSorter
protected final ExceptionSorter exceptionSorter
AbstractPooledConnectionDataSourceMCF
protected AbstractPooledConnectionDataSourceMCF(T connectionPoolDataSource,
ExceptionSorter exceptionSorter)
createConnectionFactory
public Object createConnectionFactory()
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
throws javax.resource.ResourceException
- Specified by:
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
getPhysicalConnection
protected PooledConnection getPhysicalConnection(Subject subject,
CredentialExtractor credentialExtractor)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(Set set,
Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
throws javax.resource.ResourceException
- Specified by:
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(PrintWriter log)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
getLoginTimeout
public Integer getLoginTimeout()
setLoginTimeout
public void setLoginTimeout(Integer timeout)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
isCommitBeforeAutocommit
public Boolean isCommitBeforeAutocommit()
- Assume connection pooled datasource implementations are spec compliant. Override to return TRUE if they are not (e.g. oracle)
- Specified by:
isCommitBeforeAutocommit
in interface AutocommitSpecCompliant
- Returns:
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface javax.resource.spi.ManagedConnectionFactory
- Overrides:
equals
in class Object
- Parameters:
obj
-
- Returns:
hashCode
public int hashCode()
- Specified by:
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004-2012 Tranql project committers. All Rights Reserved.