Liferay 6.1.2-ce-ga3

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

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

public class SocialActivityCounterUtil
extends Object

The persistence utility for the social activity counter service. This utility wraps SocialActivityCounterPersistenceImpl 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:
SocialActivityCounterPersistence, SocialActivityCounterPersistenceImpl

Constructor Summary
SocialActivityCounterUtil()
           
 
Method Summary
static void cacheResult(List<SocialActivityCounter> socialActivityCounters)
          Caches the social activity counters in the entity cache if it is enabled.
static void cacheResult(SocialActivityCounter socialActivityCounter)
          Caches the social activity counter in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SocialActivityCounter socialActivityCounter)
           
static int countAll()
          Returns the number of social activity counters.
static int countByC_C(long classNameId, long classPK)
          Returns the number of social activity counters where classNameId = ? and classPK = ?.
static int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod)
          Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?.
static int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod)
          Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?.
static int countByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType)
          Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SocialActivityCounter create(long activityCounterId)
          Creates a new social activity counter with the primary key.
static SocialActivityCounter fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.
static SocialActivityCounter fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.
static SocialActivityCounter fetchByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod)
          Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns null if it could not be found.
static SocialActivityCounter fetchByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod, boolean retrieveFromCache)
          Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns null if it could not be found, optionally using the finder cache.
static SocialActivityCounter fetchByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod)
          Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns null if it could not be found.
static SocialActivityCounter fetchByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod, boolean retrieveFromCache)
          Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns null if it could not be found, optionally using the finder cache.
static SocialActivityCounter fetchByG_C_C_O_First(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator orderByComparator)
          Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static SocialActivityCounter fetchByG_C_C_O_Last(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator orderByComparator)
          Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static SocialActivityCounter fetchByPrimaryKey(long activityCounterId)
          Returns the social activity counter with the primary key or returns null if it could not be found.
static List<SocialActivityCounter> findAll()
          Returns all the social activity counters.
static List<SocialActivityCounter> findAll(int start, int end)
          Returns a range of all the social activity counters.
static List<SocialActivityCounter> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity counters.
static SocialActivityCounter findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.
static SocialActivityCounter findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.
static SocialActivityCounter[] findByC_C_PrevAndNext(long activityCounterId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?.
static List<SocialActivityCounter> findByC_C(long classNameId, long classPK)
          Returns all the social activity counters where classNameId = ? and classPK = ?.
static List<SocialActivityCounter> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the social activity counters where classNameId = ? and classPK = ?.
static List<SocialActivityCounter> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?.
static SocialActivityCounter findByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod)
          Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or throws a NoSuchActivityCounterException if it could not be found.
static SocialActivityCounter findByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod)
          Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or throws a NoSuchActivityCounterException if it could not be found.
static SocialActivityCounter findByG_C_C_O_First(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator orderByComparator)
          Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static SocialActivityCounter findByG_C_C_O_Last(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator orderByComparator)
          Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static SocialActivityCounter[] findByG_C_C_O_PrevAndNext(long activityCounterId, long groupId, long classNameId, long classPK, int ownerType, OrderByComparator orderByComparator)
          Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType)
          Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end)
          Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.
static SocialActivityCounter findByPrimaryKey(long activityCounterId)
          Returns the social activity counter with the primary key or throws a NoSuchActivityCounterException if it could not be found.
static List<SocialActivityCounter> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SocialActivityCounter> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SocialActivityCounter> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SocialActivityCounterPersistence getPersistence()
           
static SocialActivityCounter remove(long activityCounterId)
          Removes the social activity counter with the primary key from the database.
static void removeAll()
          Removes all the social activity counters from the database.
static void removeByC_C(long classNameId, long classPK)
          Removes all the social activity counters where classNameId = ? and classPK = ? from the database.
static SocialActivityCounter removeByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod)
          Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database.
static SocialActivityCounter removeByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod)
          Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database.
