org.openejb.resource.jdbc
Class BasicManagedConnectionFactory

java.lang.Object
  extended byorg.openejb.resource.jdbc.BasicManagedConnectionFactory
All Implemented Interfaces:
javax.resource.spi.ManagedConnectionFactory, Serializable

public class BasicManagedConnectionFactory
extends Object
implements javax.resource.spi.ManagedConnectionFactory, Serializable

Version:
$Revision: 2116 $ $Date: 2005-08-26 15:00:07 -0700 (Fri, 26 Aug 2005) $
See Also:
Serialized Form

Constructor Summary
BasicManagedConnectionFactory(JdbcManagedConnectionFactory factory, String jdbcDriver, String jdbcUrl, String defaultUserName, String defaultPassword)
           
 
Method Summary
 Object createConnectionFactory()
           
 Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
           
 javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 boolean equals(Object object)
           
 PrintWriter getLogWriter()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 int hashCode()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo connectionInfo)
           
 void setLogWriter(PrintWriter out)
           
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicManagedConnectionFactory

public BasicManagedConnectionFactory(JdbcManagedConnectionFactory factory,
                                     String jdbcDriver,
                                     String jdbcUrl,
                                     String defaultUserName,
                                     String defaultPassword)
Method Detail

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 connectionRequestInfo)
                                                             throws javax.resource.ResourceException
Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

equals

public boolean equals(Object object)
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 connectionInfo)
                                                             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

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)


Copyright © 1999-2007 OpenEJB. All Rights Reserved.