public class SocialActivitySettingUtil
extends Object
com.liferay.portlet.social.service.persistence.impl.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
SocialActivitySettingPersistence
Constructor and Description |
---|
SocialActivitySettingUtil() |
Modifier and Type | Method and Description |
---|---|
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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> 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 useFinderCache)
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<SocialActivitySetting> 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<SocialActivitySetting> orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.
|
static SocialActivitySetting |
fetchByGroupId_First(long groupId,
OrderByComparator<SocialActivitySetting> orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ?.
|
static SocialActivitySetting |
fetchByGroupId_Last(long groupId,
OrderByComparator<SocialActivitySetting> 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 Map<Serializable,SocialActivitySetting> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
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<SocialActivitySetting> orderByComparator)
Returns an ordered range of all the social activity settings.
|
static List<SocialActivitySetting> |
findAll(int start,
int end,
OrderByComparator<SocialActivitySetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social activity settings.
|
static SocialActivitySetting |
findByG_A_First(long groupId,
int activityType,
OrderByComparator<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> orderByComparator)
Returns an ordered 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<SocialActivitySetting> orderByComparator,
boolean useFinderCache)
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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> orderByComparator)
Returns an ordered 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<SocialActivitySetting> orderByComparator,
boolean useFinderCache)
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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> orderByComparator)
Returns an ordered 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<SocialActivitySetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?.
|
static SocialActivitySetting |
findByGroupId_First(long groupId,
OrderByComparator<SocialActivitySetting> orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ?.
|
static SocialActivitySetting |
findByGroupId_Last(long groupId,
OrderByComparator<SocialActivitySetting> orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ?.
|
static SocialActivitySetting[] |
findByGroupId_PrevAndNext(long activitySettingId,
long groupId,
OrderByComparator<SocialActivitySetting> 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<SocialActivitySetting> orderByComparator)
Returns an ordered range of all the social activity settings where groupId = ?.
|
static List<SocialActivitySetting> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivitySetting> orderByComparator,
boolean useFinderCache)
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<SocialActivitySetting> 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.
|
static SocialActivitySetting |
update(SocialActivitySetting socialActivitySetting) |
static SocialActivitySetting |
update(SocialActivitySetting socialActivitySetting,
ServiceContext serviceContext) |
static SocialActivitySetting |
updateImpl(SocialActivitySetting socialActivitySetting) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SocialActivitySetting socialActivitySetting)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,SocialActivitySetting> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator)
public static SocialActivitySetting update(SocialActivitySetting socialActivitySetting)
public static SocialActivitySetting update(SocialActivitySetting socialActivitySetting, ServiceContext serviceContext)
public static List<SocialActivitySetting> findByGroupId(long groupId)
groupId
- the group IDpublic static List<SocialActivitySetting> findByGroupId(long groupId, int start, int end)
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.
groupId
- the group IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)public static List<SocialActivitySetting> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator)
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.
groupId
- the group IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SocialActivitySetting> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator, boolean useFinderCache)
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.
groupId
- the group IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SocialActivitySetting findByGroupId_First(long groupId, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByGroupId_First(long groupId, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting findByGroupId_Last(long groupId, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting[] findByGroupId_PrevAndNext(long activitySettingId, long groupId, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a social activity setting with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static List<SocialActivitySetting> findByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end)
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.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)public static List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator)
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.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator, boolean useFinderCache)
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.
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SocialActivitySetting findByG_C_First(long groupId, long classNameId, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_C_First(long groupId, long classNameId, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting findByG_C_Last(long groupId, long classNameId, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_C_Last(long groupId, long classNameId, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting[] findByG_C_PrevAndNext(long activitySettingId, long groupId, long classNameId, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a social activity setting with the primary key could not be foundpublic static void removeByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static int countByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static List<SocialActivitySetting> findByG_A(long groupId, int activityType)
groupId
- the group IDactivityType
- the activity typepublic static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end)
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.
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)public static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator)
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.
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator, boolean useFinderCache)
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.
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SocialActivitySetting findByG_A_First(long groupId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_A_First(long groupId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting findByG_A_Last(long groupId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_A_Last(long groupId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting[] findByG_A_PrevAndNext(long activitySettingId, long groupId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a social activity setting with the primary key could not be foundpublic static void removeByG_A(long groupId, int activityType)
groupId
- the group IDactivityType
- the activity typepublic static int countByG_A(long groupId, int activityType)
groupId
- the group IDactivityType
- the activity typepublic static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType)
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typepublic static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end)
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.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)public static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator)
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.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator, boolean useFinderCache)
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.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static SocialActivitySetting findByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting findByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity setting could not be foundpublic static SocialActivitySetting[] findByG_C_A_PrevAndNext(long activitySettingId, long groupId, long classNameId, int activityType, OrderByComparator<SocialActivitySetting> orderByComparator) throws NoSuchActivitySettingException
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivitySettingException
- if a social activity setting with the primary key could not be foundpublic static void removeByG_C_A(long groupId, long classNameId, int activityType)
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typepublic static int countByG_C_A(long groupId, long classNameId, int activityType)
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typepublic static SocialActivitySetting findByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws NoSuchActivitySettingException
NoSuchActivitySettingException
if it could not be found.groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the nameNoSuchActivitySettingException
- if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name)
null
if it could not be found. Uses the finder cache.groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the namenull
if a matching social activity setting could not be foundpublic static SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching social activity setting could not be foundpublic static SocialActivitySetting removeByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the nameNoSuchActivitySettingException
public static int countByG_C_A_N(long groupId, long classNameId, int activityType, String name)
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the namepublic static void cacheResult(SocialActivitySetting socialActivitySetting)
socialActivitySetting
- the social activity settingpublic static void cacheResult(List<SocialActivitySetting> socialActivitySettings)
socialActivitySettings
- the social activity settingspublic static SocialActivitySetting create(long activitySettingId)
activitySettingId
- the primary key for the new social activity settingpublic static SocialActivitySetting remove(long activitySettingId) throws NoSuchActivitySettingException
activitySettingId
- the primary key of the social activity settingNoSuchActivitySettingException
- if a social activity setting with the primary key could not be foundpublic static SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting)
public static SocialActivitySetting findByPrimaryKey(long activitySettingId) throws NoSuchActivitySettingException
NoSuchActivitySettingException
if it could not be found.activitySettingId
- the primary key of the social activity settingNoSuchActivitySettingException
- if a social activity setting with the primary key could not be foundpublic static SocialActivitySetting fetchByPrimaryKey(long activitySettingId)
null
if it could not be found.activitySettingId
- the primary key of the social activity settingnull
if a social activity setting with the primary key could not be foundpublic static List<SocialActivitySetting> findAll()
public static List<SocialActivitySetting> findAll(int start, int end)
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.
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)public static List<SocialActivitySetting> findAll(int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator)
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.
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SocialActivitySetting> findAll(int start, int end, OrderByComparator<SocialActivitySetting> orderByComparator, boolean useFinderCache)
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.
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static SocialActivitySettingPersistence getPersistence()