Class DSManagedConnectionFactory

    • Constructor Detail

      • DSManagedConnectionFactory

        public DSManagedConnectionFactory()
    • Method Detail

      • createManagedConnection

        public jakarta.resource.spi.ManagedConnection createManagedConnection​(Subject subject,
                                                                              jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo)
                                                                       throws jakarta.resource.ResourceException
        Creates a new physical connection to the underlying EIS resource manager.
        Specified by:
        createManagedConnection in interface jakarta.resource.spi.ManagedConnectionFactory
        Specified by:
        createManagedConnection in class ManagedConnectionFactoryImpl
        Parameters:
        subject - Subject instance passed by the application server
        cxRequestInfo - ConnectionRequestInfo which may be created as a result of the invocation getConnection(user, password) on the DataSource object
        Returns:
        ManagedConnection object created
        Throws:
        jakarta.resource.ResourceException - if there is an error in instantiating the DataSource object used for the creation of the ManagedConnection object
        SecurityException - if there ino PasswordCredential object satisfying this request
        jakarta.resource.spi.ResourceAllocationException - if there is an error in allocating the physical connection
      • getDataSource

        public DataSource getDataSource()
                                 throws jakarta.resource.ResourceException
        Returns the underlying datasource
        Overrides:
        getDataSource in class ManagedConnectionFactoryImpl
        Returns:
        DataSource of jdbc vendor
        Throws:
        jakarta.resource.ResourceException
      • equals

        public boolean equals​(Object other)
        Check if this ManagedConnectionFactory is equal to another ManagedConnectionFactory.
        Specified by:
        equals in interface jakarta.resource.spi.ManagedConnectionFactory
        Specified by:
        equals in class ManagedConnectionFactoryImpl
        Parameters:
        other - ManagedConnectionFactory object for checking equality with
        Returns:
        true if the property sets of both the ManagedConnectionFactory objects are the same false otherwise
      • hashCode

        public int hashCode()
        Description copied from class: ManagedConnectionFactoryImpl
        Returns the hash code for this ManagedConnectionFactoryImpl.
        Specified by:
        hashCode in interface jakarta.resource.spi.ManagedConnectionFactory
        Overrides:
        hashCode in class ManagedConnectionFactoryImpl
        Returns:
        hash code for this ManagedConnectionFactoryImpl