Class DMManagedConnectionFactory

    • Constructor Detail

      • DMManagedConnectionFactory

        public DMManagedConnectionFactory()
    • 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
      • 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
      • setURL

        public void setURL​(String url)
      • getURL

        public String getURL()
      • setConnectionURL

        public void setConnectionURL​(String url)
        Sets the connection url.
        Parameters:
        url - String
        See Also:
        getConnectionURL
      • getConnectionURL

        public String getConnectionURL()
        Gets the connection url.
        Returns:
        url
        See Also:
        setConnectionURL