com.ibm.commerce.registry

Class BusinessPolicyRegistryEntry

  • java.lang.Object
    • com.ibm.commerce.registry.BusinessPolicyRegistryEntry
  • All Implemented Interfaces:
    com.ibm.commerce.datatype.Hashable, com.ibm.commerce.datatype.Scrubbable, com.ibm.websphere.cache.Sizeable, java.io.Serializable


    public class BusinessPolicyRegistryEntry
    extends java.lang.Object
    implements java.io.Serializable, com.ibm.commerce.datatype.Scrubbable, com.ibm.websphere.cache.Sizeable
    This class defines a business policy registry entry.
    See Also:
    Serialized Form
    • Constructor Detail

      • BusinessPolicyRegistryEntry

        public BusinessPolicyRegistryEntry()
        Constructor BusinessPolicyRegistryEntry.
    • Method Detail

      • getObjectSize

        public long getObjectSize()
        Returns the estimated footprint size in bytes of this object and the objects it contains.
        Specified by:
        getObjectSize in interface com.ibm.websphere.cache.Sizeable
        Returns:
        the estimated footprint size in bytes or -1 if a size cannot be determined.
      • getMemorySizeExcludingObjectsToScrub

        public int getMemorySizeExcludingObjectsToScrub()

        Returns the approximate size in bytes of this object, not including the sizes of the objects returned by the getObjectsToScrub.

        Specified by:
        getMemorySizeExcludingObjectsToScrub in interface com.ibm.commerce.datatype.Scrubbable
        Returns:
        the approximate size in bytes of this object.
      • getObjectsToScrub

        public java.util.ArrayList getObjectsToScrub()

        Returns a list of objects that should be replaced with equivalent objects from the Scrubb cache, or should be placed in the Scrubb cache if no equivalent object is yet in the cache.>/p>

        The caller must be able to promise that this object and all its properties, recursively, will never be modified again, so that it and its properties can be shared by other objects.

        This method is intended to be called by the Scrubb class. Any other use is not supported.

        Specified by:
        getObjectsToScrub in interface com.ibm.commerce.datatype.Scrubbable
        Returns:
        null, or a list of objects to be "scrubbed". Each element must correctly implement the equals and hashCode methods so that it can be saved in a HashMap.
      • setScrubbedObjects

        public void setScrubbedObjects(java.util.List alistScrubbedObjects)

        Provides a list of "scrubbed" objects that should replace the objects provided by a previous call to the getObjectsToScrub method.

        The caller must be able to promise that this object and all its properties, recursively, will never be modified again, so that it and its properties can be shared by other objects.

        This method is intended to be called by the Scrubb class. Any other use is not supported.

        Specified by:
        setScrubbedObjects in interface com.ibm.commerce.datatype.Scrubbable
        Parameters:
        alistScrubbedObjects - a list of "scrubbed" objects. Must be equivalent to the list returned by getObjectsToScrub.
      • getBean

        public BusinessPolicyAccessBean getBean()
        Gets the business policy access bean.
        Returns:
        the business policy access bean
      • getCommandClass

        public java.lang.Class getCommandClass()
        Gets the default command class object.
        Returns:
        command class object
      • getCommandClass

        public java.lang.Class getCommandClass(java.lang.String interfaceName)
        Gets the command class object for a particular command interface.

        Parameters:
        interfaceName - command interface name
        Returns:
        command class object
      • getCommandEntry

        public BusinessPolicyCommandEntry getCommandEntry()
        Gets the first business policy command entry for this policy.
        Returns:
        business policy command entry
      • getCommandEntry

        public BusinessPolicyCommandEntry getCommandEntry(java.lang.String interfaceName)
        Gets the business policy command entry for a particular command interface.
        Returns:
        business policy command entry
      • getCommandInterface

        public java.lang.String getCommandInterface()
        Gets the default command interface name.
        Returns:
        interface name
      • getPolicyId

        public java.lang.String getPolicyId()
        Gets the policy Id.
        Returns:
        policyId
      • getPolicyType

        public java.lang.String getPolicyType()
        Gets the policy type.
        Returns:
        policy type
      • getProperties

        public TypedProperty getProperties()
        Gets the business policy command properties.
        Returns:
        command properties
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object