@ProviderType public class RatingsEntryWrapper extends Object implements RatingsEntry, ModelWrapper<RatingsEntry>
This class is a wrapper for RatingsEntry
.
RatingsEntry
,
Serialized FormENTRY_ID_ACCESSOR
Constructor and Description |
---|
RatingsEntryWrapper(RatingsEntry ratingsEntry) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(RatingsEntry ratingsEntry) |
boolean |
equals(Object obj) |
String |
getClassName()
Returns the fully qualified class name of this ratings entry.
|
long |
getClassNameId()
Returns the class name ID of this ratings entry.
|
long |
getClassPK()
Returns the class pk of this ratings entry.
|
long |
getCompanyId()
Returns the company ID of this ratings entry.
|
Date |
getCreateDate()
Returns the create date of this ratings entry.
|
long |
getEntryId()
Returns the entry ID of this ratings entry.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this ratings entry.
|
long |
getPrimaryKey()
Returns the primary key of this ratings entry.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
double |
getScore()
Returns the score of this ratings entry.
|
StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this ratings entry.
|
String |
getUserName()
Returns the user name of this ratings entry.
|
String |
getUserUuid()
Returns the user uuid of this ratings entry.
|
String |
getUuid()
Returns the uuid of this ratings entry.
|
RatingsEntry |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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 ratings entry.
|
void |
setClassPK(long classPK)
Sets the class pk of this ratings entry.
|
void |
setCompanyId(long companyId)
Sets the company ID of this ratings entry.
|
void |
setCreateDate(Date createDate)
Sets the create date of this ratings entry.
|
void |
setEntryId(long entryId)
Sets the entry ID of this ratings entry.
|
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 |
setModifiedDate(Date modifiedDate)
Sets the modified date of this ratings entry.
|
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 ratings entry.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setScore(double score)
Sets the score of this ratings entry.
|
void |
setUserId(long userId)
Sets the user ID of this ratings entry.
|
void |
setUserName(String userName)
Sets the user name of this ratings entry.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this ratings entry.
|
void |
setUuid(String uuid)
Sets the uuid of this ratings entry.
|
CacheModel<RatingsEntry> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
RatingsEntry |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
RatingsEntry |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public RatingsEntryWrapper(RatingsEntry ratingsEntry)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<RatingsEntry>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<RatingsEntry>
public Object clone()
BaseModel
clone
in interface BaseModel<RatingsEntry>
clone
in interface StagedModel
clone
in interface RatingsEntryModel
clone
in class Object
public int compareTo(RatingsEntry ratingsEntry)
compareTo
in interface RatingsEntryModel
compareTo
in interface Comparable<RatingsEntry>
public String getClassName()
getClassName
in interface TypedModel
getClassName
in interface RatingsEntryModel
public long getClassNameId()
getClassNameId
in interface TypedModel
getClassNameId
in interface RatingsEntryModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface RatingsEntryModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
getCompanyId
in interface RatingsEntryModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
getCreateDate
in interface RatingsEntryModel
public long getEntryId()
getEntryId
in interface RatingsEntryModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<RatingsEntry>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface RatingsEntryModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
getModifiedDate
in interface RatingsEntryModel
public long getPrimaryKey()
getPrimaryKey
in interface RatingsEntryModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<RatingsEntry>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface RatingsEntryModel
public double getScore()
getScore
in interface RatingsEntryModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface RatingsEntryModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface RatingsEntryModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface RatingsEntryModel
public String getUuid()
getUuid
in interface StagedModel
getUuid
in interface RatingsEntryModel
public int hashCode()
hashCode
in interface RatingsEntryModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<RatingsEntry>
isCachedModel
in interface RatingsEntryModel
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<RatingsEntry>
isEscapedModel
in interface RatingsEntryModel
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<RatingsEntry>
isNew
in interface RatingsEntryModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<RatingsEntry>
setCachedModel
in interface RatingsEntryModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface RatingsEntryModel
public void setClassNameId(long classNameId)
setClassNameId
in interface TypedModel
setClassNameId
in interface RatingsEntryModel
classNameId
- the class name ID of this ratings entrypublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface RatingsEntryModel
classPK
- the class pk of this ratings entrypublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
setCompanyId
in interface RatingsEntryModel
companyId
- the company ID of this ratings entrypublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
setCreateDate
in interface RatingsEntryModel
createDate
- the create date of this ratings entrypublic void setEntryId(long entryId)
setEntryId
in interface RatingsEntryModel
entryId
- the entry ID of this ratings entrypublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<RatingsEntry>
setExpandoBridgeAttributes
in interface RatingsEntryModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<RatingsEntry>
setExpandoBridgeAttributes
in interface RatingsEntryModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<RatingsEntry>
setExpandoBridgeAttributes
in interface RatingsEntryModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
setModifiedDate
in interface RatingsEntryModel
modifiedDate
- the modified date of this ratings entrypublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<RatingsEntry>
setNew
in interface RatingsEntryModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface RatingsEntryModel
primaryKey
- the primary key of this ratings entrypublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<RatingsEntry>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface RatingsEntryModel
primaryKeyObj
- the primary key of this model instancepublic void setScore(double score)
setScore
in interface RatingsEntryModel
score
- the score of this ratings entrypublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface RatingsEntryModel
userId
- the user ID of this ratings entrypublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface RatingsEntryModel
userName
- the user name of this ratings entrypublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface RatingsEntryModel
userUuid
- the user uuid of this ratings entrypublic void setUuid(String uuid)
setUuid
in interface StagedModel
setUuid
in interface RatingsEntryModel
uuid
- the uuid of this ratings entrypublic CacheModel<RatingsEntry> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<RatingsEntry>
toCacheModel
in interface RatingsEntryModel
public RatingsEntry toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<RatingsEntry>
toEscapedModel
in interface RatingsEntryModel
AutoEscapeBeanHandler
public String toString()
toString
in interface RatingsEntryModel
toString
in class Object
public RatingsEntry toUnescapedModel()
toUnescapedModel
in interface BaseModel<RatingsEntry>
toUnescapedModel
in interface RatingsEntryModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<RatingsEntry>
toXmlString
in interface RatingsEntryModel
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public RatingsEntry getWrappedModel()
getWrappedModel
in interface ModelWrapper<RatingsEntry>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<RatingsEntry>
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<RatingsEntry>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<RatingsEntry>