com.ibm.commerce.giftregistry.service.valueobjects

Class GiftRegistryPurchaseRecordVO

  • All Implemented Interfaces:
    java.io.Serializable


    public class GiftRegistryPurchaseRecordVO
    extends BaseVO
    This class represents a purchase record for a gift registry.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String PURCHASE_RECORD_ID
        Purchase record ID
        See Also:
        Constant Field Values
      • CREATE_TIME

        public static final java.lang.String CREATE_TIME
        Purchase record creation time
        See Also:
        Constant Field Values
      • UPDATE_TIME

        public static final java.lang.String UPDATE_TIME
        Purchase record last update time
        See Also:
        Constant Field Values
      • PURCHASE_DATE

        public static final java.lang.String PURCHASE_DATE
        Purchase date
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        Status of the purchase record
        See Also:
        Constant Field Values
      • IS_NOTE_SENT

        public static final java.lang.String IS_NOTE_SENT
        Flag for thankyou note sent or not
        See Also:
        Constant Field Values
      • PURCHASE_QUANTITY

        public static final java.lang.String PURCHASE_QUANTITY
        Purchased quantity of the gift item
        See Also:
        Constant Field Values
      • TRANSACTION_ID

        public static final java.lang.String TRANSACTION_ID
        Transaction ID
        See Also:
        Constant Field Values
      • REGISTRANT_MEMO

        public static final java.lang.String REGISTRANT_MEMO
        Registrant Memo
        See Also:
        Constant Field Values
      • PURCHASE_LOCATION

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

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

        public static final java.lang.String PART_AUXILIARY_KEY
        Part auxiliary key of the gift item
        See Also:
        Constant Field Values
      • GIFT_GIVER_ADDRESS

        public static final java.lang.String GIFT_GIVER_ADDRESS
        Gift giver address
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_EXTERNAL_ID

        public static final java.lang.String GIFT_REGISTRY_EXTERNAL_ID
        Gift registry external ID
        See Also:
        Constant Field Values
      • ORDER_ITEM_ID

        public static final java.lang.String ORDER_ITEM_ID
        Order item ID
        See Also:
        Constant Field Values
      • GIFT_ITEM_ID

        public static final java.lang.String GIFT_ITEM_ID
        Gift item ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • GiftRegistryPurchaseRecordVO

        public GiftRegistryPurchaseRecordVO()
    • Method Detail

      • getId

        public java.lang.Object getId()
        Specified by:
        getId in class BaseVO
        Returns:
        the ID that uniquely identifies this purchase record.
        See Also:
        BaseVO.getId()
      • getGiftItemId

        public java.lang.Long getGiftItemId()
        Returns:
        the giftItemId associated with this giftRegistryId
      • 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 a purchase record has no purchaseRecordId nor transactionId
      • setGiftItemId

        public void setGiftItemId(java.lang.Long giftItemId)
        Sets the id of the gift registry item that is bought for this purchase record.
        Parameters:
        giftItemId - the Id of the gift item that is bought for this purchase record
      • getPurchaseRecordId

        public java.lang.Long getPurchaseRecordId()
        Returns:
        the purchaseRecordId of this purchase record
      • getCreateTime

        public java.sql.Timestamp getCreateTime()
        Returns:
        the time when this purchase record is created
      • getUpdateTime

        public java.sql.Timestamp getUpdateTime()
        Returns:
        the time when this purchase record is updated
      • getPurchaseDate

        public java.sql.Date getPurchaseDate()
        Returns:
        the date when the item in this record is purchased.
      • getStatus

        public java.lang.Integer getStatus()
        Returns:
        the status of the this purchase record
      • getIsNoteSent

        public java.lang.Boolean getIsNoteSent()
        Returns:
        true if a note is sent to gift giver, false otherwise
      • getPurchaseQuantity

        public java.lang.Integer getPurchaseQuantity()
        Returns:
        the quantity of the item that is purchased in this purchase record
      • getTransactionId

        public java.lang.String getTransactionId()
        Returns:
        the transaction ID of this purchase record
      • getRegistrantMemo

        public java.lang.String getRegistrantMemo()
        Returns:
        the memo input by the registrant who views this purchase record
      • getPurchaseLocation

        public java.lang.String getPurchaseLocation()
        Returns:
        the location where the purchase is made
      • getPartNumber

        public java.lang.String getPartNumber()
        Returns:
        the part number of the item in this purchase record
      • getPartAuxiliaryKey

        public java.lang.String getPartAuxiliaryKey()
        Returns:
        the second key, if any, that is used to identify the item in this purchase record
      • getGiftGiverAddress

        public GiftRegistryAddressVO getGiftGiverAddress()
        Returns:
        the address of the buyer of the item in this purchase record
      • getGiftRegistryExternalId

        public java.lang.String getGiftRegistryExternalId()
        Returns:
        the gift registry Id this purchase record belongs to
      • setPurchaseRecordId

        public void setPurchaseRecordId(java.lang.Long anId)
        Sets the purchase record id of this purchase record. If the given id is null, nothing will be set.
        Parameters:
        anId - a purchase record id
      • setCreateTime

        public void setCreateTime(java.sql.Timestamp time)
        Sets the time when this purchase record is created. If the given time is null, nothing will be set.
        Parameters:
        time - the time when the purchase record is created
      • setUpdateTime

        public void setUpdateTime(java.sql.Timestamp time)
        Sets the time when this purchase record is updated. If the given time is null, nothing will be set.
        Parameters:
        time - the time when the purchase record is updated
      • setPurchaseDate

        public void setPurchaseDate(java.sql.Date date)
        Sets the date when the purchase is made. If the given date is null, nothing will be set.
        Parameters:
        date - the date when the purchase is made
      • setStatus

        public void setStatus(java.lang.Integer aStatus)
        Sets the status of this purchase record. If the given status is null, nothing will be set.
        Parameters:
        aStatus - the status to be set
      • setIsNoteSent

        public void setIsNoteSent(java.lang.Boolean flag)
        Sets whether a note is sent to the gift giver whose purchased the item in this record. Nothing will be set if the given flag is null.
        Parameters:
        flag - the flag indicates whether a note is sent
      • setPurchaseQuantity

        public void setPurchaseQuantity(java.lang.Integer quantity)
        Sets the quantity of the item purchase in this record. Nothing will be set if the given quantity is null.
        Parameters:
        quantity - the purchased quantity of the item in this record
      • setTransactionId

        public void setTransactionId(java.lang.String anId)
        Sets the transaction ID of this purchase record. Nothing will be set if the given id is null
        Parameters:
        anId - the transaction ID
      • setRegistrantMemo

        public void setRegistrantMemo(java.lang.String memo)
        Sets the memo made by the registrant who owns this purchase record. Nothing will be set if the given memo is null
        Parameters:
        memo - the memo made by the registrant
      • setPurchaseLocation

        public void setPurchaseLocation(java.lang.String location)
        Sets the location where the item in the record was purchased. Nothing will be set if the given location is null.
        Parameters:
        location - the location where the item was purchased.
      • setPartNumber

        public void setPartNumber(java.lang.String aPartNumber)
        Sets the part number of the item that was purchased. Nothing will be set if the given part number is null.
        Parameters:
        aPartNumber - the part number of the item
      • setPartAuxiliaryKey

        public void setPartAuxiliaryKey(java.lang.String key)
        This method sets the part auxiliary key of the purchased item. Nothing will be set if the given key is null.
        Parameters:
        key - the auxiliary key that identifies the item along with the part number
      • setGiftGiverAddress

        public void setGiftGiverAddress(GiftRegistryAddressVO address)
        Sets the address of the gift giver. Nothing will be set if the given address is null.
        Parameters:
        address - the address of the gift giver who made the purchase
      • setGiftRegistryExternalId

        public void setGiftRegistryExternalId(java.lang.String registryExternalId)
        Sets the gift registry ID of the purchase record. Nothing will be set if the given registry ID is null.
        Parameters:
        registryId - the ID of the gift registry this record belongs to
      • getOrderItemId

        public java.lang.Long getOrderItemId()
        Returns:
        the order item id of the purchased item
      • setOrderItemId

        public void setOrderItemId(java.lang.Long anId)
        Sets the order item id of the purchased item in this record. Nothing will be set if the given id is null
        Parameters:
        anId - the orderItemId to be set