|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.social.service.persistence.SocialActivityAchievementUtil
@ProviderType public class SocialActivityAchievementUtil
The persistence utility for the social activity achievement service. This utility wraps SocialActivityAchievementPersistenceImpl 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
SocialActivityAchievementPersistence,
SocialActivityAchievementPersistenceImpl| Constructor Summary | |
|---|---|
SocialActivityAchievementUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<SocialActivityAchievement> socialActivityAchievements)
Caches the social activity achievements in the entity cache if it is enabled. |
static void |
cacheResult(SocialActivityAchievement socialActivityAchievement)
Caches the social activity achievement in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(SocialActivityAchievement socialActivityAchievement)
|
static int |
countAll()
Returns the number of social activity achievements. |
static int |
countByG_F(long groupId,
boolean firstInGroup)
Returns the number of social activity achievements where groupId = ? and firstInGroup = ?. |
static int |
countByG_N(long groupId,
String name)
Returns the number of social activity achievements where groupId = ? and name = ?. |
static int |
countByG_U_F(long groupId,
long userId,
boolean firstInGroup)
Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
static int |
countByG_U_N(long groupId,
long userId,
String name)
Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?. |
static int |
countByG_U(long groupId,
long userId)
Returns the number of social activity achievements where groupId = ? and userId = ?. |
static int |
countByGroupId(long groupId)
Returns the number of social activity achievements where groupId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SocialActivityAchievement |
create(long activityAchievementId)
Creates a new social activity achievement with the primary key. |
static SocialActivityAchievement |
fetchByG_F_First(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
fetchByG_F_Last(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
fetchByG_N_First(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. |
static SocialActivityAchievement |
fetchByG_N_Last(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. |
static SocialActivityAchievement |
fetchByG_U_F_First(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
fetchByG_U_F_Last(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
fetchByG_U_First(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. |
static SocialActivityAchievement |
fetchByG_U_Last(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. |
static SocialActivityAchievement |
fetchByG_U_N(long groupId,
long userId,
String name)
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found. |
static SocialActivityAchievement |
fetchByG_U_N(long groupId,
long userId,
String name,
boolean retrieveFromCache)
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
static SocialActivityAchievement |
fetchByGroupId_First(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ?. |
static SocialActivityAchievement |
fetchByGroupId_Last(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ?. |
static SocialActivityAchievement |
fetchByPrimaryKey(long activityAchievementId)
Returns the social activity achievement with the primary key or returns null if it could not be found. |
static Map<Serializable,SocialActivityAchievement> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static List<SocialActivityAchievement> |
findAll()
Returns all the social activity achievements. |
static List<SocialActivityAchievement> |
findAll(int start,
int end)
Returns a range of all the social activity achievements. |
static List<SocialActivityAchievement> |
findAll(int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns an ordered range of all the social activity achievements. |
static List<SocialActivityAchievement> |
findAll(int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity achievements. |
static SocialActivityAchievement |
findByG_F_First(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
findByG_F_Last(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
static SocialActivityAchievement[] |
findByG_F_PrevAndNext(long activityAchievementId,
long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_F(long groupId,
boolean firstInGroup)
Returns all the social activity achievements where groupId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_F(long groupId,
boolean firstInGroup,
int start,
int end)
Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_F(long groupId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_F(long groupId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
findByG_N_First(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. |
static SocialActivityAchievement |
findByG_N_Last(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. |
static SocialActivityAchievement[] |
findByG_N_PrevAndNext(long activityAchievementId,
long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?. |
static List<SocialActivityAchievement> |
findByG_N(long groupId,
String name)
Returns all the social activity achievements where groupId = ? and name = ?. |
static List<SocialActivityAchievement> |
findByG_N(long groupId,
String name,
int start,
int end)
Returns a range of all the social activity achievements where groupId = ? and name = ?. |
static List<SocialActivityAchievement> |
findByG_N(long groupId,
String name,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and name = ?. |
static List<SocialActivityAchievement> |
findByG_N(long groupId,
String name,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity achievements where groupId = ? and name = ?. |
static SocialActivityAchievement |
findByG_U_F_First(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
findByG_U_F_Last(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
static SocialActivityAchievement[] |
findByG_U_F_PrevAndNext(long activityAchievementId,
long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_U_F(long groupId,
long userId,
boolean firstInGroup)
Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
int start,
int end)
Returns a range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
static List<SocialActivityAchievement> |
findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
static SocialActivityAchievement |
findByG_U_First(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. |
static SocialActivityAchievement |
findByG_U_Last(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. |
static SocialActivityAchievement |
findByG_U_N(long groupId,
long userId,
String name)
Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws a NoSuchActivityAchievementException if it could not be found. |
static SocialActivityAchievement[] |
findByG_U_PrevAndNext(long activityAchievementId,
long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?. |
static List<SocialActivityAchievement> |
findByG_U(long groupId,
long userId)
Returns all the social activity achievements where groupId = ? and userId = ?. |
static List<SocialActivityAchievement> |
findByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the social activity achievements where groupId = ? and userId = ?. |
static List<SocialActivityAchievement> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?. |
static List<SocialActivityAchievement> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?. |
static SocialActivityAchievement |
findByGroupId_First(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ?. |
static SocialActivityAchievement |
findByGroupId_Last(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ?. |
static SocialActivityAchievement[] |
findByGroupId_PrevAndNext(long activityAchievementId,
long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?. |
static List<SocialActivityAchievement> |
findByGroupId(long groupId)
Returns all the social activity achievements where groupId = ?. |
static List<SocialActivityAchievement> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the social activity achievements where groupId = ?. |
static List<SocialActivityAchievement> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ?. |
static List<SocialActivityAchievement> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity achievements where groupId = ?. |
static SocialActivityAchievement |
findByPrimaryKey(long activityAchievementId)
Returns the social activity achievement with the primary key or throws a NoSuchActivityAchievementException if it could not be found. |
static List<SocialActivityAchievement> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<SocialActivityAchievement> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<SocialActivityAchievement> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
|
static SocialActivityAchievementPersistence |
getPersistence()
|
static SocialActivityAchievement |
remove(long activityAchievementId)
Removes the social activity achievement with the primary key from the database. |
static void |
removeAll()
Removes all the social activity achievements from the database. |
static void |
removeByG_F(long groupId,
boolean firstInGroup)
Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database. |
static void |
removeByG_N(long groupId,
String name)
Removes all the social activity achievements where groupId = ? and name = ? from the database. |
static void |
removeByG_U_F(long groupId,
long userId,
boolean firstInGroup)
Removes all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ? from the database. |
static SocialActivityAchievement |
removeByG_U_N(long groupId,
long userId,
String name)
Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database. |
static void |
removeByG_U(long groupId,
long userId)
Removes all the social activity achievements where groupId = ? and userId = ? from the database. |
static void |
removeByGroupId(long groupId)
Removes all the social activity achievements where groupId = ? from the database. |
static SocialActivityAchievement |
update(SocialActivityAchievement socialActivityAchievement)
|
static SocialActivityAchievement |
update(SocialActivityAchievement socialActivityAchievement,
ServiceContext serviceContext)
|
static SocialActivityAchievement |
updateImpl(SocialActivityAchievement socialActivityAchievement)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocialActivityAchievementUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(SocialActivityAchievement socialActivityAchievement)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<SocialActivityAchievement> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SocialActivityAchievement> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SocialActivityAchievement> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static SocialActivityAchievement update(SocialActivityAchievement socialActivityAchievement)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static SocialActivityAchievement update(SocialActivityAchievement socialActivityAchievement,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<SocialActivityAchievement> findByGroupId(long groupId)
groupId - the group ID
public static List<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 achievementsend - the upper bound of the range of social activity achievements (not inclusive)
public static List<SocialActivityAchievement> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SocialActivityAchievement> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
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 SocialActivityAchievementModelImpl. 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 achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SocialActivityAchievement findByGroupId_First(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByGroupId_First(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement findByGroupId_Last(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByGroupId_Last(long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId,
long groupId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
activityAchievementId - the primary key of the current social activity achievementgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a social activity achievement 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 ID
public static List<SocialActivityAchievement> findByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static List<SocialActivityAchievement> findByG_U(long groupId,
long userId,
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 SocialActivityAchievementModelImpl. 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 IDuserId - the user IDstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)
public static List<SocialActivityAchievement> findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 IDuserId - the user IDstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SocialActivityAchievement> findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
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 SocialActivityAchievementModelImpl. 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 IDuserId - the user IDstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SocialActivityAchievement findByG_U_First(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_U_First(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement findByG_U_Last(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_U_Last(long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId,
long groupId,
long userId,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
activityAchievementId - the primary key of the current social activity achievementgroupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
public static void removeByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static int countByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static List<SocialActivityAchievement> findByG_N(long groupId,
String name)
groupId - the group IDname - the name
public static List<SocialActivityAchievement> findByG_N(long groupId,
String name,
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 SocialActivityAchievementModelImpl. 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 IDname - the namestart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)
public static List<SocialActivityAchievement> findByG_N(long groupId,
String name,
int start,
int end,
OrderByComparator<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 IDname - the namestart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SocialActivityAchievement> findByG_N(long groupId,
String name,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
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 SocialActivityAchievementModelImpl. 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 IDname - the namestart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SocialActivityAchievement findByG_N_First(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_N_First(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement findByG_N_Last(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_N_Last(long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId,
long groupId,
String name,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
activityAchievementId - the primary key of the current social activity achievementgroupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
public static void removeByG_N(long groupId,
String name)
groupId - the group IDname - the name
public static int countByG_N(long groupId,
String name)
groupId - the group IDname - the name
public static List<SocialActivityAchievement> findByG_F(long groupId,
boolean firstInGroup)
groupId - the group IDfirstInGroup - the first in group
public static List<SocialActivityAchievement> findByG_F(long groupId,
boolean firstInGroup,
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 SocialActivityAchievementModelImpl. 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 IDfirstInGroup - the first in groupstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)
public static List<SocialActivityAchievement> findByG_F(long groupId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 IDfirstInGroup - the first in groupstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SocialActivityAchievement> findByG_F(long groupId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
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 SocialActivityAchievementModelImpl. 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 IDfirstInGroup - the first in groupstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SocialActivityAchievement findByG_F_First(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_F_First(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement findByG_F_Last(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_F_Last(long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId,
long groupId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
activityAchievementId - the primary key of the current social activity achievementgroupId - the group IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
public static void removeByG_F(long groupId,
boolean firstInGroup)
groupId - the group IDfirstInGroup - the first in group
public static int countByG_F(long groupId,
boolean firstInGroup)
groupId - the group IDfirstInGroup - the first in group
public static SocialActivityAchievement findByG_U_N(long groupId,
long userId,
String name)
throws NoSuchActivityAchievementException
NoSuchActivityAchievementException if it could not be found.
groupId - the group IDuserId - the user IDname - the name
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_U_N(long groupId,
long userId,
String name)
null if it could not be found. Uses the finder cache.
groupId - the group IDuserId - the user IDname - the name
null if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_U_N(long groupId,
long userId,
String name,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
groupId - the group IDuserId - the user IDname - the nameretrieveFromCache - whether to retrieve from the finder cache
null if a matching social activity achievement could not be found
public static SocialActivityAchievement removeByG_U_N(long groupId,
long userId,
String name)
throws NoSuchActivityAchievementException
groupId - the group IDuserId - the user IDname - the name
NoSuchActivityAchievementException
public static int countByG_U_N(long groupId,
long userId,
String name)
groupId - the group IDuserId - the user IDname - the name
public static List<SocialActivityAchievement> findByG_U_F(long groupId,
long userId,
boolean firstInGroup)
groupId - the group IDuserId - the user IDfirstInGroup - the first in group
public static List<SocialActivityAchievement> findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
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 SocialActivityAchievementModelImpl. 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 IDuserId - the user IDfirstInGroup - the first in groupstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)
public static List<SocialActivityAchievement> findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 IDuserId - the user IDfirstInGroup - the first in groupstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SocialActivityAchievement> findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
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 SocialActivityAchievementModelImpl. 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 IDuserId - the user IDfirstInGroup - the first in groupstart - the lower bound of the range of social activity achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SocialActivityAchievement findByG_U_F_First(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDuserId - the user IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_U_F_First(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDuserId - the user IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement findByG_U_F_Last(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
groupId - the group IDuserId - the user IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a matching social activity achievement could not be found
public static SocialActivityAchievement fetchByG_U_F_Last(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
groupId - the group IDuserId - the user IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity achievement could not be found
public static SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId,
long groupId,
long userId,
boolean firstInGroup,
OrderByComparator<SocialActivityAchievement> orderByComparator)
throws NoSuchActivityAchievementException
activityAchievementId - the primary key of the current social activity achievementgroupId - the group IDuserId - the user IDfirstInGroup - the first in grouporderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be found
public static void removeByG_U_F(long groupId,
long userId,
boolean firstInGroup)
groupId - the group IDuserId - the user IDfirstInGroup - the first in group
public static int countByG_U_F(long groupId,
long userId,
boolean firstInGroup)
groupId - the group IDuserId - the user IDfirstInGroup - the first in group
public static void cacheResult(SocialActivityAchievement socialActivityAchievement)
socialActivityAchievement - the social activity achievementpublic static void cacheResult(List<SocialActivityAchievement> socialActivityAchievements)
socialActivityAchievements - the social activity achievementspublic static SocialActivityAchievement create(long activityAchievementId)
activityAchievementId - the primary key for the new social activity achievement
public static SocialActivityAchievement remove(long activityAchievementId)
throws NoSuchActivityAchievementException
activityAchievementId - the primary key of the social activity achievement
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be foundpublic static SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement)
public static SocialActivityAchievement findByPrimaryKey(long activityAchievementId)
throws NoSuchActivityAchievementException
NoSuchActivityAchievementException if it could not be found.
activityAchievementId - the primary key of the social activity achievement
NoSuchActivityAchievementException - if a social activity achievement with the primary key could not be foundpublic static SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId)
null if it could not be found.
activityAchievementId - the primary key of the social activity achievement
null if a social activity achievement with the primary key could not be foundpublic static Map<Serializable,SocialActivityAchievement> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<SocialActivityAchievement> findAll()
public static List<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 achievementsend - the upper bound of the range of social activity achievements (not inclusive)
public static List<SocialActivityAchievement> findAll(int start,
int end,
OrderByComparator<SocialActivityAchievement> 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 SocialActivityAchievementModelImpl. 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 achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SocialActivityAchievement> findAll(int start,
int end,
OrderByComparator<SocialActivityAchievement> orderByComparator,
boolean retrieveFromCache)
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 SocialActivityAchievementModelImpl. 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 achievementsend - the upper bound of the range of social activity achievements (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static void removeAll()
public static int countAll()
public static SocialActivityAchievementPersistence getPersistence()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||