Class LocalManagedConnectionFactory

    • Field Detail

      • connectionProperties

        protected String connectionProperties
        The connection properties
      • connectionProps

        protected final Properties connectionProps
        The connection properties
    • Constructor Detail

      • LocalManagedConnectionFactory

        public LocalManagedConnectionFactory()
        Constructor
    • Method Detail

      • createConnectionFactory

        public Object createConnectionFactory​(javax.resource.spi.ConnectionManager cm)
                                       throws javax.resource.ResourceException
        Specified by:
        createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
        Overrides:
        createConnectionFactory in class BaseWrapperManagedConnectionFactory
        Throws:
        javax.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 javax.resource.spi.ManagedConnection createManagedConnection​(Subject subject,
                                                                            javax.resource.spi.ConnectionRequestInfo cri)
                                                                     throws javax.resource.ResourceException
        Throws:
        javax.resource.ResourceException
      • initUrlSelector

        protected void initUrlSelector()
        Init URL selector
      • 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.
        Returns:
        The driver
        Throws:
        javax.resource.ResourceException - Thrown if an error occurs
      • internalGetConnectionURL

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