org.tranql.connector.jdbc
Class AbstractLocalDataSourceMCF<T extends DataSource>

java.lang.Object
  extended by 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

Field Summary
protected  T dataSource
           
 
Constructor Summary
protected AbstractLocalDataSourceMCF(T dataSource, ExceptionSorter exceptionSorter, boolean commitBeforeAutocommit)
           
 
Method Summary
 Object createConnectionFactory()
           
 Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
           
 javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 boolean equals(Object obj)
           
 Integer getLoginTimeout()
           
 PrintWriter getLogWriter()
           
protected  Connection getPhysicalConnection(Subject subject, CredentialExtractor credentialExtractor)
           
 int hashCode()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(Set set, Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 void setLoginTimeout(Integer timeout)
           
 void setLogWriter(PrintWriter log)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tranql.connector.UserPasswordManagedConnectionFactory
getPassword, getUserName
 

Field Detail

dataSource

protected final T extends DataSource dataSource
Constructor Detail

AbstractLocalDataSourceMCF

protected AbstractLocalDataSourceMCF(T dataSource,
                                     ExceptionSorter exceptionSorter,
                                     boolean commitBeforeAutocommit)
Method Detail

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.