org.openejb.resource.jdbc
Class JdbcManagedConnectionFactory
java.lang.Object
|
+--org.openejb.resource.jdbc.JdbcManagedConnectionFactory
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnectionFactory, java.io.Serializable
- public class JdbcManagedConnectionFactory
- extends java.lang.Object
- implements javax.resource.spi.ManagedConnectionFactory, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
jdbcDriver
protected java.lang.String jdbcDriver
jdbcUrl
protected java.lang.String jdbcUrl
defaultUserName
protected java.lang.String defaultUserName
defaultPassword
protected java.lang.String defaultPassword
logWriter
protected java.io.PrintWriter logWriter
JdbcManagedConnectionFactory
public JdbcManagedConnectionFactory()
init
public void init(java.util.Properties props)
throws javax.resource.spi.ResourceAdapterInternalException
setDefaultUserName
public void setDefaultUserName(java.lang.String dun)
setDefaultPassword
public void setDefaultPassword(java.lang.String dp)
setJdbcUrl
public void setJdbcUrl(java.lang.String url)
setJdbcDriver
public void setJdbcDriver(java.lang.String driver)
throws javax.resource.spi.ResourceAdapterInternalException
getDefaultUserName
public java.lang.String getDefaultUserName()
getDefaultPassword
public java.lang.String getDefaultPassword()
getJdbcDriver
public java.lang.String getJdbcDriver()
getJdbcUrl
public java.lang.String getJdbcUrl()
createConnectionFactory
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
- Specified by:
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interface javax.resource.spi.ManagedConnectionFactory
- Overrides:
equals
in class java.lang.Object
getLogWriter
public java.io.PrintWriter getLogWriter()
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
public int hashCode()
- Specified by:
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
- Overrides:
hashCode
in class java.lang.Object
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
- Specified by:
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory