Liferay 6.1.2-ce-ga3

com.liferay.portlet.expando.model
Class ExpandoValueWrapper

java.lang.Object
  extended by com.liferay.portlet.expando.model.ExpandoValueWrapper
All Implemented Interfaces:
AttachedModel, BaseModel<ExpandoValue>, ClassedModel, ModelWrapper<ExpandoValue>, PersistedModel, ExpandoValue, ExpandoValueModel, Serializable, Cloneable, Comparable<ExpandoValue>

public class ExpandoValueWrapper
extends Object
implements ExpandoValue, ModelWrapper<ExpandoValue>

This class is a wrapper for ExpandoValue.

See Also:
ExpandoValue, Serialized Form

Constructor Summary
ExpandoValueWrapper(ExpandoValue expandoValue)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ExpandoValue expandoValue)
           
 boolean equals(Object obj)
           
 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()
           
 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[] getStringArray()
           
 long getTableId()
          Returns the table ID of this expando value.
 long getValueId()
          Returns the value ID of this expando value.
 ExpandoValue getWrappedExpandoValue()
          Deprecated. Renamed to getWrappedModel()
 ExpandoValue getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 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(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 setStringArray(String[] data)
           
 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpandoValueWrapper

public ExpandoValueWrapper(ExpandoValue expandoValue)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<ExpandoValue>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<ExpandoValue>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this expando value.

Specified by:
getPrimaryKey in interface ExpandoValueModel
Returns:
the primary key of this expando value

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this expando value.

Specified by:
setPrimaryKey in interface ExpandoValueModel
Parameters:
primaryKey - the primary key of this expando value

getValueId

public long getValueId()
Returns the value ID of this expando value.

Specified by:
getValueId in interface ExpandoValueModel
Returns:
the value ID of this expando value

setValueId

public void setValueId(long valueId)
Sets the value ID of this expando value.

Specified by:
setValueId in interface ExpandoValueModel
Parameters:
valueId - the value ID of this expando value

getCompanyId

public long getCompanyId()
Returns the company ID of this expando value.

Specified by:
getCompanyId in interface ExpandoValueModel
Returns:
the company ID of this expando value

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this expando value.

Specified by:
setCompanyId in interface ExpandoValueModel
Parameters:
companyId - the company ID of this expando value

getTableId

public long getTableId()
Returns the table ID of this expando value.

Specified by:
getTableId in interface ExpandoValueModel
Returns:
the table ID of this expando value

setTableId

public void setTableId(long tableId)
Sets the table ID of this expando value.

Specified by:
setTableId in interface ExpandoValueModel
Parameters:
tableId - the table ID of this expando value

getColumnId

public long getColumnId()
Returns the column ID of this expando value.

Specified by:
getColumnId in interface ExpandoValueModel
Returns:
the column ID of this expando value

setColumnId

public void setColumnId(long columnId)
Sets the column ID of this expando value.

Specified by:
setColumnId in interface ExpandoValueModel
Parameters:
columnId - the column ID of this expando value

getRowId

public long getRowId()
Returns the row ID of this expando value.

Specified by:
getRowId in interface ExpandoValueModel
Returns:
the row ID of this expando value

setRowId

public void setRowId(long rowId)
Sets the row ID of this expando value.

Specified by:
setRowId in interface ExpandoValueModel
Parameters:
rowId - the row ID of this expando value

getClassName

public String getClassName()
Returns the fully qualified class name of this expando value.

Specified by:
getClassName in interface AttachedModel
Specified by:
getClassName in interface ExpandoValueModel
Returns:
the fully qualified class name of this expando value

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface ExpandoValueModel

getClassNameId

public long getClassNameId()
Returns the class name ID of this expando value.

Specified by:
getClassNameId in interface AttachedModel
Specified by:
getClassNameId in interface ExpandoValueModel
Returns:
the class name ID of this expando value

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this expando value.

Specified by:
setClassNameId in interface AttachedModel
Specified by:
setClassNameId in interface ExpandoValueModel
Parameters:
classNameId - the class name ID of this expando value

getClassPK

public long getClassPK()
Returns the class p k of this expando value.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface ExpandoValueModel
Returns:
the class p k of this expando value

setClassPK

public void setClassPK(long classPK)
Sets the class p k of this expando value.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface ExpandoValueModel
Parameters:
classPK - the class p k of this expando value

getData

public String getData()
Returns the data of this expando value.

Specified by:
getData in interface ExpandoValueModel
Returns:
the data of this expando value

setData

public void setData(String data)
Sets the data of this expando value.

Specified by:
setData in interface ExpandoValueModel
Parameters:
data - the data of this expando value

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<ExpandoValue>
Specified by:
isNew in interface ExpandoValueModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<ExpandoValue>
Specified by:
setNew in interface ExpandoValueModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<ExpandoValue>
Specified by:
isCachedModel in interface ExpandoValueModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<ExpandoValue>
Specified by:
setCachedModel in interface ExpandoValueModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<ExpandoValue>
Specified by:
isEscapedModel in interface ExpandoValueModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<ExpandoValue>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ExpandoValueModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<ExpandoValue>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ExpandoValueModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<ExpandoValue>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ExpandoValueModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<ExpandoValue>
Specified by:
setExpandoBridgeAttributes in interface ExpandoValueModel
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<ExpandoValue>
Specified by:
clone in interface ExpandoValueModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ExpandoValue expandoValue)
Specified by:
compareTo in interface ExpandoValueModel
Specified by:
compareTo in interface Comparable<ExpandoValue>

