org.openejb.resource.jdbc
Class JdbcManagedConnectionFactory

java.lang.Object
  extended byorg.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

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

Field Detail

jdbcDriver

protected String jdbcDriver

jdbcUrl

protected String jdbcUrl

defaultUserName

protected String defaultUserName

defaultPassword

protected String defaultPassword

logWriter

protected PrintWriter logWriter

hashCode

protected int hashCode
Constructor Detail

JdbcManagedConnectionFactory

public JdbcManagedConnectionFactory()
Method Detail

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.