Liferay 6.2-ce-ga5

com.liferay.portlet.social.model
Class SocialActivityCounterWrapper

java.lang.Object
  extended by com.liferay.portlet.social.model.SocialActivityCounterWrapper
All Implemented Interfaces:
AttachedModel, BaseModel<SocialActivityCounter>, ClassedModel, ModelWrapper<SocialActivityCounter>, PersistedModel, TypedModel, SocialActivityCounter, SocialActivityCounterModel, Serializable, Cloneable, Comparable<SocialActivityCounter>

@ProviderType
public class SocialActivityCounterWrapper
extends Object
implements SocialActivityCounter, ModelWrapper<SocialActivityCounter>

This class is a wrapper for SocialActivityCounter.

See Also:
SocialActivityCounter, Serialized Form

Constructor Summary
SocialActivityCounterWrapper(SocialActivityCounter socialActivityCounter)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(SocialActivityCounter socialActivityCounter)
           
 boolean equals(Object obj)
           
 boolean getActive()
          Returns the active of this social activity counter.
 long getActivityCounterId()
          Returns the activity counter ID of this social activity counter.
 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 p k of this social activity counter.
 long getCompanyId()
          Returns the company 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.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 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()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 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.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getStartPeriod()
          Returns the start period of this social activity counter.
 int getTotalValue()
          Returns the total value of this social activity counter.
 SocialActivityCounter getWrappedModel()
           
 SocialActivityCounter getWrappedSocialActivityCounter()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 int hashCode()
           
 boolean isActive()
          Returns true if this social activity counter is active.
 boolean isActivePeriod(int periodLength)
           
 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 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 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 social activity counter.
 void setClassPK(long classPK)
          Sets the class p k of this social activity counter.
 void setCompanyId(long companyId)
          Sets the company 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 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 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 setName(String name)
          Sets the name of this social activity counter.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 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 setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 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.
 CacheModel<SocialActivityCounter> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 SocialActivityCounter toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 SocialActivityCounter 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

SocialActivityCounterWrapper

public SocialActivityCounterWrapper(SocialActivityCounter socialActivityCounter)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<SocialActivityCounter>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<SocialActivityCounter>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this social activity counter.

Specified by:
getPrimaryKey in interface SocialActivityCounterModel
Returns:
the primary key of this social activity counter

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this social activity counter.

Specified by:
setPrimaryKey in interface SocialActivityCounterModel
Parameters:
primaryKey - the primary key of this social activity counter

getActivityCounterId

public long getActivityCounterId()
Returns the activity counter ID of this social activity counter.

Specified by:
getActivityCounterId in interface SocialActivityCounterModel
Returns:
the activity counter ID 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 interface SocialActivityCounterModel
Parameters:
activityCounterId - the activity counter ID of this social activity counter

getGroupId

public long getGroupId()
Returns the group ID of this social activity counter.

Specified by:
getGroupId in interface SocialActivityCounterModel
Returns:
the group ID of this social activity counter

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this social activity counter.

Specified by:
setGroupId in interface SocialActivityCounterModel
Parameters:
groupId - the group ID of this social activity counter

getCompanyId

public long getCompanyId()
Returns the company ID of this social activity counter.

Specified by:
getCompanyId in interface SocialActivityCounterModel
Returns:
the company ID of this social activity counter

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this social activity counter.

Specified by:
setCompanyId in interface SocialActivityCounterModel
Parameters:
companyId - the company ID of this social activity counter

getClassName

public String getClassName()
Returns the fully qualified class name of this social activity counter.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface SocialActivityCounterModel
Returns:
the fully qualified class name of this social activity counter

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface SocialActivityCounterModel

getClassNameId

public long getClassNameId()
Returns the class name ID of this social activity counter.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface SocialActivityCounterModel
Returns:
the class name ID of this social activity counter

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this social activity counter.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface SocialActivityCounterModel
Parameters:
classNameId - the class name ID of this social activity counter

getClassPK

public long getClassPK()
Returns the class p k of this social activity counter.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface SocialActivityCounterModel
Returns:
the class p k of this social activity counter

setClassPK

public void setClassPK(long classPK)
Sets the class p k of this social activity counter.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface SocialActivityCounterModel
Parameters:
classPK - the class p k of this social activity counter

getName

public String getName()
Returns the name of this social activity counter.

Specified by:
getName in interface SocialActivityCounterModel
Returns:
the name of this social activity counter

setName

public void setName(String name)
Sets the name of this social activity counter.

Specified by:
setName in interface SocialActivityCounterModel
Parameters:
name - the name of this social activity counter

getOwnerType

public int getOwnerType()
Returns the owner type of this social activity counter.

Specified by:
getOwnerType in interface SocialActivityCounterModel
Returns:
the owner type of this social activity counter

setOwnerType

public void setOwnerType(int ownerType)
Sets the owner type of this social activity counter.

Specified by:
setOwnerType in interface SocialActivityCounterModel
Parameters:
ownerType - the owner type of this social activity counter

getCurrentValue

