org.openejb.resource.jdbc
Class BasicManagedConnectionFactory

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

public class BasicManagedConnectionFactory
extends java.lang.Object
implements javax.resource.spi.ManagedConnectionFactory, java.io.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, java.lang.String jdbcDriver, java.lang.String jdbcUrl, java.lang.String defaultUserName, java.lang.String defaultPassword)
           
 
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 connectionRequestInfo)
           
 boolean equals(java.lang.Object object)
           
 java.io.PrintWriter getLogWriter()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 int hashCode()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionInfo)
           
 void setLogWriter(java.io.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,
                                     java.lang.String jdbcDriver,
                                     java.lang.String jdbcUrl,
                                     java.lang.String defaultUserName,
                                     java.lang.String defaultPassword)
Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createConnectionFactory

public java.lang.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(javax.security.auth.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(java.lang.Object object)
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 connectionInfo)
                                                             throws javax.resource.ResourceException
Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

setLogWriter

public void setLogWriter(java.io.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-2011 OpenEJB. All Rights Reserved.