|
Liferay 6.2.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.trash.model.TrashVersionWrapper
public class TrashVersionWrapper
This class is a wrapper for TrashVersion.
TrashVersion,
Serialized Form| 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. |
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 |
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 |
|---|
public TrashVersionWrapper(TrashVersion trashVersion)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<TrashVersion>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<TrashVersion>public long getPrimaryKey()
getPrimaryKey in interface TrashVersionModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface TrashVersionModelprimaryKey - the primary key of this trash versionpublic long getVersionId()
getVersionId in interface TrashVersionModelpublic void setVersionId(long versionId)
setVersionId in interface TrashVersionModelversionId - the version ID of this trash versionpublic long getEntryId()
getEntryId in interface TrashVersionModelpublic void setEntryId(long entryId)
setEntryId in interface TrashVersionModelentryId - the entry ID of this trash versionpublic String getClassName()
getClassName in interface TypedModelgetClassName in interface TrashVersionModelpublic void setClassName(String className)
setClassName in interface TrashVersionModelpublic long getClassNameId()
getClassNameId in interface TypedModelgetClassNameId in interface TrashVersionModelpublic void setClassNameId(long classNameId)
setClassNameId in interface TypedModelsetClassNameId in interface TrashVersionModelclassNameId - the class name ID of this trash versionpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface TrashVersionModelpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface TrashVersionModelclassPK - the class p k of this trash versionpublic int getStatus()
getStatus in interface TrashVersionModelpublic void setStatus(int status)
setStatus in interface TrashVersionModelstatus - the status of this trash versionpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<TrashVersion>isNew in interface TrashVersionModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<TrashVersion>setNew in interface TrashVersionModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<TrashVersion>isCachedModel in interface TrashVersionModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<TrashVersion>setCachedModel in interface TrashVersionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<TrashVersion>isEscapedModel in interface TrashVersionModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<TrashVersion>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface TrashVersionModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<TrashVersion>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface TrashVersionModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<TrashVersion>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface TrashVersionModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<TrashVersion>setExpandoBridgeAttributes in interface TrashVersionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<TrashVersion>setExpandoBridgeAttributes in interface TrashVersionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<TrashVersion>setExpandoBridgeAttributes in interface TrashVersionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<TrashVersion>clone in interface TrashVersionModelclone in class Objectpublic int compareTo(TrashVersion trashVersion)
compareTo in interface TrashVersionModelcompareTo in interface Comparable<TrashVersion>public int hashCode()
hashCode in interface TrashVersionModelhashCode in class Objectpublic CacheModel<TrashVersion> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<TrashVersion>toCacheModel in interface TrashVersionModelpublic TrashVersion toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<TrashVersion>toEscapedModel in interface TrashVersionModelAutoEscapeBeanHandlerpublic TrashVersion toUnescapedModel()
toUnescapedModel in interface BaseModel<TrashVersion>toUnescapedModel in interface TrashVersionModelpublic String toString()
toString in interface TrashVersionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<TrashVersion>toXmlString in interface TrashVersionModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(Object obj)
equals in class Objectpublic TrashVersion getWrappedTrashVersion()
getWrappedModel()
public TrashVersion getWrappedModel()
getWrappedModel in interface ModelWrapper<TrashVersion>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<TrashVersion>
|
Liferay 6.2.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||