com.liferay.trash.model.impl.TrashVersionImpl
@Deprecated public class TrashVersionWrapper extends Object implements TrashVersion, ModelWrapper<TrashVersion>
This class is a wrapper for TrashVersion
.
TrashVersion
,
Serialized FormVERSION_ID_ACCESSOR
Constructor and Description |
---|
TrashVersionWrapper(TrashVersion trashVersion)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Creates a shallow clone of this model instance.
|
int |
compareTo(TrashVersion trashVersion)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
String |
getClassName()
Deprecated.
Returns the fully qualified class name of this trash version.
|
long |
getClassNameId()
Deprecated.
Returns the class name ID of this trash version.
|
long |
getClassPK()
Deprecated.
Returns the class pk of this trash version.
|
long |
getCompanyId()
Deprecated.
Returns the company ID of this trash version.
|
long |
getEntryId()
Deprecated.
Returns the entry ID of this trash version.
|
ExpandoBridge |
getExpandoBridge()
Deprecated.
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes()
Deprecated.
|
Class<?> |
getModelClass()
Deprecated.
|
String |
getModelClassName()
Deprecated.
|
long |
getPrimaryKey()
Deprecated.
Returns the primary key of this trash version.
|
Serializable |
getPrimaryKeyObj()
Deprecated.
Returns the primary key of this model instance.
|
int |
getStatus()
Deprecated.
Returns the status of this trash version.
|
String |
getTypeSettings()
Deprecated.
Returns the type settings of this trash version.
|
UnicodeProperties |
getTypeSettingsProperties()
Deprecated.
|
String |
getTypeSettingsProperty(String key)
Deprecated.
|
String |
getTypeSettingsProperty(String key,
String defaultValue)
Deprecated.
|
long |
getVersionId()
Deprecated.
Returns the version ID of this trash version.
|
TrashVersion |
getWrappedModel()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isCachedModel()
Deprecated.
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Deprecated.
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Deprecated.
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Deprecated.
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Deprecated.
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Deprecated.
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Deprecated.
Reset all original fields to current values.
|
void |
setCachedModel(boolean cachedModel)
Deprecated.
Sets whether this model instance was retrieved from the entity cache.
|
void |
setClassName(String className)
Deprecated.
|
void |
setClassNameId(long classNameId)
Deprecated.
Sets the class name ID of this trash version.
|
void |
setClassPK(long classPK)
Deprecated.
Sets the class pk of this trash version.
|
void |
setCompanyId(long companyId)
Deprecated.
Sets the company ID of this trash version.
|
void |
setEntryId(long entryId)
Deprecated.
Sets the entry ID of this trash version.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
Deprecated.
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Deprecated.
|
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Deprecated.
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setModelAttributes(Map<String,Object> attributes)
Deprecated.
|
void |
setNew(boolean n)
Deprecated.
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Deprecated.
Sets the primary key of this trash version.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Deprecated.
Sets the primary key of this model instance.
|
void |
setStatus(int status)
Deprecated.
Sets the status of this trash version.
|
void |
setTypeSettings(String typeSettings)
Deprecated.
Sets the type settings of this trash version.
|
void |
setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
Deprecated.
|
void |
setVersionId(long versionId)
Deprecated.
Sets the version ID of this trash version.
|
CacheModel<TrashVersion> |
toCacheModel()
Deprecated.
Returns a cache model object for this entity used by entity cache.
|
TrashVersion |
toEscapedModel()
Deprecated.
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString()
Deprecated.
|
TrashVersion |
toUnescapedModel()
Deprecated.
|
String |
toXmlString()
Deprecated.
Returns the XML representation of this model instance.
|
public TrashVersionWrapper(TrashVersion trashVersion)
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 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 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 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 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 ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<TrashVersion>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface TrashVersionModel
public CacheModel<TrashVersion> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<TrashVersion>
toCacheModel
in interface TrashVersionModel
public UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperties
in interface TrashVersion
public int compareTo(TrashVersion trashVersion)
compareTo
in interface TrashVersionModel
compareTo
in interface Comparable<TrashVersion>
public int getStatus()
getStatus
in interface TrashVersionModel
public int hashCode()
hashCode
in interface TrashVersionModel
hashCode
in class Object
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<TrashVersion>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface TrashVersionModel
public Object clone()
BaseModel
clone
in interface BaseModel<TrashVersion>
clone
in interface TrashVersionModel
clone
in class Object
public String getClassName()
getClassName
in interface TypedModel
getClassName
in interface TrashVersionModel
public String getTypeSettings()
getTypeSettings
in interface TrashVersionModel
public String getTypeSettingsProperty(String key)
getTypeSettingsProperty
in interface TrashVersion
public String getTypeSettingsProperty(String key, String defaultValue)
getTypeSettingsProperty
in interface TrashVersion
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 long getClassNameId()
getClassNameId
in interface TypedModel
getClassNameId
in interface TrashVersionModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface TrashVersionModel
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface TrashVersionModel
public long getEntryId()
getEntryId
in interface TrashVersionModel
public long getPrimaryKey()
getPrimaryKey
in interface TrashVersionModel
public long getVersionId()
getVersionId
in interface TrashVersionModel
public void persist()
PersistedModel
persist
in interface PersistedModel
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 void setClassName(String className)
setClassName
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 void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface TrashVersionModel
classPK
- the class pk of this trash versionpublic void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface TrashVersionModel
companyId
- the company ID of this trash versionpublic void setEntryId(long entryId)
setEntryId
in interface TrashVersionModel
entryId
- the entry ID of this trash versionpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
setExpandoBridgeAttributes
in interface TrashVersionModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
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 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 void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface TrashVersionModel
primaryKey
- the primary key of this trash versionpublic 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 void setStatus(int status)
setStatus
in interface TrashVersionModel
status
- the status of this trash versionpublic void setTypeSettings(String typeSettings)
setTypeSettings
in interface TrashVersionModel
typeSettings
- the type settings of this trash versionpublic void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
setTypeSettingsProperties
in interface TrashVersion
public void setVersionId(long versionId)
setVersionId
in interface TrashVersionModel
versionId
- the version ID of this trash versionpublic boolean equals(Object obj)
equals
in class Object
public TrashVersion getWrappedModel()
getWrappedModel
in interface ModelWrapper<TrashVersion>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<TrashVersion>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<TrashVersion>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<TrashVersion>