@ProviderType public class ExpandoValueWrapper extends Object implements ExpandoValue, ModelWrapper<ExpandoValue>
This class is a wrapper for ExpandoValue.
ExpandoValue,
Serialized FormVALUE_ID_ACCESSOR| Constructor and Description |
|---|
ExpandoValueWrapper(ExpandoValue expandoValue) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ExpandoValue expandoValue) |
boolean |
equals(Object obj) |
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 p k 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.
|
String |
getData()
Returns the data of this expando value.
|
Date |
getDate() |
Date[] |
getDateArray() |
Locale |
getDefaultLocale() |
double |
getDouble() |
double[] |
getDoubleArray() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
float |
getFloat() |
float[] |
getFloatArray() |
int |
getInteger() |
int[] |
getIntegerArray() |
long |
getLong() |
long[] |
getLongArray() |
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Number |
getNumber() |
Number[] |
getNumberArray() |
long |
getPrimaryKey()
Returns the primary key of this expando value.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
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.
|
ExpandoValue |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setBoolean(boolean data) |
void |
setBooleanArray(boolean[] data) |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this expando value.
|
void |
setClassPK(long classPK)
Sets the class p k 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 |
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 |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setFloat(float data) |
void |
setFloatArray(float[] data) |
void |
setInteger(int data) |
void |
setIntegerArray(int[] data) |
void |
setLong(long data) |
void |
setLongArray(long[] data) |
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setNumber(Number data) |
void |
setNumberArray(Number[] data) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this expando value.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
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.
|
CacheModel<ExpandoValue> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ExpandoValue |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
ExpandoValue |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ExpandoValueWrapper(ExpandoValue expandoValue)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ExpandoValue>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ExpandoValue>public ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface ExpandoValueModelgetExpandoBridge in interface BaseModel<ExpandoValue>getExpandoBridge in interface ClassedModelpublic ExpandoColumn getColumn() throws PortalException
getColumn in interface ExpandoValuePortalExceptionpublic ExpandoValue toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface ExpandoValueModeltoEscapedModel in interface BaseModel<ExpandoValue>AutoEscapeBeanHandlerpublic ExpandoValue toUnescapedModel()
toUnescapedModel in interface ExpandoValueModeltoUnescapedModel in interface BaseModel<ExpandoValue>public boolean getBoolean()
throws PortalException
getBoolean in interface ExpandoValuePortalExceptionpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface ExpandoValueModelisCachedModel in interface BaseModel<ExpandoValue>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface ExpandoValueModelisEscapedModel in interface BaseModel<ExpandoValue>true if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface ExpandoValueModelisNew in interface BaseModel<ExpandoValue>true if this model instance does not yet exist in
the database; false otherwisepublic boolean[] getBooleanArray()
throws PortalException
getBooleanArray in interface ExpandoValuePortalExceptionpublic CacheModel<ExpandoValue> toCacheModel()
BaseModeltoCacheModel in interface ExpandoValueModeltoCacheModel in interface BaseModel<ExpandoValue>public double getDouble()
throws PortalException
getDouble in interface ExpandoValuePortalExceptionpublic double[] getDoubleArray()
throws PortalException
getDoubleArray in interface ExpandoValuePortalExceptionpublic float getFloat()
throws PortalException
getFloat in interface ExpandoValuePortalExceptionpublic float[] getFloatArray()
throws PortalException
getFloatArray in interface ExpandoValuePortalExceptionpublic int compareTo(ExpandoValue expandoValue)
compareTo in interface ExpandoValueModelcompareTo in interface Comparable<ExpandoValue>public int getInteger()
throws PortalException
getInteger in interface ExpandoValuePortalExceptionpublic int hashCode()
hashCode in interface ExpandoValueModelhashCode in class Objectpublic int[] getIntegerArray()
throws PortalException
getIntegerArray in interface ExpandoValuePortalExceptionpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface ExpandoValueModelgetPrimaryKeyObj in interface BaseModel<ExpandoValue>getPrimaryKeyObj in interface ClassedModelpublic Serializable getSerializable() throws PortalException
getSerializable in interface ExpandoValuePortalExceptionpublic Number getNumber() throws PortalException
getNumber in interface ExpandoValuePortalExceptionpublic Number[] getNumberArray() throws PortalException
getNumberArray in interface ExpandoValuePortalExceptionpublic Object clone()
BaseModelclone in interface ExpandoValueModelclone in interface BaseModel<ExpandoValue>clone in class Objectpublic String getClassName()
getClassName in interface ExpandoValueModelgetClassName in interface TypedModelpublic String getData()
getData in interface ExpandoValueModelpublic String getString() throws PortalException
getString in interface ExpandoValuePortalExceptionpublic String getString(Locale locale) throws PortalException
getString in interface ExpandoValuePortalExceptionpublic String toString()
toString in interface ExpandoValueModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface ExpandoValueModeltoXmlString in interface BaseModel<ExpandoValue>public String[] getStringArray() throws PortalException
getStringArray in interface ExpandoValuePortalExceptionpublic String[] getStringArray(Locale locale) throws PortalException
getStringArray in interface ExpandoValuePortalExceptionpublic Date getDate() throws PortalException
getDate in interface ExpandoValuePortalExceptionpublic Date[] getDateArray() throws PortalException
getDateArray in interface ExpandoValuePortalExceptionpublic List<Locale> getAvailableLocales() throws PortalException
getAvailableLocales in interface ExpandoValuePortalExceptionpublic Locale getDefaultLocale() throws PortalException
getDefaultLocale in interface ExpandoValuePortalExceptionpublic Map<Locale,String[]> getStringArrayMap() throws PortalException
getStringArrayMap in interface ExpandoValuePortalExceptionpublic Map<Locale,String> getStringMap() throws PortalException
getStringMap in interface ExpandoValuePortalExceptionpublic long getClassNameId()
getClassNameId in interface ExpandoValueModelgetClassNameId in interface TypedModelpublic long getClassPK()
getClassPK in interface ExpandoValueModelgetClassPK in interface AttachedModelpublic long getColumnId()
getColumnId in interface ExpandoValueModelpublic long getCompanyId()
getCompanyId in interface ExpandoValueModelgetCompanyId in interface ShardedModelpublic long getLong()
throws PortalException
getLong in interface ExpandoValuePortalExceptionpublic long getPrimaryKey()
getPrimaryKey in interface ExpandoValueModelpublic long getRowId()
getRowId in interface ExpandoValueModelpublic long getTableId()
getTableId in interface ExpandoValueModelpublic long getValueId()
getValueId in interface ExpandoValueModelpublic long[] getLongArray()
throws PortalException
getLongArray in interface ExpandoValuePortalExceptionpublic short getShort()
throws PortalException
getShort in interface ExpandoValuePortalExceptionpublic short[] getShortArray()
throws PortalException
getShortArray in interface ExpandoValuePortalExceptionpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setBoolean(boolean data)
throws PortalException
setBoolean in interface ExpandoValuePortalExceptionpublic void setBooleanArray(boolean[] data)
throws PortalException
setBooleanArray in interface ExpandoValuePortalExceptionpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface ExpandoValueModelsetCachedModel in interface BaseModel<ExpandoValue>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(String className)
setClassName in interface ExpandoValueModelpublic void setClassNameId(long classNameId)
setClassNameId in interface ExpandoValueModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this expando valuepublic void setClassPK(long classPK)
setClassPK in interface ExpandoValueModelsetClassPK in interface AttachedModelclassPK - the class p k of this expando valuepublic void setColumn(ExpandoColumn column)
setColumn in interface ExpandoValuepublic void setColumnId(long columnId)
setColumnId in interface ExpandoValueModelcolumnId - the column ID of this expando valuepublic void setCompanyId(long companyId)
setCompanyId in interface ExpandoValueModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this expando valuepublic void setData(String data)
setData in interface ExpandoValueModeldata - the data of this expando valuepublic void setDate(Date data) throws PortalException
setDate in interface ExpandoValuePortalExceptionpublic void setDateArray(Date[] data) throws PortalException
setDateArray in interface ExpandoValuePortalExceptionpublic void setDouble(double data)
throws PortalException
setDouble in interface ExpandoValuePortalExceptionpublic void setDoubleArray(double[] data)
throws PortalException
setDoubleArray in interface ExpandoValuePortalExceptionpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface ExpandoValueModelsetExpandoBridgeAttributes in interface BaseModel<ExpandoValue>public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface ExpandoValueModelsetExpandoBridgeAttributes in interface BaseModel<ExpandoValue>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface ExpandoValueModelsetExpandoBridgeAttributes in interface BaseModel<ExpandoValue>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setFloat(float data)
throws PortalException
setFloat in interface ExpandoValuePortalExceptionpublic void setFloatArray(float[] data)
throws PortalException
setFloatArray in interface ExpandoValuePortalExceptionpublic void setInteger(int data)
throws PortalException
setInteger in interface ExpandoValuePortalExceptionpublic void setIntegerArray(int[] data)
throws PortalException
setIntegerArray in interface ExpandoValuePortalExceptionpublic void setLong(long data)
throws PortalException
setLong in interface ExpandoValuePortalExceptionpublic void setLongArray(long[] data)
throws PortalException
setLongArray in interface ExpandoValuePortalExceptionpublic void setNew(boolean n)
BaseModelsetNew in interface ExpandoValueModelsetNew in interface BaseModel<ExpandoValue>n - whether this model instance does not yet exist in the databasepublic void setNumber(Number data) throws PortalException
setNumber in interface ExpandoValuePortalExceptionpublic void setNumberArray(Number[] data) throws PortalException
setNumberArray in interface ExpandoValuePortalExceptionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ExpandoValueModelprimaryKey - the primary key of this expando valuepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface ExpandoValueModelsetPrimaryKeyObj in interface BaseModel<ExpandoValue>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic void setRowId(long rowId)
setRowId in interface ExpandoValueModelrowId - the row ID of this expando valuepublic void setShort(short data)
throws PortalException
setShort in interface ExpandoValuePortalExceptionpublic void setShortArray(short[] data)
throws PortalException
setShortArray in interface ExpandoValuePortalExceptionpublic void setString(String data) throws PortalException
setString in interface ExpandoValuePortalExceptionpublic void setString(String data, Locale locale, Locale defaultLocale) throws PortalException
setString in interface ExpandoValuePortalExceptionpublic void setStringArray(String[] data) throws PortalException
setStringArray in interface ExpandoValuePortalExceptionpublic void setStringArray(String[] data, Locale locale, Locale defaultLocale) throws PortalException
setStringArray in interface ExpandoValuePortalExceptionpublic void setStringArrayMap(Map<Locale,String[]> dataMap, Locale defaultLocale) throws PortalException
setStringArrayMap in interface ExpandoValuePortalExceptionpublic void setStringMap(Map<Locale,String> dataMap, Locale defaultLocale) throws PortalException
setStringMap in interface ExpandoValuePortalExceptionpublic void setTableId(long tableId)
setTableId in interface ExpandoValueModeltableId - the table ID of this expando valuepublic void setValueId(long valueId)
setValueId in interface ExpandoValueModelvalueId - the value ID of this expando valuepublic ExpandoValue getWrappedModel()
getWrappedModel in interface ModelWrapper<ExpandoValue>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ExpandoValue>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<ExpandoValue>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ExpandoValue>