public int getCurrentValue()
Returns the current value of this social activity counter.

Specified by:
getCurrentValue in interface SocialActivityCounterModel
Returns:
the current value of this social activity counter

setCurrentValue

public void setCurrentValue(int currentValue)
Sets the current value of this social activity counter.

Specified by:
setCurrentValue in interface SocialActivityCounterModel
Parameters:
currentValue - the current value of this social activity counter

getTotalValue

public int getTotalValue()
Returns the total value of this social activity counter.

Specified by:
getTotalValue in interface SocialActivityCounterModel
Returns:
the total value of this social activity counter

setTotalValue

public void setTotalValue(int totalValue)
Sets the total value of this social activity counter.

Specified by:
setTotalValue in interface SocialActivityCounterModel
Parameters:
totalValue - the total value of this social activity counter

getGraceValue

public int getGraceValue()
Returns the grace value of this social activity counter.

Specified by:
getGraceValue in interface SocialActivityCounterModel
Returns:
the grace value of this social activity counter

setGraceValue

public void setGraceValue(int graceValue)
Sets the grace value of this social activity counter.

Specified by:
setGraceValue in interface SocialActivityCounterModel
Parameters:
graceValue - the grace value of this social activity counter

getStartPeriod

public int getStartPeriod()
Returns the start period of this social activity counter.

Specified by:
getStartPeriod in interface SocialActivityCounterModel
Returns:
the start period of this social activity counter

setStartPeriod

public void setStartPeriod(int startPeriod)
Sets the start period of this social activity counter.

Specified by:
setStartPeriod in interface SocialActivityCounterModel
Parameters:
startPeriod - the start period of this social activity counter

getEndPeriod

public int getEndPeriod()
Returns the end period of this social activity counter.

Specified by:
getEndPeriod in interface SocialActivityCounterModel
Returns:
the end period of this social activity counter

setEndPeriod

public void setEndPeriod(int endPeriod)
Sets the end period of this social activity counter.

Specified by:
setEndPeriod in interface SocialActivityCounterModel
Parameters:
endPeriod - the end period of this social activity counter

getActive

public boolean getActive()
Returns the active of this social activity counter.

Specified by:
getActive in interface SocialActivityCounterModel
Returns:
the active of this social activity counter

isActive

public boolean isActive()
Returns true if this social activity counter is active.

Specified by:
isActive in interface SocialActivityCounterModel
Returns:
true if this social activity counter is active; false otherwise

setActive

public void setActive(boolean active)
Sets whether this social activity counter is active.

Specified by:
setActive in interface SocialActivityCounterModel
Parameters:
active - the active of this social activity counter

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<SocialActivityCounter>
Specified by:
isNew in interface SocialActivityCounterModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<SocialActivityCounter>
Specified by:
setNew in interface SocialActivityCounterModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<SocialActivityCounter>
Specified by:
isCachedModel in interface SocialActivityCounterModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<SocialActivityCounter>
Specified by:
setCachedModel in interface SocialActivityCounterModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<SocialActivityCounter>
Specified by:
isEscapedModel in interface SocialActivityCounterModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<SocialActivityCounter>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface SocialActivityCounterModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<SocialActivityCounter>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface SocialActivityCounterModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<SocialActivityCounter>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface SocialActivityCounterModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<SocialActivityCounter>
Specified by:
setExpandoBridgeAttributes in interface SocialActivityCounterModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<SocialActivityCounter>
Specified by:
setExpandoBridgeAttributes in interface SocialActivityCounterModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<SocialActivityCounter>
Specified by:
setExpandoBridgeAttributes in interface SocialActivityCounterModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<SocialActivityCounter>
Specified by:
clone in interface SocialActivityCounterModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(SocialActivityCounter socialActivityCounter)
Specified by:
compareTo in interface SocialActivityCounterModel
Specified by:
compareTo in interface Comparable<SocialActivityCounter>

hashCode

public int hashCode()
Specified by:
hashCode in interface SocialActivityCounterModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<SocialActivityCounter> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<SocialActivityCounter>
Specified by:
toCacheModel in interface SocialActivityCounterModel
Returns:
the cache model object

toEscapedModel

public SocialActivityCounter toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<SocialActivityCounter>
Specified by:
toEscapedModel in interface SocialActivityCounterModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public SocialActivityCounter toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<SocialActivityCounter>
Specified by:
toUnescapedModel in interface SocialActivityCounterModel

toString

public String toString()
Specified by:
toString in interface SocialActivityCounterModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<SocialActivityCounter>
Specified by:
toXmlString in interface SocialActivityCounterModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
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 interface PersistedModel
Throws:
SystemException - if a system exception occurred

isActivePeriod

public boolean isActivePeriod(int periodLength)
Specified by:
isActivePeriod in interface SocialActivityCounter

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedSocialActivityCounter

public SocialActivityCounter getWrappedSocialActivityCounter()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public SocialActivityCounter getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<SocialActivityCounter>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<SocialActivityCounter>

Liferay 6.2-ce-ga5