com.ibm.commerce.giftregistry.beans

Class GiftRegistryOrderItemDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.order.beans.OrderItemInputDataBean, com.ibm.commerce.order.beans.OrderItemSmartDataBean, Delegator, java.io.Serializable


    public class GiftRegistryOrderItemDataBean
    extends OrderItemDataBean
    Retrieve the order item and its registry information. Retrieve the address attributes of the ADDRESSID column with the status G, in the ORDERITEM database table.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • GiftRegistryOrderItemDataBean

        public GiftRegistryOrderItemDataBean()
        GiftRegistryOrderItemDataBean constructor.
      • GiftRegistryOrderItemDataBean

        public GiftRegistryOrderItemDataBean(OrderItemDataBean adbOrderItem)
        Constructs an GiftRegistryOrderItemDataBean from an OrderItemDataBean
        Parameters:
        adbOrderItem - OrderItemDataBean
        Throws:
        java.lang.Exception
      • GiftRegistryOrderItemDataBean

        public GiftRegistryOrderItemDataBean(OrderItemDataBean adbOrderItem,
                                             CommandContext aCommandContext)
        Constructs an GiftRegistryOrderItemDataBean from an OrderItemAccessBean and sets the command context
        Parameters:
        adbOrderItem - OrderItemDataBean
        aCommandContext - CommandContext
        Throws:
        java.lang.Exception
    • Method Detail

      • getExternalGiftRegistryId

        public java.lang.String getExternalGiftRegistryId()
        Gets the external ID associated with the order item.
        Returns:
        The external ID - the unique gift registry identifier.
        Note: return null if the order item is not associated with a registry.
      • getGiftMessage

        public java.lang.String getGiftMessage()
        Gets the gift message
        Returns:
        The gift message
      • getShipToRegistrant

        public java.lang.String getShipToRegistrant()
        Check whether Ship To Registrant is specified.
        Returns:
        String
        1: if ORDERITEMGIFT.SHIPTORGSTRNT = 1
        0: if ORDERITEMGIFT.SHIPTORGSTRNT is set to 0
        null: if ORDERITEMGIFT.SHIPTORGSTRNT is not set
      • getGiftRegistryDB

        public GiftRegistryDataBean getGiftRegistryDB()
        Gets the gift registry data bean
        Returns:
        the gift registry data bean
      • getAddressDataBean

        public AddressDataBean getAddressDataBean()
        Gets AddressDataBean. If the address status is G, then the ship to registrant returns the GRAddressDataBean() constructor. If the address status is not G, then returns super.getAddressDataBean()
        Overrides:
        getAddressDataBean in class OrderItemDataBean
        Returns:
        AddressDataBean for the addressId passed in.