@ProviderType public class RatingsStatsWrapper extends Object implements RatingsStats, ModelWrapper<RatingsStats>
This class is a wrapper for RatingsStats.
RatingsStats,
Serialized FormSTATS_ID_ACCESSOR| Constructor and Description |
|---|
RatingsStatsWrapper(RatingsStats ratingsStats) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(RatingsStats ratingsStats) |
boolean |
equals(Object obj) |
double |
getAverageScore()
Returns the average score of this ratings stats.
|
String |
getClassName()
Returns the fully qualified class name of this ratings stats.
|
long |
getClassNameId()
Returns the class name ID of this ratings stats.
|
long |
getClassPK()
Returns the class p k of this ratings stats.
|
long |
getCompanyId()
Returns the company ID of this ratings stats.
|
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 ratings stats.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getStatsId()
Returns the stats ID of this ratings stats.
|
int |
getTotalEntries()
Returns the total entries of this ratings stats.
|
double |
getTotalScore()
Returns the total score of this ratings stats.
|
RatingsStats |
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 |
setAverageScore(double averageScore)
Sets the average score of this ratings stats.
|
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 stats.
|
void |
setClassPK(long classPK)
Sets the class p k of this ratings stats.
|
void |
setCompanyId(long companyId)
Sets the company ID of this ratings stats.
|
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 ratings stats.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setStatsId(long statsId)
Sets the stats ID of this ratings stats.
|
void |
setTotalEntries(int totalEntries)
Sets the total entries of this ratings stats.
|
void |
setTotalScore(double totalScore)
Sets the total score of this ratings stats.
|
CacheModel<RatingsStats> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
RatingsStats |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
RatingsStats |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public RatingsStatsWrapper(RatingsStats ratingsStats)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<RatingsStats>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<RatingsStats>public RatingsStats toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<RatingsStats>toEscapedModel in interface RatingsStatsModelAutoEscapeBeanHandlerpublic RatingsStats toUnescapedModel()
toUnescapedModel in interface BaseModel<RatingsStats>toUnescapedModel in interface RatingsStatsModelpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<RatingsStats>isCachedModel in interface RatingsStatsModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<RatingsStats>isEscapedModel in interface RatingsStatsModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<RatingsStats>isNew in interface RatingsStatsModeltrue if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<RatingsStats>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RatingsStatsModelpublic CacheModel<RatingsStats> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<RatingsStats>toCacheModel in interface RatingsStatsModelpublic double getAverageScore()
getAverageScore in interface RatingsStatsModelpublic double getTotalScore()
getTotalScore in interface RatingsStatsModelpublic int compareTo(RatingsStats ratingsStats)
compareTo in interface RatingsStatsModelcompareTo in interface Comparable<RatingsStats>public int getTotalEntries()
getTotalEntries in interface RatingsStatsModelpublic int hashCode()
hashCode in interface RatingsStatsModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<RatingsStats>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface RatingsStatsModelpublic Object clone()
BaseModelclone in interface BaseModel<RatingsStats>clone in interface RatingsStatsModelclone in class Objectpublic String getClassName()
getClassName in interface TypedModelgetClassName in interface RatingsStatsModelpublic String toString()
toString in interface RatingsStatsModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<RatingsStats>toXmlString in interface RatingsStatsModelpublic long getClassNameId()
getClassNameId in interface TypedModelgetClassNameId in interface RatingsStatsModelpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface RatingsStatsModelpublic long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface RatingsStatsModelpublic long getPrimaryKey()
getPrimaryKey in interface RatingsStatsModelpublic long getStatsId()
getStatsId in interface RatingsStatsModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setAverageScore(double averageScore)
setAverageScore in interface RatingsStatsModelaverageScore - the average score of this ratings statspublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<RatingsStats>setCachedModel in interface RatingsStatsModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(String className)
setClassName in interface RatingsStatsModelpublic void setClassNameId(long classNameId)
setClassNameId in interface TypedModelsetClassNameId in interface RatingsStatsModelclassNameId - the class name ID of this ratings statspublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface RatingsStatsModelclassPK - the class p k of this ratings statspublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface RatingsStatsModelcompanyId - the company ID of this ratings statspublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setNew(boolean n)
BaseModelsetNew in interface BaseModel<RatingsStats>setNew in interface RatingsStatsModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface RatingsStatsModelprimaryKey - the primary key of this ratings statspublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<RatingsStats>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface RatingsStatsModelprimaryKeyObj - the primary key of this model instancepublic void setStatsId(long statsId)
setStatsId in interface RatingsStatsModelstatsId - the stats ID of this ratings statspublic void setTotalEntries(int totalEntries)
setTotalEntries in interface RatingsStatsModeltotalEntries - the total entries of this ratings statspublic void setTotalScore(double totalScore)
setTotalScore in interface RatingsStatsModeltotalScore - the total score of this ratings statspublic RatingsStats getWrappedModel()
getWrappedModel in interface ModelWrapper<RatingsStats>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<RatingsStats>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<RatingsStats>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<RatingsStats>