Class Guest

    • Constructor Detail

      • Guest

        public Guest()
        Constructs a new empty instance.
      • Guest

        protected Guest​(boolean noInit)
        Constructs a new empty instance.
      • Guest

        public Guest​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • Guest

        public Guest​(Guest src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getId

        public String getId()
        Unique identifier
      • getNumber

        public Integer getNumber()
        This guest's number at the current Table Order
      • getTableOrder

        public TableOrder getTableOrder()
        Table Order the guest belongs to
      • getMerchant

        public Merchant getMerchant()
        The merchant the guest belongs to
      • getName

        public String getName()
        Name of the guest
      • getTable

        public Table getTable()
        Reference to the table the guest belongs to
      • getOrder

        public Order getOrder()
        Reference to the order with which the guest is associated.
      • getCreatedTime

        public Long getCreatedTime()
        Timestamp when the table was created
      • getModifiedTime

        public Long getModifiedTime()
        Timestamp when the table was last modified
      • getDeletedTime

        public Long getDeletedTime()
        Timestamp when table was last deleted
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullNumber

        public boolean isNotNullNumber()
        Checks whether the 'number' field is set and is not null
      • isNotNullTableOrder

        public boolean isNotNullTableOrder()
        Checks whether the 'tableOrder' field is set and is not null
      • isNotNullMerchant

        public boolean isNotNullMerchant()
        Checks whether the 'merchant' field is set and is not null
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullTable

        public boolean isNotNullTable()
        Checks whether the 'table' field is set and is not null
      • isNotNullOrder

        public boolean isNotNullOrder()
        Checks whether the 'order' field is set and is not null
      • isNotNullCreatedTime

        public boolean isNotNullCreatedTime()
        Checks whether the 'createdTime' field is set and is not null
      • isNotNullModifiedTime

        public boolean isNotNullModifiedTime()
        Checks whether the 'modifiedTime' field is set and is not null
      • isNotNullDeletedTime

        public boolean isNotNullDeletedTime()
        Checks whether the 'deletedTime' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasNumber

        public boolean hasNumber()
        Checks whether the 'number' field has been set, however the value could be null
      • hasTableOrder

        public boolean hasTableOrder()
        Checks whether the 'tableOrder' field has been set, however the value could be null
      • hasMerchant

        public boolean hasMerchant()
        Checks whether the 'merchant' field has been set, however the value could be null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasTable

        public boolean hasTable()
        Checks whether the 'table' field has been set, however the value could be null
      • hasOrder

        public boolean hasOrder()
        Checks whether the 'order' field has been set, however the value could be null
      • hasCreatedTime

        public boolean hasCreatedTime()
        Checks whether the 'createdTime' field has been set, however the value could be null
      • hasModifiedTime

        public boolean hasModifiedTime()
        Checks whether the 'modifiedTime' field has been set, however the value could be null
      • hasDeletedTime

        public boolean hasDeletedTime()
        Checks whether the 'deletedTime' field has been set, however the value could be null
      • setId

        public Guest setId​(String id)
        Sets the field 'id'.
      • setNumber

        public Guest setNumber​(Integer number)
        Sets the field 'number'.
      • setTableOrder

        public Guest setTableOrder​(TableOrder tableOrder)
        Sets the field 'tableOrder'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setMerchant

        public Guest setMerchant​(Merchant merchant)
        Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setName

        public Guest setName​(String name)
        Sets the field 'name'.
      • setTable

        public Guest setTable​(Table table)
        Sets the field 'table'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setOrder

        public Guest setOrder​(Order order)
        Sets the field 'order'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setCreatedTime

        public Guest setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setModifiedTime

        public Guest setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • setDeletedTime

        public Guest setDeletedTime​(Long deletedTime)
        Sets the field 'deletedTime'.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearNumber

        public void clearNumber()
        Clears the 'number' field, the 'has' method for this field will now return false
      • clearTableOrder

        public void clearTableOrder()
        Clears the 'tableOrder' field, the 'has' method for this field will now return false
      • clearMerchant

        public void clearMerchant()
        Clears the 'merchant' field, the 'has' method for this field will now return false
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearTable

        public void clearTable()
        Clears the 'table' field, the 'has' method for this field will now return false
      • clearOrder

        public void clearOrder()
        Clears the 'order' field, the 'has' method for this field will now return false
      • clearCreatedTime

        public void clearCreatedTime()
        Clears the 'createdTime' field, the 'has' method for this field will now return false
      • clearModifiedTime

        public void clearModifiedTime()
        Clears the 'modifiedTime' field, the 'has' method for this field will now return false
      • clearDeletedTime

        public void clearDeletedTime()
        Clears the 'deletedTime' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public Guest copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Guest src)
        Copy all the changed fields from the given source to this instance.