public class RatingsStatsWrapper extends BaseModelWrapper<RatingsStats> implements ModelWrapper<RatingsStats>, RatingsStats
This class is a wrapper for RatingsStats
.
RatingsStats
,
Serialized Formmodel
STATS_ID_ACCESSOR
Constructor and Description |
---|
RatingsStatsWrapper(RatingsStats ratingsStats) |
Modifier and Type | Method and Description |
---|---|
RatingsStats |
cloneWithOriginalValues() |
Map<String,Function<RatingsStats,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<RatingsStats,Object>> |
getAttributeSetterBiConsumers() |
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 pk of this ratings stats.
|
long |
getCompanyId()
Returns the company ID of this ratings stats.
|
Date |
getCreateDate()
Returns the create date of this ratings stats.
|
long |
getCtCollectionId()
Returns the ct collection ID of this ratings stats.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this ratings stats.
|
long |
getMvccVersion()
Returns the mvcc version of this ratings stats.
|
long |
getPrimaryKey()
Returns the primary key of this ratings stats.
|
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.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setAverageScore(double averageScore)
Sets the average score of this ratings stats.
|
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this ratings stats.
|
void |
setClassPK(long classPK)
Sets the class pk of this ratings stats.
|
void |
setCompanyId(long companyId)
Sets the company ID of this ratings stats.
|
void |
setCreateDate(Date createDate)
Sets the create date of this ratings stats.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this ratings stats.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this ratings stats.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this ratings stats.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this ratings stats.
|
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.
|
protected RatingsStatsWrapper |
wrap(RatingsStats ratingsStats) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
public RatingsStatsWrapper(RatingsStats ratingsStats)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<RatingsStats>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<RatingsStats>
public RatingsStats cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<RatingsStats>
cloneWithOriginalValues
in interface RatingsStatsModel
public double getAverageScore()
getAverageScore
in interface RatingsStatsModel
public String getClassName()
getClassName
in interface TypedModel
getClassName
in interface RatingsStatsModel
public long getClassNameId()
getClassNameId
in interface TypedModel
getClassNameId
in interface RatingsStatsModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface RatingsStatsModel
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface RatingsStatsModel
public Date getCreateDate()
getCreateDate
in interface RatingsStatsModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<RatingsStats>
getCtCollectionId
in interface RatingsStatsModel
public Date getModifiedDate()
getModifiedDate
in interface RatingsStatsModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface RatingsStatsModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<RatingsStats>
getPrimaryKey
in interface RatingsStatsModel
public long getStatsId()
getStatsId
in interface RatingsStatsModel
public int getTotalEntries()
getTotalEntries
in interface RatingsStatsModel
public double getTotalScore()
getTotalScore
in interface RatingsStatsModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setAverageScore(double averageScore)
setAverageScore
in interface RatingsStatsModel
averageScore
- the average score of this ratings statspublic void setClassName(String className)
setClassName
in interface RatingsStatsModel
public void setClassNameId(long classNameId)
setClassNameId
in interface TypedModel
setClassNameId
in interface RatingsStatsModel
classNameId
- the class name ID of this ratings statspublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface RatingsStatsModel
classPK
- the class pk of this ratings statspublic void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface RatingsStatsModel
companyId
- the company ID of this ratings statspublic void setCreateDate(Date createDate)
setCreateDate
in interface RatingsStatsModel
createDate
- the create date of this ratings statspublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<RatingsStats>
setCtCollectionId
in interface RatingsStatsModel
ctCollectionId
- the ct collection ID of this ratings statspublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface RatingsStatsModel
modifiedDate
- the modified date of this ratings statspublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface RatingsStatsModel
mvccVersion
- the mvcc version of this ratings statspublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<RatingsStats>
setPrimaryKey
in interface RatingsStatsModel
primaryKey
- the primary key of this ratings statspublic void setStatsId(long statsId)
setStatsId
in interface RatingsStatsModel
statsId
- the stats ID of this ratings statspublic void setTotalEntries(int totalEntries)
setTotalEntries
in interface RatingsStatsModel
totalEntries
- the total entries of this ratings statspublic void setTotalScore(double totalScore)
setTotalScore
in interface RatingsStatsModel
totalScore
- the total score of this ratings statspublic Map<String,Function<RatingsStats,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<RatingsStats>
public Map<String,BiConsumer<RatingsStats,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<RatingsStats>
protected RatingsStatsWrapper wrap(RatingsStats ratingsStats)
wrap
in class BaseModelWrapper<RatingsStats>