Liferay 7.0-ce-b4

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

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

@ProviderType
public class SocialActivityPersistenceImpl
extends BasePersistenceImpl<SocialActivity>
implements SocialActivityPersistence

The persistence implementation for the social activity service.

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 it is generated.

Field Summary
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_ACTIVITYSETID
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_C_C_T_R
           
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_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVITYSETID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_C_C_T_R
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_M_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSETID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_C_C_T_R
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_M_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
           
protected  FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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.
protected  void cacheUniqueFindersCache(SocialActivityModelImpl socialActivityModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all social activities.
 void clearCache(List<SocialActivity> socialActivities)
          Clears the cache for a List instances of this model.
 void clearCache(SocialActivity socialActivity)
          Clears the cache for the social activity.
protected  void clearUniqueFindersCache(SocialActivityModelImpl socialActivityModelImpl)
           
 int countAll()
          Returns the number of social activities.
 int countByActivitySetId(long activitySetId)
          Returns the number of social activities where activitySetId = ?.
 int countByC_C_T(long classNameId, long classPK, int type)
          Returns the number of social activities where classNameId = ? and classPK = ? and type = ?.
 int countByC_C(long classNameId, long classPK)
          Returns the number of social activities where classNameId = ? and classPK = ?.
 int countByClassNameId(long classNameId)
          Returns the number of social activities where classNameId = ?.
 int countByCompanyId(long companyId)
          Returns the number of social activities where companyId = ?.
 int countByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 int countByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 int countByGroupId(long groupId)
          Returns the number of social activities where groupId = ?.
 int countByM_C_C(long mirrorActivityId, long classNameId, long classPK)
          Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 int countByMirrorActivityId(long mirrorActivityId)
          Returns the number of social activities where mirrorActivityId = ?.
 int countByReceiverUserId(long receiverUserId)
          Returns the number of social activities where receiverUserId = ?.
 int countByUserId(long userId)
          Returns the number of social activities where userId = ?.
 SocialActivity create(long activityId)
          Creates a new social activity with the primary key.
 void destroy()
           
 SocialActivity fetchByActivitySetId_First(long activitySetId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where activitySetId = ?.
 SocialActivity fetchByActivitySetId_Last(long activitySetId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where activitySetId = ?.
 SocialActivity fetchByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity fetchByC_C_T_First(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.
 SocialActivity fetchByC_C_T_Last(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.
 SocialActivity fetchByClassNameId_First(long classNameId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ?.
 SocialActivity fetchByClassNameId_Last(long classNameId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ?.
 SocialActivity fetchByCompanyId_First(long companyId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where companyId = ?.
 SocialActivity fetchByCompanyId_Last(long companyId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where companyId = ?.
 SocialActivity fetchByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 SocialActivity fetchByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns 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)
          Returns 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 fetchByGroupId_First(long groupId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where groupId = ?.
 SocialActivity fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where groupId = ?.
 SocialActivity fetchByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity fetchByM_C_C_Last(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
          Returns the social activity where mirrorActivityId = ? or returns null if it could not be found.
 SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean retrieveFromCache)
          Returns the social activity where mirrorActivityId = ? or returns null if it could not be found, optionally using the finder cache.
 SocialActivity fetchByPrimaryKey(long activityId)
          Returns the social activity with the primary key or returns null if it could not be found.
 SocialActivity fetchByPrimaryKey(Serializable primaryKey)
          Returns the social activity with the primary key or returns null if it could not be found.
 Map<Serializable,SocialActivity> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 SocialActivity fetchByReceiverUserId_First(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where receiverUserId = ?.
 SocialActivity fetchByReceiverUserId_Last(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where receiverUserId = ?.
 SocialActivity fetchByUserId_First(long userId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where userId = ?.
 SocialActivity fetchByUserId_Last(long userId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where userId = ?.
 List<SocialActivity> findAll()
          Returns all the social activities.
 List<SocialActivity> findAll(int start, int end)
          Returns a range of all the social activities.
 List<SocialActivity> findAll(int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities.
 List<SocialActivity> findAll(int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities.
 SocialActivity findByActivitySetId_First(long activitySetId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where activitySetId = ?.
 SocialActivity findByActivitySetId_Last(long activitySetId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where activitySetId = ?.
 SocialActivity[] findByActivitySetId_PrevAndNext(long activityId, long activitySetId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where activitySetId = ?.
 List<SocialActivity> findByActivitySetId(long activitySetId)
          Returns all the social activities where activitySetId = ?.
 List<SocialActivity> findByActivitySetId(long activitySetId, int start, int end)
          Returns a range of all the social activities where activitySetId = ?.
 List<SocialActivity> findByActivitySetId(long activitySetId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where activitySetId = ?.
 List<SocialActivity> findByActivitySetId(long activitySetId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where activitySetId = ?.
 SocialActivity findByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity findByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity[] findByC_C_PrevAndNext(long activityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?.
 SocialActivity findByC_C_T_First(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.
 SocialActivity findByC_C_T_Last(long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.
 SocialActivity[] findByC_C_T_PrevAndNext(long activityId, long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.
 List<SocialActivity> findByC_C_T(long classNameId, long classPK, int type)
          Returns all the social activities where classNameId = ? and classPK = ? and type = ?.
 List<SocialActivity> findByC_C_T(long classNameId, long classPK, int type, int start, int end)
          Returns a range of all the social activities where classNameId = ? and classPK = ? and type = ?.
 List<SocialActivity> findByC_C_T(long classNameId, long classPK, int type, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.
 List<SocialActivity> findByC_C_T(long classNameId, long classPK, int type, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK)
          Returns all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.
 List<SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.
 SocialActivity findByClassNameId_First(long classNameId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where classNameId = ?.
 SocialActivity findByClassNameId_Last(long classNameId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where classNameId = ?.
 SocialActivity[] findByClassNameId_PrevAndNext(long activityId, long classNameId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId)
          Returns all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end)
          Returns a range of all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where classNameId = ?.
 List<SocialActivity> findByClassNameId(long classNameId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where classNameId = ?.
 SocialActivity findByCompanyId_First(long companyId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where companyId = ?.
 SocialActivity findByCompanyId_Last(long companyId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where companyId = ?.
 SocialActivity[] findByCompanyId_PrevAndNext(long activityId, long companyId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId)
          Returns all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where companyId = ?.
 List<SocialActivity> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where companyId = ?.
 SocialActivity findByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 SocialActivity findByG_U_C_C_T_R_Last(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(long activityId, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end)
          Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 List<SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.
 SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId)
          Returns 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<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where groupId = ?.
 SocialActivity findByGroupId_Last(long groupId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where groupId = ?.
 SocialActivity[] findByGroupId_PrevAndNext(long activityId, long groupId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId)
          Returns all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where groupId = ?.
 List<SocialActivity> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where groupId = ?.
 SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator)
          Returns 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<SocialActivity> orderByComparator)
          Returns 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<SocialActivity> orderByComparator)
          Returns 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)
          Returns 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)
          Returns 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<SocialActivity> orderByComparator)
          Returns an ordered 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<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.
 SocialActivity findByMirrorActivityId(long mirrorActivityId)
          Returns the social activity where mirrorActivityId = ? or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByPrimaryKey(long activityId)
          Returns the social activity with the primary key or throws a NoSuchActivityException if it could not be found.
 SocialActivity findByPrimaryKey(Serializable primaryKey)
          Returns the social activity with the primary key or throws a NoSuchModelException if it could not be found.
 SocialActivity findByReceiverUserId_First(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where receiverUserId = ?.
 SocialActivity findByReceiverUserId_Last(long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where receiverUserId = ?.
 SocialActivity[] findByReceiverUserId_PrevAndNext(long activityId, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId)
          Returns all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end)
          Returns a range of all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where receiverUserId = ?.
 List<SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where receiverUserId = ?.
 SocialActivity findByUserId_First(long userId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the first social activity in the ordered set where userId = ?.
 SocialActivity findByUserId_Last(long userId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the last social activity in the ordered set where userId = ?.
 SocialActivity[] findByUserId_PrevAndNext(long activityId, long userId, OrderByComparator<SocialActivity> orderByComparator)
          Returns the social activities before and after the current social activity in the ordered set where userId = ?.
 List<SocialActivity> findByUserId(long userId)
          Returns all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end)
          Returns a range of all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator<SocialActivity> orderByComparator)
          Returns an ordered range of all the social activities where userId = ?.
 List<SocialActivity> findByUserId(long userId, int start, int end, OrderByComparator<SocialActivity> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social activities where userId = ?.
 Set<String> getBadColumnNames()
           
protected  SocialActivity getByActivitySetId_PrevAndNext(Session session, SocialActivity socialActivity, long activitySetId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByC_C_PrevAndNext(Session session, SocialActivity socialActivity, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByC_C_T_PrevAndNext(Session session, SocialActivity socialActivity, long classNameId, long classPK, int type, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByClassNameId_PrevAndNext(Session session, SocialActivity socialActivity, long classNameId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByCompanyId_PrevAndNext(Session session, SocialActivity socialActivity, long companyId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByG_U_C_C_T_R_PrevAndNext(Session session, SocialActivity socialActivity, long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByGroupId_PrevAndNext(Session session, SocialActivity socialActivity, long groupId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByM_C_C_PrevAndNext(Session session, SocialActivity socialActivity, long mirrorActivityId, long classNameId, long classPK, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByReceiverUserId_PrevAndNext(Session session, SocialActivity socialActivity, long receiverUserId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  SocialActivity getByUserId_PrevAndNext(Session session, SocialActivity socialActivity, long userId, OrderByComparator<SocialActivity> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 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 removeByActivitySetId(long activitySetId)
          Removes all the social activities where activitySetId = ? from the database.
 void removeByC_C_T(long classNameId, long classPK, int type)
          Removes all the social activities where classNameId = ? and classPK = ? and type = ? 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_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId)
          Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.
 SocialActivity 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.
 SocialActivity 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)
          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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
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
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVITYSETID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVITYSETID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSETID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSETID

FINDER_PATH_COUNT_BY_ACTIVITYSETID

public static final FinderPath FINDER_PATH_COUNT_BY_ACTIVITYSETID

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_WITH_PAGINATION_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID

FINDER_PATH_COUNT_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_M_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_M_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_M_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_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_WITH_PAGINATION_FIND_BY_C_C_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T

FINDER_PATH_COUNT_BY_C_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_C_C_T_R

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_C_C_T_R

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_C_C_T_R

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_C_C_T_R

FINDER_PATH_COUNT_BY_G_U_C_C_T_R

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_C_C_T_R

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

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache
Constructor Detail

SocialActivityPersistenceImpl

public SocialActivityPersistenceImpl()
Method Detail

findByGroupId

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

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group ID
Returns:
the matching social activities

findByGroupId

public List<SocialActivity> findByGroupId(long groupId,
                                          int start,
                                          int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByGroupId

public List<SocialActivity> findByGroupId(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByGroupId

public List<SocialActivity> findByGroupId(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator<SocialActivity> orderByComparator,
                                          boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByGroupId_First

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

Specified by:
findByGroupId_First in interface SocialActivityPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByGroupId_First

public SocialActivity fetchByGroupId_First(long groupId,
                                           OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface SocialActivityPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByGroupId_Last

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

Specified by:
findByGroupId_Last in interface SocialActivityPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByGroupId_Last

public SocialActivity fetchByGroupId_Last(long groupId,
                                          OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface SocialActivityPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByGroupId_PrevAndNext

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

Specified by:
findByGroupId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByGroupId_PrevAndNext

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

removeByGroupId

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

Specified by:
removeByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group ID

countByGroupId

public int countByGroupId(long groupId)
Returns the number of social activities where groupId = ?.

Specified by:
countByGroupId in interface SocialActivityPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching social activities

findByCompanyId

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

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company ID
Returns:
the matching social activities

findByCompanyId

public List<SocialActivity> findByCompanyId(long companyId,
                                            int start,
                                            int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByCompanyId

public List<SocialActivity> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByCompanyId

public List<SocialActivity> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator<SocialActivity> orderByComparator,
                                            boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByCompanyId_First

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

Specified by:
findByCompanyId_First in interface SocialActivityPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByCompanyId_First

public SocialActivity fetchByCompanyId_First(long companyId,
                                             OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface SocialActivityPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByCompanyId_Last

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

Specified by:
findByCompanyId_Last in interface SocialActivityPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByCompanyId_Last

public SocialActivity fetchByCompanyId_Last(long companyId,
                                            OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface SocialActivityPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByCompanyId_PrevAndNext

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

Specified by:
findByCompanyId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByCompanyId_PrevAndNext

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

removeByCompanyId

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

Specified by:
removeByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company ID

countByCompanyId

public int countByCompanyId(long companyId)
Returns the number of social activities where companyId = ?.

Specified by:
countByCompanyId in interface SocialActivityPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching social activities

findByUserId

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

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user ID
Returns:
the matching social activities

findByUserId

public List<SocialActivity> findByUserId(long userId,
                                         int start,
                                         int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByUserId

public List<SocialActivity> findByUserId(long userId,
                                         int start,
                                         int end,
                                         OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByUserId

public List<SocialActivity> findByUserId(long userId,
                                         int start,
                                         int end,
                                         OrderByComparator<SocialActivity> orderByComparator,
                                         boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId in interface SocialActivityPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByUserId_First

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

Specified by:
findByUserId_First in interface SocialActivityPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByUserId_First

public SocialActivity fetchByUserId_First(long userId,
                                          OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where userId = ?.

Specified by:
fetchByUserId_First in interface SocialActivityPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByUserId_Last

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

Specified by:
findByUserId_Last in interface SocialActivityPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByUserId_Last

public SocialActivity fetchByUserId_Last(long userId,
                                         OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where userId = ?.

Specified by:
fetchByUserId_Last in interface SocialActivityPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByUserId_PrevAndNext

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

Specified by:
findByUserId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByUserId_PrevAndNext

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

removeByUserId

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

Specified by:
removeByUserId in interface SocialActivityPersistence
Parameters:
userId - the user ID

countByUserId

public int countByUserId(long userId)
Returns the number of social activities where userId = ?.

Specified by:
countByUserId in interface SocialActivityPersistence
Parameters:
userId - the user ID
Returns:
the number of matching social activities

findByActivitySetId

public List<SocialActivity> findByActivitySetId(long activitySetId)
Returns all the social activities where activitySetId = ?.

Specified by:
findByActivitySetId in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
Returns:
the matching social activities

findByActivitySetId

public List<SocialActivity> findByActivitySetId(long activitySetId,
                                                int start,
                                                int end)
Returns a range of all the social activities where activitySetId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByActivitySetId in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByActivitySetId

public List<SocialActivity> findByActivitySetId(long activitySetId,
                                                int start,
                                                int end,
                                                OrderByComparator<SocialActivity> orderByComparator)
Returns an ordered range of all the social activities where activitySetId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByActivitySetId in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByActivitySetId

public List<SocialActivity> findByActivitySetId(long activitySetId,
                                                int start,
                                                int end,
                                                OrderByComparator<SocialActivity> orderByComparator,
                                                boolean retrieveFromCache)
Returns an ordered range of all the social activities where activitySetId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByActivitySetId in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByActivitySetId_First

public SocialActivity findByActivitySetId_First(long activitySetId,
                                                OrderByComparator<SocialActivity> orderByComparator)
                                         throws NoSuchActivityException
Returns the first social activity in the ordered set where activitySetId = ?.

Specified by:
findByActivitySetId_First in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByActivitySetId_First

public SocialActivity fetchByActivitySetId_First(long activitySetId,
                                                 OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where activitySetId = ?.

Specified by:
fetchByActivitySetId_First in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByActivitySetId_Last

public SocialActivity findByActivitySetId_Last(long activitySetId,
                                               OrderByComparator<SocialActivity> orderByComparator)
                                        throws NoSuchActivityException
Returns the last social activity in the ordered set where activitySetId = ?.

Specified by:
findByActivitySetId_Last in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByActivitySetId_Last

public SocialActivity fetchByActivitySetId_Last(long activitySetId,
                                                OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where activitySetId = ?.

Specified by:
fetchByActivitySetId_Last in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByActivitySetId_PrevAndNext

public SocialActivity[] findByActivitySetId_PrevAndNext(long activityId,
                                                        long activitySetId,
                                                        OrderByComparator<SocialActivity> orderByComparator)
                                                 throws NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where activitySetId = ?.

Specified by:
findByActivitySetId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
activitySetId - the activity set ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByActivitySetId_PrevAndNext

protected SocialActivity getByActivitySetId_PrevAndNext(Session session,
                                                        SocialActivity socialActivity,
                                                        long activitySetId,
                                                        OrderByComparator<SocialActivity> orderByComparator,
                                                        boolean previous)

removeByActivitySetId

public void removeByActivitySetId(long activitySetId)
Removes all the social activities where activitySetId = ? from the database.

Specified by:
removeByActivitySetId in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID

countByActivitySetId

public int countByActivitySetId(long activitySetId)
Returns the number of social activities where activitySetId = ?.

Specified by:
countByActivitySetId in interface SocialActivityPersistence
Parameters:
activitySetId - the activity set ID
Returns:
the number of matching social activities

findByMirrorActivityId

public SocialActivity findByMirrorActivityId(long mirrorActivityId)
                                      throws NoSuchActivityException
Returns 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
Returns:
the matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByMirrorActivityId

public SocialActivity fetchByMirrorActivityId(long mirrorActivityId)
Returns 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
Returns:
the matching social activity, or null if a matching social activity could not be found

fetchByMirrorActivityId

public SocialActivity fetchByMirrorActivityId(long mirrorActivityId,
                                              boolean retrieveFromCache)
Returns 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
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching social activity, or null if a matching social activity could not be found

removeByMirrorActivityId

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

Specified by:
removeByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
Returns:
the social activity that was removed
Throws:
NoSuchActivityException

countByMirrorActivityId

public int countByMirrorActivityId(long mirrorActivityId)
Returns the number of social activities where mirrorActivityId = ?.

Specified by:
countByMirrorActivityId in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
Returns:
the number of matching social activities

findByClassNameId

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

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
Returns:
the matching social activities

findByClassNameId

public List<SocialActivity> findByClassNameId(long classNameId,
                                              int start,
                                              int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByClassNameId

public List<SocialActivity> findByClassNameId(long classNameId,
                                              int start,
                                              int end,
                                              OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByClassNameId

public List<SocialActivity> findByClassNameId(long classNameId,
                                              int start,
                                              int end,
                                              OrderByComparator<SocialActivity> orderByComparator,
                                              boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByClassNameId_First

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

Specified by:
findByClassNameId_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByClassNameId_First

public SocialActivity fetchByClassNameId_First(long classNameId,
                                               OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where classNameId = ?.

Specified by:
fetchByClassNameId_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByClassNameId_Last

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

Specified by:
findByClassNameId_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByClassNameId_Last

public SocialActivity fetchByClassNameId_Last(long classNameId,
                                              OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where classNameId = ?.

Specified by:
fetchByClassNameId_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByClassNameId_PrevAndNext

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

Specified by:
findByClassNameId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByClassNameId_PrevAndNext

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

removeByClassNameId

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

Specified by:
removeByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID

countByClassNameId

public int countByClassNameId(long classNameId)
Returns the number of social activities where classNameId = ?.

Specified by:
countByClassNameId in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
Returns:
the number of matching social activities

findByReceiverUserId

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

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
Returns:
the matching social activities

findByReceiverUserId

public List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                 int start,
                                                 int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByReceiverUserId

public List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByReceiverUserId

public List<SocialActivity> findByReceiverUserId(long receiverUserId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<SocialActivity> orderByComparator,
                                                 boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByReceiverUserId_First

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

Specified by:
findByReceiverUserId_First in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByReceiverUserId_First

public SocialActivity fetchByReceiverUserId_First(long receiverUserId,
                                                  OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where receiverUserId = ?.

Specified by:
fetchByReceiverUserId_First in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByReceiverUserId_Last

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

Specified by:
findByReceiverUserId_Last in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByReceiverUserId_Last

public SocialActivity fetchByReceiverUserId_Last(long receiverUserId,
                                                 OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where receiverUserId = ?.

Specified by:
fetchByReceiverUserId_Last in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByReceiverUserId_PrevAndNext

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

Specified by:
findByReceiverUserId_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByReceiverUserId_PrevAndNext

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

removeByReceiverUserId

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

Specified by:
removeByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID

countByReceiverUserId

public int countByReceiverUserId(long receiverUserId)
Returns the number of social activities where receiverUserId = ?.

Specified by:
countByReceiverUserId in interface SocialActivityPersistence
Parameters:
receiverUserId - the receiver user ID
Returns:
the number of matching social activities

findByC_C

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

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching social activities

findByC_C

public List<SocialActivity> findByC_C(long classNameId,
                                      long classPK,
                                      int start,
                                      int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByC_C

public List<SocialActivity> findByC_C(long classNameId,
                                      long classPK,
                                      int start,
                                      int end,
                                      OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByC_C

public List<SocialActivity> findByC_C(long classNameId,
                                      long classPK,
                                      int start,
                                      int end,
                                      OrderByComparator<SocialActivity> orderByComparator,
                                      boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByC_C_First

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

Specified by:
findByC_C_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByC_C_First

public SocialActivity fetchByC_C_First(long classNameId,
                                       long classPK,
                                       OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.

Specified by:
fetchByC_C_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByC_C_Last

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

Specified by:
findByC_C_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByC_C_Last

public SocialActivity fetchByC_C_Last(long classNameId,
                                      long classPK,
                                      OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where classNameId = ? and classPK = ?.

Specified by:
fetchByC_C_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByC_C_PrevAndNext

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

Specified by:
findByC_C_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByC_C_PrevAndNext

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

removeByC_C

public void removeByC_C(long classNameId,
                        long classPK)
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
classPK - the class p k

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
Returns the number of social activities where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching social activities

findByM_C_C

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

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching social activities

findByM_C_C

public List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        int start,
                                        int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByM_C_C

public List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        int start,
                                        int end,
                                        OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByM_C_C

public List<SocialActivity> findByM_C_C(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        int start,
                                        int end,
                                        OrderByComparator<SocialActivity> orderByComparator,
                                        boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByM_C_C_First

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

Specified by:
findByM_C_C_First in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByM_C_C_First

public SocialActivity fetchByM_C_C_First(long mirrorActivityId,
                                         long classNameId,
                                         long classPK,
                                         OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
fetchByM_C_C_First in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByM_C_C_Last

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

Specified by:
findByM_C_C_Last in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByM_C_C_Last

public SocialActivity fetchByM_C_C_Last(long mirrorActivityId,
                                        long classNameId,
                                        long classPK,
                                        OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
fetchByM_C_C_Last in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByM_C_C_PrevAndNext

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

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

getByM_C_C_PrevAndNext

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

removeByM_C_C

public void removeByM_C_C(long mirrorActivityId,
                          long classNameId,
                          long classPK)
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
classNameId - the class name ID
classPK - the class p k

countByM_C_C

public int countByM_C_C(long mirrorActivityId,
                        long classNameId,
                        long classPK)
Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.

Specified by:
countByM_C_C in interface SocialActivityPersistence
Parameters:
mirrorActivityId - the mirror activity ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching social activities

findByC_C_T

public List<SocialActivity> findByC_C_T(long classNameId,
                                        long classPK,
                                        int type)
Returns all the social activities where classNameId = ? and classPK = ? and type = ?.

Specified by:
findByC_C_T in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the matching social activities

findByC_C_T

public List<SocialActivity> findByC_C_T(long classNameId,
                                        long classPK,
                                        int type,
                                        int start,
                                        int end)
Returns a range of all the social activities where classNameId = ? and classPK = ? and type = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C_T in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByC_C_T

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C_T in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByC_C_T

public List<SocialActivity> findByC_C_T(long classNameId,
                                        long classPK,
                                        int type,
                                        int start,
                                        int end,
                                        OrderByComparator<SocialActivity> orderByComparator,
                                        boolean retrieveFromCache)
Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_C_T in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByC_C_T_First

public SocialActivity findByC_C_T_First(long classNameId,
                                        long classPK,
                                        int type,
                                        OrderByComparator<SocialActivity> orderByComparator)
                                 throws NoSuchActivityException
Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.

Specified by:
findByC_C_T_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByC_C_T_First

public SocialActivity fetchByC_C_T_First(long classNameId,
                                         long classPK,
                                         int type,
                                         OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.

Specified by:
fetchByC_C_T_First in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByC_C_T_Last

public SocialActivity findByC_C_T_Last(long classNameId,
                                       long classPK,
                                       int type,
                                       OrderByComparator<SocialActivity> orderByComparator)
                                throws NoSuchActivityException
Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.

Specified by:
findByC_C_T_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByC_C_T_Last

public SocialActivity fetchByC_C_T_Last(long classNameId,
                                        long classPK,
                                        int type,
                                        OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.

Specified by:
fetchByC_C_T_Last in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByC_C_T_PrevAndNext

public SocialActivity[] findByC_C_T_PrevAndNext(long activityId,
                                                long classNameId,
                                                long classPK,
                                                int type,
                                                OrderByComparator<SocialActivity> orderByComparator)
                                         throws NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.

Specified by:
findByC_C_T_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByC_C_T_PrevAndNext

protected SocialActivity getByC_C_T_PrevAndNext(Session session,
                                                SocialActivity socialActivity,
                                                long classNameId,
                                                long classPK,
                                                int type,
                                                OrderByComparator<SocialActivity> orderByComparator,
                                                boolean previous)

removeByC_C_T

public void removeByC_C_T(long classNameId,
                          long classPK,
                          int type)
Removes all the social activities where classNameId = ? and classPK = ? and type = ? from the database.

Specified by:
removeByC_C_T in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type

countByC_C_T

public int countByC_C_T(long classNameId,
                        long classPK,
                        int type)
Returns the number of social activities where classNameId = ? and classPK = ? and type = ?.

Specified by:
countByC_C_T in interface SocialActivityPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the number of matching social activities

findByG_U_C_C_T_R

public List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                              long userId,
                                              long classNameId,
                                              long classPK,
                                              int type,
                                              long receiverUserId)
Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
findByG_U_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activities

findByG_U_C_C_T_R

public List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                              long userId,
                                              long classNameId,
                                              long classPK,
                                              int type,
                                              long receiverUserId,
                                              int start,
                                              int end)
Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of matching social activities

findByG_U_C_C_T_R

public List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                              long userId,
                                              long classNameId,
                                              long classPK,
                                              int type,
                                              long receiverUserId,
                                              int start,
                                              int end,
                                              OrderByComparator<SocialActivity> orderByComparator)
Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activities

findByG_U_C_C_T_R

public List<SocialActivity> findByG_U_C_C_T_R(long groupId,
                                              long userId,
                                              long classNameId,
                                              long classPK,
                                              int type,
                                              long receiverUserId,
                                              int start,
                                              int end,
                                              OrderByComparator<SocialActivity> orderByComparator,
                                              boolean retrieveFromCache)
Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_U_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social activities

findByG_U_C_C_T_R_First

public SocialActivity findByG_U_C_C_T_R_First(long groupId,
                                              long userId,
                                              long classNameId,
                                              long classPK,
                                              int type,
                                              long receiverUserId,
                                              OrderByComparator<SocialActivity> orderByComparator)
                                       throws NoSuchActivityException
Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
findByG_U_C_C_T_R_First in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByG_U_C_C_T_R_First

public SocialActivity fetchByG_U_C_C_T_R_First(long groupId,
                                               long userId,
                                               long classNameId,
                                               long classPK,
                                               int type,
                                               long receiverUserId,
                                               OrderByComparator<SocialActivity> orderByComparator)
Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
fetchByG_U_C_C_T_R_First in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity, or null if a matching social activity could not be found

findByG_U_C_C_T_R_Last

public SocialActivity findByG_U_C_C_T_R_Last(long groupId,
                                             long userId,
                                             long classNameId,
                                             long classPK,
                                             int type,
                                             long receiverUserId,
                                             OrderByComparator<SocialActivity> orderByComparator)
                                      throws NoSuchActivityException
Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
findByG_U_C_C_T_R_Last in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

fetchByG_U_C_C_T_R_Last

public SocialActivity fetchByG_U_C_C_T_R_Last(long groupId,
                                              long userId,
                                              long classNameId,
                                              long classPK,
                                              int type,
                                              long receiverUserId,
                                              OrderByComparator<SocialActivity> orderByComparator)
Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
fetchByG_U_C_C_T_R_Last in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity, or null if a matching social activity could not be found

findByG_U_C_C_T_R_PrevAndNext

public SocialActivity[] findByG_U_C_C_T_R_PrevAndNext(long activityId,
                                                      long groupId,
                                                      long userId,
                                                      long classNameId,
                                                      long classPK,
                                                      int type,
                                                      long receiverUserId,
                                                      OrderByComparator<SocialActivity> orderByComparator)
                                               throws NoSuchActivityException
Returns the social activities before and after the current social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
findByG_U_C_C_T_R_PrevAndNext in interface SocialActivityPersistence
Parameters:
activityId - the primary key of the current social activity
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

getByG_U_C_C_T_R_PrevAndNext

protected SocialActivity getByG_U_C_C_T_R_PrevAndNext(Session session,
                                                      SocialActivity socialActivity,
                                                      long groupId,
                                                      long userId,
                                                      long classNameId,
                                                      long classPK,
                                                      int type,
                                                      long receiverUserId,
                                                      OrderByComparator<SocialActivity> orderByComparator,
                                                      boolean previous)

removeByG_U_C_C_T_R

public void removeByG_U_C_C_T_R(long groupId,
                                long userId,
                                long classNameId,
                                long classPK,
                                int type,
                                long receiverUserId)
Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database.

Specified by:
removeByG_U_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID

countByG_U_C_C_T_R

public int countByG_U_C_C_T_R(long groupId,
                              long userId,
                              long classNameId,
                              long classPK,
                              int type,
                              long receiverUserId)
Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.

Specified by:
countByG_U_C_C_T_R in interface SocialActivityPersistence
Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the number of matching social activities

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
Returns 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
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activity
Throws:
NoSuchActivityException - if a matching social activity could not be found

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)
Returns 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
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the matching social activity, or null if a matching social activity could not be found

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)
Returns 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
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching social activity, or null if a matching social activity could not be found

removeByG_U_CD_C_C_T_R

public SocialActivity removeByG_U_CD_C_C_T_R(long groupId,
                                             long userId,
                                             long createDate,
                                             long classNameId,
                                             long classPK,
                                             int type,
                                             long receiverUserId)
                                      throws NoSuchActivityException
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
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the social activity that was removed
Throws:
NoSuchActivityException

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)
Returns the number of 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
userId - the user ID
createDate - the create date
classNameId - the class name ID
classPK - the class p k
type - the type
receiverUserId - the receiver user ID
Returns:
the number of matching social activities

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

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

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

clearCache

public void clearCache(List<SocialActivity> socialActivities)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

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

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SocialActivityModelImpl socialActivityModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SocialActivityModelImpl socialActivityModelImpl)

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(long activityId)
                      throws NoSuchActivityException
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
Returns:
the social activity that was removed
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

remove

public SocialActivity remove(Serializable primaryKey)
                      throws NoSuchActivityException
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
Returns:
the social activity that was removed
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

removeImpl

protected SocialActivity removeImpl(SocialActivity socialActivity)
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

updateImpl

public SocialActivity updateImpl(SocialActivity socialActivity)
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
Returns:
the model instance that was updated

toUnwrappedModel

protected SocialActivity toUnwrappedModel(SocialActivity socialActivity)

findByPrimaryKey

public SocialActivity findByPrimaryKey(Serializable primaryKey)
                                throws NoSuchActivityException
Returns 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
Returns:
the social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

findByPrimaryKey

public SocialActivity findByPrimaryKey(long activityId)
                                throws NoSuchActivityException
Returns 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
Returns:
the social activity
Throws:
NoSuchActivityException - if a social activity with the primary key could not be found

fetchByPrimaryKey

public SocialActivity fetchByPrimaryKey(Serializable primaryKey)
Returns 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
Returns:
the social activity, or null if a social activity with the primary key could not be found

fetchByPrimaryKey

public SocialActivity fetchByPrimaryKey(long activityId)
Returns 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
Returns:
the social activity, or null if a social activity with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,SocialActivity> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<SocialActivity>
Specified by:
fetchByPrimaryKeys in interface SocialActivityPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<SocialActivity>

findAll

public List<SocialActivity> findAll()
Returns all the social activities.

Specified by:
findAll in interface SocialActivityPersistence
Returns:
the social activities

findAll

public List<SocialActivity> findAll(int start,
                                    int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
Returns:
the range of social activities

findAll

public List<SocialActivity> findAll(int start,
                                    int end,
                                    OrderByComparator<SocialActivity> orderByComparator)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activities

findAll

public List<SocialActivity> findAll(int start,
                                    int end,
                                    OrderByComparator<SocialActivity> orderByComparator,
                                    boolean retrieveFromCache)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivityPersistence
Parameters:
start - the lower bound of the range of social activities
end - the upper bound of the range of social activities (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of social activities

removeAll

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

Specified by:
removeAll in interface SocialActivityPersistence

countAll

public int countAll()
Returns the number of social activities.

Specified by:
countAll in interface SocialActivityPersistence
Returns:
the number of social activities

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<SocialActivity>
Specified by:
getBadColumnNames in interface SocialActivityPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<SocialActivity>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<SocialActivity>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social activity persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4