Package com.liferay.ratings.kernel.model
Class RatingsStatsWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<RatingsStats>
com.liferay.ratings.kernel.model.RatingsStatsWrapper
- All Implemented Interfaces:
AttachedModel
,BaseModel<RatingsStats>
,CTModel<RatingsStats>
,ClassedModel
,ModelWrapper<RatingsStats>
,MVCCModel
,PersistedModel
,ShardedModel
,TypedModel
,RatingsStats
,RatingsStatsModel
,Serializable
,Cloneable
,Comparable<RatingsStats>
public class RatingsStatsWrapper
extends BaseModelWrapper<RatingsStats>
implements ModelWrapper<RatingsStats>, RatingsStats
This class is a wrapper for RatingsStats
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.ratings.kernel.model.RatingsStats
STATS_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the average score of this ratings stats.Returns the fully qualified class name of this ratings stats.long
Returns the class name ID of this ratings stats.long
Returns the class pk of this ratings stats.long
Returns the company ID of this ratings stats.Returns the create date of this ratings stats.long
Returns the ct collection ID of this ratings stats.Returns the modified date of this ratings stats.long
Returns the mvcc version of this ratings stats.long
Returns the primary key of this ratings stats.long
Returns the stats ID of this ratings stats.int
Returns the total entries of this ratings stats.double
Returns the total score of this ratings stats.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setAverageScore
(double averageScore) Sets the average score of this ratings stats.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
setCreateDate
(Date createDate) Sets the create date of this ratings stats.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this ratings stats.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this ratings stats.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this ratings stats.void
setPrimaryKey
(long primaryKey) 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.protected RatingsStatsWrapper
wrap
(RatingsStats ratingsStats) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
RatingsStatsWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<RatingsStats>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<RatingsStats>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<RatingsStats>
- Specified by:
cloneWithOriginalValues
in interfaceRatingsStatsModel
-
getAverageScore
public double getAverageScore()Returns the average score of this ratings stats.- Specified by:
getAverageScore
in interfaceRatingsStatsModel
- Returns:
- the average score of this ratings stats
-
getClassName
Returns the fully qualified class name of this ratings stats.- Specified by:
getClassName
in interfaceRatingsStatsModel
- Specified by:
getClassName
in interfaceTypedModel
- Returns:
- the fully qualified class name of this ratings stats
-
getClassNameId
public long getClassNameId()Returns the class name ID of this ratings stats.- Specified by:
getClassNameId
in interfaceRatingsStatsModel
- Specified by:
getClassNameId
in interfaceTypedModel
- Returns:
- the class name ID of this ratings stats
-
getClassPK
public long getClassPK()Returns the class pk of this ratings stats.- Specified by:
getClassPK
in interfaceAttachedModel
- Specified by:
getClassPK
in interfaceRatingsStatsModel
- Returns:
- the class pk of this ratings stats
-
getCompanyId
public long getCompanyId()Returns the company ID of this ratings stats.- Specified by:
getCompanyId
in interfaceRatingsStatsModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this ratings stats
-
getCreateDate
Returns the create date of this ratings stats.- Specified by:
getCreateDate
in interfaceRatingsStatsModel
- Returns:
- the create date of this ratings stats
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this ratings stats.- Specified by:
getCtCollectionId
in interfaceCTModel<RatingsStats>
- Specified by:
getCtCollectionId
in interfaceRatingsStatsModel
- Returns:
- the ct collection ID of this ratings stats
-
getModifiedDate
Returns the modified date of this ratings stats.- Specified by:
getModifiedDate
in interfaceRatingsStatsModel
- Returns:
- the modified date of this ratings stats
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this ratings stats.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfaceRatingsStatsModel
- Returns:
- the mvcc version of this ratings stats
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this ratings stats.- Specified by:
getPrimaryKey
in interfaceCTModel<RatingsStats>
- Specified by:
getPrimaryKey
in interfaceRatingsStatsModel
- Returns:
- the primary key of this ratings stats
-
getStatsId
public long getStatsId()Returns the stats ID of this ratings stats.- Specified by:
getStatsId
in interfaceRatingsStatsModel
- Returns:
- the stats ID of this ratings stats
-
getTotalEntries
public int getTotalEntries()Returns the total entries of this ratings stats.- Specified by:
getTotalEntries
in interfaceRatingsStatsModel
- Returns:
- the total entries of this ratings stats
-
getTotalScore
public double getTotalScore()Returns the total score of this ratings stats.- Specified by:
getTotalScore
in interfaceRatingsStatsModel
- Returns:
- the total score of this ratings stats
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setAverageScore
public void setAverageScore(double averageScore) Sets the average score of this ratings stats.- Specified by:
setAverageScore
in interfaceRatingsStatsModel
- Parameters:
averageScore
- the average score of this ratings stats
-
setClassName
- Specified by:
setClassName
in interfaceRatingsStatsModel
-
setClassNameId
public void setClassNameId(long classNameId) Sets the class name ID of this ratings stats.- Specified by:
setClassNameId
in interfaceRatingsStatsModel
- Specified by:
setClassNameId
in interfaceTypedModel
- Parameters:
classNameId
- the class name ID of this ratings stats
-
setClassPK
public void setClassPK(long classPK) Sets the class pk of this ratings stats.- Specified by:
setClassPK
in interfaceAttachedModel
- Specified by:
setClassPK
in interfaceRatingsStatsModel
- Parameters:
classPK
- the class pk of this ratings stats
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this ratings stats.- Specified by:
setCompanyId
in interfaceRatingsStatsModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Parameters:
companyId
- the company ID of this ratings stats
-
setCreateDate
Sets the create date of this ratings stats.- Specified by:
setCreateDate
in interfaceRatingsStatsModel
- Parameters:
createDate
- the create date of this ratings stats
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this ratings stats.- Specified by:
setCtCollectionId
in interfaceCTModel<RatingsStats>
- Specified by:
setCtCollectionId
in interfaceRatingsStatsModel
- Parameters:
ctCollectionId
- the ct collection ID of this ratings stats
-
setModifiedDate
Sets the modified date of this ratings stats.- Specified by:
setModifiedDate
in interfaceRatingsStatsModel
- Parameters:
modifiedDate
- the modified date of this ratings stats
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this ratings stats.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in interfaceRatingsStatsModel
- Parameters:
mvccVersion
- the mvcc version of this ratings stats
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this ratings stats.- Specified by:
setPrimaryKey
in interfaceCTModel<RatingsStats>
- Specified by:
setPrimaryKey
in interfaceRatingsStatsModel
- Parameters:
primaryKey
- the primary key of this ratings stats
-
setStatsId
public void setStatsId(long statsId) Sets the stats ID of this ratings stats.- Specified by:
setStatsId
in interfaceRatingsStatsModel
- Parameters:
statsId
- the stats ID of this ratings stats
-
setTotalEntries
public void setTotalEntries(int totalEntries) Sets the total entries of this ratings stats.- Specified by:
setTotalEntries
in interfaceRatingsStatsModel
- Parameters:
totalEntries
- the total entries of this ratings stats
-
setTotalScore
public void setTotalScore(double totalScore) Sets the total score of this ratings stats.- Specified by:
setTotalScore
in interfaceRatingsStatsModel
- Parameters:
totalScore
- the total score of this ratings stats
-
toXmlString
- Specified by:
toXmlString
in interfaceRatingsStatsModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<RatingsStats>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<RatingsStats>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<RatingsStats>
-