Liferay 6.2-ce-ga5

com.liferay.portlet.trash.model
Class TrashVersionWrapper

java.lang.Object
  extended by com.liferay.portlet.trash.model.TrashVersionWrapper
All Implemented Interfaces:
AttachedModel, BaseModel<TrashVersion>, ClassedModel, ModelWrapper<TrashVersion>, PersistedModel, TypedModel, TrashVersion, TrashVersionModel, Serializable, Cloneable, Comparable<TrashVersion>

@ProviderType
public class TrashVersionWrapper
extends Object
implements TrashVersion, ModelWrapper<TrashVersion>

This class is a wrapper for TrashVersion.

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

Constructor Summary
TrashVersionWrapper(TrashVersion trashVersion)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(TrashVersion trashVersion)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the fully qualified class name of this trash version.
 long getClassNameId()
          Returns the class name ID of this trash version.
 long getClassPK()
          Returns the class p k of this trash version.
 long getEntryId()
          Returns the entry ID of this trash version.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getPrimaryKey()
          Returns the primary key of this trash version.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getStatus()
          Returns the status of this trash version.
 String getTypeSettings()
          Returns the type settings of this trash version.
 UnicodeProperties getTypeSettingsProperties()
           
 String getTypeSettingsProperty(String key)
           
 String getTypeSettingsProperty(String key, String defaultValue)
           
 long getVersionId()
          Returns the version ID of this trash version.
 TrashVersion getWrappedModel()
           
 TrashVersion getWrappedTrashVersion()
          Deprecated. As of 6.1.0, replaced by 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 setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this trash version.
 void setClassPK(long classPK)
          Sets the class p k of this trash version.
 void setEntryId(long entryId)
          Sets the entry ID of this trash version.
 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 setModelAttributes(Map<String,Object> attributes)
           
 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 trash version.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setStatus(int status)
          Sets the status of this trash version.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this trash version.
 void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
           
 void setVersionId(long versionId)
          Sets the version ID of this trash version.
 CacheModel<TrashVersion> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 TrashVersion toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 TrashVersion 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

TrashVersionWrapper

public TrashVersionWrapper(TrashVersion trashVersion)
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<TrashVersion>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this trash version.

Specified by:
getPrimaryKey in interface TrashVersionModel
Returns:
the primary key of this trash version

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this trash version.

Specified by:
setPrimaryKey in interface TrashVersionModel
Parameters:
primaryKey - the primary key of this trash version

getVersionId

public long getVersionId()
Returns the version ID of this trash version.

Specified by:
getVersionId in interface TrashVersionModel
Returns:
the version ID of this trash version

setVersionId

public void setVersionId(long versionId)
Sets the version ID of this trash version.

Specified by:
setVersionId in interface TrashVersionModel
Parameters:
versionId - the version ID of this trash version

getEntryId

public long getEntryId()
Returns the entry ID of this trash version.

Specified by:
getEntryId in interface TrashVersionModel
Returns:
the entry ID of this trash version

setEntryId

public void setEntryId(long entryId)
Sets the entry ID of this trash version.

Specified by:
setEntryId in interface TrashVersionModel
Parameters:
entryId - the entry ID of this trash version

getClassName

public String getClassName()
Returns the fully qualified class name of this trash version.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface TrashVersionModel
Returns:
the fully qualified class name of this trash version

setClassName

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

getClassNameId

public long getClassNameId()
Returns the class name ID of this trash version.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface TrashVersionModel
Returns:
the class name ID of this trash version

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this trash version.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface TrashVersionModel
Parameters:
classNameId - the class name ID of this trash version

getClassPK

public long getClassPK()
Returns the class p k of this trash version.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface TrashVersionModel
Returns:
the class p k of this trash version

setClassPK

public void setClassPK(long classPK)
Sets the class p k of this trash version.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface TrashVersionModel
Parameters:
classPK - the class p k of this trash version

getTypeSettings

public String getTypeSettings()
Returns the type settings of this trash version.

Specified by:
getTypeSettings in interface TrashVersionModel
Returns:
the type settings of this trash version

setTypeSettings

public void setTypeSettings(String typeSettings)
Sets the type settings of this trash version.

Specified by:
setTypeSettings in interface TrashVersionModel
Parameters:
typeSettings - the type settings of this trash version

getStatus

public int getStatus()
Returns the status of this trash version.

Specified by:
getStatus in interface TrashVersionModel
Returns:
the status of this trash version

setStatus

public void setStatus(int status)
Sets the status of this trash version.

Specified by:
setStatus in interface TrashVersionModel
Parameters:
status - the status of this trash version

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<TrashVersion>
Specified by:
isNew in interface TrashVersionModel
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<TrashVersion>
Specified by:
setNew in interface TrashVersionModel
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<TrashVersion>
Specified by:
isCachedModel in interface TrashVersionModel
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<TrashVersion>
Specified by:
setCachedModel in interface TrashVersionModel
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<TrashVersion>
Specified by:
isEscapedModel in interface TrashVersionModel
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<TrashVersion>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface TrashVersionModel
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<TrashVersion>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface TrashVersionModel
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<TrashVersion>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface TrashVersionModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<TrashVersion>
Specified by:
setExpandoBridgeAttributes in interface TrashVersionModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<TrashVersion>
Specified by:
setExpandoBridgeAttributes in interface TrashVersionModel

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<TrashVersion>
Specified by:
setExpandoBridgeAttributes in interface TrashVersionModel
Parameters:
serviceContext - the service context to be applied
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<TrashVersion>
Specified by:
clone in interface TrashVersionModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(TrashVersion trashVersion)
Specified by:
compareTo in interface TrashVersionModel
Specified by:
compareTo in interface Comparable<TrashVersion>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<TrashVersion>
Specified by:
toCacheModel in interface TrashVersionModel
Returns:
the cache model object

toEscapedModel

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

toUnescapedModel

public TrashVersion toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<TrashVersion>
Specified by:
toUnescapedModel in interface TrashVersionModel

toString

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

getTypeSettingsProperties

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

getTypeSettingsProperty

public String getTypeSettingsProperty(String key)
Specified by:
getTypeSettingsProperty in interface TrashVersion

getTypeSettingsProperty

public String getTypeSettingsProperty(String key,
                                      String defaultValue)
Specified by:
getTypeSettingsProperty in interface TrashVersion

setTypeSettingsProperties

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

equals

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

getWrappedTrashVersion

public TrashVersion getWrappedTrashVersion()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<TrashVersion>

Liferay 6.2-ce-ga5