CustomerInfo

public class CustomerInfo extends GenericParcelable implements Validator, JSONifiable

This is an auto-generated Clover data object.

Represents a customer that is linked to an external system. This customer may be persisted in Clover, or it may not.

Fields

Constructors

Link copied to clipboard
public void CustomerInfo()
Constructs a new empty instance.
public void CustomerInfo(String json)
Constructs a new instance from the given JSON String.
public void CustomerInfo(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.
public void CustomerInfo(CustomerInfo src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDisplayString()
Clears the 'displayString' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearExternalId()
Clears the 'externalId' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'externalSystemName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearExtras()
Clears the 'extras' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
Returns true if this instance has any changes.
Link copied to clipboard
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public final int describeContents()
Link copied to clipboard
public final Bundle getBundle()
Link copied to clipboard
The customer object that Clover uses.
Link copied to clipboard
A custom way to display this customer for an external system
Link copied to clipboard
an id for an external system to use to reference this Customer.
Link copied to clipboard
The name of the external system that 'owns' this.
Link copied to clipboard
Extra data used by external systems.
Link copied to clipboard
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.
Link copied to clipboard
public boolean hasCustomer()
Checks whether the 'customer' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDisplayString()
Checks whether the 'displayString' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExternalId()
Checks whether the 'externalId' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExternalSystemName()
Checks whether the 'externalSystemName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExtras()
Checks whether the 'extras' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotEmptyExtras()
Checks whether the 'extras' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotNullCustomer()
Checks whether the 'customer' field is set and is not null
Link copied to clipboard
public boolean isNotNullDisplayString()
Checks whether the 'displayString' field is set and is not null
Link copied to clipboard
public boolean isNotNullExternalId()
Checks whether the 'externalId' field is set and is not null
Link copied to clipboard
public boolean isNotNullExternalSystemName()
Checks whether the 'externalSystemName' field is set and is not null
Link copied to clipboard
public boolean isNotNullExtras()
Checks whether the 'extras' field is set and is not null
Link copied to clipboard
public void mergeChanges(CustomerInfo src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public CustomerInfo setCustomer(Customer customer)
Sets the field 'customer'.
Link copied to clipboard
public CustomerInfo setDisplayString(String displayString)
Sets the field 'displayString'.
Link copied to clipboard
public CustomerInfo setExternalId(String externalId)
Sets the field 'externalId'.
Link copied to clipboard
public CustomerInfo setExternalSystemName(String externalSystemName)
Sets the field 'externalSystemName'.
Link copied to clipboard
Sets the field 'extras'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public final void writeToParcel(Parcel dest, int flags)