org.openmdx.kernel.application.container.spi.sql
Class ManagedDatabaseConnectionFactory

java.lang.Object
  extended by org.openmdx.kernel.application.container.spi.sql.ManagedDatabaseConnectionFactory
All Implemented Interfaces:
Serializable, ManagedConnectionFactory

public class ManagedDatabaseConnectionFactory
extends Object
implements ManagedConnectionFactory

Managed Database Connection Factory

See Also:
Serialized Form

Constructor Summary
ManagedDatabaseConnectionFactory(XADataSource xaDataSource, DatabaseConnectionRequestInfo connectionRequestInfo)
           
 
Method Summary
 Object createConnectionFactory()
           
 Object createConnectionFactory(ConnectionManager connectionManager)
           
 ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 PrintWriter getLogWriter()
           
 ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 void setLogWriter(PrintWriter logWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
equals, hashCode
 

Constructor Detail

ManagedDatabaseConnectionFactory

public ManagedDatabaseConnectionFactory(XADataSource xaDataSource,
                                        DatabaseConnectionRequestInfo connectionRequestInfo)
Method Detail

createConnectionFactory

public Object createConnectionFactory(ConnectionManager connectionManager)
                               throws ResourceException
Specified by:
createConnectionFactory in interface ManagedConnectionFactory
Throws:
ResourceException

createConnectionFactory

public Object createConnectionFactory()
                               throws ResourceException
Specified by:
createConnectionFactory in interface ManagedConnectionFactory
Throws:
ResourceException

createManagedConnection

public ManagedConnection createManagedConnection(Subject subject,
                                                 ConnectionRequestInfo connectionRequestInfo)
                                          throws ResourceException
Specified by:
createManagedConnection in interface ManagedConnectionFactory
Throws:
ResourceException

matchManagedConnections

public ManagedConnection matchManagedConnections(Set connectionSet,
                                                 Subject subject,
                                                 ConnectionRequestInfo connectionRequestInfo)
                                          throws ResourceException
Specified by:
matchManagedConnections in interface ManagedConnectionFactory
Throws:
ResourceException

setLogWriter

public void setLogWriter(PrintWriter logWriter)
Specified by:
setLogWriter in interface ManagedConnectionFactory

getLogWriter

public PrintWriter getLogWriter()
Specified by:
getLogWriter in interface ManagedConnectionFactory


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.