@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 pk 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 pk 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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<RatingsStats>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<RatingsStats>
public Object clone()
BaseModel
clone
in interface BaseModel<RatingsStats>
clone
in interface RatingsStatsModel
clone
in class Object
public int compareTo(RatingsStats ratingsStats)
compareTo
in interface RatingsStatsModel
compareTo
in interface Comparable<RatingsStats>
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 ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<RatingsStats>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface RatingsStatsModel
public long getPrimaryKey()
getPrimaryKey
in interface RatingsStatsModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<RatingsStats>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
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 int hashCode()
hashCode
in interface RatingsStatsModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<RatingsStats>
isCachedModel
in interface RatingsStatsModel
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<RatingsStats>
isEscapedModel
in interface RatingsStatsModel
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<RatingsStats>
isNew
in interface RatingsStatsModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic 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 setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<RatingsStats>
setCachedModel
in interface RatingsStatsModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public 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 setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<RatingsStats>
setExpandoBridgeAttributes
in interface RatingsStatsModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<RatingsStats>
setExpandoBridgeAttributes
in interface RatingsStatsModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<RatingsStats>
setExpandoBridgeAttributes
in interface RatingsStatsModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<RatingsStats>
setNew
in interface RatingsStatsModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface RatingsStatsModel
primaryKey
- the primary key of this ratings statspublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<RatingsStats>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface RatingsStatsModel
primaryKeyObj
- the primary key of this model instancepublic 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 CacheModel<RatingsStats> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<RatingsStats>
toCacheModel
in interface RatingsStatsModel
public RatingsStats toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<RatingsStats>
toEscapedModel
in interface RatingsStatsModel
AutoEscapeBeanHandler
public String toString()
toString
in interface RatingsStatsModel
toString
in class Object
public RatingsStats toUnescapedModel()
toUnescapedModel
in interface BaseModel<RatingsStats>
toUnescapedModel
in interface RatingsStatsModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<RatingsStats>
toXmlString
in interface RatingsStatsModel
public boolean equals(Object obj)
equals
in class Object
public RatingsStats getWrappedModel()
getWrappedModel
in interface ModelWrapper<RatingsStats>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<RatingsStats>