public class ExpandoValueWrapper extends BaseModelWrapper<ExpandoValue> implements ExpandoValue, ModelWrapper<ExpandoValue>
This class is a wrapper for ExpandoValue
.
ExpandoValue
,
Serialized Formmodel
VALUE_ID_ACCESSOR
Constructor and Description |
---|
ExpandoValueWrapper(ExpandoValue expandoValue) |
Modifier and Type | Method and Description |
---|---|
ExpandoValue |
cloneWithOriginalValues() |
Map<String,Function<ExpandoValue,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<ExpandoValue,Object>> |
getAttributeSetterBiConsumers() |
List<Locale> |
getAvailableLocales() |
boolean |
getBoolean() |
boolean[] |
getBooleanArray() |
String |
getClassName()
Returns the fully qualified class name of this expando value.
|
long |
getClassNameId()
Returns the class name ID of this expando value.
|
long |
getClassPK()
Returns the class pk of this expando value.
|
ExpandoColumn |
getColumn() |
long |
getColumnId()
Returns the column ID of this expando value.
|
long |
getCompanyId()
Returns the company ID of this expando value.
|
long |
getCtCollectionId()
Returns the ct collection ID of this expando value.
|
String |
getData()
Returns the data of this expando value.
|
Date |
getDate() |
Date[] |
getDateArray() |
Locale |
getDefaultLocale() |
double |
getDouble() |
double[] |
getDoubleArray() |
float |
getFloat() |
float[] |
getFloatArray() |
JSONObject |
getGeolocationJSONObject() |
int |
getInteger() |
int[] |
getIntegerArray() |
long |
getLong() |
long[] |
getLongArray() |
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this expando value.
|
Number |
getNumber() |
Number[] |
getNumberArray() |
long |
getPrimaryKey()
Returns the primary key of this expando value.
|
long |
getRowId()
Returns the row ID of this expando value.
|
Serializable |
getSerializable() |
short |
getShort() |
short[] |
getShortArray() |
String |
getString() |
String |
getString(Locale locale) |
String[] |
getStringArray() |
String[] |
getStringArray(Locale locale) |
Map<Locale,String[]> |
getStringArrayMap() |
Map<Locale,String> |
getStringMap() |
long |
getTableId()
Returns the table ID of this expando value.
|
long |
getValueId()
Returns the value ID of this expando value.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setBoolean(boolean data) |
void |
setBooleanArray(boolean[] data) |
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this expando value.
|
void |
setClassPK(long classPK)
Sets the class pk of this expando value.
|
void |
setColumn(ExpandoColumn column) |
void |
setColumnId(long columnId)
Sets the column ID of this expando value.
|
void |
setCompanyId(long companyId)
Sets the company ID of this expando value.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this expando value.
|
void |
setData(String data)
Sets the data of this expando value.
|
void |
setDate(Date data) |
void |
setDateArray(Date[] data) |
void |
setDouble(double data) |
void |
setDoubleArray(double[] data) |
void |
setFloat(float data) |
void |
setFloatArray(float[] data) |
void |
setGeolocationJSONObject(JSONObject dataJSONObject) |
void |
setInteger(int data) |
void |
setIntegerArray(int[] data) |
void |
setLong(long data) |
void |
setLongArray(long[] data) |
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this expando value.
|
void |
setNumber(Number data) |
void |
setNumberArray(Number[] data) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this expando value.
|
void |
setRowId(long rowId)
Sets the row ID of this expando value.
|
void |
setShort(short data) |
void |
setShortArray(short[] data) |
void |
setString(String data) |
void |
setString(String data,
Locale locale,
Locale defaultLocale) |
void |
setStringArray(String[] data) |
void |
setStringArray(String[] data,
Locale locale,
Locale defaultLocale) |
void |
setStringArrayMap(Map<Locale,String[]> dataMap,
Locale defaultLocale) |
void |
setStringMap(Map<Locale,String> dataMap,
Locale defaultLocale) |
void |
setTableId(long tableId)
Sets the table ID of this expando value.
|
void |
setValueId(long valueId)
Sets the value ID of this expando value.
|
protected ExpandoValueWrapper |
wrap(ExpandoValue expandoValue) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
getWrappedModel
public ExpandoValueWrapper(ExpandoValue expandoValue)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ExpandoValue>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoValue>
public ExpandoValue cloneWithOriginalValues()
cloneWithOriginalValues
in interface ExpandoValueModel
cloneWithOriginalValues
in interface BaseModel<ExpandoValue>
public List<Locale> getAvailableLocales() throws PortalException
getAvailableLocales
in interface ExpandoValue
PortalException
public boolean getBoolean() throws PortalException
getBoolean
in interface ExpandoValue
PortalException
public boolean[] getBooleanArray() throws PortalException
getBooleanArray
in interface ExpandoValue
PortalException
public String getClassName()
getClassName
in interface ExpandoValueModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface ExpandoValueModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface ExpandoValueModel
getClassPK
in interface AttachedModel
public ExpandoColumn getColumn() throws PortalException
getColumn
in interface ExpandoValue
PortalException
public long getColumnId()
getColumnId
in interface ExpandoValueModel
public long getCompanyId()
getCompanyId
in interface ExpandoValueModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface ExpandoValueModel
getCtCollectionId
in interface CTModel<ExpandoValue>
public String getData()
getData
in interface ExpandoValueModel
public Date getDate() throws PortalException
getDate
in interface ExpandoValue
PortalException
public Date[] getDateArray() throws PortalException
getDateArray
in interface ExpandoValue
PortalException
public Locale getDefaultLocale() throws PortalException
getDefaultLocale
in interface ExpandoValue
PortalException
public double getDouble() throws PortalException
getDouble
in interface ExpandoValue
PortalException
public double[] getDoubleArray() throws PortalException
getDoubleArray
in interface ExpandoValue
PortalException
public float getFloat() throws PortalException
getFloat
in interface ExpandoValue
PortalException
public float[] getFloatArray() throws PortalException
getFloatArray
in interface ExpandoValue
PortalException
public JSONObject getGeolocationJSONObject() throws PortalException
getGeolocationJSONObject
in interface ExpandoValue
PortalException
public int getInteger() throws PortalException
getInteger
in interface ExpandoValue
PortalException
public int[] getIntegerArray() throws PortalException
getIntegerArray
in interface ExpandoValue
PortalException
public long getLong() throws PortalException
getLong
in interface ExpandoValue
PortalException
public long[] getLongArray() throws PortalException
getLongArray
in interface ExpandoValue
PortalException
public long getMvccVersion()
getMvccVersion
in interface ExpandoValueModel
getMvccVersion
in interface MVCCModel
public Number getNumber() throws PortalException
getNumber
in interface ExpandoValue
PortalException
public Number[] getNumberArray() throws PortalException
getNumberArray
in interface ExpandoValue
PortalException
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoValueModel
getPrimaryKey
in interface CTModel<ExpandoValue>
public long getRowId()
getRowId
in interface ExpandoValueModel
public Serializable getSerializable() throws PortalException
getSerializable
in interface ExpandoValue
PortalException
public short getShort() throws PortalException
getShort
in interface ExpandoValue
PortalException
public short[] getShortArray() throws PortalException
getShortArray
in interface ExpandoValue
PortalException
public String getString() throws PortalException
getString
in interface ExpandoValue
PortalException
public String getString(Locale locale) throws PortalException
getString
in interface ExpandoValue
PortalException
public String[] getStringArray() throws PortalException
getStringArray
in interface ExpandoValue
PortalException
public String[] getStringArray(Locale locale) throws PortalException
getStringArray
in interface ExpandoValue
PortalException
public Map<Locale,String[]> getStringArrayMap() throws PortalException
getStringArrayMap
in interface ExpandoValue
PortalException
public Map<Locale,String> getStringMap() throws PortalException
getStringMap
in interface ExpandoValue
PortalException
public long getTableId()
getTableId
in interface ExpandoValueModel
public long getValueId()
getValueId
in interface ExpandoValueModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setBoolean(boolean data) throws PortalException
setBoolean
in interface ExpandoValue
PortalException
public void setBooleanArray(boolean[] data) throws PortalException
setBooleanArray
in interface ExpandoValue
PortalException
public void setClassName(String className)
setClassName
in interface ExpandoValueModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ExpandoValueModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this expando valuepublic void setClassPK(long classPK)
setClassPK
in interface ExpandoValueModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this expando valuepublic void setColumn(ExpandoColumn column)
setColumn
in interface ExpandoValue
public void setColumnId(long columnId)
setColumnId
in interface ExpandoValueModel
columnId
- the column ID of this expando valuepublic void setCompanyId(long companyId)
setCompanyId
in interface ExpandoValueModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this expando valuepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface ExpandoValueModel
setCtCollectionId
in interface CTModel<ExpandoValue>
ctCollectionId
- the ct collection ID of this expando valuepublic void setData(String data)
setData
in interface ExpandoValueModel
data
- the data of this expando valuepublic void setDate(Date data) throws PortalException
setDate
in interface ExpandoValue
PortalException
public void setDateArray(Date[] data) throws PortalException
setDateArray
in interface ExpandoValue
PortalException
public void setDouble(double data) throws PortalException
setDouble
in interface ExpandoValue
PortalException
public void setDoubleArray(double[] data) throws PortalException
setDoubleArray
in interface ExpandoValue
PortalException
public void setFloat(float data) throws PortalException
setFloat
in interface ExpandoValue
PortalException
public void setFloatArray(float[] data) throws PortalException
setFloatArray
in interface ExpandoValue
PortalException
public void setGeolocationJSONObject(JSONObject dataJSONObject) throws PortalException
setGeolocationJSONObject
in interface ExpandoValue
PortalException
public void setInteger(int data) throws PortalException
setInteger
in interface ExpandoValue
PortalException
public void setIntegerArray(int[] data) throws PortalException
setIntegerArray
in interface ExpandoValue
PortalException
public void setLong(long data) throws PortalException
setLong
in interface ExpandoValue
PortalException
public void setLongArray(long[] data) throws PortalException
setLongArray
in interface ExpandoValue
PortalException
public void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ExpandoValueModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this expando valuepublic void setNumber(Number data) throws PortalException
setNumber
in interface ExpandoValue
PortalException
public void setNumberArray(Number[] data) throws PortalException
setNumberArray
in interface ExpandoValue
PortalException
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoValueModel
setPrimaryKey
in interface CTModel<ExpandoValue>
primaryKey
- the primary key of this expando valuepublic void setRowId(long rowId)
setRowId
in interface ExpandoValueModel
rowId
- the row ID of this expando valuepublic void setShort(short data) throws PortalException
setShort
in interface ExpandoValue
PortalException
public void setShortArray(short[] data) throws PortalException
setShortArray
in interface ExpandoValue
PortalException
public void setString(String data) throws PortalException
setString
in interface ExpandoValue
PortalException
public void setString(String data, Locale locale, Locale defaultLocale) throws PortalException
setString
in interface ExpandoValue
PortalException
public void setStringArray(String[] data) throws PortalException
setStringArray
in interface ExpandoValue
PortalException
public void setStringArray(String[] data, Locale locale, Locale defaultLocale) throws PortalException
setStringArray
in interface ExpandoValue
PortalException
public void setStringArrayMap(Map<Locale,String[]> dataMap, Locale defaultLocale) throws PortalException
setStringArrayMap
in interface ExpandoValue
PortalException
public void setStringMap(Map<Locale,String> dataMap, Locale defaultLocale) throws PortalException
setStringMap
in interface ExpandoValue
PortalException
public void setTableId(long tableId)
setTableId
in interface ExpandoValueModel
tableId
- the table ID of this expando valuepublic void setValueId(long valueId)
setValueId
in interface ExpandoValueModel
valueId
- the value ID of this expando valuepublic Map<String,Function<ExpandoValue,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<ExpandoValue>
public Map<String,BiConsumer<ExpandoValue,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<ExpandoValue>
protected ExpandoValueWrapper wrap(ExpandoValue expandoValue)
wrap
in class BaseModelWrapper<ExpandoValue>