Liferay 6.1.2-ce-ga3

com.liferay.portlet.social.service.persistence
Class SocialActivityLimitUtil

java.lang.Object
  extended by com.liferay.portlet.social.service.persistence.SocialActivityLimitUtil

public class SocialActivityLimitUtil
extends Object

The persistence utility for the social activity limit service. This utility wraps 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

See Also:
SocialActivityLimitPersistence, SocialActivityLimitPersistenceImpl

Constructor Summary
SocialActivityLimitUtil()
           
 
Method Summary
static void cacheResult(List<SocialActivityLimit> socialActivityLimits)
          Caches the social activity limits in the entity cache if it is enabled.
static void cacheResult(SocialActivityLimit socialActivityLimit)
          Caches the social activity limit in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SocialActivityLimit socialActivityLimit)
           
static int countAll()
          Returns the number of social activity limits.
static int countByC_C(long classNameId, long classPK)
          Returns the number of social activity limits where classNameId = ? and classPK = ?.
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 = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SocialActivityLimit create(long activityLimitId)
          Creates a new social activity limit with the primary key.
static SocialActivityLimit fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.
static SocialActivityLimit fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.
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.
static 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.
static SocialActivityLimit fetchByPrimaryKey(long activityLimitId)
          Returns the social activity limit with the primary key or returns null if it could not be found.
static List<SocialActivityLimit> findAll()
          Returns all the social activity limits.
static List<SocialActivityLimit> findAll(int start, int end)
          Returns a range of all the social activity limits.
static List<SocialActivityLimit> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity limits.
static SocialActivityLimit findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?.
static SocialActivityLimit findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?.
static 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 = ?.
static List<SocialActivityLimit> findByC_C(long classNameId, long classPK)
          Returns all the social activity limits where classNameId = ? and classPK = ?.
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 = ?.
static 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 = ?.
static 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.
static SocialActivityLimit findByPrimaryKey(long activityLimitId)
          Returns the social activity limit with the primary key or throws a NoSuchActivityLimitException if it could not be found.
static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SocialActivityLimitPersistence getPersistence()
           
static SocialActivityLimit remove(long activityLimitId)
          Removes the social activity limit with the primary key from the database.
static void removeAll()
          Removes all the social activity limits from the database.
static void removeByC_C(long classNameId, long classPK)
          Removes all the social activity limits where classNameId = ? and classPK = ? from the database.
static 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 setPersistence(SocialActivityLimitPersistence persistence)
          Deprecated.  
static SocialActivityLimit update(SocialActivityLimit socialActivityLimit, boolean merge)
           
static SocialActivityLimit update(SocialActivityLimit socialActivityLimit, boolean merge, ServiceContext serviceContext)
           
static SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivityLimitUtil

public SocialActivityLimitUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(SocialActivityLimit socialActivityLimit)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static SocialActivityLimit update(SocialActivityLimit socialActivityLimit,
                                         boolean merge)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static SocialActivityLimit update(SocialActivityLimit socialActivityLimit,
                                         boolean merge,
                                         ServiceContext serviceContext)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

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

public static SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit,
                                             boolean merge)
                                      throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

findByC_C

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

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

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

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

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

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

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

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

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

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

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

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

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

findAll

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

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

findAll

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

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

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

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

removeByC_C

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

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countByC_C

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

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)
                              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

countAll

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

getPersistence

public static SocialActivityLimitPersistence getPersistence()

setPersistence

public void setPersistence(SocialActivityLimitPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3