@ProviderType public interface TrashVersionModel extends AttachedModel, BaseModel<TrashVersion>, ShardedModel
This interface and its corresponding implementation TrashVersionModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in TrashVersionImpl
.
TrashVersion
,
TrashVersionImpl
,
TrashVersionModelImpl
Modifier and Type | Method and Description |
---|---|
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 pk of this trash version.
|
long |
getCompanyId()
Returns the company ID of this trash version.
|
long |
getEntryId()
Returns the entry ID of this trash version.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
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.
|
long |
getVersionId()
Returns the version ID of this trash version.
|
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 |
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 pk of this trash version.
|
void |
setCompanyId(long companyId)
Sets the company ID 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 |
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 |
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.
|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
getModelClass, getModelClassName
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey
- the primary key of this trash versionlong getVersionId()
void setVersionId(long versionId)
versionId
- the version ID of this trash versionlong getCompanyId()
getCompanyId
in interface ShardedModel
void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
companyId
- the company ID of this trash versionlong getEntryId()
void setEntryId(long entryId)
entryId
- the entry ID of this trash versionString getClassName()
getClassName
in interface TypedModel
void setClassName(String className)
long getClassNameId()
getClassNameId
in interface TypedModel
void setClassNameId(long classNameId)
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this trash versionlong getClassPK()
getClassPK
in interface AttachedModel
void setClassPK(long classPK)
setClassPK
in interface AttachedModel
classPK
- the class pk of this trash version@AutoEscape String getTypeSettings()
void setTypeSettings(String typeSettings)
typeSettings
- the type settings of this trash versionint getStatus()
void setStatus(int status)
status
- the status of this trash versionboolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<TrashVersion>
true
if this model instance does not yet exist in
the database; false
otherwisevoid setNew(boolean n)
BaseModel
setNew
in interface BaseModel<TrashVersion>
n
- whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<TrashVersion>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<TrashVersion>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<TrashVersion>
true
if this model instance is escaped;
false
otherwiseSerializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<TrashVersion>
getPrimaryKeyObj
in interface ClassedModel
void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<TrashVersion>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<TrashVersion>
getExpandoBridge
in interface ClassedModel
void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<TrashVersion>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
Object clone()
BaseModel
clone
in interface BaseModel<TrashVersion>
int compareTo(TrashVersion trashVersion)
compareTo
in interface Comparable<TrashVersion>
int hashCode()
hashCode
in class Object
CacheModel<TrashVersion> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<TrashVersion>
TrashVersion toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<TrashVersion>
AutoEscapeBeanHandler
TrashVersion toUnescapedModel()
toUnescapedModel
in interface BaseModel<TrashVersion>
String toString()
toString
in class Object
String toXmlString()
BaseModel
toXmlString
in interface BaseModel<TrashVersion>