Liferay 6.0.5

com.liferay.portlet.social.service.persistence
Class SocialActivityPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialActivity>
      extended by com.liferay.portlet.social.service.persistence.SocialActivityPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SocialActivity>, SocialActivityPersistence

public class SocialActivityPersistenceImpl
extends BasePersistenceImpl<SocialActivity>
implements SocialActivityPersistence

The persistence implementation for the social activity service.

Never modify or reference this class directly. Always use SocialActivityUtil to access the social activity persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
SocialActivityPersistence, SocialActivityUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_CD_C_C_T_R
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_M_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_MIRRORACTIVITYID
           
static FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_G_U_CD_C_C_T_R
           
static FinderPath FINDER_PATH_FETCH_BY_MIRRORACTIVITYID
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_C_C
           
static FinderPath FINDER_PATH_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_M_C_C
           
static FinderPath FINDER_PATH_FIND_BY_RECEIVERUSERID
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
protected  GroupPersistence groupPersistence
           
protected  LayoutPersistence layoutPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence
           
protected  SocialEquityHistoryPersistence socialEquityHistoryPersistence
           
protected  SocialEquityLogPersistence socialEquityLogPersistence
           
protected  SocialEquitySettingPersistence socialEquitySettingPersistence
           
protected  SocialEquityUserPersistence socialEquityUserPersistence
           
protected  SocialRelationPersistence socialRelationPersistence
           
protected  SocialRequestPersistence socialRequestPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SocialActivityPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social activity persistence.
 void cacheResult(List<SocialActivity> socialActivities)
          Caches the social activities in the entity cache if it is enabled.
 void cacheResult(SocialActivity socialActivity)
          Caches the social activity in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social activities.
 void clearCache(SocialActivity socialActivity)
          Clears the cache for the social activity.
 int countAll()
          Counts all the social activities.
 int countByC_C(long classNameId, long classPK)
          Counts all the social activities where classNameId = ? and classPK = ?.
 int countByClassNameId(long classNameId)
          Counts all the social activities where classNameId = ?.
 int countByCompanyId(long companyId)
          Counts all the social activities where companyId = ?.
 int countByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Counts all the social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 int countByGroupId(long groupId)
          Counts all the social activities where groupId = ?.
 int countByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 int countByMirrorActivityId(long mirrorActivityId)
          Counts all the social activities where mirrorActivityId = ?.
 int countByReceiverUserId(long receiverUserId)
          Counts all the social activities where receiverUserId = ?.
 int countByUserId(long userId)
          Counts all the social activities where userId = ?.
 SocialActivity create(long activityId)
          Creates a new social activity with the primary key.
 SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found.
 SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean retrieveFromCache)
          Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache.
 SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
          Finds the social activity where mirrorActivityId = ? or returns null if it could not be found.
 SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean retrieveFromCache)
          Finds the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.
 SocialActivity fetchByPrimaryKey(long activityId)
          Finds the social activity with the primary key or returns null if it could not be found.
 SocialActivity fetchByPrimaryKey(Serializable primaryKey)
          Finds the social activity with the primary key or returns null if it could not be found.
 List<SocialActivity> findAll()
          Finds all the social activities.
 List<SocialActivity> findAll(int start, int end)
          Finds a range of all the social activities.
 List<SocialActivity> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities.
 SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK)
          Finds all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end)
          Finds a range of all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where classNameId = ? and classPK = ?.
 SocialActivity findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where classNameId = ?.
 SocialActivity findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where classNameId = ?.
 SocialActivity[] findByClassNameId_PrevAndNext(long activityId, long classNameId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId)
          Finds all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end)
          Finds a range of all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where classNameId = ?.
 SocialActivity findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where companyId = ?.
 SocialActivity findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where companyId = ?.
 SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId)
          Finds all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where companyId = ?.
 SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where groupId = ?.
 SocialActivity findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where groupId = ?.
 SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId)
          Finds all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end)
          Finds a range of all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where groupId = ?.
 SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity findByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity[] findByM_C_C_PrevAndNext(long activityId, long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end)
          Finds a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 List<SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity findByMirrorActivityId(long mirrorActivityId)
          Finds the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByPrimaryKey(long activityId)
          Finds the social activity with the primary key or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByPrimaryKey(Serializable primaryKey)
          Finds the social activity with the primary key or throws a NoSuchModelException if it could not be found.
 SocialActivity findByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where receiverUserId = ?.
 SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where receiverUserId = ?.
 SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId)
          Finds all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end)
          Finds a range of all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where receiverUserId = ?.
 SocialActivity findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first social activity in the ordered set where userId = ?.
 SocialActivity findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last social activity in the ordered set where userId = ?.
 SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, OrderByComparator orderByComparator)
          Finds the social activities before and after the current social activity in the ordered set where userId = ?.
 List<SocialActivity> findByUserId(long userId)
          Finds all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end)
          Finds a range of all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social activities where userId = ?.
