Liferay 6.1.2-ce-ga3

com.liferay.portlet.expando.model
Class ExpandoColumnWrapper

java.lang.Object
  extended by com.liferay.portlet.expando.model.ExpandoColumnWrapper
All Implemented Interfaces:
BaseModel<ExpandoColumn>, ClassedModel, ModelWrapper<ExpandoColumn>, PersistedModel, ExpandoColumn, ExpandoColumnModel, Serializable, Cloneable, Comparable<ExpandoColumn>

public class ExpandoColumnWrapper
extends Object
implements ExpandoColumn, ModelWrapper<ExpandoColumn>

This class is a wrapper for ExpandoColumn.

See Also:
ExpandoColumn, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
ExpandoColumnWrapper(ExpandoColumn expandoColumn)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ExpandoColumn expandoColumn)
           
 boolean equals(Object obj)
           
 long getColumnId()
          Returns the column ID of this expando column.
 long getCompanyId()
          Returns the company ID of this expando column.
 String getDefaultData()
          Returns the default data of this expando column.
 Serializable getDefaultValue()
           
 String getDisplayName(Locale locale)
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this expando column.
 long getPrimaryKey()
          Returns the primary key of this expando column.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getTableId()
          Returns the table ID of this expando column.
 int getType()
          Returns the type of this expando column.
 String getTypeSettings()
          Returns the type settings of this expando column.
 UnicodeProperties getTypeSettingsProperties()
           
 ExpandoColumn getWrappedExpandoColumn()
          Deprecated. Renamed to getWrappedModel()
 ExpandoColumn 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 setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setColumnId(long columnId)
          Sets the column ID of this expando column.
 void setCompanyId(long companyId)
          Sets the company ID of this expando column.
 void setDefaultData(String defaultData)
          Sets the default data of this expando column.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this expando column.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this expando column.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setTableId(long tableId)
          Sets the table ID of this expando column.
 void setType(int type)
          Sets the type of this expando column.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this expando column.
 void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
           
 CacheModel<ExpandoColumn> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ExpandoColumn toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 ExpandoColumn 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

ExpandoColumnWrapper

public ExpandoColumnWrapper(ExpandoColumn expandoColumn)
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<ExpandoColumn>

setModelAttributes

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

getPrimaryKey

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

Specified by:
getPrimaryKey in interface ExpandoColumnModel
Returns:
the primary key of this expando column

setPrimaryKey

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

Specified by:
setPrimaryKey in interface ExpandoColumnModel
Parameters:
primaryKey - the primary key of this expando column

getColumnId

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

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

setColumnId

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

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

getCompanyId

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

Specified by:
getCompanyId in interface ExpandoColumnModel
Returns:
the company ID of this expando column

setCompanyId

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

Specified by:
setCompanyId in interface ExpandoColumnModel
Parameters:
companyId - the company ID of this expando column

getTableId

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

Specified by:
getTableId in interface ExpandoColumnModel
Returns:
the table ID of this expando column

setTableId

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

Specified by:
setTableId in interface ExpandoColumnModel
Parameters:
tableId - the table ID of this expando column

getName

public String getName()
Returns the name of this expando column.

Specified by:
getName in interface ExpandoColumnModel
Returns:
the name of this expando column

setName

public void setName(String name)
Sets the name of this expando column.

Specified by:
setName in interface ExpandoColumnModel
Parameters:
name - the name of this expando column

getType

public int getType()
Returns the type of this expando column.

Specified by:
getType in interface ExpandoColumnModel
Returns:
the type of this expando column

setType

public void setType(int type)
Sets the type of this expando column.

Specified by:
setType in interface ExpandoColumnModel
Parameters:
type - the type of this expando column

getDefaultData

public String getDefaultData()
Returns the default data of this expando column.

Specified by:
getDefaultData in interface ExpandoColumnModel
Returns:
the default data of this expando column

setDefaultData

public void setDefaultData(String defaultData)
Sets the default data of this expando column.

Specified by:
setDefaultData in interface ExpandoColumnModel
Parameters:
defaultData - the default data of this expando column

getTypeSettings

public String getTypeSettings()
Returns the type settings of this expando column.

Specified by:
getTypeSettings in interface ExpandoColumn
Specified by:
getTypeSettings in interface ExpandoColumnModel
Returns:
the type settings of this expando column

setTypeSettings

public void setTypeSettings(String typeSettings)
Sets the type settings of this expando column.

Specified by:
setTypeSettings in interface ExpandoColumn
Specified by:
setTypeSettings in interface ExpandoColumnModel
Parameters:
typeSettings - the type settings of this expando column

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<ExpandoColumn>
Specified by:
isNew in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
setNew in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
isCachedModel in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
setCachedModel in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
isEscapedModel in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
setExpandoBridgeAttributes in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
clone in interface ExpandoColumnModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ExpandoColumn expandoColumn)
Specified by:
compareTo in interface ExpandoColumnModel
Specified by:
compareTo in interface Comparable<ExpandoColumn>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<ExpandoColumn>
Specified by:
toCacheModel in interface ExpandoColumnModel
Returns:
the cache model object

toEscapedModel

public ExpandoColumn 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<ExpandoColumn>
Specified by:
toEscapedModel in interface ExpandoColumnModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ExpandoColumn toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ExpandoColumn>
Specified by:
toUnescapedModel in interface ExpandoColumnModel

toString

public String toString()
Specified by:
toString in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
toXmlString in interface ExpandoColumnModel
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

getDefaultValue

public Serializable getDefaultValue()
Specified by:
getDefaultValue in interface ExpandoColumn

getDisplayName

public String getDisplayName(Locale locale)
Specified by:
getDisplayName in interface ExpandoColumn

getTypeSettingsProperties

public UnicodeProperties getTypeSettingsProperties()
Specified by:
getTypeSettingsProperties in interface ExpandoColumn

setTypeSettingsProperties

public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
Specified by:
setTypeSettingsProperties in interface ExpandoColumn

equals

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

getWrappedExpandoColumn

public ExpandoColumn getWrappedExpandoColumn()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<ExpandoColumn>

Liferay 6.1.2-ce-ga3