org.tranql.connector.jdbc
Class AbstractXADataSourceMCF

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

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

Version:
$Revision: 262 $ $Date: 2005-09-25 02:45:28 +0200 (Sun, 25 Sep 2005) $
See Also:
Serialized Form

Field Summary
protected  ExceptionSorter exceptionSorter
           
protected  javax.sql.XADataSource xaDataSource
           
 
Constructor Summary
protected AbstractXADataSourceMCF(javax.sql.XADataSource xaDataSource, ExceptionSorter exceptionSorter)
           
 
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  javax.sql.XAConnection 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

xaDataSource

protected final javax.sql.XADataSource xaDataSource

exceptionSorter

protected final ExceptionSorter exceptionSorter
Constructor Detail

AbstractXADataSourceMCF

protected AbstractXADataSourceMCF(javax.sql.XADataSource xaDataSource,
                                  ExceptionSorter exceptionSorter)
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 javax.sql.XAConnection 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
Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © -2009 The Codehaus. All Rights Reserved.