public class SocialActivityCounterWrapper extends BaseModelWrapper<SocialActivityCounter> implements ModelWrapper<SocialActivityCounter>, SocialActivityCounter
This class is a wrapper for SocialActivityCounter
.
SocialActivityCounter
,
Serialized Formmodel
ACTIVITY_COUNTER_ID_ACCESSOR
Constructor and Description |
---|
SocialActivityCounterWrapper(SocialActivityCounter socialActivityCounter) |
Modifier and Type | Method and Description |
---|---|
boolean |
getActive()
Returns the active of this social activity counter.
|
long |
getActivityCounterId()
Returns the activity counter ID of this social activity counter.
|
Map<String,Function<SocialActivityCounter,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<SocialActivityCounter,Object>> |
getAttributeSetterBiConsumers() |
String |
getClassName()
Returns the fully qualified class name of this social activity counter.
|
long |
getClassNameId()
Returns the class name ID of this social activity counter.
|
long |
getClassPK()
Returns the class pk of this social activity counter.
|
long |
getCompanyId()
Returns the company ID of this social activity counter.
|
long |
getCtCollectionId()
Returns the ct collection ID of this social activity counter.
|
int |
getCurrentValue()
Returns the current value of this social activity counter.
|
int |
getEndPeriod()
Returns the end period of this social activity counter.
|
int |
getGraceValue()
Returns the grace value of this social activity counter.
|
long |
getGroupId()
Returns the group ID of this social activity counter.
|
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this social activity counter.
|
String |
getName()
Returns the name of this social activity counter.
|
int |
getOwnerType()
Returns the owner type of this social activity counter.
|
long |
getPrimaryKey()
Returns the primary key of this social activity counter.
|
int |
getStartPeriod()
Returns the start period of this social activity counter.
|
int |
getTotalValue()
Returns the total value of this social activity counter.
|
boolean |
isActive()
Returns
true 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 |
setName(String name)
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) |
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, toXmlString
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
public SocialActivityCounterWrapper(SocialActivityCounter socialActivityCounter)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<SocialActivityCounter>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<SocialActivityCounter>
public boolean getActive()
getActive
in interface SocialActivityCounterModel
public long getActivityCounterId()
getActivityCounterId
in interface SocialActivityCounterModel
public String getClassName()
getClassName
in interface TypedModel
getClassName
in interface SocialActivityCounterModel
public long getClassNameId()
getClassNameId
in interface TypedModel
getClassNameId
in interface SocialActivityCounterModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface SocialActivityCounterModel
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface SocialActivityCounterModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<SocialActivityCounter>
getCtCollectionId
in interface SocialActivityCounterModel
public int getCurrentValue()
getCurrentValue
in interface SocialActivityCounterModel
public int getEndPeriod()
getEndPeriod
in interface SocialActivityCounterModel
public int getGraceValue()
getGraceValue
in interface SocialActivityCounterModel
public long getGroupId()
getGroupId
in interface SocialActivityCounterModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface SocialActivityCounterModel
public String getName()
getName
in interface SocialActivityCounterModel
public int getOwnerType()
getOwnerType
in interface SocialActivityCounterModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<SocialActivityCounter>
getPrimaryKey
in interface SocialActivityCounterModel
public int getStartPeriod()
getStartPeriod
in interface SocialActivityCounterModel
public int getTotalValue()
getTotalValue
in interface SocialActivityCounterModel
public boolean isActive()
true
if this social activity counter is active.isActive
in interface SocialActivityCounterModel
true
if this social activity counter is active; false
otherwisepublic boolean isActivePeriod(int periodLength)
isActivePeriod
in interface SocialActivityCounter
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setActive(boolean active)
setActive
in interface SocialActivityCounterModel
active
- the active of this social activity counterpublic void setActivityCounterId(long activityCounterId)
setActivityCounterId
in interface SocialActivityCounterModel
activityCounterId
- the activity counter ID of this social activity counterpublic void setClassName(String className)
setClassName
in interface SocialActivityCounterModel
public void setClassNameId(long classNameId)
setClassNameId
in interface TypedModel
setClassNameId
in interface SocialActivityCounterModel
classNameId
- the class name ID of this social activity counterpublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface SocialActivityCounterModel
classPK
- the class pk of this social activity counterpublic void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface SocialActivityCounterModel
companyId
- the company ID of this social activity counterpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<SocialActivityCounter>
setCtCollectionId
in interface SocialActivityCounterModel
ctCollectionId
- the ct collection ID of this social activity counterpublic void setCurrentValue(int currentValue)
setCurrentValue
in interface SocialActivityCounterModel
currentValue
- the current value of this social activity counterpublic void setEndPeriod(int endPeriod)
setEndPeriod
in interface SocialActivityCounterModel
endPeriod
- the end period of this social activity counterpublic void setGraceValue(int graceValue)
setGraceValue
in interface SocialActivityCounterModel
graceValue
- the grace value of this social activity counterpublic void setGroupId(long groupId)
setGroupId
in interface SocialActivityCounterModel
groupId
- the group ID of this social activity counterpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface SocialActivityCounterModel
mvccVersion
- the mvcc version of this social activity counterpublic void setName(String name)
setName
in interface SocialActivityCounterModel
name
- the name of this social activity counterpublic void setOwnerType(int ownerType)
setOwnerType
in interface SocialActivityCounterModel
ownerType
- the owner type of this social activity counterpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<SocialActivityCounter>
setPrimaryKey
in interface SocialActivityCounterModel
primaryKey
- the primary key of this social activity counterpublic void setStartPeriod(int startPeriod)
setStartPeriod
in interface SocialActivityCounterModel
startPeriod
- the start period of this social activity counterpublic void setTotalValue(int totalValue)
setTotalValue
in interface SocialActivityCounterModel
totalValue
- the total value of this social activity counterpublic Map<String,Function<SocialActivityCounter,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<SocialActivityCounter>
public Map<String,BiConsumer<SocialActivityCounter,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<SocialActivityCounter>
protected SocialActivityCounterWrapper wrap(SocialActivityCounter socialActivityCounter)
wrap
in class BaseModelWrapper<SocialActivityCounter>