|
Liferay 6.2-ce-ga5 | |||||||||
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
@ProviderType 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)
|
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 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 long getPrimaryKey()
getPrimaryKey
in interface RatingsStatsModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface RatingsStatsModel
primaryKey
- the primary key of this ratings statspublic long getStatsId()
getStatsId
in interface RatingsStatsModel
public void setStatsId(long statsId)
setStatsId
in interface RatingsStatsModel
statsId
- the stats ID of this ratings statspublic String getClassName()
getClassName
in interface TypedModel
getClassName
in interface RatingsStatsModel
public void setClassName(String className)
setClassName
in interface RatingsStatsModel
public long getClassNameId()
getClassNameId
in interface TypedModel
getClassNameId
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 long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface RatingsStatsModel
public void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface RatingsStatsModel
classPK
- the class p k of this ratings statspublic int getTotalEntries()
getTotalEntries
in interface RatingsStatsModel
public void setTotalEntries(int totalEntries)
setTotalEntries
in interface RatingsStatsModel
totalEntries
- the total entries of this ratings statspublic double getTotalScore()
getTotalScore
in interface RatingsStatsModel
public void setTotalScore(double totalScore)
setTotalScore
in interface RatingsStatsModel
totalScore
- the total score of this ratings statspublic double getAverageScore()
getAverageScore
in interface RatingsStatsModel
public void setAverageScore(double averageScore)
setAverageScore
in interface RatingsStatsModel
averageScore
- the average score of this ratings statspublic 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 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
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 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
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 Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<RatingsStats>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface RatingsStatsModel
public 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 ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<RatingsStats>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface RatingsStatsModel
public 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 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 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 RatingsStats toUnescapedModel()
toUnescapedModel
in interface BaseModel<RatingsStats>
toUnescapedModel
in interface RatingsStatsModel
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public RatingsStats getWrappedRatingsStats()
getWrappedModel()
public RatingsStats getWrappedModel()
getWrappedModel
in interface ModelWrapper<RatingsStats>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<RatingsStats>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |