|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<RatingsStats>
com.liferay.portlet.ratings.model.impl.RatingsStatsModelImpl
@ProviderType public class RatingsStatsModelImpl
The base model implementation for the RatingsStats service. Represents a row in the "RatingsStats" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface RatingsStatsModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in RatingsStatsImpl.
RatingsStatsImpl,
RatingsStats,
RatingsStatsModel,
Serialized Form| Field Summary | |
|---|---|
static long |
CLASSNAMEID_COLUMN_BITMASK
|
static long |
CLASSPK_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static String |
SESSION_FACTORY
|
static long |
STATSID_COLUMN_BITMASK
|
static Object[][] |
TABLE_COLUMNS
|
static Map<String,Integer> |
TABLE_COLUMNS_MAP
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
| Constructor Summary | |
|---|---|
RatingsStatsModelImpl()
|
|
| 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. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this ratings stats. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
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. |
int |
hashCode()
|
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
void |
resetOriginalValues()
Reset all original fields to current values. |
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 p k of this ratings stats. |
void |
setCompanyId(long companyId)
Sets the company ID of this ratings stats. |
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 |
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()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.liferay.portlet.ratings.model.RatingsStatsModel |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final Map<String,Integer> TABLE_COLUMNS_MAP
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static final long CLASSNAMEID_COLUMN_BITMASK
public static final long CLASSPK_COLUMN_BITMASK
public static final long STATSID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public RatingsStatsModelImpl()
| Method Detail |
|---|
public long getPrimaryKey()
RatingsStatsModel
getPrimaryKey in interface RatingsStatsModelpublic void setPrimaryKey(long primaryKey)
RatingsStatsModel
setPrimaryKey in interface RatingsStatsModelprimaryKey - the primary key of this ratings statspublic 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 Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<RatingsStats>getModelAttributes in class BaseModelImpl<RatingsStats>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<RatingsStats>setModelAttributes in class BaseModelImpl<RatingsStats>public long getStatsId()
RatingsStatsModel
getStatsId in interface RatingsStatsModelpublic void setStatsId(long statsId)
RatingsStatsModel
setStatsId in interface RatingsStatsModelstatsId - the stats ID of this ratings statspublic long getCompanyId()
RatingsStatsModel
getCompanyId in interface ShardedModelgetCompanyId in interface RatingsStatsModelpublic void setCompanyId(long companyId)
RatingsStatsModel
setCompanyId in interface ShardedModelsetCompanyId in interface RatingsStatsModelcompanyId - the company ID of this ratings statspublic String getClassName()
RatingsStatsModel
getClassName in interface TypedModelgetClassName in interface RatingsStatsModelpublic void setClassName(String className)
setClassName in interface RatingsStatsModelpublic long getClassNameId()
RatingsStatsModel
getClassNameId in interface TypedModelgetClassNameId in interface RatingsStatsModelpublic void setClassNameId(long classNameId)
RatingsStatsModel
setClassNameId in interface TypedModelsetClassNameId in interface RatingsStatsModelclassNameId - the class name ID of this ratings statspublic long getOriginalClassNameId()
public long getClassPK()
RatingsStatsModel
getClassPK in interface AttachedModelgetClassPK in interface RatingsStatsModelpublic void setClassPK(long classPK)
RatingsStatsModel
setClassPK in interface AttachedModelsetClassPK in interface RatingsStatsModelclassPK - the class p k of this ratings statspublic long getOriginalClassPK()
public 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 long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<RatingsStats>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RatingsStatsModelgetExpandoBridge in class BaseModelImpl<RatingsStats>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<RatingsStats>setExpandoBridgeAttributes in interface RatingsStatsModelsetExpandoBridgeAttributes in class BaseModelImpl<RatingsStats>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public RatingsStats toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<RatingsStats>toEscapedModel in interface RatingsStatsModeltoEscapedModel in class BaseModelImpl<RatingsStats>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<RatingsStats>clone in interface RatingsStatsModelclone in class BaseModelImpl<RatingsStats>public int compareTo(RatingsStats ratingsStats)
compareTo in interface RatingsStatsModelcompareTo in interface Comparable<RatingsStats>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface RatingsStatsModelhashCode in class Objectpublic boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<RatingsStats>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<RatingsStats>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<RatingsStats>resetOriginalValues in class BaseModelImpl<RatingsStats>public CacheModel<RatingsStats> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<RatingsStats>toCacheModel in interface RatingsStatsModeltoCacheModel in class BaseModelImpl<RatingsStats>public String toString()
toString in interface RatingsStatsModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<RatingsStats>toXmlString in interface RatingsStatsModel
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||