com.ibm.commerce.giftregistry.service.valueobjects

Class GiftRegistryItemVO

  • All Implemented Interfaces:
    java.io.Serializable


    public class GiftRegistryItemVO
    extends BaseVO
    The value object for a gift registry item. This value object is used to store the gift registry item information.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String GIFT_REGISTRY_ITEM_GIFTITEMID
        Gift item ID
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_QUANTITYREQUESTED

        public static final java.lang.String GIFT_REGISTRY_ITEM_QUANTITYREQUESTED
        Quantity requested by registrant
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_QUANTITYBOUGHT

        public static final java.lang.String GIFT_REGISTRY_ITEM_QUANTITYBOUGHT
        Quantity bought by gift givers
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_PARTNUMBER

        public static final java.lang.String GIFT_REGISTRY_ITEM_PARTNUMBER
        Part number of the gift item
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_LOCATION

        public static final java.lang.String GIFT_REGISTRY_ITEM_LOCATION
        Location of the purchase
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_PARTAUXILIARYKEY

        public static final java.lang.String GIFT_REGISTRY_ITEM_PARTAUXILIARYKEY
        Part Auxiliary Key
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_PERSONALIZATIONS

        public static final java.lang.String GIFT_REGISTRY_ITEM_PERSONALIZATIONS
        Item personalizations
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_FIELD1

        public static final java.lang.String GIFT_REGISTRY_ITEM_FIELD1
        Gift registry item customizable field 1
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_FIELD2

        public static final java.lang.String GIFT_REGISTRY_ITEM_FIELD2
        Gift registry item customizable field 2
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_FIELD3

        public static final java.lang.String GIFT_REGISTRY_ITEM_FIELD3
        Gift registry item customizable field 3
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_FIELD4

        public static final java.lang.String GIFT_REGISTRY_ITEM_FIELD4
        Gift registry item customizable field 4
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_FIELD5

        public static final java.lang.String GIFT_REGISTRY_ITEM_FIELD5
        Gift registry item customizable field 5
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_CREATE_TIME

        public static final java.lang.String GIFT_REGISTRY_ITEM_CREATE_TIME
        Creation time of the gift item
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_ITEM_LAST_UPDATE

        public static final java.lang.String GIFT_REGISTRY_ITEM_LAST_UPDATE
        Last update of the gift item
        See Also:
        Constant Field Values
    • Constructor Detail

      • GiftRegistryItemVO

        public GiftRegistryItemVO()
    • Method Detail

      • getCreateTime

        public java.sql.Timestamp getCreateTime()
        Gets the creation timestamp from the gift item record
        Returns:
        createTime
      • setCreateTime

        public void setCreateTime(java.sql.Timestamp aTime)
        Sets the creation time for the gift item
        Parameters:
        aTime -
      • getLastUpdate

        public java.sql.Timestamp getLastUpdate()
        Gets the last update timestamp from the gift item record
        Returns:
        lastUpdate
      • setLastUpdate

        public void setLastUpdate(java.sql.Timestamp aTime)
        Sets the last update timestamp for the gift item record
        Parameters:
        aTime -
      • getGiftItemId

        public java.lang.Long getGiftItemId()
        Gets the gift item ID
        Returns:
        giftItemId
      • setGiftItemId

        public void setGiftItemId(java.lang.Long giftItemId)
        Sets the gift item ID
        Parameters:
        giftItemId -
      • getQuantityRequested

        public java.lang.Integer getQuantityRequested()
        Gets the quantity requested by the registrant for the item
        Returns:
        quantityRequested
      • setQuantityRequested

        public void setQuantityRequested(java.lang.Integer quantityRequested)
        Sets the quantity requested by the registrant for the item
        Parameters:
        quantityRequested -
      • getQuantityBought

        public java.lang.Integer getQuantityBought()
        Gets the quantity bought by the gift giver for the item
        Returns:
        quantityBought
      • setQuantityBought

        public void setQuantityBought(java.lang.Integer quantityBought)
        Sets the quantity bought by the gift giver for the item
        Parameters:
        quantityBought -
      • getPartNumber

        public java.lang.String getPartNumber()
        Gets the part number of the gift item
        Returns:
        partNumber
      • setPartNumber

        public void setPartNumber(java.lang.String partNumber)
        Sets the part number of the gift item
        Parameters:
        partNumber -
      • getLocation

        public java.lang.String getLocation()
        Gets the purchase location of the gift item
        Returns:
        location
      • setLocation

        public void setLocation(java.lang.String location)
        Sets the purchase location of the gift item
        Parameters:
        location -
      • getPartAuxiliaryKey

        public java.lang.String getPartAuxiliaryKey()
        Gets the part auxiliary key of the gift item
        Returns:
        partAuxiliaryKey
      • setPartAuxiliaryKey

        public void setPartAuxiliaryKey(java.lang.String partAuxiliaryKey)
        This method sets the part auxiliary key of the gift item
        Parameters:
        partAuxiliaryKey -
      • getPersonalizations

        public java.util.List getPersonalizations()
        Gets personalization for the gift item
        Returns:
        a list of personalization attributes. If there is no personalization, an empty list will be returned.
      • setPersonalizations

        public void setPersonalizations(java.util.List personalizations)
        Sets personalization attributes for the gift item
        Parameters:
        personalizations -
      • getPersonalizations

        public GiftRegistryItemPersonalizationVO getPersonalizations(int index)
        Gets personalization attributes for the gift item
        Parameters:
        index - the index where the personalization is located.
        Returns:
        the personalization in the given index
      • setPersonalizations

        public void setPersonalizations(int index,
                                        GiftRegistryItemPersonalizationVO personalization)
        Sets personalization attributes for the gift item
        Parameters:
        index -
        personalization - the personalization that is to be set at the given index
      • setPersonalizationArray

        public void setPersonalizationArray(GiftRegistryItemPersonalizationVO[] personalizations)
        Sets the personalization attributes of this item to the given array
        Parameters:
        personalizations - an array of personalization attributes
      • getPersonalizationArray

        public GiftRegistryItemPersonalizationVO getPersonalizationArray(int index)
        Gets personalization attributes for the gift item
        Parameters:
        index - the index where the personalization is located.
        Returns:
        the personalization in the given index
      • setPersonalizationArray

        public void setPersonalizationArray(int index,
                                            GiftRegistryItemPersonalizationVO personalization)
        Sets personalization attributes for the gift item
        Parameters:
        index -
        personalization - the personalization that is to be set at the given index
      • getField1

        public java.lang.Integer getField1()
        Gets the customizable field 1 of the gift item
        Returns:
        field1
      • setField1

        public void setField1(java.lang.Integer field1)
        Sets the customizable field 1 of the gift item
        Parameters:
        field1 -
      • getField2

        public java.lang.Integer getField2()
        Gets the customizable field 2 of the gift item
        Returns:
        field2
      • setField2

        public void setField2(java.lang.Integer field2)
        Sets the customizable field 2 of the gift item
        Parameters:
        field2 -
      • getField3

        public java.lang.String getField3()
        Gets the customizable field 3 of the gift item
        Returns:
        field3
      • setField3

        public void setField3(java.lang.String field3)
        Sets the customizable field 3 of the gift item
        Parameters:
        field3 -
      • getField4

        public java.lang.String getField4()
        Gets the customizable field 4 of the gift item
        Returns:
        field4
      • setField4

        public void setField4(java.lang.String field4)
        Sets the customizable field 4 of the gift item
        Parameters:
        field4 -
      • getField5

        public java.lang.String getField5()
        Gets the customizable field 5 of the gift item
        Returns:
        field5
      • setField5

        public void setField5(java.lang.String field5)
        Sets the customizable field 5 of the gift item
        Parameters:
        field5 -
      • getId

        public java.lang.Object getId()
        Gets the ID of the gift item
        Specified by:
        getId in class BaseVO
        Returns:
        ID
      • isNew

        public boolean isNew()
        Description copied from class: BaseVO
        Checks if a value object is newly created. The default rule is that a value object is new if and only its ID has been set. If the ID is represented by a String, it can't be an empty string.
        Overrides:
        isNew in class BaseVO
        Returns:
        true if and only the item has no gift item id or partNumber