|
Liferay 6.0.4 | |||||||||
| 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)
|
double |
getAverageScore()
Gets the average score of this ratings stats. |
String |
getClassName()
Gets the class name of the model instance this ratings stats is polymorphically associated with. |
long |
getClassNameId()
Gets the class name id of this ratings stats. |
long |
getClassPK()
Gets the class p k of this ratings stats. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getPrimaryKey()
Gets the primary key of this ratings stats. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getStatsId()
Gets the stats id of this ratings stats. |
int |
getTotalEntries()
Gets the total entries of this ratings stats. |
double |
getTotalScore()
Gets the total score of this ratings stats. |
RatingsStats |
getWrappedRatingsStats()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
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 |
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 |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
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. |
RatingsStats |
toEscapedModel()
Gets a copy of this ratings stats as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RatingsStatsWrapper(RatingsStats ratingsStats)
| Method Detail |
|---|
public long getPrimaryKey()
RatingsStatsModel
getPrimaryKey in interface RatingsStatsModelpublic void setPrimaryKey(long pk)
RatingsStatsModel
setPrimaryKey in interface RatingsStatsModelpk - the primary key of this ratings statspublic long getStatsId()
RatingsStatsModel
getStatsId in interface RatingsStatsModelpublic void setStatsId(long statsId)
RatingsStatsModel
setStatsId in interface RatingsStatsModelstatsId - the stats id of this ratings statspublic String getClassName()
RatingsStatsModel
getClassName in interface RatingsStatsModelpublic long getClassNameId()
RatingsStatsModel
getClassNameId in interface RatingsStatsModelpublic void setClassNameId(long classNameId)
RatingsStatsModel
setClassNameId in interface RatingsStatsModelclassNameId - the class name id of this ratings statspublic long getClassPK()
RatingsStatsModel
getClassPK in interface RatingsStatsModelpublic void setClassPK(long classPK)
RatingsStatsModel
setClassPK in interface RatingsStatsModelclassPK - the class p k of this ratings statspublic int getTotalEntries()
RatingsStatsModel
getTotalEntries in interface RatingsStatsModelpublic void setTotalEntries(int totalEntries)
RatingsStatsModel
setTotalEntries in interface RatingsStatsModeltotalEntries - the total entries of this ratings statspublic double getTotalScore()
RatingsStatsModel
getTotalScore in interface RatingsStatsModelpublic void setTotalScore(double totalScore)
RatingsStatsModel
setTotalScore in interface RatingsStatsModeltotalScore - the total score of this ratings statspublic double getAverageScore()
RatingsStatsModel
getAverageScore in interface RatingsStatsModelpublic void setAverageScore(double averageScore)
RatingsStatsModel
setAverageScore in interface RatingsStatsModelaverageScore - the average score of this ratings statspublic RatingsStats toEscapedModel()
RatingsStatsModelAutoEscapeBeanHandler.
toEscapedModel in interface RatingsStatsModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
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()
BaseModel
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()
BaseModel
isEscapedModel in interface BaseModel<RatingsStats>isEscapedModel in interface RatingsStatsModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<RatingsStats>setEscapedModel in interface RatingsStatsModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<RatingsStats>getPrimaryKeyObj in interface RatingsStatsModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<RatingsStats>getExpandoBridge in interface RatingsStatsModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.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 String toString()
toString in interface RatingsStatsModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<RatingsStats>toXmlString in interface RatingsStatsModelpublic RatingsStats getWrappedRatingsStats()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||