static void removeByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType)
          Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database.
 void setPersistence(SocialActivityCounterPersistence persistence)
          Deprecated.  
static SocialActivityCounter update(SocialActivityCounter socialActivityCounter, boolean merge)
           
static SocialActivityCounter update(SocialActivityCounter socialActivityCounter, boolean merge, ServiceContext serviceContext)
           
static SocialActivityCounter updateImpl(SocialActivityCounter socialActivityCounter, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivityCounterUtil

public SocialActivityCounterUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(SocialActivityCounter socialActivityCounter)
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<SocialActivityCounter> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

update

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

update

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

cacheResult

public static void cacheResult(SocialActivityCounter socialActivityCounter)
Caches the social activity counter in the entity cache if it is enabled.

Parameters:
socialActivityCounter - the social activity counter

cacheResult

public static void cacheResult(List<SocialActivityCounter> socialActivityCounters)
Caches the social activity counters in the entity cache if it is enabled.

Parameters:
socialActivityCounters - the social activity counters

create

public static SocialActivityCounter create(long activityCounterId)
Creates a new social activity counter with the primary key. Does not add the social activity counter to the database.

Parameters:
activityCounterId - the primary key for the new social activity counter
Returns:
the new social activity counter

remove

public static SocialActivityCounter remove(long activityCounterId)
                                    throws SystemException,
                                           NoSuchActivityCounterException
Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
activityCounterId - the primary key of the social activity counter
Returns:
the social activity counter that was removed
Throws:
NoSuchActivityCounterException - if a social activity counter with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static SocialActivityCounter updateImpl(SocialActivityCounter socialActivityCounter,
                                               boolean merge)
                                        throws SystemException
Throws:
SystemException

findByPrimaryKey

public static SocialActivityCounter findByPrimaryKey(long activityCounterId)
                                              throws SystemException,
                                                     NoSuchActivityCounterException
Returns the social activity counter with the primary key or throws a NoSuchActivityCounterException if it could not be found.

Parameters:
activityCounterId - the primary key of the social activity counter
Returns:
the social activity counter
Throws:
NoSuchActivityCounterException - if a social activity counter with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static SocialActivityCounter fetchByPrimaryKey(long activityCounterId)
                                               throws SystemException
Returns the social activity counter with the primary key or returns null if it could not be found.

Parameters:
activityCounterId - the primary key of the social activity counter
Returns:
the social activity counter, or null if a social activity counter with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<SocialActivityCounter> findByC_C(long classNameId,
                                                    long classPK)
                                             throws SystemException
Returns all the social activity counters where classNameId = ? and classPK = ?.

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

findByC_C

public static List<SocialActivityCounter> findByC_C(long classNameId,
                                                    long classPK,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the social activity counters 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 counters
end - the upper bound of the range of social activity counters (not inclusive)
Returns:
the range of matching social activity counters
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<SocialActivityCounter> findByC_C(long classNameId,
                                                    long classPK,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns an ordered range of all the social activity counters 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 counters
end - the upper bound of the range of social activity counters (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity counters
Throws:
SystemException - if a system exception occurred

findByC_C_First

public static SocialActivityCounter findByC_C_First(long classNameId,
                                                    long classPK,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivityCounterException
Returns the first social activity counter 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 counter
Throws:
NoSuchActivityCounterException - if a matching social activity counter could not be found
SystemException - if a system exception occurred

fetchByC_C_First

public static SocialActivityCounter fetchByC_C_First(long classNameId,
                                                     long classPK,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first social activity counter 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 counter, or null if a matching social activity counter could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_Last

public static SocialActivityCounter findByC_C_Last(long classNameId,
                                                   long classPK,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchActivityCounterException
Returns the last social activity counter 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 counter
Throws:
NoSuchActivityCounterException - if a matching social activity counter could not be found
SystemException - if a system exception occurred

fetchByC_C_Last

public static SocialActivityCounter fetchByC_C_Last(long classNameId,
                                                    long classPK,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last social activity counter 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 counter, or null if a matching social activity counter could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_PrevAndNext

public static SocialActivityCounter[] findByC_C_PrevAndNext(long activityCounterId,
                                                            long classNameId,
                                                            long classPK,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchActivityCounterException
Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?.

Parameters:
activityCounterId - the primary key of the current social activity counter
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 counter
Throws:
NoSuchActivityCounterException - if a social activity counter with the primary key could not be found
SystemException - if a system exception occurred

findByG_C_C_O

public static List<SocialActivityCounter> findByG_C_C_O(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        int ownerType)
                                                 throws SystemException
Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
ownerType - the owner type
Returns:
the matching social activity counters
Throws:
SystemException - if a system exception occurred

findByG_C_C_O

public static List<SocialActivityCounter> findByG_C_C_O(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        int ownerType,
                                                        int start,
                                                        int end)
                                                 throws SystemException
Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

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:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
ownerType - the owner type
start - the lower bound of the range of social activity counters
end - the upper bound of the range of social activity counters (not inclusive)
Returns:
the range of matching social activity counters
Throws:
SystemException - if a system exception occurred

findByG_C_C_O

public static List<SocialActivityCounter> findByG_C_C_O(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        int ownerType,
                                                        int start,
                                                        int end,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

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:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
ownerType - the owner type
start - the lower bound of the range of social activity counters
end - the upper bound of the range of social activity counters (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity counters
Throws:
SystemException - if a system exception occurred

findByG_C_C_O_First

public static SocialActivityCounter findByG_C_C_O_First(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        int ownerType,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchActivityCounterException
Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

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

fetchByG_C_C_O_First

public static SocialActivityCounter fetchByG_C_C_O_First(long groupId,
                                                         long classNameId,
                                                         long classPK,
                                                         int ownerType,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

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

findByG_C_C_O_Last

public static SocialActivityCounter findByG_C_C_O_Last(long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       int ownerType,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchActivityCounterException
Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

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

fetchByG_C_C_O_Last

public static SocialActivityCounter fetchByG_C_C_O_Last(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        int ownerType,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

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

findByG_C_C_O_PrevAndNext

public static SocialActivityCounter[] findByG_C_C_O_PrevAndNext(long activityCounterId,
                                                                long groupId,
                                                                long classNameId,
                                                                long classPK,
                                                                int ownerType,
                                                                OrderByComparator orderByComparator)
                                                         throws SystemException,
                                                                NoSuchActivityCounterException
Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

Parameters:
activityCounterId - the primary key of the current social activity counter
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
ownerType - the owner type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity counter
Throws:
NoSuchActivityCounterException - if a social activity counter with the primary key could not be found
SystemException - if a system exception occurred

findByG_C_C_N_O_S

public static SocialActivityCounter findByG_C_C_N_O_S(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String name,
                                                      int ownerType,
                                                      int startPeriod)
                                               throws SystemException,
                                                      NoSuchActivityCounterException
Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or throws a NoSuchActivityCounterException if it could not be found.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
startPeriod - the start period
Returns:
the matching social activity counter
Throws:
NoSuchActivityCounterException - if a matching social activity counter could not be found
SystemException - if a system exception occurred

fetchByG_C_C_N_O_S

public static SocialActivityCounter fetchByG_C_C_N_O_S(long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       String name,
                                                       int ownerType,
                                                       int startPeriod)
                                                throws SystemException
Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
startPeriod - the start period
Returns:
the matching social activity counter, or null if a matching social activity counter could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_C_C_N_O_S

public static SocialActivityCounter fetchByG_C_C_N_O_S(long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       String name,
                                                       int ownerType,
                                                       int startPeriod,
                                                       boolean retrieveFromCache)
                                                throws SystemException
Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
startPeriod - the start period
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity counter, or null if a matching social activity counter could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_C_N_O_E

public static SocialActivityCounter findByG_C_C_N_O_E(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String name,
                                                      int ownerType,
                                                      int endPeriod)
                                               throws SystemException,
                                                      NoSuchActivityCounterException
Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or throws a NoSuchActivityCounterException if it could not be found.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
endPeriod - the end period
Returns:
the matching social activity counter
Throws:
NoSuchActivityCounterException - if a matching social activity counter could not be found
SystemException - if a system exception occurred

fetchByG_C_C_N_O_E

public static SocialActivityCounter fetchByG_C_C_N_O_E(long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       String name,
                                                       int ownerType,
                                                       int endPeriod)
                                                throws SystemException
Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
endPeriod - the end period
Returns:
the matching social activity counter, or null if a matching social activity counter could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_C_C_N_O_E

public static SocialActivityCounter fetchByG_C_C_N_O_E(long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       String name,
                                                       int ownerType,
                                                       int endPeriod,
                                                       boolean retrieveFromCache)
                                                throws SystemException
Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
endPeriod - the end period
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity counter, or null if a matching social activity counter could not be found
Throws:
SystemException - if a system exception occurred

findAll

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

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

findAll

public static List<SocialActivityCounter> findAll(int start,
                                                  int end)
                                           throws SystemException
Returns a range of all the social activity counters.

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 counters
end - the upper bound of the range of social activity counters (not inclusive)
Returns:
the range of social activity counters
Throws:
SystemException - if a system exception occurred

findAll

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

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 counters
end - the upper bound of the range of social activity counters (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activity counters
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 counters 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_C_C_O

public static void removeByG_C_C_O(long groupId,
                                   long classNameId,
                                   long classPK,
                                   int ownerType)
                            throws SystemException
Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
ownerType - the owner type
Throws:
SystemException - if a system exception occurred

removeByG_C_C_N_O_S

public static SocialActivityCounter removeByG_C_C_N_O_S(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        String name,
                                                        int ownerType,
                                                        int startPeriod)
                                                 throws SystemException,
                                                        NoSuchActivityCounterException
Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
startPeriod - the start period
Returns:
the social activity counter that was removed
Throws:
SystemException - if a system exception occurred
NoSuchActivityCounterException

removeByG_C_C_N_O_E

public static SocialActivityCounter removeByG_C_C_N_O_E(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        String name,
                                                        int ownerType,
                                                        int endPeriod)
                                                 throws SystemException,
                                                        NoSuchActivityCounterException
Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
endPeriod - the end period
Returns:
the social activity counter that was removed
Throws:
SystemException - if a system exception occurred
NoSuchActivityCounterException

removeAll

public static void removeAll()
                      throws SystemException
Removes all the social activity counters 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 counters where classNameId = ? and classPK = ?.

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

countByG_C_C_O

public static int countByG_C_C_O(long groupId,
                                 long classNameId,
                                 long classPK,
                                 int ownerType)
                          throws SystemException
Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
ownerType - the owner type
Returns:
the number of matching social activity counters
Throws:
SystemException - if a system exception occurred

countByG_C_C_N_O_S

public static int countByG_C_C_N_O_S(long groupId,
                                     long classNameId,
                                     long classPK,
                                     String name,
                                     int ownerType,
                                     int startPeriod)
                              throws SystemException
Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
startPeriod - the start period
Returns:
the number of matching social activity counters
Throws:
SystemException - if a system exception occurred

countByG_C_C_N_O_E

public static int countByG_C_C_N_O_E(long groupId,
                                     long classNameId,
                                     long classPK,
                                     String name,
                                     int ownerType,
                                     int endPeriod)
                              throws SystemException
Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
name - the name
ownerType - the owner type
endPeriod - the end period
Returns:
the number of matching social activity counters
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of social activity counters.

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

getPersistence

public static SocialActivityCounterPersistence getPersistence()

setPersistence

public void setPersistence(SocialActivityCounterPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3