org.tranql.connector.jdbc
Class AbstractLocalDataSourceMCF

java.lang.Object
  extended byorg.tranql.connector.jdbc.AbstractLocalDataSourceMCF
All Implemented Interfaces:
javax.resource.spi.ManagedConnectionFactory, java.io.Serializable, UserPasswordManagedConnectionFactory

public abstract class AbstractLocalDataSourceMCF
extends java.lang.Object
implements UserPasswordManagedConnectionFactory

Version:
$Revision: 219 $ $Date: 2005-07-30 21:04:31 +0200 (Sat, 30 Jul 2005) $
See Also:
Serialized Form

Field Summary
protected  javax.sql.DataSource dataSource
           
 
Constructor Summary
protected AbstractLocalDataSourceMCF(javax.sql.DataSource xaDataSource, ExceptionSorter exceptionSorter, boolean commitBeforeAutocommit)
           
 
Method Summary
 java.lang.Object createConnectionFactory()
           
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
           
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getLoginTimeout()
           
 java.io.PrintWriter getLogWriter()
           
protected  java.sql.Connection getPhysicalConnection(javax.security.auth.Subject subject, CredentialExtractor credentialExtractor)
           
 int hashCode()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 void setLoginTimeout(java.lang.Integer timeout)
           
 void setLogWriter(java.io.PrintWriter log)
           
 java.lang.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 javax.sql.DataSource dataSource
Constructor Detail

AbstractLocalDataSourceMCF

protected AbstractLocalDataSourceMCF(javax.sql.DataSource xaDataSource,
                                     ExceptionSorter exceptionSorter,
                                     boolean commitBeforeAutocommit)
Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createConnectionFactory

public java.lang.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(javax.security.auth.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 java.sql.Connection getPhysicalConnection(javax.security.auth.Subject subject,
                                                    CredentialExtractor credentialExtractor)
                                             throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set,
                                                                    javax.security.auth.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 java.io.PrintWriter getLogWriter()
                                 throws javax.resource.ResourceException
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

setLogWriter

public void setLogWriter(java.io.PrintWriter log)
                  throws javax.resource.ResourceException
Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

getLoginTimeout

public java.lang.Integer getLoginTimeout()

setLoginTimeout

public void setLoginTimeout(java.lang.Integer timeout)
                     throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
obj -
Returns:

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory

toString

public java.lang.String toString()


Copyright © -2006 The Codehaus. All Rights Reserved.