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