Liferay 6.2-ce-ga5

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

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

@ProviderType
public class SocialActivitySettingUtil
extends Object

The persistence utility for the social activity setting service. This utility wraps SocialActivitySettingPersistenceImpl 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:
SocialActivitySettingPersistence, SocialActivitySettingPersistenceImpl

Constructor Summary
SocialActivitySettingUtil()
           
 
Method Summary
static void cacheResult(List<SocialActivitySetting> socialActivitySettings)
          Caches the social activity settings in the entity cache if it is enabled.
static void cacheResult(SocialActivitySetting socialActivitySetting)
          Caches the social activity setting in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SocialActivitySetting socialActivitySetting)
           
static int countAll()
          Returns the number of social activity settings.
static int countByG_A(long groupId, int activityType)
          Returns the number of social activity settings where groupId = ? and activityType = ?.
static int countByG_C_A_N(long groupId, long classNameId, int activityType, String name)
          Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ? and name = ?.
static int countByG_C_A(long groupId, long classNameId, int activityType)
          Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?.
static int countByG_C(long groupId, long classNameId)
          Returns the number of social activity settings where groupId = ? and classNameId = ?.
static int countByGroupId(long groupId)
          Returns the number of social activity settings where groupId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SocialActivitySetting create(long activitySettingId)
          Creates a new social activity setting with the primary key.
static SocialActivitySetting fetchByG_A_First(long groupId, int activityType, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?.
static SocialActivitySetting fetchByG_A_Last(long groupId, int activityType, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?.
static SocialActivitySetting fetchByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.
static SocialActivitySetting fetchByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.
static SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name)
          Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found.
static SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name, boolean retrieveFromCache)
          Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static SocialActivitySetting fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?.
static SocialActivitySetting fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.
static SocialActivitySetting fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ?.
static SocialActivitySetting fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ?.
static SocialActivitySetting fetchByPrimaryKey(long activitySettingId)
          Returns the social activity setting with the primary key or returns null if it could not be found.
static List<SocialActivitySetting> findAll()
          Returns all the social activity settings.
static List<SocialActivitySetting> findAll(int start, int end)
          Returns a range of all the social activity settings.
static List<SocialActivitySetting> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity settings.
static SocialActivitySetting findByG_A_First(long groupId, int activityType, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?.
static SocialActivitySetting findByG_A_Last(long groupId, int activityType, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?.
static SocialActivitySetting[] findByG_A_PrevAndNext(long activitySettingId, long groupId, int activityType, OrderByComparator orderByComparator)
          Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and activityType = ?.
static List<SocialActivitySetting> findByG_A(long groupId, int activityType)
          Returns all the social activity settings where groupId = ? and activityType = ?.
static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end)
          Returns a range of all the social activity settings where groupId = ? and activityType = ?.
static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?.
static SocialActivitySetting findByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.
static SocialActivitySetting findByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.
static SocialActivitySetting findByG_C_A_N(long groupId, long classNameId, int activityType, String name)
          Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or throws a NoSuchActivitySettingException if it could not be found.
static SocialActivitySetting[] findByG_C_A_PrevAndNext(long activitySettingId, long groupId, long classNameId, int activityType, OrderByComparator orderByComparator)
          Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.
static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType)
          Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.
static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end)
          Returns a range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.
static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.
static SocialActivitySetting findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?.
static SocialActivitySetting findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.
static SocialActivitySetting[] findByG_C_PrevAndNext(long activitySettingId, long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ?.
static List<SocialActivitySetting> findByG_C(long groupId, long classNameId)
          Returns all the social activity settings where groupId = ? and classNameId = ?.
static List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end)
          Returns a range of all the social activity settings where groupId = ? and classNameId = ?.
static List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?.
static SocialActivitySetting findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first social activity setting in the ordered set where groupId = ?.
static SocialActivitySetting findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last social activity setting in the ordered set where groupId = ?.
static SocialActivitySetting[] findByGroupId_PrevAndNext(long activitySettingId, long groupId, OrderByComparator orderByComparator)
          Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ?.
static List<SocialActivitySetting> findByGroupId(long groupId)
          Returns all the social activity settings where groupId = ?.
static List<SocialActivitySetting> findByGroupId(long groupId, int start, int end)
          Returns a range of all the social activity settings where groupId = ?.
static List<SocialActivitySetting> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity settings where groupId = ?.
static SocialActivitySetting findByPrimaryKey(long activitySettingId)
          Returns the social activity setting with the primary key or throws a NoSuchActivitySettingException if it could not be found.
static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SocialActivitySettingPersistence getPersistence()
           
static SocialActivitySetting remove(long activitySettingId)
          Removes the social activity setting with the primary key from the database.
static void removeAll()
          Removes all the social activity settings from the database.
