Liferay 6.2.0-ce-m4

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>, TrashVersion, TrashVersionModel, Serializable, Cloneable, Comparable<TrashVersion>

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)
           
 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.
 long getVersionId()
          Returns the version ID of this trash version.
 TrashVersion getWrappedModel()
           
 TrashVersion getWrappedTrashVersion()
          Deprecated. Renamed to 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 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(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 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
equals, 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 AttachedModel
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 AttachedModel
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 AttachedModel
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

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(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
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

getWrappedTrashVersion

public TrashVersion getWrappedTrashVersion()
Deprecated. Renamed to 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.0-ce-m4