org.openejb.resource.jdbc
Class JdbcManagedConnectionFactory
java.lang.Object
org.openejb.resource.jdbc.JdbcManagedConnectionFactory
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnectionFactory, Serializable
- Direct Known Subclasses:
- JdbcXAManagedConnectionFactory
- public class JdbcManagedConnectionFactory
- extends Object
- implements javax.resource.spi.ManagedConnectionFactory, Serializable
- See Also:
- Serialized Form
jdbcDriver
protected String jdbcDriver
jdbcUrl
protected String jdbcUrl
defaultUserName
protected String defaultUserName
defaultPassword
protected String defaultPassword
logWriter
protected PrintWriter logWriter
hashCode
protected int hashCode
JdbcManagedConnectionFactory
public JdbcManagedConnectionFactory()
init
public void init(Properties props)
throws javax.resource.spi.ResourceAdapterInternalException
- Throws:
javax.resource.spi.ResourceAdapterInternalException
testDriver
protected void testDriver()
setDefaultUserName
public void setDefaultUserName(String dun)
setDefaultPassword
public void setDefaultPassword(String dp)
setJdbcUrl
public void setJdbcUrl(String url)
setJdbcDriver
public void setJdbcDriver(String driver)
throws javax.resource.spi.ResourceAdapterInternalException
- Throws:
javax.resource.spi.ResourceAdapterInternalException
getDefaultUserName
public String getDefaultUserName()
getDefaultPassword
public String getDefaultPassword()
getJdbcDriver
public String getJdbcDriver()
getJdbcUrl
public String getJdbcUrl()
createConnectionFactory
public Object createConnectionFactory()
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
createConnectionFactory
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
createManagedConnection
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
- Specified by:
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
equals
public boolean equals(Object other)
- Specified by:
equals
in interface javax.resource.spi.ManagedConnectionFactory
getLogWriter
public PrintWriter getLogWriter()
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
public int hashCode()
- Specified by:
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
matchManagedConnections
public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
- Specified by:
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
- Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(PrintWriter out)
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
Copyright © 1999-2005 OpenEJB. All Rights Reserved.