static void removeByG_A(long groupId, int activityType)
          Removes all the social activity settings where groupId = ? and activityType = ? from the database.
static SocialActivitySetting removeByG_C_A_N(long groupId, long classNameId, int activityType, String name)
          Removes the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? from the database.
static void removeByG_C_A(long groupId, long classNameId, int activityType)
          Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database.
static void removeByG_C(long groupId, long classNameId)
          Removes all the social activity settings where groupId = ? and classNameId = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the social activity settings where groupId = ? from the database.
 void setPersistence(SocialActivitySettingPersistence persistence)
          Deprecated. As of 6.2.0
static SocialActivitySetting update(SocialActivitySetting socialActivitySetting)
           
static SocialActivitySetting update(SocialActivitySetting socialActivitySetting, ServiceContext serviceContext)
           
static SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialActivitySettingUtil

public SocialActivitySettingUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

update

public static SocialActivitySetting update(SocialActivitySetting socialActivitySetting)
                                    throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static SocialActivitySetting update(SocialActivitySetting socialActivitySetting,
                                           ServiceContext serviceContext)
                                    throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByGroupId

public static List<SocialActivitySetting> findByGroupId(long groupId)
                                                 throws SystemException
Returns all the social activity settings where groupId = ?.

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

findByGroupId

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

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

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

findByGroupId

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

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

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

findByGroupId_First