protected  SocialActivity getByC_C_PrevAndNext(Session session, SocialActivity socialActivity, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivity getByClassNameId_PrevAndNext(Session session, SocialActivity socialActivity, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivity getByCompanyId_PrevAndNext(Session session, SocialActivity socialActivity, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivity getByGroupId_PrevAndNext(Session session, SocialActivity socialActivity, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivity getByM_C_C_PrevAndNext(Session session, SocialActivity socialActivity, long mirrorActivityId, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivity getByReceiverUserId_PrevAndNext(Session session, SocialActivity socialActivity, long receiverUserId, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialActivity getByUserId_PrevAndNext(Session session, SocialActivity socialActivity, long userId, OrderByComparator orderByComparator, boolean previous)
           
 SocialActivity remove(long activityId)
          Removes the social activity with the primary key from the database.
 SocialActivity remove(Serializable primaryKey)
          Removes the social activity with the primary key from the database.
 void removeAll()
          Removes all the social activities from the database.
 void removeByC_C(long classNameId, long classPK)
          Removes all the social activities where classNameId = ? and classPK = ? from the database.
 void removeByClassNameId(long classNameId)
          Removes all the social activities where classNameId = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the social activities where companyId = ? from the database.
 void removeByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the social activities where groupId = ? from the database.
 void removeByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.
 void removeByMirrorActivityId(long mirrorActivityId)
          Removes the social activity where mirrorActivityId = ? from the database.
 void removeByReceiverUserId(long receiverUserId)
          Removes all the social activities where receiverUserId = ? from the database.
 void removeByUserId(long userId)
          Removes all the social activities where userId = ? from the database.
protected  SocialActivity removeImpl(SocialActivity socialActivity)
          Removes the model instance from the database.
protected  SocialActivity toUnwrappedModel(SocialActivity socialActivity)
           
 SocialActivity updateImpl(SocialActivity socialActivity, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FIND_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FETCH_BY_MIRRORACTIVITYID

public static final FinderPath FINDER_PATH_FETCH_BY_MIRRORACTIVITYID

FINDER_PATH_COUNT_BY_MIRRORACTIVITYID

public static final FinderPath FINDER_PATH_COUNT_BY_MIRRORACTIVITYID

FINDER_PATH_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_FIND_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_FIND_BY_RECEIVERUSERID

FINDER_PATH_COUNT_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID

FINDER_PATH_FIND_BY_C_C

public static final FinderPath FINDER_PATH_FIND_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_FIND_BY_M_C_C

public static final FinderPath FINDER_PATH_FIND_BY_M_C_C

FINDER_PATH_COUNT_BY_M_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_M_C_C

FINDER_PATH_FETCH_BY_G_U_CD_C_C_T_R

public static final FinderPath FINDER_PATH_FETCH_BY_G_U_CD_C_C_T_R

FINDER_PATH_COUNT_BY_G_U_CD_C_C_T_R

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_CD_C_C_T_R

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence

socialEquityAssetEntryPersistence

@BeanReference(type=SocialEquityAssetEntryPersistence.class)
protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence

socialEquityHistoryPersistence

@BeanReference(type=SocialEquityHistoryPersistence.class)
protected SocialEquityHistoryPersistence socialEquityHistoryPersistence

socialEquityLogPersistence

@BeanReference(type=SocialEquityLogPersistence.class)
protected SocialEquityLogPersistence socialEquityLogPersistence

socialEquitySettingPersistence

@BeanReference(type=SocialEquitySettingPersistence.class)
protected SocialEquitySettingPersistence socialEquitySettingPersistence

socialEquityUserPersistence

@BeanReference(type=SocialEquityUserPersistence.class)
protected SocialEquityUserPersistence socialEquityUserPersistence

socialRelationPersistence

@BeanReference(type=SocialRelationPersistence.class)
protected SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=SocialRequestPersistence.class)
protected SocialRequestPersistence socialRequestPersistence

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

SocialActivityPersistenceImpl

public SocialActivityPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialActivity socialActivity)
Caches the social activity in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialActivityPersistence
Parameters:
socialActivity - the social activity to cache

cacheResult

public void cacheResult(List<SocialActivity> socialActivities)
Caches the social activities in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialActivityPersistence
Parameters:
socialActivities - the social activities to cache

clearCache

public void clearCache()
Clears the cache for all social activities.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivity>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivity>

clearCache

public void clearCache(SocialActivity socialActivity)
Clears the cache for the social activity.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivity>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivity>
Parameters:
socialActivity - the instance of this model to clear the cache for

create

public SocialActivity create(long activityId)
Creates a new social activity with the primary key. Does not add the social activity to the database.

Specified by:
create in interface SocialActivityPersistence
Parameters:
activityId - the primary key for the new social activity
Returns:
the new social activity

remove

public SocialActivity remove(Serializable primaryKey)
                      throws NoSuchModelException,
                             SystemException
Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialActivity>
Overrides:
remove in class BasePersistenceImpl<SocialActivity>
Parameters:
primaryKey - the primary key of the social activity to remove
Returns:
the social activity that was removed
Throws:
NoSuchModelException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

remove

public SocialActivity remove(long activityId)
                      throws NoSuchActivityException,
                             SystemException
Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the social activity to remove
Returns:
the social activity that was removed
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SocialActivity removeImpl(SocialActivity socialActivity)
                             throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialActivity>
Parameters:
socialActivity - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialActivity updateImpl(SocialActivity socialActivity,
                                 boolean merge)
                          throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialActivityPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialActivity>
Parameters:
socialActivity - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialActivity toUnwrappedModel(SocialActivity socialActivity)

findByPrimaryKey

public SocialActivity findByPrimaryKey(Serializable primaryKey)
                                throws NoSuchModelException,
                                       SystemException
Finds the social activity with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialActivity>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialActivity>
Parameters:
primaryKey - the primary key of the social activity to find
Returns:
the social activity
Throws:
NoSuchModelException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public SocialActivity findByPrimaryKey(long activityId)
                                throws NoSuchActivityException,
                                       SystemException
Finds the social activity with the primary key or throws a NoSuchActivityException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the social activity to find
Returns:
the social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialActivity fetchByPrimaryKey(Serializable primaryKey)
                                 throws SystemException
Finds the social activity with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialActivity>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialActivity>
Parameters:
primaryKey - the primary key of the social activity to find
Returns:
the social activity, or null if a social activity with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialActivity fetchByPrimaryKey(long activityId)
                                 throws SystemException
Finds the social activity with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the social activity to find
Returns:
the social activity, or null if a social activity with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialActivity> findByGroupId(long groupId)
                                   throws SystemException
Finds all the social activities where groupId = ?.

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialActivity> findByGroupId(long groupId,
                                          int start,
                                          int end)
                                   throws SystemException
Finds a range of all the social activities where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialActivity> findByGroupId(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds an ordered range of all the social activities where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public SocialActivity findByGroupId_First(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchActivityException,
                                          SystemException
Finds the first social activity in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_First in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public SocialActivity findByGroupId_Last(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchActivityException,
                                         SystemException
Finds the last social activity in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_Last in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public SocialActivity[] findByGroupId_PrevAndNext(long activityId,
                                                  long groupId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchActivityException,
                                                  SystemException
Finds the social activities before and after the current social activity in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected SocialActivity getByGroupId_PrevAndNext(Session session,
                                                  SocialActivity socialActivity,
                                                  long groupId,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

findByCompanyId

public List<SocialActivity> findByCompanyId(long companyId)
                                     throws SystemException
Finds all the social activities where companyId = ?.

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<SocialActivity> findByCompanyId(long companyId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds a range of all the social activities where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<SocialActivity> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the social activities where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public SocialActivity findByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchActivityException,
                                            SystemException
Finds the first social activity in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_First in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public SocialActivity findByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchActivityException,
                                           SystemException
Finds the last social activity in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_Last in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public SocialActivity[] findByCompanyId_PrevAndNext(long activityId,
                                                    long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchActivityException,
                                                    SystemException
Finds the social activities before and after the current social activity in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByCompanyId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected SocialActivity getByCompanyId_PrevAndNext(Session session,
                                                    SocialActivity socialActivity,
                                                    long companyId,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

findByUserId

public List<SocialActivity> findByUserId(long userId)
                                  throws SystemException
Finds all the social activities where userId = ?.

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByUserId

public List<SocialActivity> findByUserId(long userId,
                                         int start,
                                         int end)
                                  throws SystemException
Finds a range of all the social activities where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByUserId

public List<SocialActivity> findByUserId(long userId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the social activities where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByUserId_First

public SocialActivity findByUserId_First(long userId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchActivityException,
                                         SystemException
Finds the first social activity in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_First in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByUserId_Last

public SocialActivity findByUserId_Last(long userId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchActivityException,
                                        SystemException
Finds the last social activity in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_Last in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public SocialActivity[] findByUserId_PrevAndNext(long activityId,
                                                 long userId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchActivityException,
                                                 SystemException
Finds the social activities before and after the current social activity in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByUserId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByUserId_PrevAndNext

protected SocialActivity getByUserId_PrevAndNext(Session session,
                                                 SocialActivity socialActivity,
                                                 long userId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

findByMirrorActivityId

public SocialActivity findByMirrorActivityId(long mirrorActivityId)
                                      throws NoSuchActivityException,
                                             SystemException
Finds the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.

Specified by:
findByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByMirrorActivityId

public SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
                                       throws SystemException
Finds the social activity where mirrorActivityId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

fetchByMirrorActivityId

public SocialActivity fetchByMirrorActivityId(long mirrorActivityId,
                                              boolean retrieveFromCache)
                                       throws SystemException
Finds the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<SocialActivity> findByClassNameId(long classNameId)
                                       throws SystemException
Finds all the social activities where classNameId = ?.

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<SocialActivity> findByClassNameId(long classNameId,
                                              int start,
                                              int end)
                                       throws SystemException
Finds a range of all the social activities where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<SocialActivity> findByClassNameId(long classNameId,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Finds an ordered range of all the social activities where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByClassNameId_First

public SocialActivity findByClassNameId_First(long classNameId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchActivityException,
                                              SystemException
Finds the first social activity in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByClassNameId_Last

public SocialActivity findByClassNameId_Last(long classNameId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchActivityException,
                                             SystemException
Finds the last social activity in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public SocialActivity[] findByClassNameId_PrevAndNext(long activityId,
                                                      long classNameId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchActivityException,
                                                      SystemException
Finds the social activities before and after the current social activity in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByClassNameId_PrevAndNext

protected SocialActivity getByClassNameId_PrevAndNext(Session session,
                                                      SocialActivity socialActivity,
                                                      long classNameId,
                                                      OrderByComparator orderByComparator,
                                                      boolean previous)

findByReceiverUserId

public List<SocialActivity> findByReceiverUserId(long receiverUserId)
                                          throws SystemException
Finds all the social activities where receiverUserId = ?.

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByReceiverUserId

public List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the social activities where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByReceiverUserId

public List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the social activities where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByReceiverUserId_First

public SocialActivity findByReceiverUserId_First(long receiverUserId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchActivityException,
                                                 SystemException
Finds the first social activity in the ordered set where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId_First in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByReceiverUserId_Last

public SocialActivity findByReceiverUserId_Last(long receiverUserId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchActivityException,
                                                SystemException
Finds the last social activity in the ordered set where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId_Last in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByReceiverUserId_PrevAndNext

public SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId,
                                                         long receiverUserId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchActivityException,
                                                         SystemException
Finds the social activities before and after the current social activity in the ordered set where receiverUserId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByReceiverUserId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
receiverUserId - the receiver user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByReceiverUserId_PrevAndNext

protected SocialActivity getByReceiverUserId_PrevAndNext(Session session,
                                                         SocialActivity socialActivity,
                                                         long receiverUserId,
                                                         OrderByComparator orderByComparator,
                                                         boolean previous)

findByC_C

public List<SocialActivity> findByC_C(long classNameId,
                                      long classPK)
                               throws SystemException
Finds all the social activities where classNameId = ? and classPK = ?.

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByC_C

public List<SocialActivity> findByC_C(long classNameId,
                                      long classPK,
                                      int start,
                                      int end)
                               throws SystemException
Finds a range of all the social activities where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByC_C

public List<SocialActivity> findByC_C(long classNameId,
                                      long classPK,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Finds an ordered range of all the social activities where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByC_C_First

public SocialActivity findByC_C_First(long classNameId,
                                      long classPK,
                                      OrderByComparator orderByComparator)
                               throws NoSuchActivityException,
                                      SystemException
Finds the first social activity in the ordered set where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByC_C_Last

public SocialActivity findByC_C_Last(long classNameId,
                                     long classPK,
                                     OrderByComparator orderByComparator)
                              throws NoSuchActivityException,
                                     SystemException
Finds the last social activity in the ordered set where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByC_C_PrevAndNext

public SocialActivity[] findByC_C_PrevAndNext(long activityId,
                                              long classNameId,
                                              long classPK,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchActivityException,
                                              SystemException
Finds the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_C_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByC_C_PrevAndNext

protected SocialActivity getByC_C_PrevAndNext(Session session,
                                              SocialActivity socialActivity,
                                              long classNameId,
                                              long classPK,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

findByM_C_C

public List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                        long classNameId,
                                        long classPK)
                                 throws SystemException
Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching social activities
Throws:
SystemException - if a system exception occurred

findByM_C_C

public List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        int start,
                                        int end)
                                 throws SystemException
Finds a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of matching social activities
Throws:
SystemException - if a system exception occurred

findByM_C_C

public List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social activities
Throws:
SystemException - if a system exception occurred

findByM_C_C_First

public SocialActivity findByM_C_C_First(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchActivityException,
                                        SystemException
Finds the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C_First in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByM_C_C_Last

public SocialActivity findByM_C_C_Last(long mirrorActivityId,
                                       long classNameId,
                                       long classPK,
                                       OrderByComparator orderByComparator)
                                throws NoSuchActivityException,
                                       SystemException
Finds the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C_Last in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

findByM_C_C_PrevAndNext

public SocialActivity[] findByM_C_C_PrevAndNext(long activityId,
                                                long mirrorActivityId,
                                                long classNameId,
                                                long classPK,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchActivityException,
                                                SystemException
Finds the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByM_C_C_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found
SystemException - if a system exception occurred

getByM_C_C_PrevAndNext

protected SocialActivity getByM_C_C_PrevAndNext(Session session,
                                                SocialActivity socialActivity,
                                                long mirrorActivityId,
                                                long classNameId,
                                                long classPK,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findByG_U_CD_C_C_T_R

public SocialActivity findByG_U_CD_C_C_T_R(long groupId,
                                           long userId,
                                           long createDate,
                                           long classNameId,
                                           long classPK,
                                           int type,
                                           long receiverUserId)
                                    throws NoSuchActivityException,
                                           SystemException
Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchActivityException if it could not be found.

Specified by:
findByG_U_CD_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found
SystemException - if a system exception occurred

fetchByG_U_CD_C_C_T_R

public SocialActivity fetchByG_U_CD_C_C_T_R(long groupId,
                                            long userId,
                                            long createDate,
                                            long classNameId,
                                            long classPK,
                                            int type,
                                            long receiverUserId)
                                     throws SystemException
Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_U_CD_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_U_CD_C_C_T_R

public SocialActivity fetchByG_U_CD_C_C_T_R(long groupId,
                                            long userId,
                                            long createDate,
                                            long classNameId,
                                            long classPK,
                                            int type,
                                            long receiverUserId,
                                            boolean retrieveFromCache)
                                     throws SystemException
Finds the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_U_CD_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the matching social activity, or null if a matching social activity could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivity> findAll()
                             throws SystemException
Finds all the social activities.

Specified by:
findAll in interface SocialActivityPersistence
Returns:
the social activities
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivity> findAll(int start,
                                    int end)
                             throws SystemException
Finds a range of all the social activities.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
Returns:
the range of social activities
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivity> findAll(int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Finds an ordered range of all the social activities.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities to return
end - the upper bound of the range of social activities to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social activities
Throws:
SystemException - if a system exception occurred

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Removes all the social activities where groupId = ? from the database.

Specified by:
removeByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the social activities where companyId = ? from the database.

Specified by:
removeByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Removes all the social activities where userId = ? from the database.

Specified by:
removeByUserId in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByMirrorActivityId

public void removeByMirrorActivityId(long mirrorActivityId)
                              throws NoSuchActivityException,
                                     SystemException
Removes the social activity where mirrorActivityId = ? from the database.

Specified by:
removeByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
Throws:
SystemException - if a system exception occurred
NoSuchActivityException

removeByClassNameId

public void removeByClassNameId(long classNameId)
                         throws SystemException
Removes all the social activities where classNameId = ? from the database.

Specified by:
removeByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred

removeByReceiverUserId

public void removeByReceiverUserId(long receiverUserId)
                            throws SystemException
Removes all the social activities where receiverUserId = ? from the database.

Specified by:
removeByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
Throws:
SystemException - if a system exception occurred

removeByC_C

public void removeByC_C(long classNameId,
                        long classPK)
                 throws SystemException
Removes all the social activities where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred

removeByM_C_C

public void removeByM_C_C(long mirrorActivityId,
                          long classNameId,
                          long classPK)
                   throws SystemException
Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.

Specified by:
removeByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred

removeByG_U_CD_C_C_T_R

public void removeByG_U_CD_C_C_T_R(long groupId,
                                   long userId,
                                   long createDate,
                                   long classNameId,
                                   long classPK,
                                   int type,
                                   long receiverUserId)
                            throws NoSuchActivityException,
                                   SystemException
Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.

Specified by:
removeByG_U_CD_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Throws:
SystemException - if a system exception occurred
NoSuchActivityException

removeAll

public void removeAll()
               throws SystemException
Removes all the social activities from the database.

Specified by:
removeAll in interface SocialActivityPersistence
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Counts all the social activities where groupId = ?.

Specified by:
countByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Counts all the social activities where companyId = ?.

Specified by:
countByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Counts all the social activities where userId = ?.

Specified by:
countByUserId in interface SocialActivityPersistence
Parameters:
userId - the user id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByMirrorActivityId

public int countByMirrorActivityId(long mirrorActivityId)
                            throws SystemException
Counts all the social activities where mirrorActivityId = ?.

Specified by:
countByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByClassNameId

public int countByClassNameId(long classNameId)
                       throws SystemException
Counts all the social activities where classNameId = ?.

Specified by:
countByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByReceiverUserId

public int countByReceiverUserId(long receiverUserId)
                          throws SystemException
Counts all the social activities where receiverUserId = ?.

Specified by:
countByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
               throws SystemException
Counts all the social activities where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByM_C_C

public int countByM_C_C(long mirrorActivityId,
                        long classNameId,
                        long classPK)
                 throws SystemException
Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
countByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countByG_U_CD_C_C_T_R

public int countByG_U_CD_C_C_T_R(long groupId,
                                 long userId,
                                 long createDate,
                                 long classNameId,
                                 long classPK,
                                 int type,
                                 long receiverUserId)
                          throws SystemException
Counts all the social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
countByG_U_CD_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
createDate - the create date to search with
classNameId - the class name id to search with
classPK - the class p k to search with
type - the type to search with
receiverUserId - the receiver user id to search with
Returns:
the number of matching social activities
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the social activities.

Specified by:
countAll in interface SocialActivityPersistence
Returns:
the number of social activities
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social activity persistence.


Liferay 6.0.5