Class SocialActivityLimitUtil

Object
com.liferay.social.kernel.service.persistence.SocialActivityLimitUtil

public class SocialActivityLimitUtil extends Object
The persistence utility for the social activity limit service. This utility wraps com.liferay.portlet.social.service.persistence.impl.SocialActivityLimitPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • SocialActivityLimitUtil

      public SocialActivityLimitUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(SocialActivityLimit socialActivityLimit)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,SocialActivityLimit> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SocialActivityLimit> orderByComparator)
      See Also:
    • update

      public static SocialActivityLimit update(SocialActivityLimit socialActivityLimit)
      See Also:
    • update

      public static SocialActivityLimit update(SocialActivityLimit socialActivityLimit, ServiceContext serviceContext)
      See Also:
    • findByGroupId

      public static List<SocialActivityLimit> findByGroupId(long groupId)
      Returns all the social activity limits where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching social activity limits
    • findByGroupId

      public static List<SocialActivityLimit> findByGroupId(long groupId, int start, int end)
      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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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
    • findByGroupId

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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
    • findByGroupId

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity limits
    • findByGroupId_First

      public static 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 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
      NoSuchActivityLimitException
    • fetchByGroupId_First

      public static SocialActivityLimit fetchByGroupId_First(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator)
      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
    • findByGroupId_Last

      public static 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 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
      NoSuchActivityLimitException
    • fetchByGroupId_Last

      public static SocialActivityLimit fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivityLimit> orderByComparator)
      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
    • findByGroupId_PrevAndNext

      public static 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 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
      NoSuchActivityLimitException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the social activity limits where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static 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

      public static List<SocialActivityLimit> findByUserId(long userId)
      Returns all the social activity limits where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching social activity limits
    • findByUserId

      public static List<SocialActivityLimit> findByUserId(long userId, int start, int end)
      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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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
    • findByUserId

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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
    • findByUserId

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity limits
    • findByUserId_First

      public static 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 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
      NoSuchActivityLimitException
    • fetchByUserId_First

      public static SocialActivityLimit fetchByUserId_First(long userId, OrderByComparator<SocialActivityLimit> orderByComparator)
      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
    • findByUserId_Last

      public static 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 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
      NoSuchActivityLimitException
    • fetchByUserId_Last

      public static SocialActivityLimit fetchByUserId_Last(long userId, OrderByComparator<SocialActivityLimit> orderByComparator)
      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
    • findByUserId_PrevAndNext

      public static 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 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
      NoSuchActivityLimitException
    • removeByUserId

      public static void removeByUserId(long userId)
      Removes all the social activity limits where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      public static 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

      public static List<SocialActivityLimit> findByC_C(long classNameId, long classPK)
      Returns all the social activity limits where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching social activity limits
    • findByC_C

      public static 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 = ?.

      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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      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
    • findByC_C

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      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
    • findByC_C

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social activity limits
    • findByC_C_First

      public static 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 ID
      classPK - the class pk
      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
      NoSuchActivityLimitException
    • fetchByC_C_First

      public static 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 ID
      classPK - the class pk
      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
    • findByC_C_Last

      public static 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 ID
      classPK - the class pk
      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
      NoSuchActivityLimitException
    • fetchByC_C_Last

      public static 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 ID
      classPK - the class pk
      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
    • findByC_C_PrevAndNext

      public static 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 limit
      classNameId - the class name ID
      classPK - the class pk
      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
      NoSuchActivityLimitException
    • removeByC_C

      public static 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 ID
      classPK - the class pk
    • countByC_C

      public static int countByC_C(long classNameId, long classPK)
      Returns the number of social activity limits where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching social activity limits
    • findByG_U_C_C_A_A

      public static 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 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 pk
      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
      NoSuchActivityLimitException
    • fetchByG_U_C_C_A_A

      public static 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. Uses the finder cache.
      Parameters:
      groupId - the group ID
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      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
    • fetchByG_U_C_C_A_A

      public static 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 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 pk
      activityType - the activity type
      activityCounterName - the activity counter name
      useFinderCache - 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

      public static 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 ID
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      activityType - the activity type
      activityCounterName - the activity counter name
      Returns:
      the social activity limit that was removed
      Throws:
      NoSuchActivityLimitException
    • countByG_U_C_C_A_A

      public static 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 ID
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      activityType - the activity type
      activityCounterName - the activity counter name
      Returns:
      the number of matching social activity limits
    • cacheResult

      public static void cacheResult(SocialActivityLimit socialActivityLimit)
      Caches the social activity limit in the entity cache if it is enabled.
      Parameters:
      socialActivityLimit - the social activity limit
    • cacheResult

      public static 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

      public static 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

      public static SocialActivityLimit remove(long activityLimitId) throws 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
      NoSuchActivityLimitException
    • updateImpl

      public static SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit)
    • findByPrimaryKey

      public static SocialActivityLimit findByPrimaryKey(long activityLimitId) throws 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
      NoSuchActivityLimitException
    • fetchByPrimaryKey

      public static SocialActivityLimit fetchByPrimaryKey(long activityLimitId)
      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
    • findAll

      public static List<SocialActivityLimit> findAll()
      Returns all the social activity limits.
      Returns:
      the social activity limits
    • findAll

      public static List<SocialActivityLimit> findAll(int start, int end)
      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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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
    • findAll

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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
    • findAll

      public static 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 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, then the query will include the default ORDER BY logic from SocialActivityLimitModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of social activity limits
    • removeAll

      public static void removeAll()
      Removes all the social activity limits from the database.
    • countAll

      public static int countAll()
      Returns the number of social activity limits.
      Returns:
      the number of social activity limits
    • getPersistence

      public static SocialActivityLimitPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SocialActivityLimitPersistence persistence)