com.ibm.commerce.context.content.resources

Class ManagedResourceKey

  • java.lang.Object
    • com.ibm.commerce.context.content.resources.ManagedResourceKey
  • All Implemented Interfaces:
    java.io.Serializable


    public class ManagedResourceKey
    extends java.lang.Object
    implements java.io.Serializable
    This class defines an object that represents a key to retrieve a particular business object. The managed resource key contains two sets of keys that represent the managed resource. These two types of keys are the external and internal keys. The external key is the unique combination of attributes that will uniquely identify the managed resource from other resources. These attributes would be associated with the unique index of the managed resource. The internal key is a set of numeric values that represent the managed resource. This would be used to internally represent the managed resource.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ManagedResourceKey()
      This is the default constructor for this class.
      ManagedResourceKey(java.lang.Long[] internalKeys)
      This is a constructor for this class with one parameter.
      ManagedResourceKey(java.lang.Object[] externalKeys, java.lang.Long[] internalKeys)
      This is a constructor for this class with two parameters.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManagedResourceKey

        public ManagedResourceKey()
        This is the default constructor for this class. It calls the constructor from the superclass.
      • ManagedResourceKey

        public ManagedResourceKey(java.lang.Long[] internalKeys)
        This is a constructor for this class with one parameter. It calls the constructor from the superclass. It creates an instance of a managed resource key given the internal keys.
        Parameters:
        internalKeys - The internal keys.
      • ManagedResourceKey

        public ManagedResourceKey(java.lang.Object[] externalKeys,
                                  java.lang.Long[] internalKeys)
        This is a constructor for this class with two parameters. It calls the constructor from the superclass. It creates an instance of a managed resource key given both the internal and external keys.
        Parameters:
        externalKeys - The external keys.
        internalKeys - The internal keys.
    • Method Detail

      • getInternalKeys

        public java.lang.Long[] getInternalKeys()
        This method returns the internal keys that represent the managed resource.
        Returns:
        The internal keys.
      • setInternalKeys

        public void setInternalKeys(java.lang.Long[] internalKeys)
        This method sets the internal keys of the managed resource..
        Parameters:
        internalKeys - The internal keys.
      • getExternalKeys

        public java.lang.Object[] getExternalKeys()
        This method returns the external keys that represent the managed resource.
        Returns:
        The external keys.
      • setExternalKeys

        public void setExternalKeys(java.lang.Object[] externalKeys)
        This method sets the external keys that represents the managed resource.
        Parameters:
        internalKeys - The external keys.
      • getResourceManagerMetaData

        public ManagedResourceMetaData getResourceManagerMetaData()
        This method returns the managed resource data associated with the managed resource key.
        Returns:
        The managed resource metadata.
      • setResourceManagerMetaData

        public void setResourceManagerMetaData(ManagedResourceMetaData data)
        This method sets the managed resource metadata.
        Parameters:
        data - The managed resource metadata.