Liferay 6.1.2-ce-ga3

com.liferay.portlet.social.model.impl
Class SocialActivityCounterModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<SocialActivityCounter>
      extended by com.liferay.portlet.social.model.impl.SocialActivityCounterModelImpl
All Implemented Interfaces:
AttachedModel, BaseModel<SocialActivityCounter>, ClassedModel, SocialActivityCounterModel, Serializable, Cloneable, Comparable<SocialActivityCounter>
Direct Known Subclasses:
SocialActivityCounterBaseImpl

public class SocialActivityCounterModelImpl
extends BaseModelImpl<SocialActivityCounter>
implements SocialActivityCounterModel

The base model implementation for the SocialActivityCounter service. Represents a row in the "SocialActivityCounter" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface SocialActivityCounterModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in SocialActivityCounterImpl.

See Also:
SocialActivityCounterImpl, SocialActivityCounter, SocialActivityCounterModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
static long CLASSPK_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static String DATA_SOURCE
           
static long ENDPERIOD_COLUMN_BITMASK
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long GROUPID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static long NAME_COLUMN_BITMASK
           
static long OWNERTYPE_COLUMN_BITMASK
           
static String SESSION_FACTORY
           
static long STARTPERIOD_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
SocialActivityCounterModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(SocialActivityCounter socialActivityCounter)
           
 boolean equals(Object obj)
           
 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 getColumnBitmask()
           
 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.
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 int getOriginalEndPeriod()
           
 long getOriginalGroupId()
           
 String getOriginalName()
           
 int getOriginalOwnerType()
           
 int getOriginalStartPeriod()
           
 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.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 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 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(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 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 com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.social.model.SocialActivityCounterModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

CLASSNAMEID_COLUMN_BITMASK

public static long CLASSNAMEID_COLUMN_BITMASK

CLASSPK_COLUMN_BITMASK

public static long CLASSPK_COLUMN_BITMASK

ENDPERIOD_COLUMN_BITMASK

public static long ENDPERIOD_COLUMN_BITMASK

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

OWNERTYPE_COLUMN_BITMASK

public static long OWNERTYPE_COLUMN_BITMASK

STARTPERIOD_COLUMN_BITMASK

public static long STARTPERIOD_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

SocialActivityCounterModelImpl

public SocialActivityCounterModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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

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

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>
Overrides:
getModelAttributes in class BaseModelImpl<SocialActivityCounter>

setModelAttributes

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

getActivityCounterId

public long getActivityCounterId()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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()
Description copied from interface: SocialActivityCounterModel
Returns the fully qualified class name of this social activity counter.

Specified by:
getClassName in interface AttachedModel
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()
Description copied from interface: SocialActivityCounterModel
Returns the class name ID of this social activity counter.

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

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: SocialActivityCounterModel
Sets the class name ID of this social activity counter.

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

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

public long getClassPK()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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

getOriginalClassPK

public long getOriginalClassPK()

getName

public String getName()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
Sets the name of this social activity counter.

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

getOriginalName

public String getOriginalName()

getOwnerType

public int getOwnerType()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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

getOriginalOwnerType

public int getOriginalOwnerType()

getCurrentValue

public int getCurrentValue()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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

getOriginalStartPeriod

public int getOriginalStartPeriod()

getEndPeriod

public int getEndPeriod()
Description copied from interface: SocialActivityCounterModel
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)
Description copied from interface: SocialActivityCounterModel
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

getOriginalEndPeriod

public int getOriginalEndPeriod()

getColumnBitmask

public long getColumnBitmask()

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
Overrides:
getExpandoBridge in class BaseModelImpl<SocialActivityCounter>
Returns:
the expando bridge for this model instance

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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<SocialActivityCounter>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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
Overrides:
toEscapedModel in class BaseModelImpl<SocialActivityCounter>
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
Overrides:
toUnescapedModel in class BaseModelImpl<SocialActivityCounter>

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
Specified by:
clone in class BaseModelImpl<SocialActivityCounter>
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>

equals

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

hashCode

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<SocialActivityCounter>
Overrides:
resetOriginalValues in class BaseModelImpl<SocialActivityCounter>

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
Overrides:
toCacheModel in class BaseModelImpl<SocialActivityCounter>
Returns:
the cache model object

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

Liferay 6.1.2-ce-ga3