Package com.clover.sdk.v3.tables2
Class Table
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.tables2.Table
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Table extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Table.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Table>
CREATOR
static JSONifiable.Creator<Table>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Table()
Constructs a new empty instance.protected
Table(boolean noInit)
Constructs a new empty instance.Table(Table src)
Constructs a new instance that is a deep copy of the source instance.Table(String json)
Constructs a new instance from the given JSON String.Table(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearGuestCapacity()
Clears the 'guestCapacity' field, the 'has' method for this field will now return falsevoid
clearHeight()
Clears the 'height' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearRotation()
Clears the 'rotation' field, the 'has' method for this field will now return falsevoid
clearSection()
Clears the 'section' field, the 'has' method for this field will now return falsevoid
clearTopLeftX()
Clears the 'topLeftX' field, the 'has' method for this field will now return falsevoid
clearTopLeftY()
Clears the 'topLeftY' field, the 'has' method for this field will now return falsevoid
clearType()
Clears the 'type' field, the 'has' method for this field will now return falsevoid
clearWidth()
Clears the 'width' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Table
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getCreatedTime()
Timestamp when the table was createdLong
getDeletedTime()
Timestamp when table was last deletedprotected GenericClient
getGenericClient()
Integer
getGuestCapacity()
Number of guests that the table can seatInteger
getHeight()
Height of the table on the table mapString
getId()
Unique identifierJSONObject
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.Reference
getMerchant()
The merchant the table belongs toLong
getModifiedTime()
Timestamp when the table was last modifiedString
getName()
Name of the tableInteger
getRotation()
Counterclockwise rotation of the table on the table mapReference
getSection()
The section this table belongs toInteger
getTopLeftX()
X coordinate of the table's top left location on the table mapInteger
getTopLeftY()
Y coordinate of the table's top left location on the table mapTableType
getType()
Type of the tableInteger
getWidth()
Width of the table on the table mapboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasGuestCapacity()
Checks whether the 'guestCapacity' field has been set, however the value could be nullboolean
hasHeight()
Checks whether the 'height' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasRotation()
Checks whether the 'rotation' field has been set, however the value could be nullboolean
hasSection()
Checks whether the 'section' field has been set, however the value could be nullboolean
hasTopLeftX()
Checks whether the 'topLeftX' field has been set, however the value could be nullboolean
hasTopLeftY()
Checks whether the 'topLeftY' field has been set, however the value could be nullboolean
hasType()
Checks whether the 'type' field has been set, however the value could be nullboolean
hasWidth()
Checks whether the 'width' field has been set, however the value could be nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullGuestCapacity()
Checks whether the 'guestCapacity' field is set and is not nullboolean
isNotNullHeight()
Checks whether the 'height' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullRotation()
Checks whether the 'rotation' field is set and is not nullboolean
isNotNullSection()
Checks whether the 'section' field is set and is not nullboolean
isNotNullTopLeftX()
Checks whether the 'topLeftX' field is set and is not nullboolean
isNotNullTopLeftY()
Checks whether the 'topLeftY' field is set and is not nullboolean
isNotNullType()
Checks whether the 'type' field is set and is not nullboolean
isNotNullWidth()
Checks whether the 'width' field is set and is not nullvoid
mergeChanges(Table src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.Table
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.Table
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.Table
setGuestCapacity(Integer guestCapacity)
Sets the field 'guestCapacity'.Table
setHeight(Integer height)
Sets the field 'height'.Table
setId(String id)
Sets the field 'id'.Table
setMerchant(Reference merchant)
Sets the field 'merchant'.Table
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.Table
setName(String name)
Sets the field 'name'.Table
setRotation(Integer rotation)
Sets the field 'rotation'.Table
setSection(Reference section)
Sets the field 'section'.Table
setTopLeftX(Integer topLeftX)
Sets the field 'topLeftX'.Table
setTopLeftY(Integer topLeftY)
Sets the field 'topLeftY'.Table
setType(TableType type)
Sets the field 'type'.Table
setWidth(Integer width)
Sets the field 'width'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Table> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Table> JSON_CREATOR
-
-
Constructor Detail
-
Table
public Table()
Constructs a new empty instance.
-
Table
protected Table(boolean noInit)
Constructs a new empty instance.
-
Table
public Table(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Table
public Table(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.
-
Table
public Table(Table 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 table was created
-
getModifiedTime
public Long getModifiedTime()
Timestamp when the table was last modified
-
getDeletedTime
public Long getDeletedTime()
Timestamp when table was last deleted
-
getMerchant
public Reference getMerchant()
The merchant the table belongs to
-
getTopLeftX
public Integer getTopLeftX()
X coordinate of the table's top left location on the table map
-
getTopLeftY
public Integer getTopLeftY()
Y coordinate of the table's top left location on the table map
-
getWidth
public Integer getWidth()
Width of the table on the table map
-
getSection
public Reference getSection()
The section this table belongs to
-
getHeight
public Integer getHeight()
Height of the table on the table map
-
getGuestCapacity
public Integer getGuestCapacity()
Number of guests that the table can seat
-
getType
public TableType getType()
Type of the table
-
getRotation
public Integer getRotation()
Counterclockwise rotation of the table on the table map
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
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 interfaceJSONifiable
-
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
-
isNotNullTopLeftX
public boolean isNotNullTopLeftX()
Checks whether the 'topLeftX' field is set and is not null
-
isNotNullTopLeftY
public boolean isNotNullTopLeftY()
Checks whether the 'topLeftY' field is set and is not null
-
isNotNullWidth
public boolean isNotNullWidth()
Checks whether the 'width' field is set and is not null
-
isNotNullSection
public boolean isNotNullSection()
Checks whether the 'section' field is set and is not null
-
isNotNullHeight
public boolean isNotNullHeight()
Checks whether the 'height' field is set and is not null
-
isNotNullGuestCapacity
public boolean isNotNullGuestCapacity()
Checks whether the 'guestCapacity' field is set and is not null
-
isNotNullType
public boolean isNotNullType()
Checks whether the 'type' field is set and is not null
-
isNotNullRotation
public boolean isNotNullRotation()
Checks whether the 'rotation' 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
-
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
-
hasTopLeftX
public boolean hasTopLeftX()
Checks whether the 'topLeftX' field has been set, however the value could be null
-
hasTopLeftY
public boolean hasTopLeftY()
Checks whether the 'topLeftY' field has been set, however the value could be null
-
hasWidth
public boolean hasWidth()
Checks whether the 'width' field has been set, however the value could be null
-
hasSection
public boolean hasSection()
Checks whether the 'section' field has been set, however the value could be null
-
hasHeight
public boolean hasHeight()
Checks whether the 'height' field has been set, however the value could be null
-
hasGuestCapacity
public boolean hasGuestCapacity()
Checks whether the 'guestCapacity' field has been set, however the value could be null
-
hasType
public boolean hasType()
Checks whether the 'type' field has been set, however the value could be null
-
hasRotation
public boolean hasRotation()
Checks whether the 'rotation' field has been set, however the value could be null
-
setMerchant
public Table 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.
-
setSection
public Table setSection(Reference section)
Sets the field 'section'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setGuestCapacity
public Table setGuestCapacity(Integer guestCapacity)
Sets the field 'guestCapacity'.
-
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
-
clearTopLeftX
public void clearTopLeftX()
Clears the 'topLeftX' field, the 'has' method for this field will now return false
-
clearTopLeftY
public void clearTopLeftY()
Clears the 'topLeftY' field, the 'has' method for this field will now return false
-
clearWidth
public void clearWidth()
Clears the 'width' field, the 'has' method for this field will now return false
-
clearSection
public void clearSection()
Clears the 'section' field, the 'has' method for this field will now return false
-
clearHeight
public void clearHeight()
Clears the 'height' field, the 'has' method for this field will now return false
-
clearGuestCapacity
public void clearGuestCapacity()
Clears the 'guestCapacity' field, the 'has' method for this field will now return false
-
clearType
public void clearType()
Clears the 'type' field, the 'has' method for this field will now return false
-
clearRotation
public void clearRotation()
Clears the 'rotation' 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 Table copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Table src)
Copy all the changed fields from the given source to this instance.
-
-