Class XAManagedConnectionFactory

    • Constructor Detail

      • XAManagedConnectionFactory

        public XAManagedConnectionFactory()
    • 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 XADataSource 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
      • setMaxStatements

        public void setMaxStatements​(String maxStmts)
        Sets the max statements.
        Parameters:
        maxStmts - String
        See Also:
        getMaxStatements
      • getMaxStatements

        public String getMaxStatements()
        Gets the max statements.
        Returns:
        maxStmts
        See Also:
        setMaxStatements
      • setInitialPoolSize

        public void setInitialPoolSize​(String initPoolSz)
        Sets the initial pool size.
        Parameters:
        initPoolSz - String
        See Also:
        getInitialPoolSize
      • getInitialPoolSize

        public String getInitialPoolSize()
        Gets the initial pool size.
        Returns:
        initPoolSz
        See Also:
        setInitialPoolSize
      • setMinPoolSize

        public void setMinPoolSize​(String minPoolSz)
        Sets the minimum pool size.
        Parameters:
        minPoolSz - String
        See Also:
        getMinPoolSize
      • getMinPoolSize

        public String getMinPoolSize()
        Gets the minimum pool size.
        Returns:
        minPoolSz
        See Also:
        setMinPoolSize
      • setMaxPoolSize

        public void setMaxPoolSize​(String maxPoolSz)
        Sets the maximum pool size.
        Parameters:
        maxPoolSz - String
        See Also:
        getMaxPoolSize
      • getMaxPoolSize

        public String getMaxPoolSize()
        Gets the maximum pool size.
        Returns:
        maxPoolSz
        See Also:
        setMaxPoolSize
      • setMaxIdleTime

        public void setMaxIdleTime​(String maxIdleTime)
        Sets the maximum idle time.
        Parameters:
        maxIdleTime - String
        See Also:
        getMaxIdleTime
      • getMaxIdleTime

        public String getMaxIdleTime()
        Gets the maximum idle time.
        Returns:
        maxIdleTime
        See Also:
        setMaxIdleTime
      • setPropertyCycle

        public void setPropertyCycle​(String propCycle)
        Sets the property cycle.
        Parameters:
        propCycle - String
        See Also:
        getPropertyCycle
      • getPropertyCycle

        public String getPropertyCycle()
        Gets the property cycle.
        Returns:
        propCycle
        See Also:
        setPropertyCycle