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

java.lang.Object
  extended byorg.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory (src) 
      extended byorg.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory
All Implemented Interfaces:
ManagedConnectionFactory (src) , java.io.Serializable
Direct Known Subclasses:
HALocalManagedConnectionFactory (src)

public class LocalManagedConnectionFactory
extends BaseWrapperManagedConnectionFactory (src)

LocalManagedConnectionFactory

See Also:
Serialized Form

Field Summary
protected  java.lang.String connectionProperties
           
 
Fields inherited from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory (src)
checkValidConnectionSQL, connectionChecker, connectionProps, doQueryTimeout, log, newConnectionSQL, password, preparedStatementCacheSize, 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
 ManagedConnection (src) createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src)  cri)
          Creates a new ManagedConnection
 boolean equals(java.lang.Object other)
          Tests object for equality
 java.lang.String getConnectionProperties()
          Get the value of connectionProperties.
 java.lang.String getConnectionURL()
          Get the value of ConnectionURL.
protected  java.sql.Driver getDriver(java.lang.String url)
          Check the driver for the given URL.
 java.lang.String getDriverClass()
          Get the DriverClass value.
 int hashCode()
          Generates a hashCode for this object
protected  java.lang.String internalGetConnectionURL()
           
 ManagedConnection (src) matchManagedConnections(java.util.Set mcs, javax.security.auth.Subject subject, ConnectionRequestInfo (src)  cri)
          Returns a matching connection from the set.
 void setConnectionProperties(java.lang.String connectionProperties)
          Set the value of connectionProperties.
 void setConnectionURL(java.lang.String connectionURL)
          Set the value of ConnectionURL.
 void setDriverClass(java.lang.String driverClass)
          Set the DriverClass value.
 
Methods inherited from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory (src)
createConnectionFactory, createConnectionFactory, getCheckValidConnectionSQL, getConnectionProperties, getExceptionSorterClassName, getLogWriter, getNewConnectionSQL, getPassword, getPreparedStatementCacheSize, getSharePreparedStatements, getTrackStatements, getTransactionIsolation, getTxQueryTimeout, getUserName, getValidConnectionCheckerClassName, setCheckValidConnectionSQL, setExceptionSorterClassName, setLogWriter, setNewConnectionSQL, setPassword, setPreparedStatementCacheSize, setSharePreparedStatements, setTrackStatements, setTransactionIsolation, setTxQueryTimeout, setUserName, setValidConnectionCheckerClassName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionProperties

protected java.lang.String connectionProperties
Constructor Detail

LocalManagedConnectionFactory

public LocalManagedConnectionFactory()
Method Detail

getConnectionURL

public java.lang.String getConnectionURL()
Get the value of ConnectionURL.

Returns:
value of ConnectionURL.

setConnectionURL

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


getDriverClass

public java.lang.String getDriverClass()
Get the DriverClass value.

Returns:
the DriverClass value.

setDriverClass

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


getConnectionProperties

public java.lang.String getConnectionProperties()
Get the value of connectionProperties.

Returns:
value of connectionProperties.

setConnectionProperties

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


createManagedConnection

public ManagedConnection (src)  createManagedConnection(javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo (src)  cri)
                                          throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a new ManagedConnection

Parameters:
subject - the subject
cri - the connection request info
Returns:
Throws:
ResourceException (src) -

matchManagedConnections

public ManagedConnection (src)  matchManagedConnections(java.util.Set mcs,
                                                 javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo (src)  cri)
                                          throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Returns a matching connection from the set.

Parameters:
mcs - the connection set
subject - the subject
cri - the connection request info
Returns:
Throws:
ResourceException (src) -

hashCode

public int hashCode()
Description copied from interface: ManagedConnectionFactory (src)
Generates a hashCode for this object

Returns:
hashcode computed according to recommendations in Effective Java.

equals

public boolean equals(java.lang.Object other)
Description copied from interface: ManagedConnectionFactory (src)
Tests object for equality

Returns:

getDriver

protected java.sql.Driver getDriver(java.lang.String url)
                             throws ResourceException (src) 
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:
ResourceException (src)

internalGetConnectionURL

protected java.lang.String internalGetConnectionURL()