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

Field Summary
protected  java.lang.String defaultPassword
           
protected  java.lang.String defaultUserName
           
protected  java.lang.String jdbcDriver
           
protected  java.lang.String jdbcUrl
           
protected  java.io.PrintWriter logWriter
           
 
Constructor Summary
JdbcManagedConnectionFactory()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
           
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
           
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 boolean equals(java.lang.Object other)
           
 java.lang.String getDefaultPassword()
           
 java.lang.String getDefaultUserName()
           
 java.lang.String getJdbcDriver()
           
 java.lang.String getJdbcUrl()
           
 java.io.PrintWriter getLogWriter()
           
 int hashCode()
           
 void init(java.util.Properties props)
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 void setDefaultPassword(java.lang.String dp)
           
 void setDefaultUserName(java.lang.String dun)
           
 void setJdbcDriver(java.lang.String driver)
           
 void setJdbcUrl(java.lang.String url)
           
 void setLogWriter(java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JdbcManagedConnectionFactory

public JdbcManagedConnectionFactory()
Method Detail

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