|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tranql.connector.jdbc.JDBCDriverMCF
Implementation of a ManagedConnectionFactory that connects to a JDBC database using a generic JDBC Driver.
| 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()
Return the JDBC connection URL |
java.lang.String |
getDriver()
Return the name of the Driver class |
java.lang.String |
getExceptionSorterClass()
Return the name of the ExceptionSorter implementation used to classify Exceptions raised by the Driver. |
java.io.PrintWriter |
getLogWriter()
|
java.lang.String |
getPassword()
Return the password credential used to establish the connection. |
protected java.sql.Connection |
getPhysicalConnection(javax.security.auth.Subject subject,
CredentialExtractor credentialExtractor)
|
java.lang.String |
getUserName()
Return the user name used to establish the connection. |
int |
hashCode()
|
java.lang.Boolean |
isCommitBeforeAutocommit()
Return whether the Driver requires a commit before enabling auto-commit. |
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)
Set whether the Driver requires a commit before enabling auto-commit. |
void |
setConnectionURL(java.lang.String url)
Set the JDBC connection URL. |
void |
setDriver(java.lang.String driver)
Set the name of the Driver class |
void |
setExceptionSorterClass(java.lang.String className)
Set the name of the ExceptionSorter implementation so use. |
void |
setLogWriter(java.io.PrintWriter log)
|
void |
setPassword(java.lang.String password)
Set the user password credential establish the connection. |
void |
setUserName(java.lang.String user)
Set the user name used establish the connection. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JDBCDriverMCF()
| Method Detail |
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
protected java.sql.Connection getPhysicalConnection(javax.security.auth.Subject subject,
CredentialExtractor credentialExtractor)
throws javax.resource.ResourceException
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
throws javax.resource.ResourceException
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic java.io.PrintWriter getLogWriter()
getLogWriter in interface javax.resource.spi.ManagedConnectionFactorypublic void setLogWriter(java.io.PrintWriter log)
setLogWriter in interface javax.resource.spi.ManagedConnectionFactorypublic java.lang.String getDriver()
public void setDriver(java.lang.String driver)
throws javax.resource.spi.InvalidPropertyException
driver - the name of the Driver class
javax.resource.spi.InvalidPropertyException - if the class name is null or emptypublic java.lang.String getConnectionURL()
public void setConnectionURL(java.lang.String url)
throws javax.resource.spi.InvalidPropertyException
url - the JDBC connection URL
javax.resource.spi.InvalidPropertyExceptionpublic java.lang.String getUserName()
getUserName in interface UserPasswordManagedConnectionFactorypublic void setUserName(java.lang.String user)
user - the user name used to establish the connection; may be nullpublic java.lang.String getPassword()
getPassword in interface UserPasswordManagedConnectionFactorypublic void setPassword(java.lang.String password)
password - the password credential used to establish the connection; may be nullpublic java.lang.Boolean isCommitBeforeAutocommit()
public void setCommitBeforeAutocommit(java.lang.Boolean commitBeforeAutocommit)
commitBeforeAutocommit - set TRUE if a commit should be performed before enabling auto-commitpublic java.lang.String getExceptionSorterClass()
public void setExceptionSorterClass(java.lang.String className)
throws javax.resource.spi.InvalidPropertyException
className - the class name of an ExceptionSorter to use
javax.resource.spi.InvalidPropertyException - if the class name is null or emptypublic boolean equals(java.lang.Object obj)
equals in interface javax.resource.spi.ManagedConnectionFactorypublic int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactorypublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||