|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.trash.model.TrashVersionWrapper
@ProviderType public class TrashVersionWrapper
This class is a wrapper for TrashVersion
.
TrashVersion
,
Serialized FormConstructor 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 |
---|
public TrashVersionWrapper(TrashVersion trashVersion)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 TrashVersionModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface TrashVersionModel
primaryKey
- the primary key of this trash versionpublic long getVersionId()
getVersionId
in interface TrashVersionModel
public void setVersionId(long versionId)
setVersionId
in interface TrashVersionModel
versionId
- the version ID of this trash versionpublic long getEntryId()
getEntryId
in interface TrashVersionModel
public void setEntryId(long entryId)
setEntryId
in interface TrashVersionModel
entryId
- the entry ID of this trash versionpublic String getClassName()
getClassName
in interface TypedModel
getClassName
in interface TrashVersionModel
public void setClassName(String className)
setClassName
in interface TrashVersionModel
public long getClassNameId()
getClassNameId
in interface TypedModel
getClassNameId
in interface TrashVersionModel
public void setClassNameId(long classNameId)
setClassNameId
in interface TypedModel
setClassNameId
in interface TrashVersionModel
classNameId
- the class name ID of this trash versionpublic long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface TrashVersionModel
public void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface TrashVersionModel
classPK
- the class p k of this trash versionpublic String getTypeSettings()
getTypeSettings
in interface TrashVersionModel
public void setTypeSettings(String typeSettings)
setTypeSettings
in interface TrashVersionModel
typeSettings
- the type settings of this trash versionpublic int getStatus()
getStatus
in interface TrashVersionModel
public void setStatus(int status)
setStatus
in interface TrashVersionModel
status
- the status of this trash versionpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<TrashVersion>
isNew
in interface TrashVersionModel
true
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 TrashVersionModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<TrashVersion>
isCachedModel
in interface TrashVersionModel
true
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 TrashVersionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<TrashVersion>
isEscapedModel
in interface TrashVersionModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<TrashVersion>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface TrashVersionModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<TrashVersion>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface TrashVersionModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<TrashVersion>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface TrashVersionModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
setExpandoBridgeAttributes
in interface TrashVersionModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
setExpandoBridgeAttributes
in interface TrashVersionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
setExpandoBridgeAttributes
in interface TrashVersionModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<TrashVersion>
clone
in interface TrashVersionModel
clone
in class Object
public int compareTo(TrashVersion trashVersion)
compareTo
in interface TrashVersionModel
compareTo
in interface Comparable<TrashVersion>
public int hashCode()
hashCode
in interface TrashVersionModel
hashCode
in class Object
public CacheModel<TrashVersion> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<TrashVersion>
toCacheModel
in interface TrashVersionModel
public TrashVersion toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<TrashVersion>
toEscapedModel
in interface TrashVersionModel
AutoEscapeBeanHandler
public TrashVersion toUnescapedModel()
toUnescapedModel
in interface BaseModel<TrashVersion>
toUnescapedModel
in interface TrashVersionModel
public String toString()
toString
in interface TrashVersionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<TrashVersion>
toXmlString
in interface TrashVersionModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperties
in interface TrashVersion
public String getTypeSettingsProperty(String key)
getTypeSettingsProperty
in interface TrashVersion
public String getTypeSettingsProperty(String key, String defaultValue)
getTypeSettingsProperty
in interface TrashVersion
public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
setTypeSettingsProperties
in interface TrashVersion
public boolean equals(Object obj)
equals
in class Object
public TrashVersion getWrappedTrashVersion()
getWrappedModel()
public TrashVersion getWrappedModel()
getWrappedModel
in interface ModelWrapper<TrashVersion>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<TrashVersion>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |