Package com.liferay.social.kernel.model
Class SocialActivityCounterWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<SocialActivityCounter>
com.liferay.social.kernel.model.SocialActivityCounterWrapper
- All Implemented Interfaces:
AttachedModel
,BaseModel<SocialActivityCounter>
,CTModel<SocialActivityCounter>
,ClassedModel
,ModelWrapper<SocialActivityCounter>
,MVCCModel
,PersistedModel
,ShardedModel
,TypedModel
,SocialActivityCounter
,SocialActivityCounterModel
,Serializable
,Cloneable
,Comparable<SocialActivityCounter>
public class SocialActivityCounterWrapper
extends BaseModelWrapper<SocialActivityCounter>
implements ModelWrapper<SocialActivityCounter>, SocialActivityCounter
This class is a wrapper for SocialActivityCounter
.
- 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.social.kernel.model.SocialActivityCounter
ACTIVITY_COUNTER_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the active of this social activity counter.long
Returns the activity counter ID of this social activity counter.Returns the fully qualified class name of this social activity counter.long
Returns the class name ID of this social activity counter.long
Returns the class pk of this social activity counter.long
Returns the company ID of this social activity counter.long
Returns the ct collection ID of this social activity counter.int
Returns the current value of this social activity counter.int
Returns the end period of this social activity counter.int
Returns the grace value of this social activity counter.long
Returns the group ID of this social activity counter.long
Returns the mvcc version of this social activity counter.getName()
Returns the name of this social activity counter.int
Returns the owner type of this social activity counter.long
Returns the primary key of this social activity counter.int
Returns the start period of this social activity counter.int
Returns the total value of this social activity counter.boolean
isActive()
Returnstrue
if this social activity counter is active.boolean
isActivePeriod
(int periodLength) void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setActive
(boolean active) Sets whether this social activity counter is active.void
setActivityCounterId
(long activityCounterId) Sets the activity counter ID of this social activity counter.void
setClassName
(String className) void
setClassNameId
(long classNameId) Sets the class name ID of this social activity counter.void
setClassPK
(long classPK) Sets the class pk of this social activity counter.void
setCompanyId
(long companyId) Sets the company ID of this social activity counter.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this social activity counter.void
setCurrentValue
(int currentValue) Sets the current value of this social activity counter.void
setEndPeriod
(int endPeriod) Sets the end period of this social activity counter.void
setGraceValue
(int graceValue) Sets the grace value of this social activity counter.void
setGroupId
(long groupId) Sets the group ID of this social activity counter.void
setModelAttributes
(Map<String, Object> attributes) void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this social activity counter.void
Sets the name of this social activity counter.void
setOwnerType
(int ownerType) Sets the owner type of this social activity counter.void
setPrimaryKey
(long primaryKey) Sets the primary key of this social activity counter.void
setStartPeriod
(int startPeriod) Sets the start period of this social activity counter.void
setTotalValue
(int totalValue) Sets the total value of this social activity counter.protected SocialActivityCounterWrapper
wrap
(SocialActivityCounter socialActivityCounter) 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
-
SocialActivityCounterWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<SocialActivityCounter>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<SocialActivityCounter>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<SocialActivityCounter>
- Specified by:
cloneWithOriginalValues
in interfaceSocialActivityCounterModel
-
getActive
public boolean getActive()Returns the active of this social activity counter.- Specified by:
getActive
in interfaceSocialActivityCounterModel
- Returns:
- the active of this social activity counter
-
getActivityCounterId
public long getActivityCounterId()Returns the activity counter ID of this social activity counter.- Specified by:
getActivityCounterId
in interfaceSocialActivityCounterModel
- Returns:
- the activity counter ID of this social activity counter
-
getClassName
Returns the fully qualified class name of this social activity counter.- Specified by:
getClassName
in interfaceSocialActivityCounterModel
- Specified by:
getClassName
in interfaceTypedModel
- Returns:
- the fully qualified class name of this social activity counter
-
getClassNameId
public long getClassNameId()Returns the class name ID of this social activity counter.- Specified by:
getClassNameId
in interfaceSocialActivityCounterModel
- Specified by:
getClassNameId
in interfaceTypedModel
- Returns:
- the class name ID of this social activity counter
-
getClassPK
public long getClassPK()Returns the class pk of this social activity counter.- Specified by:
getClassPK
in interfaceAttachedModel
- Specified by:
getClassPK
in interfaceSocialActivityCounterModel
- Returns:
- the class pk of this social activity counter
-
getCompanyId
public long getCompanyId()Returns the company ID of this social activity counter.- Specified by:
getCompanyId
in interfaceShardedModel
- Specified by:
getCompanyId
in interfaceSocialActivityCounterModel
- Returns:
- the company ID of this social activity counter
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this social activity counter.- Specified by:
getCtCollectionId
in interfaceCTModel<SocialActivityCounter>
- Specified by:
getCtCollectionId
in interfaceSocialActivityCounterModel
- Returns:
- the ct collection ID of this social activity counter
-
getCurrentValue
public int getCurrentValue()Returns the current value of this social activity counter.- Specified by:
getCurrentValue
in interfaceSocialActivityCounterModel
- Returns:
- the current value of this social activity counter
-
getEndPeriod
public int getEndPeriod()Returns the end period of this social activity counter.- Specified by:
getEndPeriod
in interfaceSocialActivityCounterModel
- Returns:
- the end period of this social activity counter
-
getGraceValue
public int getGraceValue()Returns the grace value of this social activity counter.- Specified by:
getGraceValue
in interfaceSocialActivityCounterModel
- Returns:
- the grace value of this social activity counter
-
getGroupId
public long getGroupId()Returns the group ID of this social activity counter.- Specified by:
getGroupId
in interfaceSocialActivityCounterModel
- Returns:
- the group ID of this social activity counter
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this social activity counter.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfaceSocialActivityCounterModel
- Returns:
- the mvcc version of this social activity counter
-
getName
Returns the name of this social activity counter.- Specified by:
getName
in interfaceSocialActivityCounterModel
- Returns:
- the name of this social activity counter
-
getOwnerType
public int getOwnerType()Returns the owner type of this social activity counter.- Specified by:
getOwnerType
in interfaceSocialActivityCounterModel
- Returns:
- the owner type of this social activity counter
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this social activity counter.- Specified by:
getPrimaryKey
in interfaceCTModel<SocialActivityCounter>
- Specified by:
getPrimaryKey
in interfaceSocialActivityCounterModel
- Returns:
- the primary key of this social activity counter
-
getStartPeriod
public int getStartPeriod()Returns the start period of this social activity counter.- Specified by:
getStartPeriod
in interfaceSocialActivityCounterModel
- Returns:
- the start period of this social activity counter
-
getTotalValue
public int getTotalValue()Returns the total value of this social activity counter.- Specified by:
getTotalValue
in interfaceSocialActivityCounterModel
- Returns:
- the total value of this social activity counter
-
isActive
public boolean isActive()Returnstrue
if this social activity counter is active.- Specified by:
isActive
in interfaceSocialActivityCounterModel
- Returns:
true
if this social activity counter is active;false
otherwise
-
isActivePeriod
public boolean isActivePeriod(int periodLength) - Specified by:
isActivePeriod
in interfaceSocialActivityCounter
-
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
-
setActive
public void setActive(boolean active) Sets whether this social activity counter is active.- Specified by:
setActive
in interfaceSocialActivityCounterModel
- Parameters:
active
- the active of this social activity counter
-
setActivityCounterId
public void setActivityCounterId(long activityCounterId) Sets the activity counter ID of this social activity counter.- Specified by:
setActivityCounterId
in interfaceSocialActivityCounterModel
- Parameters:
activityCounterId
- the activity counter ID of this social activity counter
-
setClassName
- Specified by:
setClassName
in interfaceSocialActivityCounterModel
-
setClassNameId
public void setClassNameId(long classNameId) Sets the class name ID of this social activity counter.- Specified by:
setClassNameId
in interfaceSocialActivityCounterModel
- Specified by:
setClassNameId
in interfaceTypedModel
- Parameters:
classNameId
- the class name ID of this social activity counter
-
setClassPK
public void setClassPK(long classPK) Sets the class pk of this social activity counter.- Specified by:
setClassPK
in interfaceAttachedModel
- Specified by:
setClassPK
in interfaceSocialActivityCounterModel
- Parameters:
classPK
- the class pk of this social activity counter
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this social activity counter.- Specified by:
setCompanyId
in interfaceShardedModel
- Specified by:
setCompanyId
in interfaceSocialActivityCounterModel
- Parameters:
companyId
- the company ID of this social activity counter
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this social activity counter.- Specified by:
setCtCollectionId
in interfaceCTModel<SocialActivityCounter>
- Specified by:
setCtCollectionId
in interfaceSocialActivityCounterModel
- Parameters:
ctCollectionId
- the ct collection ID of this social activity counter
-
setCurrentValue
public void setCurrentValue(int currentValue) Sets the current value of this social activity counter.- Specified by:
setCurrentValue
in interfaceSocialActivityCounterModel
- Parameters:
currentValue
- the current value of this social activity counter
-
setEndPeriod
public void setEndPeriod(int endPeriod) Sets the end period of this social activity counter.- Specified by:
setEndPeriod
in interfaceSocialActivityCounterModel
- Parameters:
endPeriod
- the end period of this social activity counter
-
setGraceValue
public void setGraceValue(int graceValue) Sets the grace value of this social activity counter.- Specified by:
setGraceValue
in interfaceSocialActivityCounterModel
- Parameters:
graceValue
- the grace value of this social activity counter
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this social activity counter.- Specified by:
setGroupId
in interfaceSocialActivityCounterModel
- Parameters:
groupId
- the group ID of this social activity counter
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this social activity counter.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in interfaceSocialActivityCounterModel
- Parameters:
mvccVersion
- the mvcc version of this social activity counter
-
setName
Sets the name of this social activity counter.- Specified by:
setName
in interfaceSocialActivityCounterModel
- Parameters:
name
- the name of this social activity counter
-
setOwnerType
public void setOwnerType(int ownerType) Sets the owner type of this social activity counter.- Specified by:
setOwnerType
in interfaceSocialActivityCounterModel
- Parameters:
ownerType
- the owner type of this social activity counter
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this social activity counter.- Specified by:
setPrimaryKey
in interfaceCTModel<SocialActivityCounter>
- Specified by:
setPrimaryKey
in interfaceSocialActivityCounterModel
- Parameters:
primaryKey
- the primary key of this social activity counter
-
setStartPeriod
public void setStartPeriod(int startPeriod) Sets the start period of this social activity counter.- Specified by:
setStartPeriod
in interfaceSocialActivityCounterModel
- Parameters:
startPeriod
- the start period of this social activity counter
-
setTotalValue
public void setTotalValue(int totalValue) Sets the total value of this social activity counter.- Specified by:
setTotalValue
in interfaceSocialActivityCounterModel
- Parameters:
totalValue
- the total value of this social activity counter
-
toXmlString
- Specified by:
toXmlString
in interfaceSocialActivityCounterModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<SocialActivityCounter>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<SocialActivityCounter>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<SocialActivityCounter>
-