public static SocialActivitySetting findByGroupId_First(long groupId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchActivitySettingException
Returns the first social activity setting 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 setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

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

findByGroupId_Last

public static SocialActivitySetting findByGroupId_Last(long groupId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchActivitySettingException
Returns the last social activity setting 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 setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

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

findByGroupId_PrevAndNext

public static SocialActivitySetting[] findByGroupId_PrevAndNext(long activitySettingId,
                                                                long groupId,
                                                                OrderByComparator orderByComparator)
                                                         throws SystemException,
                                                                NoSuchActivitySettingException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ?.

Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

removeByGroupId

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

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

countByGroupId

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

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

findByG_C

public static List<SocialActivitySetting> findByG_C(long groupId,
                                                    long classNameId)
                                             throws SystemException
Returns all the social activity settings where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C

public static List<SocialActivitySetting> findByG_C(long groupId,
                                                    long classNameId,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the social activity settings where groupId = ? and classNameId = ?.

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

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

findByG_C

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

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

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

findByG_C_First

public static SocialActivitySetting findByG_C_First(long groupId,
                                                    long classNameId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivitySettingException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?.

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

fetchByG_C_First

public static SocialActivitySetting fetchByG_C_First(long groupId,
                                                     long classNameId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?.

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

findByG_C_Last

public static SocialActivitySetting findByG_C_Last(long groupId,
                                                   long classNameId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchActivitySettingException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.

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

fetchByG_C_Last

public static SocialActivitySetting fetchByG_C_Last(long groupId,
                                                    long classNameId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.

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

findByG_C_PrevAndNext

public static SocialActivitySetting[] findByG_C_PrevAndNext(long activitySettingId,
                                                            long groupId,
                                                            long classNameId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchActivitySettingException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ?.

Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

removeByG_C

public static void removeByG_C(long groupId,
                               long classNameId)
                        throws SystemException
Removes all the social activity settings where groupId = ? and classNameId = ? from the database.

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

countByG_C

public static int countByG_C(long groupId,
                             long classNameId)
                      throws SystemException
Returns the number of social activity settings where groupId = ? and classNameId = ?.

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

findByG_A

public static List<SocialActivitySetting> findByG_A(long groupId,
                                                    int activityType)
                                             throws SystemException
Returns all the social activity settings where groupId = ? and activityType = ?.

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

findByG_A

public static List<SocialActivitySetting> findByG_A(long groupId,
                                                    int activityType,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the social activity settings where groupId = ? and activityType = ?.

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

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

findByG_A

public static List<SocialActivitySetting> findByG_A(long groupId,
                                                    int activityType,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?.

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

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

findByG_A_First

public static SocialActivitySetting findByG_A_First(long groupId,
                                                    int activityType,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchActivitySettingException
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?.

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

fetchByG_A_First

public static SocialActivitySetting fetchByG_A_First(long groupId,
                                                     int activityType,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?.

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

findByG_A_Last

public static SocialActivitySetting findByG_A_Last(long groupId,
                                                   int activityType,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchActivitySettingException
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?.

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

fetchByG_A_Last

public static SocialActivitySetting fetchByG_A_Last(long groupId,
                                                    int activityType,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?.

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

findByG_A_PrevAndNext

public static SocialActivitySetting[] findByG_A_PrevAndNext(long activitySettingId,
                                                            long groupId,
                                                            int activityType,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchActivitySettingException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and activityType = ?.

Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

removeByG_A

public static void removeByG_A(long groupId,
                               int activityType)
                        throws SystemException
Removes all the social activity settings where groupId = ? and activityType = ? from the database.

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

countByG_A

public static int countByG_A(long groupId,
                             int activityType)
                      throws SystemException
Returns the number of social activity settings where groupId = ? and activityType = ?.

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

findByG_C_A

public static List<SocialActivitySetting> findByG_C_A(long groupId,
                                                      long classNameId,
                                                      int activityType)
                                               throws SystemException
Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A

public static List<SocialActivitySetting> findByG_C_A(long groupId,
                                                      long classNameId,
                                                      int activityType,
                                                      int start,
                                                      int end)
                                               throws SystemException
Returns a range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.

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

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

findByG_C_A

public static List<SocialActivitySetting> findByG_C_A(long groupId,
                                                      long classNameId,
                                                      int activityType,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.

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

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

findByG_C_A_First

public static SocialActivitySetting findByG_C_A_First(long groupId,
                                                      long classNameId,
                                                      int activityType,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchActivitySettingException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_A_First

public static SocialActivitySetting fetchByG_C_A_First(long groupId,
                                                       long classNameId,
                                                       int activityType,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

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

findByG_C_A_Last

public static SocialActivitySetting findByG_C_A_Last(long groupId,
                                                     long classNameId,
                                                     int activityType,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchActivitySettingException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_A_Last

public static SocialActivitySetting fetchByG_C_A_Last(long groupId,
                                                      long classNameId,
                                                      int activityType,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

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

findByG_C_A_PrevAndNext

public static SocialActivitySetting[] findByG_C_A_PrevAndNext(long activitySettingId,
                                                              long groupId,
                                                              long classNameId,
                                                              int activityType,
                                                              OrderByComparator orderByComparator)
                                                       throws SystemException,
                                                              NoSuchActivitySettingException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

removeByG_C_A

public static void removeByG_C_A(long groupId,
                                 long classNameId,
                                 int activityType)
                          throws SystemException
Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
Throws:
SystemException - if a system exception occurred

countByG_C_A

public static int countByG_C_A(long groupId,
                               long classNameId,
                               int activityType)
                        throws SystemException
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A_N

public static SocialActivitySetting findByG_C_A_N(long groupId,
                                                  long classNameId,
                                                  int activityType,
                                                  String name)
                                           throws SystemException,
                                                  NoSuchActivitySettingException
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or throws a NoSuchActivitySettingException if it could not be found.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_A_N

public static SocialActivitySetting fetchByG_C_A_N(long groupId,
                                                   long classNameId,
                                                   int activityType,
                                                   String name)
                                            throws SystemException
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_C_A_N

public static SocialActivitySetting fetchByG_C_A_N(long groupId,
                                                   long classNameId,
                                                   int activityType,
                                                   String name,
                                                   boolean retrieveFromCache)
                                            throws SystemException
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

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

removeByG_C_A_N

public static SocialActivitySetting removeByG_C_A_N(long groupId,
                                                    long classNameId,
                                                    int activityType,
                                                    String name)
                                             throws SystemException,
                                                    NoSuchActivitySettingException
Removes the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the social activity setting that was removed
Throws:
SystemException - if a system exception occurred
NoSuchActivitySettingException

countByG_C_A_N

public static int countByG_C_A_N(long groupId,
                                 long classNameId,
                                 int activityType,
                                 String name)
                          throws SystemException
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ? and name = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(SocialActivitySetting socialActivitySetting)
Caches the social activity setting in the entity cache if it is enabled.

Parameters:
socialActivitySetting - the social activity setting

cacheResult

public static void cacheResult(List<SocialActivitySetting> socialActivitySettings)
Caches the social activity settings in the entity cache if it is enabled.

Parameters:
socialActivitySettings - the social activity settings

create

public static SocialActivitySetting create(long activitySettingId)
Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.

Parameters:
activitySettingId - the primary key for the new social activity setting
Returns:
the new social activity setting

remove

public static SocialActivitySetting remove(long activitySettingId)
                                    throws SystemException,
                                           NoSuchActivitySettingException
Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.

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

updateImpl

public static SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting)
                                        throws SystemException
Throws:
SystemException

findByPrimaryKey

public static SocialActivitySetting findByPrimaryKey(long activitySettingId)
                                              throws SystemException,
                                                     NoSuchActivitySettingException
Returns the social activity setting with the primary key or throws a NoSuchActivitySettingException if it could not be found.

Parameters:
activitySettingId - the primary key of the social activity setting
Returns:
the social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

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

findAll

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

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

findAll

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

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

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

findAll

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

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

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countAll

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

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

getPersistence

public static SocialActivitySettingPersistence getPersistence()

setPersistence

public void setPersistence(SocialActivitySettingPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5