hashCode

public int hashCode()
Specified by:
hashCode in interface ExpandoValueModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<ExpandoValue> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<ExpandoValue>
Specified by:
toCacheModel in interface ExpandoValueModel
Returns:
the cache model object

toEscapedModel

public ExpandoValue toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<ExpandoValue>
Specified by:
toEscapedModel in interface ExpandoValueModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ExpandoValue toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ExpandoValue>
Specified by:
toUnescapedModel in interface ExpandoValueModel

toString

public String toString()
Specified by:
toString in interface ExpandoValueModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<ExpandoValue>
Specified by:
toXmlString in interface ExpandoValueModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getBoolean

public boolean getBoolean()
                   throws PortalException,
                          SystemException
Specified by:
getBoolean in interface ExpandoValue
Throws:
PortalException
SystemException

getBooleanArray

public boolean[] getBooleanArray()
                          throws PortalException,
                                 SystemException
Specified by:
getBooleanArray in interface ExpandoValue
Throws:
PortalException
SystemException

getColumn

public ExpandoColumn getColumn()
                        throws PortalException,
                               SystemException
Specified by:
getColumn in interface ExpandoValue
Throws:
PortalException
SystemException

getDate

public Date getDate()
             throws PortalException,
                    SystemException
Specified by:
getDate in interface ExpandoValue
Throws:
PortalException
SystemException

getDateArray

public Date[] getDateArray()
                    throws PortalException,
                           SystemException
Specified by:
getDateArray in interface ExpandoValue
Throws:
PortalException
SystemException

getDouble

public double getDouble()
                 throws PortalException,
                        SystemException
Specified by:
getDouble in interface ExpandoValue
Throws:
PortalException
SystemException

getDoubleArray

public double[] getDoubleArray()
                        throws PortalException,
                               SystemException
Specified by:
getDoubleArray in interface ExpandoValue
Throws:
PortalException
SystemException

getFloat

public float getFloat()
               throws PortalException,
                      SystemException
Specified by:
getFloat in interface ExpandoValue
Throws:
PortalException
SystemException

getFloatArray

public float[] getFloatArray()
                      throws PortalException,
                             SystemException
Specified by:
getFloatArray in interface ExpandoValue
Throws:
PortalException
SystemException

getInteger

public int getInteger()
               throws PortalException,
                      SystemException
Specified by:
getInteger in interface ExpandoValue
Throws:
PortalException
SystemException

getIntegerArray

public int[] getIntegerArray()
                      throws PortalException,
                             SystemException
Specified by:
getIntegerArray in interface ExpandoValue
Throws:
PortalException
SystemException

getLong

public long getLong()
             throws PortalException,
                    SystemException
Specified by:
getLong in interface ExpandoValue
Throws:
PortalException
SystemException

getLongArray

public long[] getLongArray()
                    throws PortalException,
                           SystemException
Specified by:
getLongArray in interface ExpandoValue
Throws:
PortalException
SystemException

getNumber

public Number getNumber()
                 throws PortalException,
                        SystemException
Specified by:
getNumber in interface ExpandoValue
Throws:
PortalException
SystemException

getNumberArray

public Number[] getNumberArray()
                        throws PortalException,
                               SystemException
Specified by:
getNumberArray in interface ExpandoValue
Throws:
PortalException
SystemException

