Class Section

    • Constructor Detail

      • Section

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

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

        public Section​(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.
      • Section

        public Section​(Section 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
      • getName

        public String getName()
        Name of the table
      • getCreatedTime

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

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

        public Long getDeletedTime()
        Timestamp when section was last deleted
      • getMerchant

        public Reference getMerchant()
        The merchant the section belongs to
      • getSortOrder

        public Integer getSortOrder()
        Display sort order amongst all the merchant's sections
      • getDeletable

        public Boolean getDeletable()
        True if the section can be deleted by the merchant
      • getTables

        public List<Table> getTables()
        Tables belonging to this section
      • 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
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' 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
      • isNotNullMerchant

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

        public boolean isNotNullSortOrder()
        Checks whether the 'sortOrder' field is set and is not null
      • isNotNullDeletable

        public boolean isNotNullDeletable()
        Checks whether the 'deletable' field is set and is not null
      • isNotNullTables

        public boolean isNotNullTables()
        Checks whether the 'tables' field is set and is not null
      • isNotEmptyTables

        public boolean isNotEmptyTables()
        Checks whether the 'tables' field is set and is not null and is not empty
      • hasId

        public boolean hasId()
        Checks whether the 'id' 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
      • 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
      • hasMerchant

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

        public boolean hasSortOrder()
        Checks whether the 'sortOrder' field has been set, however the value could be null
      • hasDeletable

        public boolean hasDeletable()
        Checks whether the 'deletable' field has been set, however the value could be null
      • hasTables

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

        public Section setId​(String id)
        Sets the field 'id'.
      • setName

        public Section setName​(String name)
        Sets the field 'name'.
      • setCreatedTime

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

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

        public Section setDeletedTime​(Long deletedTime)
        Sets the field 'deletedTime'.
      • setMerchant

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

        public Section setSortOrder​(Integer sortOrder)
        Sets the field 'sortOrder'.
      • setDeletable

        public Section setDeletable​(Boolean deletable)
        Sets the field 'deletable'.
      • setTables

        public Section setTables​(List<Table> tables)
        Sets the field 'tables'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearId

        public void clearId()
        Clears the 'id' 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
      • 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
      • clearMerchant

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

        public void clearSortOrder()
        Clears the 'sortOrder' field, the 'has' method for this field will now return false
      • clearDeletable

        public void clearDeletable()
        Clears the 'deletable' field, the 'has' method for this field will now return false
      • clearTables

        public void clearTables()
        Clears the 'tables' 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 Section copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

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