Class ResourceSpec

    • Constructor Detail

      • ResourceSpec

        public ResourceSpec​(String resourceId,
                            int resourceIdType)
      • ResourceSpec

        public ResourceSpec​(String resourceId,
                            int resourceIdType,
                            PoolMetaData pmd)
    • Method Detail

      • getPoolInfo

        public PoolInfo getPoolInfo()
      • setPoolInfo

        public void setPoolInfo​(PoolInfo poolInfo)
      • equals

        public boolean equals​(Object other)
        The logic is * If the connectionpool exist then equality check is against * connectionPoolName * * If connection is null then equality check is made against * resourceId and resourceType *
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        If the connectionpool exist then hashcode of connectionPoolName is returned.

        If connectionpool is null return the hashcode of resourceId + resourceIdType

        Overrides:
        hashCode in class Object
      • getResourceId

        public String getResourceId()
      • isPM

        public boolean isPM()
      • isNonTx

        public boolean isNonTx()
        Returns the status of the noTxResource flag
        Returns:
        true if this resource is a noTx resource
      • isXA

        public boolean isXA()
      • markAsXA

        public void markAsXA()
      • isLazyEnlistable

        public boolean isLazyEnlistable()
      • setLazyEnlistable

        public void setLazyEnlistable​(boolean lazyEnlist)
      • isLazyAssociatable

        public boolean isLazyAssociatable()
      • setLazyAssociatable

        public void setLazyAssociatable​(boolean lazyAssoc)
      • setConnectionToAssociate

        public void setConnectionToAssociate​(Object conn)
      • getConnectionToAssociate

        public Object getConnectionToAssociate()