getSerializable

public Serializable getSerializable()
                             throws PortalException,
                                    SystemException
Specified by:
getSerializable in interface ExpandoValue
Throws:
PortalException
SystemException

getShort

public short getShort()
               throws PortalException,
                      SystemException
Specified by:
getShort in interface ExpandoValue
Throws:
PortalException
SystemException

getShortArray

public short[] getShortArray()
                      throws PortalException,
                             SystemException
Specified by:
getShortArray in interface ExpandoValue
Throws:
PortalException
SystemException

getString

public String getString()
                 throws PortalException,
                        SystemException
Specified by:
getString in interface ExpandoValue
Throws:
PortalException
SystemException

getStringArray

public String[] getStringArray()
                        throws PortalException,
                               SystemException
Specified by:
getStringArray in interface ExpandoValue
Throws:
PortalException
SystemException

setBoolean

public void setBoolean(boolean data)
                throws PortalException,
                       SystemException
Specified by:
setBoolean in interface ExpandoValue
Throws:
PortalException
SystemException

setBooleanArray

public void setBooleanArray(boolean[] data)
                     throws PortalException,
                            SystemException
Specified by:
setBooleanArray in interface ExpandoValue
Throws:
PortalException
SystemException

setColumn

public void setColumn(ExpandoColumn column)
Specified by:
setColumn in interface ExpandoValue

setDate

public void setDate(Date data)
             throws PortalException,
                    SystemException
Specified by:
setDate in interface ExpandoValue
Throws:
PortalException
SystemException

setDateArray

public void setDateArray(Date[] data)
                  throws PortalException,
                         SystemException
Specified by:
setDateArray in interface ExpandoValue
Throws:
PortalException
SystemException

setDouble

public void setDouble(double data)
               throws PortalException,
                      SystemException
Specified by:
setDouble in interface ExpandoValue
Throws:
PortalException
SystemException

setDoubleArray

public void setDoubleArray(double[] data)
                    throws PortalException,
                           SystemException
Specified by:
setDoubleArray in interface ExpandoValue
Throws:
PortalException
SystemException

setFloat

public void setFloat(float data)
              throws PortalException,
                     SystemException
Specified by:
setFloat in interface ExpandoValue
Throws:
PortalException
SystemException

setFloatArray

public void setFloatArray(float[] data)
                   throws PortalException,
                          SystemException
Specified by:
setFloatArray in interface ExpandoValue
Throws:
PortalException
SystemException

setInteger

public void setInteger(int data)
                throws PortalException,
                       SystemException
Specified by:
setInteger in interface ExpandoValue
Throws:
PortalException
SystemException

setIntegerArray

public void setIntegerArray(int[] data)
                     throws PortalException,
                            SystemException
Specified by:
setIntegerArray in interface ExpandoValue
Throws:
PortalException
SystemException

setLong

public void setLong(long data)
             throws PortalException,
                    SystemException
Specified by:
setLong in interface ExpandoValue
Throws:
PortalException
SystemException

setLongArray

public void setLongArray(long[] data)
                  throws PortalException,
                         SystemException
Specified by:
setLongArray in interface ExpandoValue
Throws:
PortalException
SystemException

setNumber

public void setNumber(Number data)
               throws PortalException,
                      SystemException
Specified by:
setNumber in interface ExpandoValue
Throws:
PortalException
SystemException

setNumberArray

public void setNumberArray(Number[] data)
                    throws PortalException,
                           SystemException
Specified by:
setNumberArray in interface ExpandoValue
Throws:
PortalException
SystemException

setShort

public void setShort(short data)
              throws PortalException,
                     SystemException
Specified by:
setShort in interface ExpandoValue
Throws:
PortalException
SystemException

setShortArray

public void setShortArray(short[] data)
                   throws PortalException,
                          SystemException
Specified by:
setShortArray in interface ExpandoValue
Throws:
PortalException
SystemException

setString

public void setString(String data)
               throws PortalException,
                      SystemException
Specified by:
setString in interface ExpandoValue
Throws:
PortalException
SystemException

setStringArray

public void setStringArray(String[] data)
                    throws PortalException,
                           SystemException
Specified by:
setStringArray in interface ExpandoValue
Throws:
PortalException
SystemException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedExpandoValue

public ExpandoValue getWrappedExpandoValue()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public ExpandoValue getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<ExpandoValue>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<ExpandoValue>

Liferay 6.1.2-ce-ga3