org.tranql.connector.jdbc
Class JDBCDriverMCF

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

public class JDBCDriverMCF
extends java.lang.Object
implements UserPasswordManagedConnectionFactory

Version:
$Revision: 1.5 $ $Date: 2004/06/14 23:34:29 $
See Also:
Serialized Form

Constructor Summary
JDBCDriverMCF()
           
 
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)
          Equality is define in terms of the url property.
 java.lang.String getConnectionURL()
           
 java.lang.String getDriver()
           
 java.io.PrintWriter getLogWriter()
           
 java.lang.String getPassword()
           
protected  java.lang.Object getPhysicalConnection(javax.security.auth.Subject subject, CredentialExtractor credentialExtractor)
           
 java.lang.String getUserName()
           
 int hashCode()
           
 java.lang.Boolean isCommitBeforeAutocommit()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 void setCommitBeforeAutocommit(java.lang.Boolean commitBeforeAutocommit)
           
 void setConnectionURL(java.lang.String url)
           
 void setDriver(java.lang.String driver)
           
 void setLogWriter(java.io.PrintWriter log)
           
 void setPassword(java.lang.String password)
           
 void setUserName(java.lang.String user)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCDriverMCF

public JDBCDriverMCF()
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.lang.Object 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

getDriver

public java.lang.String getDriver()

setDriver

public void setDriver(java.lang.String driver)

getConnectionURL

public java.lang.String getConnectionURL()

setConnectionURL

public void setConnectionURL(java.lang.String url)

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface UserPasswordManagedConnectionFactory

setUserName

public void setUserName(java.lang.String user)

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface UserPasswordManagedConnectionFactory

setPassword

public void setPassword(java.lang.String password)

isCommitBeforeAutocommit

public java.lang.Boolean isCommitBeforeAutocommit()

setCommitBeforeAutocommit

public void setCommitBeforeAutocommit(java.lang.Boolean commitBeforeAutocommit)

getLogWriter

public java.io.PrintWriter getLogWriter()
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory

setLogWriter

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

equals

public boolean equals(java.lang.Object obj)
Equality is define in terms of the url property.

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 © -2005 The Codehaus. All Rights Reserved.