|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.ratings.model.RatingsStatsWrapper
public class RatingsStatsWrapper
This class is a wrapper for RatingsStats
.
RatingsStats
,
Serialized FormConstructor 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 RatingsStatsModel
public void setPrimaryKey(long pk)
RatingsStatsModel
setPrimaryKey
in interface RatingsStatsModel
pk
- the primary key of this ratings statspublic long getStatsId()
RatingsStatsModel
getStatsId
in interface RatingsStatsModel
public void setStatsId(long statsId)
RatingsStatsModel
setStatsId
in interface RatingsStatsModel
statsId
- the stats id of this ratings statspublic String getClassName()
RatingsStatsModel
getClassName
in interface RatingsStatsModel
public long getClassNameId()
RatingsStatsModel
getClassNameId
in interface RatingsStatsModel
public void setClassNameId(long classNameId)
RatingsStatsModel
setClassNameId
in interface RatingsStatsModel
classNameId
- the class name id of this ratings statspublic long getClassPK()
RatingsStatsModel
getClassPK
in interface RatingsStatsModel
public void setClassPK(long classPK)
RatingsStatsModel
setClassPK
in interface RatingsStatsModel
classPK
- the class p k of this ratings statspublic int getTotalEntries()
RatingsStatsModel
getTotalEntries
in interface RatingsStatsModel
public void setTotalEntries(int totalEntries)
RatingsStatsModel
setTotalEntries
in interface RatingsStatsModel
totalEntries
- the total entries of this ratings statspublic double getTotalScore()
RatingsStatsModel
getTotalScore
in interface RatingsStatsModel
public void setTotalScore(double totalScore)
RatingsStatsModel
setTotalScore
in interface RatingsStatsModel
totalScore
- the total score of this ratings statspublic double getAverageScore()
RatingsStatsModel
getAverageScore
in interface RatingsStatsModel
public void setAverageScore(double averageScore)
RatingsStatsModel
setAverageScore
in interface RatingsStatsModel
averageScore
- the average score of this ratings statspublic RatingsStats toEscapedModel()
RatingsStatsModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface RatingsStatsModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<RatingsStats>
isNew
in interface RatingsStatsModel
true
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 RatingsStatsModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
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 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 boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<RatingsStats>
isEscapedModel
in interface RatingsStatsModel
true
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 RatingsStatsModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<RatingsStats>
getPrimaryKeyObj
in interface RatingsStatsModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<RatingsStats>
getExpandoBridge
in interface RatingsStatsModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<RatingsStats>
setExpandoBridgeAttributes
in interface RatingsStatsModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
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 int hashCode()
hashCode
in interface RatingsStatsModel
hashCode
in class Object
public String toString()
toString
in interface RatingsStatsModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<RatingsStats>
toXmlString
in interface RatingsStatsModel
public RatingsStats getWrappedRatingsStats()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |