com.ibm.commerce.giftregistry.service.valueobjects

Class GiftRegistryRegistrantVO

  • All Implemented Interfaces:
    java.io.Serializable


    public class GiftRegistryRegistrantVO
    extends BaseVO
    The value object for a gift registrant. This value object is used to store the gift registrant 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_REGISTRANT_RELATION

        public static final java.lang.String GIFT_REGISTRY_REGISTRANT_RELATION
        Registrant's relation
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_REGISTRANT_USER_ID

        public static final java.lang.String GIFT_REGISTRY_REGISTRANT_USER_ID
        Registrant's user ID
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_REGISTRANT_ADDRESS

        public static final java.lang.String GIFT_REGISTRY_REGISTRANT_ADDRESS
        Registrant's address
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_REGISTRANT_TYPE

        public static final java.lang.String GIFT_REGISTRY_REGISTRANT_TYPE
        Registrant's type
        See Also:
        Constant Field Values
      • GIFT_REGISTRY_REGISTRANT_ID

        public static final java.lang.String GIFT_REGISTRY_REGISTRANT_ID
        Registrant's ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • GiftRegistryRegistrantVO

        public GiftRegistryRegistrantVO()
    • Method Detail

      • getType

        public java.lang.Integer getType()
        Gets the registrant's type of the registrant
        Returns:
        type - registrant's type
      • setType

        public void setType(java.lang.Integer type)
        Sets the registrant's type of the registrant
        Parameters:
        type -
      • getAddress

        public GiftRegistryAddressVO getAddress()
        Gets the registrant's address
        Returns:
        address - gift registry address value object
      • setAddress

        public void setAddress(GiftRegistryAddressVO address)
        Sets the registrant's address
        Parameters:
        address -
      • getUserId

        public java.lang.String getUserId()
        Gets the registrant's user ID
        Returns:
        userId
      • setUserId

        public void setUserId(java.lang.String userId)
        Sets the registrant's user ID
        Parameters:
        userId -
      • setRelation

        public void setRelation(java.lang.String relation)
        Sets registrant's relationship
        Parameters:
        relation -
      • getRelation

        public java.lang.String getRelation()
        Gets registrant's relationship
        Returns:
        relation
      • getRegistrantId

        public java.lang.Long getRegistrantId()
        Gets registrant's ID
        Returns:
        id
      • setRegistrantId

        public void setRegistrantId(java.lang.Long id)
        Sets registrant's ID
        Parameters:
        id -
      • getId

        public java.lang.Object getId()
        Set ID
        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 the registrant has no ID or type. False otherwise.