org.jboss.resource.adapter.jdbc.local
Class LocalManagedConnectionFactory

java.lang.Object
  extended by org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory
      extended by org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory
All Implemented Interfaces:
Serializable, javax.resource.spi.ManagedConnectionFactory
Direct Known Subclasses:
HALocalManagedConnectionFactory

public class LocalManagedConnectionFactory
extends BaseWrapperManagedConnectionFactory

LocalManagedConnectionFactory

Version:
$Revision: 1.21.6.4 $
Author:
David Jencks, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  String connectionProperties
           
 
Fields inherited from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory
checkValidConnectionSQL, connectionChecker, connectionProps, doQueryTimeout, isTransactionQueryTimeout, log, newConnectionSQL, password, preparedStatementCacheSize, queryTimeout, sharePS, TRACK_STATEMENTS_FALSE, TRACK_STATEMENTS_FALSE_INT, TRACK_STATEMENTS_NOWARN, TRACK_STATEMENTS_NOWARN_INT, TRACK_STATEMENTS_TRUE, TRACK_STATEMENTS_TRUE_INT, trackStatements, transactionIsolation, userName, validConnectionCheckerClassName
 
Constructor Summary
LocalManagedConnectionFactory()
           
 
Method Summary
 javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
           
 boolean equals(Object other)
           
 String getConnectionProperties()
          Get the value of connectionProperties.
 String getConnectionURL()
          Get the value of ConnectionURL.
protected  Driver getDriver(String url)
          Check the driver for the given URL.
 String getDriverClass()
          Get the DriverClass value.
 int hashCode()
           
protected  String internalGetConnectionURL()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(Set mcs, Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
           
 void setConnectionProperties(String connectionProperties)
          Set the value of connectionProperties.
 void setConnectionURL(String connectionURL)
          Set the value of ConnectionURL.
 void setDriverClass(String driverClass)
          Set the DriverClass value.
 
Methods inherited from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory
createConnectionFactory, createConnectionFactory, getCheckValidConnectionSQL, getConnectionProperties, getExceptionSorterClassName, getLogWriter, getNewConnectionSQL, getPassword, getPreparedStatementCacheSize, getQueryTimeout, getSharePreparedStatements, getTrackStatements, getTransactionIsolation, getUserName, getValidConnectionCheckerClassName, isTransactionQueryTimeout, setCheckValidConnectionSQL, setExceptionSorterClassName, setLogWriter, setNewConnectionSQL, setPassword, setPreparedStatementCacheSize, setQueryTimeout, setSharePreparedStatements, setTrackStatements, setTransactionIsolation, setTransactionQueryTimeout, setUserName, setValidConnectionCheckerClassName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionProperties

protected String connectionProperties
Constructor Detail

LocalManagedConnectionFactory

public LocalManagedConnectionFactory()
Method Detail

getConnectionURL

public String getConnectionURL()
Get the value of ConnectionURL.

Returns:
value of ConnectionURL.

setConnectionURL

public void setConnectionURL(String connectionURL)
Set the value of ConnectionURL.

Parameters:
connectionURL - Value to assign to ConnectionURL.

getDriverClass

public String getDriverClass()
Get the DriverClass value.

Returns:
the DriverClass value.

setDriverClass

public void setDriverClass(String driverClass)
Set the DriverClass value.

Parameters:
driverClass - The new DriverClass value.

getConnectionProperties

public String getConnectionProperties()
Get the value of connectionProperties.

Returns:
value of connectionProperties.

setConnectionProperties

public void setConnectionProperties(String connectionProperties)
Set the value of connectionProperties.

Parameters:
connectionProperties - Value to assign to connectionProperties.

createManagedConnection

public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo cri)
                                                             throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(Set mcs,
                                                                    Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo cri)
                                                             throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
equals in class Object

getDriver

protected Driver getDriver(String url)
                    throws javax.resource.ResourceException
Check the driver for the given URL. If it is not registered already then register it.

Parameters:
url - The JDBC URL which we need a driver for.
Throws:
javax.resource.ResourceException

internalGetConnectionURL

protected String internalGetConnectionURL()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.