Class LocalManagedConnectionFactory

java.lang.Object
org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnectionFactory
org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory
All Implemented Interfaces:
jakarta.resource.spi.ManagedConnectionFactory, jakarta.resource.spi.ResourceAdapterAssociation, jakarta.resource.spi.ValidatingManagedConnectionFactory, Serializable, Statistics

public class LocalManagedConnectionFactory extends BaseWrapperManagedConnectionFactory
LocalManagedConnectionFactory
Author:
David Jencks, Adrian Brock, Jesper Pedersen
See Also:
  • Field Details

    • connectionProperties

      protected String connectionProperties
      The connection properties
    • connectionProps

      protected final Properties connectionProps
      The connection properties
  • Constructor Details

    • LocalManagedConnectionFactory

      public LocalManagedConnectionFactory()
      Constructor
  • Method Details

    • createConnectionFactory

      public Object createConnectionFactory(jakarta.resource.spi.ConnectionManager cm) throws jakarta.resource.ResourceException
      Specified by:
      createConnectionFactory in interface jakarta.resource.spi.ManagedConnectionFactory
      Overrides:
      createConnectionFactory in class BaseWrapperManagedConnectionFactory
      Throws:
      jakarta.resource.ResourceException
    • 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.
    • getDataSourceClass

      public String getDataSourceClass()
      Get the DataSourceClass value.
      Returns:
      the DataSourceClass value.
    • setDataSourceClass

      public void setDataSourceClass(String dataSourceClass)
      Set the DataSourceClass value.
      Parameters:
      dataSourceClass - The new DataSourceClass 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 jakarta.resource.spi.ManagedConnection createManagedConnection(Subject subject, jakarta.resource.spi.ConnectionRequestInfo cri) throws jakarta.resource.ResourceException
      Throws:
      jakarta.resource.ResourceException
    • initUrlSelector

      protected void initUrlSelector()
      Init URL selector
    • matchManagedConnections

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

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

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

      protected Driver getDriver(String url) throws jakarta.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.
      Returns:
      The driver
      Throws:
      jakarta.resource.ResourceException - Thrown if an error occurs
    • internalGetConnectionURL

      protected String internalGetConnectionURL()
      Get the connection url
      Returns:
      The value
    • toString

      public String toString()
      Overrides:
      toString in class Object