|
Liferay 6.2.0-ce-b3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.ratings.model.RatingsStatsWrapper
public class RatingsStatsWrapper
This class is a wrapper for RatingsStats.
RatingsStats,
Serialized Form| Constructor Summary | |
|---|---|
RatingsStatsWrapper(RatingsStats ratingsStats)
|
|
| Method Summary | |
|---|---|
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. |
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()
|
RatingsStats |
getWrappedRatingsStats()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
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 |
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RatingsStatsWrapper(RatingsStats ratingsStats)
| Method Detail |
|---|
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 long getPrimaryKey()
getPrimaryKey in interface RatingsStatsModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface RatingsStatsModelprimaryKey - the primary key of this ratings statspublic long getStatsId()
getStatsId in interface RatingsStatsModelpublic void setStatsId(long statsId)
setStatsId in interface RatingsStatsModelstatsId - the stats ID of this ratings statspublic String getClassName()
getClassName in interface TypedModelgetClassName in interface RatingsStatsModelpublic void setClassName(String className)
setClassName in interface RatingsStatsModelpublic long getClassNameId()
getClassNameId in interface TypedModelgetClassNameId in interface RatingsStatsModelpublic void setClassNameId(long classNameId)
setClassNameId in interface TypedModelsetClassNameId in interface RatingsStatsModelclassNameId - the class name ID of this ratings statspublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface RatingsStatsModelpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface RatingsStatsModelclassPK - the class p k of this ratings statspublic int getTotalEntries()
getTotalEntries in interface RatingsStatsModelpublic void setTotalEntries(int totalEntries)
setTotalEntries in interface RatingsStatsModeltotalEntries - the total entries of this ratings statspublic double getTotalScore()
getTotalScore in interface RatingsStatsModelpublic void setTotalScore(double totalScore)
setTotalScore in interface RatingsStatsModeltotalScore - the total score of this ratings statspublic double getAverageScore()
getAverageScore in interface RatingsStatsModelpublic void setAverageScore(double averageScore)
setAverageScore in interface RatingsStatsModelaverageScore - the average score of this ratings statspublic 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 void setNew(boolean n)
BaseModel
setNew in interface BaseModel<RatingsStats>setNew in interface RatingsStatsModeln - whether this model instance does not yet exist in the databasepublic 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 void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<RatingsStats>setCachedModel in interface RatingsStatsModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic 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 Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<RatingsStats>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface RatingsStatsModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<RatingsStats>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface RatingsStatsModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<RatingsStats>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RatingsStatsModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<RatingsStats>clone in interface RatingsStatsModelclone in class Objectpublic int compareTo(RatingsStats ratingsStats)
compareTo in interface RatingsStatsModelcompareTo in interface Comparable<RatingsStats>public int hashCode()
hashCode in interface RatingsStatsModelhashCode in class Objectpublic CacheModel<RatingsStats> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<RatingsStats>toCacheModel in interface RatingsStatsModelpublic RatingsStats toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<RatingsStats>toEscapedModel in interface RatingsStatsModelAutoEscapeBeanHandlerpublic RatingsStats toUnescapedModel()
toUnescapedModel in interface BaseModel<RatingsStats>toUnescapedModel in interface RatingsStatsModelpublic String toString()
toString in interface RatingsStatsModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<RatingsStats>toXmlString in interface RatingsStatsModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(Object obj)
equals in class Objectpublic RatingsStats getWrappedRatingsStats()
getWrappedModel()
public RatingsStats getWrappedModel()
getWrappedModel in interface ModelWrapper<RatingsStats>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<RatingsStats>
|
Liferay 6.2.0-ce-b3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||