|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialActivityAchievement>
com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistenceImpl
public class SocialActivityAchievementPersistenceImpl
The persistence implementation for the social activity achievement service.
Caching information and settings can be found in portal.properties
SocialActivityAchievementPersistence
,
SocialActivityAchievementUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
Constructor Summary | |
---|---|
SocialActivityAchievementPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the social activity achievement persistence. |
void |
cacheResult(List<SocialActivityAchievement> socialActivityAchievements)
Caches the social activity achievements in the entity cache if it is enabled. |
void |
cacheResult(SocialActivityAchievement socialActivityAchievement)
Caches the social activity achievement in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)
|
void |
clearCache()
Clears the cache for all social activity achievements. |
void |
clearCache(List<SocialActivityAchievement> socialActivityAchievements)
Clears the cache for a List instances of this model. |
void |
clearCache(SocialActivityAchievement socialActivityAchievement)
Clears the cache for the social activity achievement. |
protected void |
clearUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)
|
int |
countAll()
Returns the number of social activity achievements. |
int |
countByG_F(long groupId,
boolean firstInGroup)
Returns the number of social activity achievements where groupId = ? and firstInGroup = ?. |
int |
countByG_N(long groupId,
String name)
Returns the number of social activity achievements where groupId = ? and name = ?. |
int |
countByG_U_F(long groupId,
long userId,
boolean firstInGroup)
Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
int |
countByG_U_N(long groupId,
long userId,
String name)
Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?. |
int |
countByG_U(long groupId,
long userId)
Returns the number of social activity achievements where groupId = ? and userId = ?. |
int |
countByGroupId(long groupId)
Returns the number of social activity achievements where groupId = ?. |
SocialActivityAchievement |
create(long activityAchievementId)
Creates a new social activity achievement with the primary key. |
void |
destroy()
|
SocialActivityAchievement |
fetchByG_F_First(long groupId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
SocialActivityAchievement |
fetchByG_F_Last(long groupId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
SocialActivityAchievement |
fetchByG_N_First(long groupId,
String name,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. |
SocialActivityAchievement |
fetchByG_N_Last(long groupId,
String name,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. |
SocialActivityAchievement |
fetchByG_U_F_First(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
SocialActivityAchievement |
fetchByG_U_F_Last(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
SocialActivityAchievement |
fetchByG_U_First(long groupId,
long userId,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. |
SocialActivityAchievement |
fetchByG_U_Last(long groupId,
long userId,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. |
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. |
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. |
SocialActivityAchievement |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ?. |
SocialActivityAchievement |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ?. |
SocialActivityAchievement |
fetchByPrimaryKey(long activityAchievementId)
Returns the social activity achievement with the primary key or returns null if it could not be found. |
SocialActivityAchievement |
fetchByPrimaryKey(Serializable primaryKey)
Returns the social activity achievement with the primary key or returns null if it could not be found. |
List<SocialActivityAchievement> |
findAll()
Returns all the social activity achievements. |
List<SocialActivityAchievement> |
findAll(int start,
int end)
Returns a range of all the social activity achievements. |
List<SocialActivityAchievement> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity achievements. |
SocialActivityAchievement |
findByG_F_First(long groupId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
SocialActivityAchievement |
findByG_F_Last(long groupId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
SocialActivityAchievement[] |
findByG_F_PrevAndNext(long activityAchievementId,
long groupId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. |
List<SocialActivityAchievement> |
findByG_F(long groupId,
boolean firstInGroup)
Returns all the social activity achievements where groupId = ? and firstInGroup = ?. |
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 = ?. |
List<SocialActivityAchievement> |
findByG_F(long groupId,
boolean firstInGroup,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?. |
SocialActivityAchievement |
findByG_N_First(long groupId,
String name,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. |
SocialActivityAchievement |
findByG_N_Last(long groupId,
String name,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. |
SocialActivityAchievement[] |
findByG_N_PrevAndNext(long activityAchievementId,
long groupId,
String name,
OrderByComparator orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?. |
List<SocialActivityAchievement> |
findByG_N(long groupId,
String name)
Returns all the social activity achievements where groupId = ? and name = ?. |
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 = ?. |
List<SocialActivityAchievement> |
findByG_N(long groupId,
String name,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and name = ?. |
SocialActivityAchievement |
findByG_U_F_First(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
SocialActivityAchievement |
findByG_U_F_Last(long groupId,
long userId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
SocialActivityAchievement[] |
findByG_U_F_PrevAndNext(long activityAchievementId,
long groupId,
long userId,
boolean firstInGroup,
OrderByComparator orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. |
List<SocialActivityAchievement> |
findByG_U_F(long groupId,
long userId,
boolean firstInGroup)
Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
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 = ?. |
List<SocialActivityAchievement> |
findByG_U_F(long groupId,
long userId,
boolean firstInGroup,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. |
SocialActivityAchievement |
findByG_U_First(long groupId,
long userId,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. |
SocialActivityAchievement |
findByG_U_Last(long groupId,
long userId,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. |
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. |
SocialActivityAchievement[] |
findByG_U_PrevAndNext(long activityAchievementId,
long groupId,
long userId,
OrderByComparator orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?. |
List<SocialActivityAchievement> |
findByG_U(long groupId,
long userId)
Returns all the social activity achievements where groupId = ? and userId = ?. |
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 = ?. |
List<SocialActivityAchievement> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?. |
SocialActivityAchievement |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first social activity achievement in the ordered set where groupId = ?. |
SocialActivityAchievement |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last social activity achievement in the ordered set where groupId = ?. |
SocialActivityAchievement[] |
findByGroupId_PrevAndNext(long activityAchievementId,
long groupId,
OrderByComparator orderByComparator)
Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?. |
List<SocialActivityAchievement> |
findByGroupId(long groupId)
Returns all the social activity achievements where groupId = ?. |
List<SocialActivityAchievement> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the social activity achievements where groupId = ?. |
List<SocialActivityAchievement> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity achievements where groupId = ?. |
SocialActivityAchievement |
findByPrimaryKey(long activityAchievementId)
Returns the social activity achievement with the primary key or throws a NoSuchActivityAchievementException if it could not be found. |
SocialActivityAchievement |
findByPrimaryKey(Serializable primaryKey)
Returns the social activity achievement with the primary key or throws a NoSuchModelException if it could not be found. |
protected SocialActivityAchievement |
getByG_F_PrevAndNext(Session session,
SocialActivityAchievement socialActivityAchievement,
long groupId,
boolean firstInGroup,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivityAchievement |
getByG_N_PrevAndNext(Session session,
SocialActivityAchievement socialActivityAchievement,
long groupId,
String name,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivityAchievement |
getByG_U_F_PrevAndNext(Session session,
SocialActivityAchievement socialActivityAchievement,
long groupId,
long userId,
boolean firstInGroup,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivityAchievement |
getByG_U_PrevAndNext(Session session,
SocialActivityAchievement socialActivityAchievement,
long groupId,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivityAchievement |
getByGroupId_PrevAndNext(Session session,
SocialActivityAchievement socialActivityAchievement,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
SocialActivityAchievement |
remove(long activityAchievementId)
Removes the social activity achievement with the primary key from the database. |
SocialActivityAchievement |
remove(Serializable primaryKey)
Removes the social activity achievement with the primary key from the database. |
void |
removeAll()
Removes all the social activity achievements from the database. |
void |
removeByG_F(long groupId,
boolean firstInGroup)
Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database. |
void |
removeByG_N(long groupId,
String name)
Removes all the social activity achievements where groupId = ? and name = ? from the database. |
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. |
SocialActivityAchievement |
removeByG_U_N(long groupId,
long userId,
String name)
Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database. |
void |
removeByG_U(long groupId,
long userId)
Removes all the social activity achievements where groupId = ? and userId = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the social activity achievements where groupId = ? from the database. |
protected SocialActivityAchievement |
removeImpl(SocialActivityAchievement socialActivityAchievement)
Removes the model instance from the database. |
protected SocialActivityAchievement |
toUnwrappedModel(SocialActivityAchievement socialActivityAchievement)
|
SocialActivityAchievement |
updateImpl(SocialActivityAchievement socialActivityAchievement)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
public static final FinderPath FINDER_PATH_COUNT_BY_G_U
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_N
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_F
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_F
public static final FinderPath FINDER_PATH_COUNT_BY_G_F
public static final FinderPath FINDER_PATH_FETCH_BY_G_U_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_U_N
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_F
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_F
public static final FinderPath FINDER_PATH_COUNT_BY_G_U_F
Constructor Detail |
---|
public SocialActivityAchievementPersistenceImpl()
Method Detail |
---|
public List<SocialActivityAchievement> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface SocialActivityAchievementPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByGroupId(long groupId, int start, int end) throws SystemException
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.
findByGroupId
in interface SocialActivityAchievementPersistence
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)
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByGroupId
in interface SocialActivityAchievementPersistence
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
)
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByGroupId_First
in interface SocialActivityAchievementPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivityAchievementException
- if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_First
in interface SocialActivityAchievementPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByGroupId_Last
in interface SocialActivityAchievementPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivityAchievementException
- if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_Last
in interface SocialActivityAchievementPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement[] findByGroupId_PrevAndNext(long activityAchievementId, long groupId, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByGroupId_PrevAndNext
in interface SocialActivityAchievementPersistence
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 found
SystemException
- if a system exception occurredprotected SocialActivityAchievement getByGroupId_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, OrderByComparator orderByComparator, boolean previous)
public void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface SocialActivityAchievementPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface SocialActivityAchievementPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_U(long groupId, long userId) throws SystemException
findByG_U
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user ID
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end) throws SystemException
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.
findByG_U
in interface SocialActivityAchievementPersistence
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)
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_U
in interface SocialActivityAchievementPersistence
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
)
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_U_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_U_First(long groupId, long userId, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_U_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement[] findByG_U_PrevAndNext(long activityAchievementId, long groupId, long userId, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_U_PrevAndNext
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredprotected SocialActivityAchievement getByG_U_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
public void removeByG_U(long groupId, long userId) throws SystemException
removeByG_U
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user ID
SystemException
- if a system exception occurredpublic int countByG_U(long groupId, long userId) throws SystemException
countByG_U
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user ID
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_N(long groupId, String name) throws SystemException
findByG_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDname
- the name
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end) throws SystemException
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.
findByG_N
in interface SocialActivityAchievementPersistence
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)
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_N(long groupId, String name, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_N
in interface SocialActivityAchievementPersistence
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
)
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_N_First(long groupId, String name, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_N_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_N_First(long groupId, String name, OrderByComparator orderByComparator) throws SystemException
fetchByG_N_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_N_Last(long groupId, String name, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_N_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_N_Last(long groupId, String name, OrderByComparator orderByComparator) throws SystemException
fetchByG_N_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement[] findByG_N_PrevAndNext(long activityAchievementId, long groupId, String name, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_N_PrevAndNext
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredprotected SocialActivityAchievement getByG_N_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, String name, OrderByComparator orderByComparator, boolean previous)
public void removeByG_N(long groupId, String name) throws SystemException
removeByG_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDname
- the name
SystemException
- if a system exception occurredpublic int countByG_N(long groupId, String name) throws SystemException
countByG_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDname
- the name
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup) throws SystemException
findByG_F
in interface SocialActivityAchievementPersistence
groupId
- the group IDfirstInGroup
- the first in group
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end) throws SystemException
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.
findByG_F
in interface SocialActivityAchievementPersistence
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)
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_F(long groupId, boolean firstInGroup, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_F
in interface SocialActivityAchievementPersistence
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
)
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_F_First(long groupId, boolean firstInGroup, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_F_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_F_First(long groupId, boolean firstInGroup, OrderByComparator orderByComparator) throws SystemException
fetchByG_F_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_F_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_F_Last(long groupId, boolean firstInGroup, OrderByComparator orderByComparator) throws SystemException
fetchByG_F_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement[] findByG_F_PrevAndNext(long activityAchievementId, long groupId, boolean firstInGroup, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_F_PrevAndNext
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredprotected SocialActivityAchievement getByG_F_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, boolean firstInGroup, OrderByComparator orderByComparator, boolean previous)
public void removeByG_F(long groupId, boolean firstInGroup) throws SystemException
removeByG_F
in interface SocialActivityAchievementPersistence
groupId
- the group IDfirstInGroup
- the first in group
SystemException
- if a system exception occurredpublic int countByG_F(long groupId, boolean firstInGroup) throws SystemException
countByG_F
in interface SocialActivityAchievementPersistence
groupId
- the group IDfirstInGroup
- the first in group
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_U_N(long groupId, long userId, String name) throws NoSuchActivityAchievementException, SystemException
NoSuchActivityAchievementException
if it could not be found.
findByG_U_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDname
- the name
NoSuchActivityAchievementException
- if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_U_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDname
- the name
null
if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_U_N(long groupId, long userId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_U_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDname
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching social activity achievement could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement removeByG_U_N(long groupId, long userId, String name) throws NoSuchActivityAchievementException, SystemException
removeByG_U_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDname
- the name
SystemException
- if a system exception occurred
NoSuchActivityAchievementException
public int countByG_U_N(long groupId, long userId, String name) throws SystemException
countByG_U_N
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDname
- the name
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup) throws SystemException
findByG_U_F
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in group
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end) throws SystemException
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.
findByG_U_F
in interface SocialActivityAchievementPersistence
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)
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findByG_U_F(long groupId, long userId, boolean firstInGroup, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByG_U_F
in interface SocialActivityAchievementPersistence
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
)
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_U_F_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_U_F_First(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_F_First
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_U_F_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByG_U_F_Last(long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator) throws SystemException
fetchByG_U_F_Last
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredpublic SocialActivityAchievement[] findByG_U_F_PrevAndNext(long activityAchievementId, long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator) throws NoSuchActivityAchievementException, SystemException
findByG_U_F_PrevAndNext
in interface SocialActivityAchievementPersistence
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
SystemException
- if a system exception occurredprotected SocialActivityAchievement getByG_U_F_PrevAndNext(Session session, SocialActivityAchievement socialActivityAchievement, long groupId, long userId, boolean firstInGroup, OrderByComparator orderByComparator, boolean previous)
public void removeByG_U_F(long groupId, long userId, boolean firstInGroup) throws SystemException
removeByG_U_F
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in group
SystemException
- if a system exception occurredpublic int countByG_U_F(long groupId, long userId, boolean firstInGroup) throws SystemException
countByG_U_F
in interface SocialActivityAchievementPersistence
groupId
- the group IDuserId
- the user IDfirstInGroup
- the first in group
SystemException
- if a system exception occurredpublic void cacheResult(SocialActivityAchievement socialActivityAchievement)
cacheResult
in interface SocialActivityAchievementPersistence
socialActivityAchievement
- the social activity achievementpublic void cacheResult(List<SocialActivityAchievement> socialActivityAchievements)
cacheResult
in interface SocialActivityAchievementPersistence
socialActivityAchievements
- the social activity achievementspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialActivityAchievement>
clearCache
in class BasePersistenceImpl<SocialActivityAchievement>
public void clearCache(SocialActivityAchievement socialActivityAchievement)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialActivityAchievement>
clearCache
in class BasePersistenceImpl<SocialActivityAchievement>
socialActivityAchievement
- the instance of this model to clear the cache forpublic void clearCache(List<SocialActivityAchievement> socialActivityAchievements)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<SocialActivityAchievement>
clearCache
in class BasePersistenceImpl<SocialActivityAchievement>
socialActivityAchievements
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)
protected void clearUniqueFindersCache(SocialActivityAchievement socialActivityAchievement)
public SocialActivityAchievement create(long activityAchievementId)
create
in interface SocialActivityAchievementPersistence
activityAchievementId
- the primary key for the new social activity achievement
public SocialActivityAchievement remove(long activityAchievementId) throws NoSuchActivityAchievementException, SystemException
remove
in interface SocialActivityAchievementPersistence
activityAchievementId
- the primary key of the social activity achievement
NoSuchActivityAchievementException
- if a social activity achievement with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement remove(Serializable primaryKey) throws NoSuchActivityAchievementException, SystemException
remove
in interface BasePersistence<SocialActivityAchievement>
remove
in class BasePersistenceImpl<SocialActivityAchievement>
primaryKey
- the primary key of the social activity achievement
NoSuchActivityAchievementException
- if a social activity achievement with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialActivityAchievement removeImpl(SocialActivityAchievement socialActivityAchievement) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<SocialActivityAchievement>
socialActivityAchievement
- the model instance to remove
SystemException
- if a system exception occurredpublic SocialActivityAchievement updateImpl(SocialActivityAchievement socialActivityAchievement) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface SocialActivityAchievementPersistence
updateImpl
in class BasePersistenceImpl<SocialActivityAchievement>
socialActivityAchievement
- the model instance to update
SystemException
- if a system exception occurredprotected SocialActivityAchievement toUnwrappedModel(SocialActivityAchievement socialActivityAchievement)
public SocialActivityAchievement findByPrimaryKey(Serializable primaryKey) throws NoSuchActivityAchievementException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<SocialActivityAchievement>
findByPrimaryKey
in class BasePersistenceImpl<SocialActivityAchievement>
primaryKey
- the primary key of the social activity achievement
NoSuchActivityAchievementException
- if a social activity achievement with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement findByPrimaryKey(long activityAchievementId) throws NoSuchActivityAchievementException, SystemException
NoSuchActivityAchievementException
if it could not be found.
findByPrimaryKey
in interface SocialActivityAchievementPersistence
activityAchievementId
- the primary key of the social activity achievement
NoSuchActivityAchievementException
- if a social activity achievement with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<SocialActivityAchievement>
fetchByPrimaryKey
in class BasePersistenceImpl<SocialActivityAchievement>
primaryKey
- the primary key of the social activity achievement
null
if a social activity achievement with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivityAchievement fetchByPrimaryKey(long activityAchievementId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface SocialActivityAchievementPersistence
activityAchievementId
- the primary key of the social activity achievement
null
if a social activity achievement with the primary key could not be found
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findAll() throws SystemException
findAll
in interface SocialActivityAchievementPersistence
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findAll(int start, int end) throws SystemException
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.
findAll
in interface SocialActivityAchievementPersistence
start
- the lower bound of the range of social activity achievementsend
- the upper bound of the range of social activity achievements (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialActivityAchievement> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface SocialActivityAchievementPersistence
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
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface SocialActivityAchievementPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface SocialActivityAchievementPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |