org.tranql.connector.jdbc
Class AbstractLocalDataSourceMCF<T extends DataSource>
java.lang.Object
org.tranql.connector.jdbc.AbstractLocalDataSourceMCF<T>
- All Implemented Interfaces:
- Serializable, javax.resource.spi.ManagedConnectionFactory, UserPasswordManagedConnectionFactory
public abstract class AbstractLocalDataSourceMCF<T extends DataSource>
- extends Object
- implements UserPasswordManagedConnectionFactory
- Version:
- $Revision: 805 $ $Date: 2010-11-12 00:06:35 +0100 (Fri, 12 Nov 2010) $
- See Also:
- Serialized Form
dataSource
protected final T extends DataSource dataSource
AbstractLocalDataSourceMCF
protected AbstractLocalDataSourceMCF(T dataSource,
ExceptionSorter exceptionSorter,
boolean commitBeforeAutocommit)
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 Connection 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
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.