Interface SocialActivityLimitPersistence
- All Superinterfaces:
BasePersistence<SocialActivityLimit>
,CTPersistence<SocialActivityLimit>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(SocialActivityLimit socialActivityLimit) Caches the social activity limit in the entity cache if it is enabled.void
cacheResult
(List<SocialActivityLimit> socialActivityLimits) Caches the social activity limits in the entity cache if it is enabled.int
countAll()
Returns the number of social activity limits.int
countByC_C
(long classNameId, long classPK) Returns the number of social activity limits where classNameId = ? and classPK = ?.int
countByG_U_C_C_A_A
(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?.int
countByGroupId
(long groupId) Returns the number of social activity limits where groupId = ?.int
countByUserId
(long userId) Returns the number of social activity limits where userId = ?.create
(long activityLimitId) Creates a new social activity limit with the primary key.fetchByC_C_First
(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.fetchByC_C_Last
(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.fetchByG_U_C_C_A_A
(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returnsnull
if it could not be found.fetchByG_U_C_C_A_A
(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName, boolean useFinderCache) Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByGroupId_First
(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where groupId = ?.fetchByPrimaryKey
(long activityLimitId) Returns the social activity limit with the primary key or returnsnull
if it could not be found.fetchByUserId_First
(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where userId = ?.fetchByUserId_Last
(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where userId = ?.findAll()
Returns all the social activity limits.findAll
(int start, int end) Returns a range of all the social activity limits.findAll
(int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits.findAll
(int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits.findByC_C
(long classNameId, long classPK) Returns all the social activity limits where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end) Returns a range of all the social activity limits where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?.findByC_C_First
(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.findByC_C_Last
(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.findByC_C_PrevAndNext
(long activityLimitId, long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?.findByG_U_C_C_A_A
(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or throws aNoSuchActivityLimitException
if it could not be found.findByGroupId
(long groupId) Returns all the social activity limits where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the social activity limits where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits where groupId = ?.findByGroupId_First
(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where groupId = ?.findByGroupId_Last
(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where groupId = ?.findByGroupId_PrevAndNext
(long activityLimitId, long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = ?.findByPrimaryKey
(long activityLimitId) Returns the social activity limit with the primary key or throws aNoSuchActivityLimitException
if it could not be found.findByUserId
(long userId) Returns all the social activity limits where userId = ?.findByUserId
(long userId, int start, int end) Returns a range of all the social activity limits where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits where userId = ?.findByUserId_First
(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where userId = ?.findByUserId_Last
(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where userId = ?.findByUserId_PrevAndNext
(long activityLimitId, long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?.remove
(long activityLimitId) Removes the social activity limit with the primary key from the database.void
Removes all the social activity limits from the database.void
removeByC_C
(long classNameId, long classPK) Removes all the social activity limits where classNameId = ? and classPK = ? from the database.removeByG_U_C_C_A_A
(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) Removes the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? from the database.void
removeByGroupId
(long groupId) Removes all the social activity limits where groupId = ? from the database.void
removeByUserId
(long userId) Removes all the social activity limits where userId = ? from the database.updateImpl
(SocialActivityLimit socialActivityLimit) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByGroupId
Returns all the social activity limits where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching social activity limits
-
findByGroupId
Returns a range of all the social activity limits where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)- Returns:
- the range of matching social activity limits
-
findByGroupId
List<SocialActivityLimit> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity limits
-
findByGroupId
List<SocialActivityLimit> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (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 activity limits
-
findByGroupId_First
SocialActivityLimit findByGroupId_First(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the first social activity limit in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByGroupId_First
SocialActivityLimit fetchByGroupId_First(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity limit, or
null
if a matching social activity limit could not be found
-
findByGroupId_Last
SocialActivityLimit findByGroupId_Last(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the last social activity limit in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByGroupId_Last
SocialActivityLimit fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity limit, or
null
if a matching social activity limit could not be found
-
findByGroupId_PrevAndNext
SocialActivityLimit[] findByGroupId_PrevAndNext(long activityLimitId, long groupId, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = ?.- Parameters:
activityLimitId
- the primary key of the current social activity limitgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity limit
- Throws:
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the social activity limits where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of social activity limits where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching social activity limits
-
findByUserId
Returns all the social activity limits where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the matching social activity limits
-
findByUserId
Returns a range of all the social activity limits where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)- Returns:
- the range of matching social activity limits
-
findByUserId
List<SocialActivityLimit> findByUserId(long userId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity limits
-
findByUserId
List<SocialActivityLimit> findByUserId(long userId, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (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 activity limits
-
findByUserId_First
SocialActivityLimit findByUserId_First(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the first social activity limit in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByUserId_First
SocialActivityLimit fetchByUserId_First(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity limit, or
null
if a matching social activity limit could not be found
-
findByUserId_Last
SocialActivityLimit findByUserId_Last(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the last social activity limit in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByUserId_Last
SocialActivityLimit fetchByUserId_Last(long userId, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity limit, or
null
if a matching social activity limit could not be found
-
findByUserId_PrevAndNext
SocialActivityLimit[] findByUserId_PrevAndNext(long activityLimitId, long userId, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?.- Parameters:
activityLimitId
- the primary key of the current social activity limituserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity limit
- Throws:
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the social activity limits where userId = ? from the database.- Parameters:
userId
- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of social activity limits where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the number of matching social activity limits
-
findByC_C
Returns all the social activity limits where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching social activity limits
-
findByC_C
Returns a range of all the social activity limits where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)- Returns:
- the range of matching social activity limits
-
findByC_C
List<SocialActivityLimit> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity limits
-
findByC_C
List<SocialActivityLimit> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (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 activity limits
-
findByC_C_First
SocialActivityLimit findByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByC_C_First
SocialActivityLimit fetchByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity limit, or
null
if a matching social activity limit could not be found
-
findByC_C_Last
SocialActivityLimit findByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByC_C_Last
SocialActivityLimit fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity limit, or
null
if a matching social activity limit could not be found
-
findByC_C_PrevAndNext
SocialActivityLimit[] findByC_C_PrevAndNext(long activityLimitId, long classNameId, long classPK, OrderByComparator<SocialActivityLimit> orderByComparator) throws NoSuchActivityLimitException Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?.- Parameters:
activityLimitId
- the primary key of the current social activity limitclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity limit
- Throws:
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
-
removeByC_C
void removeByC_C(long classNameId, long classPK) Removes all the social activity limits where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
int countByC_C(long classNameId, long classPK) Returns the number of social activity limits where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching social activity limits
-
findByG_U_C_C_A_A
SocialActivityLimit findByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) throws NoSuchActivityLimitException Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or throws aNoSuchActivityLimitException
if it could not be found.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkactivityType
- the activity typeactivityCounterName
- the activity counter name- Returns:
- the matching social activity limit
- Throws:
NoSuchActivityLimitException
- if a matching social activity limit could not be found
-
fetchByG_U_C_C_A_A
SocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkactivityType
- the activity typeactivityCounterName
- the activity counter name- Returns:
- the matching social activity limit, or
null
if a matching social activity limit could not be found
-
fetchByG_U_C_C_A_A
SocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName, boolean useFinderCache) Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkactivityType
- the activity typeactivityCounterName
- the activity counter nameuseFinderCache
- whether to use the finder cache- Returns:
- the matching social activity limit, or
null
if a matching social activity limit could not be found
-
removeByG_U_C_C_A_A
SocialActivityLimit removeByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) throws NoSuchActivityLimitException Removes the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? from the database.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkactivityType
- the activity typeactivityCounterName
- the activity counter name- Returns:
- the social activity limit that was removed
- Throws:
NoSuchActivityLimitException
-
countByG_U_C_C_A_A
int countByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?.- Parameters:
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkactivityType
- the activity typeactivityCounterName
- the activity counter name- Returns:
- the number of matching social activity limits
-
cacheResult
Caches the social activity limit in the entity cache if it is enabled.- Parameters:
socialActivityLimit
- the social activity limit
-
cacheResult
Caches the social activity limits in the entity cache if it is enabled.- Parameters:
socialActivityLimits
- the social activity limits
-
create
Creates a new social activity limit with the primary key. Does not add the social activity limit to the database.- Parameters:
activityLimitId
- the primary key for the new social activity limit- Returns:
- the new social activity limit
-
remove
Removes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
activityLimitId
- the primary key of the social activity limit- Returns:
- the social activity limit that was removed
- Throws:
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the social activity limit with the primary key or throws aNoSuchActivityLimitException
if it could not be found.- Parameters:
activityLimitId
- the primary key of the social activity limit- Returns:
- the social activity limit
- Throws:
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
-
fetchByPrimaryKey
Returns the social activity limit with the primary key or returnsnull
if it could not be found.- Parameters:
activityLimitId
- the primary key of the social activity limit- Returns:
- the social activity limit, or
null
if a social activity limit with the primary key could not be found
-
findAll
List<SocialActivityLimit> findAll()Returns all the social activity limits.- Returns:
- the social activity limits
-
findAll
Returns a range of all the social activity limits.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
start
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)- Returns:
- the range of social activity limits
-
findAll
List<SocialActivityLimit> findAll(int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator) Returns an ordered range of all the social activity limits.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
start
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of social activity limits
-
findAll
List<SocialActivityLimit> findAll(int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity limits.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityLimitModelImpl
.- Parameters:
start
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of social activity limits
-
removeAll
void removeAll()Removes all the social activity limits from the database. -
countAll
int countAll()Returns the number of social activity limits.- Returns:
- the number of social activity limits
-