public class OnlineOrderProviderService extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
OnlineOrderProviderService.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OnlineOrderProviderService> |
CREATOR |
static JSONifiable.Creator<OnlineOrderProviderService> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OnlineOrderProviderService()
Constructs a new empty instance.
|
protected |
OnlineOrderProviderService(boolean noInit)
Constructs a new empty instance.
|
|
OnlineOrderProviderService(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.
|
|
OnlineOrderProviderService(OnlineOrderProviderService src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OnlineOrderProviderService(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearProvider()
Clears the 'provider' field, the 'has' method for this field will now return false
|
void |
clearServiceType()
Clears the 'serviceType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
OnlineOrderProviderService |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreatedTime()
Timestamp when the online ordering provider service was created
|
Long |
getDeletedTime()
Timestamp when online ordering provider service was last deleted
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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.
|
Long |
getModifiedTime()
Timestamp when the online ordering provider service was last modified
|
Reference |
getProvider()
Reference to the provider
|
ServiceType |
getServiceType() |
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasProvider()
Checks whether the 'provider' field has been set, however the value could be null
|
boolean |
hasServiceType()
Checks whether the 'serviceType' field has been set, however the value could be null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullProvider()
Checks whether the 'provider' field is set and is not null
|
boolean |
isNotNullServiceType()
Checks whether the 'serviceType' field is set and is not null
|
void |
mergeChanges(OnlineOrderProviderService 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.
|
OnlineOrderProviderService |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
OnlineOrderProviderService |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
OnlineOrderProviderService |
setId(String id)
Sets the field 'id'.
|
OnlineOrderProviderService |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
OnlineOrderProviderService |
setProvider(Reference provider)
Sets the field 'provider'.
|
OnlineOrderProviderService |
setServiceType(ServiceType serviceType)
Sets the field 'serviceType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<OnlineOrderProviderService> CREATOR
public static final JSONifiable.Creator<OnlineOrderProviderService> JSON_CREATOR
public OnlineOrderProviderService()
protected OnlineOrderProviderService(boolean noInit)
public OnlineOrderProviderService(String json) throws IllegalArgumentException
IllegalArgumentException
public OnlineOrderProviderService(JSONObject jsonObject)
public OnlineOrderProviderService(OnlineOrderProviderService src)
public String getId()
public ServiceType getServiceType()
public Reference getProvider()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullServiceType()
public boolean isNotNullProvider()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasServiceType()
public boolean hasProvider()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public OnlineOrderProviderService setId(String id)
public OnlineOrderProviderService setServiceType(ServiceType serviceType)
public OnlineOrderProviderService setProvider(Reference provider)
public OnlineOrderProviderService setCreatedTime(Long createdTime)
public OnlineOrderProviderService setModifiedTime(Long modifiedTime)
public OnlineOrderProviderService setDeletedTime(Long deletedTime)
public void clearId()
public void clearServiceType()
public void clearProvider()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public OnlineOrderProviderService copyChanges()
public void mergeChanges(OnlineOrderProviderService src)