Liferay 6.2-ce-ga5

com.liferay.portlet.social.service.persistence
Interface SocialActivityLimitPersistence

All Superinterfaces:
BasePersistence<SocialActivityLimit>

@ProviderType
public interface SocialActivityLimitPersistence
extends BasePersistence<SocialActivityLimit>

The persistence interface for the social activity limit service.

Caching information and settings can be found in portal.properties

See Also:
SocialActivityLimitPersistenceImpl, SocialActivityLimitUtil

Method Summary
 void cacheResult(List<SocialActivityLimit> socialActivityLimits)
          Caches the social activity limits in the entity cache if it is enabled.
 void cacheResult(SocialActivityLimit socialActivityLimit)
          Caches the social activity limit 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 = ?.
 SocialActivityLimit create(long activityLimitId)
          Creates a new social activity limit with the primary key.
 SocialActivityLimit fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.
 SocialActivityLimit fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.
 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 returns null if it could not be found.
 SocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName, boolean retrieveFromCache)
          Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns null if it could not be found, optionally using the finder cache.
 SocialActivityLimit fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where groupId = ?.
 SocialActivityLimit fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where groupId = ?.
 SocialActivityLimit fetchByPrimaryKey(long activityLimitId)
          Returns the social activity limit with the primary key or returns null if it could not be found.
 SocialActivityLimit fetchByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where userId = ?.
 SocialActivityLimit fetchByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where userId = ?.
 List<SocialActivityLimit> findAll()
          Returns all the social activity limits.
 List<SocialActivityLimit> findAll(int start, int end)
          Returns a range of all the social activity limits.
 List<SocialActivityLimit> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity limits.
 SocialActivityLimit findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.
 SocialActivityLimit findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.
 SocialActivityLimit[] findByC_C_PrevAndNext(long activityLimitId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?.
 List<SocialActivityLimit> findByC_C(long classNameId, long classPK)
          Returns all the social activity limits where classNameId = ? and classPK = ?.
 List<SocialActivityLimit> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the social activity limits where classNameId = ? and classPK = ?.
 List<SocialActivityLimit> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?.
 SocialActivityLimit 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 a NoSuchActivityLimitException if it could not be found.
 SocialActivityLimit findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where groupId = ?.
 SocialActivityLimit findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where groupId = ?.
 SocialActivityLimit[] findByGroupId_PrevAndNext(long activityLimitId, long groupId, OrderByComparator orderByComparator)
          Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = ?.
 List<SocialActivityLimit> findByGroupId(long groupId)
          Returns all the social activity limits where groupId = ?.
 List<SocialActivityLimit> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activity limits where groupId = ?.
 List<SocialActivityLimit> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity limits where groupId = ?.
 SocialActivityLimit findByPrimaryKey(long activityLimitId)
          Returns the social activity limit with the primary key or throws a NoSuchActivityLimitException if it could not be found.
 SocialActivityLimit findByUserId_First(long userId, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where userId = ?.
 SocialActivityLimit findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where userId = ?.
 SocialActivityLimit[] findByUserId_PrevAndNext(long activityLimitId, long userId, OrderByComparator orderByComparator)
          Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?.
 List<SocialActivityLimit> findByUserId(long userId)
          Returns all the social activity limits where userId = ?.
 List<SocialActivityLimit> findByUserId(long userId, int start, int end)
          Returns a range of all the social activity limits where userId = ?.
 List<SocialActivityLimit> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity limits where userId = ?.
 SocialActivityLimit remove(long activityLimitId)
          Removes the social activity limit with the primary key from the database.
 void removeAll()
          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.
 SocialActivityLimit 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.
 SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByGroupId

List<SocialActivityLimit> findByGroupId(long groupId)
                                        throws SystemException
Returns all the social activity limits where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching social activity limits
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivityLimit> findByGroupId(long groupId,
                                        int start,
                                        int end)
                                        throws SystemException
Returns a range of all the social activity limits where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
Returns:
the range of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialActivityLimit> findByGroupId(long groupId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the social activity limits where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByGroupId_First

SocialActivityLimit findByGroupId_First(long groupId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchActivityLimitException
Returns the first social activity limit in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

SocialActivityLimit fetchByGroupId_First(long groupId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Returns the first social activity limit in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

SocialActivityLimit findByGroupId_Last(long groupId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchActivityLimitException
Returns the last social activity limit in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

SocialActivityLimit fetchByGroupId_Last(long groupId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
Returns the last social activity limit in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

SocialActivityLimit[] findByGroupId_PrevAndNext(long activityLimitId,
                                                long groupId,
                                                OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       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 limit
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity limit
Throws:
NoSuchActivityLimitException - if a social activity limit with the primary key could not be found
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Returns the number of social activity limits where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialActivityLimit> findByUserId(long userId)
                                       throws SystemException
Returns all the social activity limits where userId = ?.

Parameters:
userId - the user ID
Returns:
the matching social activity limits
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialActivityLimit> findByUserId(long userId,
                                       int start,
                                       int end)
                                       throws SystemException
Returns a range of all the social activity limits where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userId - the user ID
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
Returns:
the range of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialActivityLimit> findByUserId(long userId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Returns an ordered range of all the social activity limits where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userId - the user ID
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByUserId_First

SocialActivityLimit findByUserId_First(long userId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchActivityLimitException
Returns the first social activity limit in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

fetchByUserId_First

SocialActivityLimit fetchByUserId_First(long userId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
Returns the first social activity limit in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_Last

SocialActivityLimit findByUserId_Last(long userId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchActivityLimitException
Returns the last social activity limit in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

fetchByUserId_Last

SocialActivityLimit fetchByUserId_Last(long userId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Returns the last social activity limit in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

findByUserId_PrevAndNext

SocialActivityLimit[] findByUserId_PrevAndNext(long activityLimitId,
                                               long userId,
                                               OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      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 limit
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity limit
Throws:
NoSuchActivityLimitException - if a social activity limit with the primary key could not be found
SystemException - if a system exception occurred

removeByUserId

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

Parameters:
userId - the user ID
Throws:
SystemException - if a system exception occurred

countByUserId

int countByUserId(long userId)
                  throws SystemException
Returns the number of social activity limits where userId = ?.

Parameters:
userId - the user ID
Returns:
the number of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByC_C

List<SocialActivityLimit> findByC_C(long classNameId,
                                    long classPK)
                                    throws SystemException
Returns all the social activity limits where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching social activity limits
Throws:
SystemException - if a system exception occurred

findByC_C

List<SocialActivityLimit> findByC_C(long classNameId,
                                    long classPK,
                                    int start,
                                    int end)
                                    throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
Returns:
the range of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByC_C

List<SocialActivityLimit> findByC_C(long classNameId,
                                    long classPK,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity limits
Throws:
SystemException - if a system exception occurred

findByC_C_First

SocialActivityLimit findByC_C_First(long classNameId,
                                    long classPK,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchActivityLimitException
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

fetchByC_C_First

SocialActivityLimit fetchByC_C_First(long classNameId,
                                     long classPK,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_Last

SocialActivityLimit findByC_C_Last(long classNameId,
                                   long classPK,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchActivityLimitException
Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

fetchByC_C_Last

SocialActivityLimit fetchByC_C_Last(long classNameId,
                                    long classPK,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_PrevAndNext

SocialActivityLimit[] findByC_C_PrevAndNext(long activityLimitId,
                                            long classNameId,
                                            long classPK,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   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 limit
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity limit
Throws:
NoSuchActivityLimitException - if a social activity limit with the primary key could not be found
SystemException - if a system exception occurred

removeByC_C

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

Parameters:
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByC_C

int countByC_C(long classNameId,
               long classPK)
               throws SystemException
Returns the number of social activity limits where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching social activity limits
Throws:
SystemException - if a system exception occurred

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 SystemException,
                                             NoSuchActivityLimitException
Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or throws a NoSuchActivityLimitException if it could not be found.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
activityType - the activity type
activityCounterName - the activity counter name
Returns:
the matching social activity limit
Throws:
NoSuchActivityLimitException - if a matching social activity limit could not be found
SystemException - if a system exception occurred

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)
                                       throws SystemException
Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
activityType - the activity type
activityCounterName - the activity counter name
Returns:
the matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

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 retrieveFromCache)
                                       throws SystemException
Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
activityType - the activity type
activityCounterName - the activity counter name
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity limit, or null if a matching social activity limit could not be found
Throws:
SystemException - if a system exception occurred

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 SystemException,
                                               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 ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
activityType - the activity type
activityCounterName - the activity counter name
Returns:
the social activity limit that was removed
Throws:
SystemException - if a system exception occurred
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)
                       throws SystemException
Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?.

Parameters:
groupId - the group ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
activityType - the activity type
activityCounterName - the activity counter name
Returns:
the number of matching social activity limits
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(SocialActivityLimit socialActivityLimit)
Caches the social activity limit in the entity cache if it is enabled.

Parameters:
socialActivityLimit - the social activity limit

cacheResult

void cacheResult(List<SocialActivityLimit> socialActivityLimits)
Caches the social activity limits in the entity cache if it is enabled.

Parameters:
socialActivityLimits - the social activity limits

create

SocialActivityLimit create(long activityLimitId)
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

SocialActivityLimit remove(long activityLimitId)
                           throws SystemException,
                                  NoSuchActivityLimitException
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
SystemException - if a system exception occurred

updateImpl

SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit)
                               throws SystemException
Throws:
SystemException

findByPrimaryKey

SocialActivityLimit findByPrimaryKey(long activityLimitId)
                                     throws SystemException,
                                            NoSuchActivityLimitException
Returns the social activity limit with the primary key or throws a NoSuchActivityLimitException 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
SystemException - if a system exception occurred

fetchByPrimaryKey

SocialActivityLimit fetchByPrimaryKey(long activityLimitId)
                                      throws SystemException
Returns the social activity limit with the primary key or returns null 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
Throws:
SystemException - if a system exception occurred

findAll

List<SocialActivityLimit> findAll()
                                  throws SystemException
Returns all the social activity limits.

Returns:
the social activity limits
Throws:
SystemException - if a system exception occurred

findAll

List<SocialActivityLimit> findAll(int start,
                                  int end)
                                  throws SystemException
Returns a range of all the social activity limits.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
Returns:
the range of social activity limits
Throws:
SystemException - if a system exception occurred

findAll

List<SocialActivityLimit> findAll(int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the social activity limits.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of social activity limits
end - the upper bound of the range of social activity limits (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activity limits
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the social activity limits from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of social activity limits.

Returns:
the number of social activity limits
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5