Class SocialActivityPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivity>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivity>,com.liferay.social.kernel.service.persistence.SocialActivityPersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the social activity persistence.intcountByActivitySetId(long activitySetId) Returns the number of social activities where activitySetId = ?.intcountByC_C(long classNameId, long classPK) Returns the number of social activities where classNameId = ? and classPK = ?.intcountByC_C_T(long classNameId, long classPK, int type) Returns the number of social activities where classNameId = ? and classPK = ? and type = ?.intcountByC_CN(long companyId, long classNameId) Returns the number of social activities where companyId = ? and classNameId = ?.intcountByCompanyId(long companyId) Returns the number of social activities where companyId = ?.intcountByG_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 = ?.intcountByG_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 = ?.intcountByGroupId(long groupId) Returns the number of social activities where groupId = ?.intcountByM_C_C(long mirrorActivityId, long classNameId, long classPK) Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.intcountByMirrorActivityId(long mirrorActivityId) Returns the number of social activities where mirrorActivityId = ?.intcountByReceiverUserId(long receiverUserId) Returns the number of social activities where receiverUserId = ?.intcountByUserId(long userId) Returns the number of social activities where userId = ?.com.liferay.social.kernel.model.SocialActivitycreate(long activityId) Creates a new social activity with the primary key.voiddestroy()com.liferay.social.kernel.model.SocialActivityfetchByActivitySetId_First(long activitySetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where activitySetId = ?.com.liferay.social.kernel.model.SocialActivityfetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.com.liferay.social.kernel.model.SocialActivityfetchByC_C_T_First(long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.com.liferay.social.kernel.model.SocialActivityfetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.com.liferay.social.kernel.model.SocialActivityfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ?.com.liferay.social.kernel.model.SocialActivityfetchByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.com.liferay.social.kernel.model.SocialActivityfetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean useFinderCache) Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.social.kernel.model.SocialActivityfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ?.com.liferay.social.kernel.model.SocialActivityfetchByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.com.liferay.social.kernel.model.SocialActivityfetchByMirrorActivityId(long mirrorActivityId, boolean useFinderCache) Returns the social activity where mirrorActivityId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.social.kernel.model.SocialActivityfetchByPrimaryKey(long activityId) Returns the social activity with the primary key or returnsnullif it could not be found.com.liferay.social.kernel.model.SocialActivityfetchByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where receiverUserId = ?.com.liferay.social.kernel.model.SocialActivityfetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where userId = ?.List<com.liferay.social.kernel.model.SocialActivity>findByActivitySetId(long activitySetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where activitySetId = ?.com.liferay.social.kernel.model.SocialActivityfindByActivitySetId_First(long activitySetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where activitySetId = ?.List<com.liferay.social.kernel.model.SocialActivity>findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.com.liferay.social.kernel.model.SocialActivityfindByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.List<com.liferay.social.kernel.model.SocialActivity>findByC_C_T(long classNameId, long classPK, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.com.liferay.social.kernel.model.SocialActivityfindByC_C_T_First(long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.List<com.liferay.social.kernel.model.SocialActivity>findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ? and classNameId = ?.com.liferay.social.kernel.model.SocialActivityfindByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.List<com.liferay.social.kernel.model.SocialActivity>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ?.com.liferay.social.kernel.model.SocialActivityfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ?.List<com.liferay.social.kernel.model.SocialActivity>findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.com.liferay.social.kernel.model.SocialActivityfindByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?.com.liferay.social.kernel.model.SocialActivityfindByG_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 aNoSuchActivityExceptionif it could not be found.List<com.liferay.social.kernel.model.SocialActivity>findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where groupId = ?.com.liferay.social.kernel.model.SocialActivityfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ?.List<com.liferay.social.kernel.model.SocialActivity>findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.com.liferay.social.kernel.model.SocialActivityfindByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.com.liferay.social.kernel.model.SocialActivityfindByMirrorActivityId(long mirrorActivityId) Returns the social activity where mirrorActivityId = ? or throws aNoSuchActivityExceptionif it could not be found.com.liferay.social.kernel.model.SocialActivityfindByPrimaryKey(long activityId) Returns the social activity with the primary key or throws aNoSuchActivityExceptionif it could not be found.List<com.liferay.social.kernel.model.SocialActivity>findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where receiverUserId = ?.com.liferay.social.kernel.model.SocialActivityfindByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where receiverUserId = ?.List<com.liferay.social.kernel.model.SocialActivity>findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where userId = ?.com.liferay.social.kernel.model.SocialActivityfindByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where userId = ?.getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelperprotected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringcom.liferay.social.kernel.model.SocialActivityremove(long activityId) Removes the social activity with the primary key from the database.voidremoveByActivitySetId(long activitySetId) Removes all the social activities where activitySetId = ? from the database.voidremoveByC_C(long classNameId, long classPK) Removes all the social activities where classNameId = ? and classPK = ? from the database.voidremoveByC_C_T(long classNameId, long classPK, int type) Removes all the social activities where classNameId = ? and classPK = ? and type = ? from the database.voidremoveByC_CN(long companyId, long classNameId) Removes all the social activities where companyId = ? and classNameId = ? from the database.voidremoveByCompanyId(long companyId) Removes all the social activities where companyId = ? from the database.voidremoveByG_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.com.liferay.social.kernel.model.SocialActivityremoveByG_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.voidremoveByGroupId(long groupId) Removes all the social activities where groupId = ? from the database.voidremoveByM_C_C(long mirrorActivityId, long classNameId, long classPK) Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database.com.liferay.social.kernel.model.SocialActivityremoveByMirrorActivityId(long mirrorActivityId) Removes the social activity where mirrorActivityId = ? from the database.voidremoveByReceiverUserId(long receiverUserId) Removes all the social activities where receiverUserId = ? from the database.voidremoveByUserId(long userId) Removes all the social activities where userId = ? from the database.protected com.liferay.social.kernel.model.SocialActivityremoveImpl(com.liferay.social.kernel.model.SocialActivity socialActivity) com.liferay.social.kernel.model.SocialActivityupdateImpl(com.liferay.social.kernel.model.SocialActivity socialActivity) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.social.kernel.service.persistence.SocialActivityPersistence
fetchByG_U_CD_C_C_T_R, fetchByMirrorActivityId, findByActivitySetId, findByActivitySetId, findByActivitySetId, findByC_C, findByC_C, findByC_C, findByC_C_T, findByC_C_T, findByC_C_T, findByC_CN, findByC_CN, findByC_CN, findByCompanyId, findByCompanyId, findByCompanyId, findByG_U_C_C_T_R, findByG_U_C_C_T_R, findByG_U_C_C_T_R, findByGroupId, findByGroupId, findByGroupId, findByM_C_C, findByM_C_C, findByM_C_C, findByReceiverUserId, findByReceiverUserId, findByReceiverUserId, findByUserId, findByUserId, findByUserId
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
-
Constructor Details
-
SocialActivityPersistenceImpl
public SocialActivityPersistenceImpl()
-
-
Method Details
-
findByGroupId
public List<com.liferay.social.kernel.model.SocialActivity> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByGroupIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByGroupId_First
public com.liferay.social.kernel.model.SocialActivity findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where groupId = ?.- Specified by:
findByGroupId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByGroupId_First
public com.liferay.social.kernel.model.SocialActivity fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where groupId = ?.- Specified by:
fetchByGroupId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
removeByGroupId
public void removeByGroupId(long groupId) Removes all the social activities where groupId = ? from the database.- Specified by:
removeByGroupIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group ID
-
countByGroupId
public int countByGroupId(long groupId) Returns the number of social activities where groupId = ?.- Specified by:
countByGroupIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group ID- Returns:
- the number of matching social activities
-
findByCompanyId
public List<com.liferay.social.kernel.model.SocialActivity> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByCompanyId_First
public com.liferay.social.kernel.model.SocialActivity findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByCompanyId_First
public com.liferay.social.kernel.model.SocialActivity fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the social activities where companyId = ? from the database.- Specified by:
removeByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of social activities where companyId = ?.- Specified by:
countByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching social activities
-
findByUserId
public List<com.liferay.social.kernel.model.SocialActivity> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByUserIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
userId- the user IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByUserId_First
public com.liferay.social.kernel.model.SocialActivity findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where userId = ?.- Specified by:
findByUserId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByUserId_First
public com.liferay.social.kernel.model.SocialActivity fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where userId = ?.- Specified by:
fetchByUserId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
removeByUserId
public void removeByUserId(long userId) Removes all the social activities where userId = ? from the database.- Specified by:
removeByUserIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
userId- the user ID
-
countByUserId
public int countByUserId(long userId) Returns the number of social activities where userId = ?.- Specified by:
countByUserIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
userId- the user ID- Returns:
- the number of matching social activities
-
findByActivitySetId
public List<com.liferay.social.kernel.model.SocialActivity> findByActivitySetId(long activitySetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where activitySetId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByActivitySetIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activitySetId- the activity set IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByActivitySetId_First
public com.liferay.social.kernel.model.SocialActivity findByActivitySetId_First(long activitySetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where activitySetId = ?.- Specified by:
findByActivitySetId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activitySetId- the activity set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByActivitySetId_First
public com.liferay.social.kernel.model.SocialActivity fetchByActivitySetId_First(long activitySetId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where activitySetId = ?.- Specified by:
fetchByActivitySetId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activitySetId- the activity set IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
removeByActivitySetId
public void removeByActivitySetId(long activitySetId) Removes all the social activities where activitySetId = ? from the database.- Specified by:
removeByActivitySetIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activitySetId- the activity set ID
-
countByActivitySetId
public int countByActivitySetId(long activitySetId) Returns the number of social activities where activitySetId = ?.- Specified by:
countByActivitySetIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activitySetId- the activity set ID- Returns:
- the number of matching social activities
-
findByMirrorActivityId
public com.liferay.social.kernel.model.SocialActivity findByMirrorActivityId(long mirrorActivityId) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the social activity where mirrorActivityId = ? or throws aNoSuchActivityExceptionif it could not be found.- Specified by:
findByMirrorActivityIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity ID- Returns:
- the matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByMirrorActivityId
public com.liferay.social.kernel.model.SocialActivity fetchByMirrorActivityId(long mirrorActivityId, boolean useFinderCache) Returns the social activity where mirrorActivityId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByMirrorActivityIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity IDuseFinderCache- whether to use the finder cache- Returns:
- the matching social activity, or
nullif a matching social activity could not be found
-
removeByMirrorActivityId
public com.liferay.social.kernel.model.SocialActivity removeByMirrorActivityId(long mirrorActivityId) throws com.liferay.social.kernel.exception.NoSuchActivityException Removes the social activity where mirrorActivityId = ? from the database.- Specified by:
removeByMirrorActivityIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity ID- Returns:
- the social activity that was removed
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException
-
countByMirrorActivityId
public int countByMirrorActivityId(long mirrorActivityId) Returns the number of social activities where mirrorActivityId = ?.- Specified by:
countByMirrorActivityIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity ID- Returns:
- the number of matching social activities
-
findByReceiverUserId
public List<com.liferay.social.kernel.model.SocialActivity> findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where receiverUserId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByReceiverUserIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
receiverUserId- the receiver user IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByReceiverUserId_First
public com.liferay.social.kernel.model.SocialActivity findByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where receiverUserId = ?.- Specified by:
findByReceiverUserId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
receiverUserId- the receiver user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByReceiverUserId_First
public com.liferay.social.kernel.model.SocialActivity fetchByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where receiverUserId = ?.- Specified by:
fetchByReceiverUserId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
receiverUserId- the receiver user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
removeByReceiverUserId
public void removeByReceiverUserId(long receiverUserId) Removes all the social activities where receiverUserId = ? from the database.- Specified by:
removeByReceiverUserIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
receiverUserId- the receiver user ID
-
countByReceiverUserId
public int countByReceiverUserId(long receiverUserId) Returns the number of social activities where receiverUserId = ?.- Specified by:
countByReceiverUserIdin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
receiverUserId- the receiver user ID- Returns:
- the number of matching social activities
-
findByC_CN
public List<com.liferay.social.kernel.model.SocialActivity> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByC_CNin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByC_CN_First
public com.liferay.social.kernel.model.SocialActivity findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.- Specified by:
findByC_CN_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByC_CN_First
public com.liferay.social.kernel.model.SocialActivity fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where companyId = ? and classNameId = ?.- Specified by:
fetchByC_CN_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
removeByC_CN
public void removeByC_CN(long companyId, long classNameId) Removes all the social activities where companyId = ? and classNameId = ? from the database.- Specified by:
removeByC_CNin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDclassNameId- the class name ID
-
countByC_CN
public int countByC_CN(long companyId, long classNameId) Returns the number of social activities where companyId = ? and classNameId = ?.- Specified by:
countByC_CNin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the number of matching social activities
-
findByC_C
public List<com.liferay.social.kernel.model.SocialActivity> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByC_Cin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByC_C_First
public com.liferay.social.kernel.model.SocialActivity findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.- Specified by:
findByC_C_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByC_C_First
public com.liferay.social.kernel.model.SocialActivity fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ?.- Specified by:
fetchByC_C_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
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_Cin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pk
-
countByC_C
public int countByC_C(long classNameId, long classPK) Returns the number of social activities where classNameId = ? and classPK = ?.- Specified by:
countByC_Cin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching social activities
-
findByM_C_C
public List<com.liferay.social.kernel.model.SocialActivity> findByM_C_C(long mirrorActivityId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByM_C_Cin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByM_C_C_First
public com.liferay.social.kernel.model.SocialActivity findByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Specified by:
findByM_C_C_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity IDclassNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByM_C_C_First
public com.liferay.social.kernel.model.SocialActivity fetchByM_C_C_First(long mirrorActivityId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?.- Specified by:
fetchByM_C_C_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity IDclassNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
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_Cin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity IDclassNameId- the class name IDclassPK- the class pk
-
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_Cin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
mirrorActivityId- the mirror activity IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching social activities
-
findByC_C_T
public List<com.liferay.social.kernel.model.SocialActivity> findByC_C_T(long classNameId, long classPK, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activities where classNameId = ? and classPK = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByC_C_Tin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pktype- the typestart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByC_C_T_First
public com.liferay.social.kernel.model.SocialActivity findByC_C_T_First(long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Specified by:
findByC_C_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pktype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByC_C_T_First
public com.liferay.social.kernel.model.SocialActivity fetchByC_C_T_First(long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) Returns the first social activity in the ordered set where classNameId = ? and classPK = ? and type = ?.- Specified by:
fetchByC_C_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pktype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pktype- 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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
classNameId- the class name IDclassPK- the class pktype- the type- Returns:
- the number of matching social activities
-
findByG_U_C_C_T_R
public List<com.liferay.social.kernel.model.SocialActivity> findByG_U_C_C_T_R(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator, boolean useFinderCache) 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialActivityModelImpl.- Specified by:
findByG_U_C_C_T_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user IDstart- the lower bound of the range of social activitiesend- the upper bound of the range of social activities (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social activities
-
findByG_U_C_C_T_R_First
public com.liferay.social.kernel.model.SocialActivity findByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialActivity> orderByComparator) throws com.liferay.social.kernel.exception.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_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByG_U_C_C_T_R_First
public com.liferay.social.kernel.model.SocialActivity fetchByG_U_C_C_T_R_First(long groupId, long userId, long classNameId, long classPK, int type, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.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_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social activity, or
nullif a matching social activity could not be found
-
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_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- 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_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user ID- Returns:
- the number of matching social activities
-
findByG_U_CD_C_C_T_R
public com.liferay.social.kernel.model.SocialActivity findByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws aNoSuchActivityExceptionif it could not be found.- Specified by:
findByG_U_CD_C_C_T_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDcreateDate- the create dateclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user ID- Returns:
- the matching social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a matching social activity could not be found
-
fetchByG_U_CD_C_C_T_R
public com.liferay.social.kernel.model.SocialActivity fetchByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId, boolean useFinderCache) Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByG_U_CD_C_C_T_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDcreateDate- the create dateclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching social activity, or
nullif a matching social activity could not be found
-
removeByG_U_CD_C_C_T_R
public com.liferay.social.kernel.model.SocialActivity removeByG_U_CD_C_C_T_R(long groupId, long userId, long createDate, long classNameId, long classPK, int type, long receiverUserId) throws com.liferay.social.kernel.exception.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_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDcreateDate- the create dateclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user ID- Returns:
- the social activity that was removed
- Throws:
com.liferay.social.kernel.exception.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_Rin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
groupId- the group IDuserId- the user IDcreateDate- the create dateclassNameId- the class name IDclassPK- the class pktype- the typereceiverUserId- the receiver user ID- Returns:
- the number of matching social activities
-
create
public com.liferay.social.kernel.model.SocialActivity create(long activityId) Creates a new social activity with the primary key. Does not add the social activity to the database.- Specified by:
createin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activityId- the primary key for the new social activity- Returns:
- the new social activity
-
remove
public com.liferay.social.kernel.model.SocialActivity remove(long activityId) throws com.liferay.social.kernel.exception.NoSuchActivityException Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activityId- the primary key of the social activity- Returns:
- the social activity that was removed
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a social activity with the primary key could not be found
-
removeImpl
protected com.liferay.social.kernel.model.SocialActivity removeImpl(com.liferay.social.kernel.model.SocialActivity socialActivity) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
updateImpl
public com.liferay.social.kernel.model.SocialActivity updateImpl(com.liferay.social.kernel.model.SocialActivity socialActivity) - Specified by:
updateImplin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
findByPrimaryKey
public com.liferay.social.kernel.model.SocialActivity findByPrimaryKey(long activityId) throws com.liferay.social.kernel.exception.NoSuchActivityException Returns the social activity with the primary key or throws aNoSuchActivityExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activityId- the primary key of the social activity- Returns:
- the social activity
- Throws:
com.liferay.social.kernel.exception.NoSuchActivityException- if a social activity with the primary key could not be found
-
getCTPersistenceHelper
protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()- Overrides:
getCTPersistenceHelperin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
fetchByPrimaryKey
public com.liferay.social.kernel.model.SocialActivity fetchByPrimaryKey(long activityId) Returns the social activity with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.social.kernel.service.persistence.SocialActivityPersistence- Parameters:
activityId- the primary key of the social activity- Returns:
- the social activity, or
nullif a social activity with the primary key could not be found
-
getBadColumnNames
- Specified by:
getBadColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialActivity>- Overrides:
getBadColumnNamesin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivity>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivity>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivity>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivity>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialActivity>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the social activity persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialActivity,com.liferay.social.kernel.exception.NoSuchActivityException>
-