|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialEquityUser> com.liferay.portlet.social.service.persistence.SocialEquityUserPersistenceImpl
public class SocialEquityUserPersistenceImpl
The persistence implementation for the social equity user service.
Never modify or reference this class directly. Always use SocialEquityUserUtil
to access the social equity user persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
SocialEquityUserPersistence
,
SocialEquityUserUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, 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 | |
---|---|
SocialEquityUserPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the social equity user persistence. |
void |
cacheResult(List<SocialEquityUser> socialEquityUsers)
Caches the social equity users in the entity cache if it is enabled. |
void |
cacheResult(SocialEquityUser socialEquityUser)
Caches the social equity user in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all social equity users. |
void |
clearCache(SocialEquityUser socialEquityUser)
Clears the cache for the social equity user. |
int |
countAll()
Counts all the social equity users. |
int |
countByG_R(long groupId,
int rank)
Counts all the social equity users where groupId = ? and rank = ?. |
int |
countByG_U(long groupId,
long userId)
Counts all the social equity users where groupId = ? and userId = ?. |
int |
countByGroupId(long groupId)
Counts all the social equity users where groupId = ?. |
int |
countByGroupRanked(long groupId)
Counts all the social equity users where groupId = ?. |
int |
countByRank(int rank)
Counts all the social equity users where rank = ?. |
int |
countByUserId(long userId)
Counts all the social equity users where userId = ?. |
SocialEquityUser |
create(long equityUserId)
Creates a new social equity user with the primary key. |
SocialEquityUser |
fetchByG_U(long groupId,
long userId)
Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found. |
SocialEquityUser |
fetchByG_U(long groupId,
long userId,
boolean retrieveFromCache)
Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache. |
SocialEquityUser |
fetchByPrimaryKey(long equityUserId)
Finds the social equity user with the primary key or returns null if it could not be found. |
SocialEquityUser |
fetchByPrimaryKey(Serializable primaryKey)
Finds the social equity user with the primary key or returns null if it could not be found. |
List<SocialEquityUser> |
findAll()
Finds all the social equity users. |
List<SocialEquityUser> |
findAll(int start,
int end)
Finds a range of all the social equity users. |
List<SocialEquityUser> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity users. |
SocialEquityUser |
findByG_R_First(long groupId,
int rank,
OrderByComparator orderByComparator)
Finds the first social equity user in the ordered set where groupId = ? and rank = ?. |
SocialEquityUser |
findByG_R_Last(long groupId,
int rank,
OrderByComparator orderByComparator)
Finds the last social equity user in the ordered set where groupId = ? and rank = ?. |
SocialEquityUser[] |
findByG_R_PrevAndNext(long equityUserId,
long groupId,
int rank,
OrderByComparator orderByComparator)
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ? and rank = ?. |
List<SocialEquityUser> |
findByG_R(long groupId,
int rank)
Finds all the social equity users where groupId = ? and rank = ?. |
List<SocialEquityUser> |
findByG_R(long groupId,
int rank,
int start,
int end)
Finds a range of all the social equity users where groupId = ? and rank = ?. |
List<SocialEquityUser> |
findByG_R(long groupId,
int rank,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity users where groupId = ? and rank = ?. |
SocialEquityUser |
findByG_U(long groupId,
long userId)
Finds the social equity user where groupId = ? and userId = ? or throws a NoSuchEquityUserException if it could not be found. |
SocialEquityUser |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first social equity user in the ordered set where groupId = ?. |
SocialEquityUser |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last social equity user in the ordered set where groupId = ?. |
SocialEquityUser[] |
findByGroupId_PrevAndNext(long equityUserId,
long groupId,
OrderByComparator orderByComparator)
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?. |
List<SocialEquityUser> |
findByGroupId(long groupId)
Finds all the social equity users where groupId = ?. |
List<SocialEquityUser> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the social equity users where groupId = ?. |
List<SocialEquityUser> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity users where groupId = ?. |
SocialEquityUser |
findByGroupRanked_First(long groupId,
OrderByComparator orderByComparator)
Finds the first social equity user in the ordered set where groupId = ?. |
SocialEquityUser |
findByGroupRanked_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last social equity user in the ordered set where groupId = ?. |
SocialEquityUser[] |
findByGroupRanked_PrevAndNext(long equityUserId,
long groupId,
OrderByComparator orderByComparator)
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?. |
List<SocialEquityUser> |
findByGroupRanked(long groupId)
Finds all the social equity users where groupId = ?. |
List<SocialEquityUser> |
findByGroupRanked(long groupId,
int start,
int end)
Finds a range of all the social equity users where groupId = ?. |
List<SocialEquityUser> |
findByGroupRanked(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity users where groupId = ?. |
SocialEquityUser |
findByPrimaryKey(long equityUserId)
Finds the social equity user with the primary key or throws a NoSuchEquityUserException if it could not be found. |
SocialEquityUser |
findByPrimaryKey(Serializable primaryKey)
Finds the social equity user with the primary key or throws a NoSuchModelException if it could not be found. |
SocialEquityUser |
findByRank_First(int rank,
OrderByComparator orderByComparator)
Finds the first social equity user in the ordered set where rank = ?. |
SocialEquityUser |
findByRank_Last(int rank,
OrderByComparator orderByComparator)
Finds the last social equity user in the ordered set where rank = ?. |
SocialEquityUser[] |
findByRank_PrevAndNext(long equityUserId,
int rank,
OrderByComparator orderByComparator)
Finds the social equity users before and after the current social equity user in the ordered set where rank = ?. |
List<SocialEquityUser> |
findByRank(int rank)
Finds all the social equity users where rank = ?. |
List<SocialEquityUser> |
findByRank(int rank,
int start,
int end)
Finds a range of all the social equity users where rank = ?. |
List<SocialEquityUser> |
findByRank(int rank,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity users where rank = ?. |
SocialEquityUser |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first social equity user in the ordered set where userId = ?. |
SocialEquityUser |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last social equity user in the ordered set where userId = ?. |
SocialEquityUser[] |
findByUserId_PrevAndNext(long equityUserId,
long userId,
OrderByComparator orderByComparator)
Finds the social equity users before and after the current social equity user in the ordered set where userId = ?. |
List<SocialEquityUser> |
findByUserId(long userId)
Finds all the social equity users where userId = ?. |
List<SocialEquityUser> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the social equity users where userId = ?. |
List<SocialEquityUser> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity users where userId = ?. |
protected SocialEquityUser |
getByG_R_PrevAndNext(Session session,
SocialEquityUser socialEquityUser,
long groupId,
int rank,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialEquityUser |
getByGroupId_PrevAndNext(Session session,
SocialEquityUser socialEquityUser,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialEquityUser |
getByGroupRanked_PrevAndNext(Session session,
SocialEquityUser socialEquityUser,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialEquityUser |
getByRank_PrevAndNext(Session session,
SocialEquityUser socialEquityUser,
int rank,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialEquityUser |
getByUserId_PrevAndNext(Session session,
SocialEquityUser socialEquityUser,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
SocialEquityUser |
remove(long equityUserId)
Removes the social equity user with the primary key from the database. |
SocialEquityUser |
remove(Serializable primaryKey)
Removes the social equity user with the primary key from the database. |
void |
removeAll()
Removes all the social equity users from the database. |
void |
removeByG_R(long groupId,
int rank)
Removes all the social equity users where groupId = ? and rank = ? from the database. |
void |
removeByG_U(long groupId,
long userId)
Removes the social equity user where groupId = ? and userId = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the social equity users where groupId = ? from the database. |
void |
removeByGroupRanked(long groupId)
Removes all the social equity users where groupId = ? from the database. |
void |
removeByRank(int rank)
Removes all the social equity users where rank = ? from the database. |
void |
removeByUserId(long userId)
Removes all the social equity users where userId = ? from the database. |
protected SocialEquityUser |
removeImpl(SocialEquityUser socialEquityUser)
Removes the model instance from the database. |
protected SocialEquityUser |
toUnwrappedModel(SocialEquityUser socialEquityUser)
|
SocialEquityUser |
updateImpl(SocialEquityUser socialEquityUser,
boolean merge)
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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
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 |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FIND_BY_GROUPRANKED
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPRANKED
public static final FinderPath FINDER_PATH_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_FIND_BY_RANK
public static final FinderPath FINDER_PATH_COUNT_BY_RANK
public static final FinderPath FINDER_PATH_FETCH_BY_G_U
public static final FinderPath FINDER_PATH_COUNT_BY_G_U
public static final FinderPath FINDER_PATH_FIND_BY_G_R
public static final FinderPath FINDER_PATH_COUNT_BY_G_R
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=SocialActivityPersistence.class) protected SocialActivityPersistence socialActivityPersistence
@BeanReference(type=SocialEquityAssetEntryPersistence.class) protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence
@BeanReference(type=SocialEquityHistoryPersistence.class) protected SocialEquityHistoryPersistence socialEquityHistoryPersistence
@BeanReference(type=SocialEquityLogPersistence.class) protected SocialEquityLogPersistence socialEquityLogPersistence
@BeanReference(type=SocialEquitySettingPersistence.class) protected SocialEquitySettingPersistence socialEquitySettingPersistence
@BeanReference(type=SocialEquityUserPersistence.class) protected SocialEquityUserPersistence socialEquityUserPersistence
@BeanReference(type=SocialRelationPersistence.class) protected SocialRelationPersistence socialRelationPersistence
@BeanReference(type=SocialRequestPersistence.class) protected SocialRequestPersistence socialRequestPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public SocialEquityUserPersistenceImpl()
Method Detail |
---|
public void cacheResult(SocialEquityUser socialEquityUser)
cacheResult
in interface SocialEquityUserPersistence
socialEquityUser
- the social equity user to cachepublic void cacheResult(List<SocialEquityUser> socialEquityUsers)
cacheResult
in interface SocialEquityUserPersistence
socialEquityUsers
- the social equity users to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialEquityUser>
clearCache
in class BasePersistenceImpl<SocialEquityUser>
public void clearCache(SocialEquityUser socialEquityUser)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialEquityUser>
clearCache
in class BasePersistenceImpl<SocialEquityUser>
socialEquityUser
- the instance of this model to clear the cache forpublic SocialEquityUser create(long equityUserId)
create
in interface SocialEquityUserPersistence
equityUserId
- the primary key for the new social equity user
public SocialEquityUser remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<SocialEquityUser>
remove
in class BasePersistenceImpl<SocialEquityUser>
primaryKey
- the primary key of the social equity user to remove
NoSuchModelException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser remove(long equityUserId) throws NoSuchEquityUserException, SystemException
remove
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the social equity user to remove
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityUser removeImpl(SocialEquityUser socialEquityUser) 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<SocialEquityUser>
socialEquityUser
- the model instance to remove
SystemException
- if a system exception occurredpublic SocialEquityUser updateImpl(SocialEquityUser socialEquityUser, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface SocialEquityUserPersistence
updateImpl
in class BasePersistenceImpl<SocialEquityUser>
socialEquityUser
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected SocialEquityUser toUnwrappedModel(SocialEquityUser socialEquityUser)
public SocialEquityUser findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<SocialEquityUser>
findByPrimaryKey
in class BasePersistenceImpl<SocialEquityUser>
primaryKey
- the primary key of the social equity user to find
NoSuchModelException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser findByPrimaryKey(long equityUserId) throws NoSuchEquityUserException, SystemException
NoSuchEquityUserException
if it could not be found.
findByPrimaryKey
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the social equity user to find
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<SocialEquityUser>
fetchByPrimaryKey
in class BasePersistenceImpl<SocialEquityUser>
primaryKey
- the primary key of the social equity user to find
null
if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser fetchByPrimaryKey(long equityUserId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the social equity user to find
null
if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface SocialEquityUserPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic List<SocialEquityUser> 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.
findByGroupId
in interface SocialEquityUserPersistence
groupId
- the group id to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityUser> 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.
findByGroupId
in interface SocialEquityUserPersistence
groupId
- the group id to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic SocialEquityUser findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByGroupId_First
in interface SocialEquityUserPersistence
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByGroupId_Last
in interface SocialEquityUserPersistence
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser[] findByGroupId_PrevAndNext(long equityUserId, long groupId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByGroupId_PrevAndNext
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the current social equity usergroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityUser getByGroupId_PrevAndNext(Session session, SocialEquityUser socialEquityUser, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<SocialEquityUser> findByGroupRanked(long groupId) throws SystemException
findByGroupRanked
in interface SocialEquityUserPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByGroupRanked(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.
findByGroupRanked
in interface SocialEquityUserPersistence
groupId
- the group id to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByGroupRanked(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.
findByGroupRanked
in interface SocialEquityUserPersistence
groupId
- the group id to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic SocialEquityUser findByGroupRanked_First(long groupId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByGroupRanked_First
in interface SocialEquityUserPersistence
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser findByGroupRanked_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByGroupRanked_Last
in interface SocialEquityUserPersistence
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser[] findByGroupRanked_PrevAndNext(long equityUserId, long groupId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByGroupRanked_PrevAndNext
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the current social equity usergroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityUser getByGroupRanked_PrevAndNext(Session session, SocialEquityUser socialEquityUser, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<SocialEquityUser> findByUserId(long userId) throws SystemException
findByUserId
in interface SocialEquityUserPersistence
userId
- the user id to search with
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByUserId(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.
findByUserId
in interface SocialEquityUserPersistence
userId
- the user id to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByUserId(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.
findByUserId
in interface SocialEquityUserPersistence
userId
- the user id to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic SocialEquityUser findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByUserId_First
in interface SocialEquityUserPersistence
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByUserId_Last
in interface SocialEquityUserPersistence
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser[] findByUserId_PrevAndNext(long equityUserId, long userId, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByUserId_PrevAndNext
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the current social equity useruserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityUser getByUserId_PrevAndNext(Session session, SocialEquityUser socialEquityUser, long userId, OrderByComparator orderByComparator, boolean previous)
public List<SocialEquityUser> findByRank(int rank) throws SystemException
findByRank
in interface SocialEquityUserPersistence
rank
- the rank to search with
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByRank(int rank, 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.
findByRank
in interface SocialEquityUserPersistence
rank
- the rank to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByRank(int rank, 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.
findByRank
in interface SocialEquityUserPersistence
rank
- the rank to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic SocialEquityUser findByRank_First(int rank, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByRank_First
in interface SocialEquityUserPersistence
rank
- the rank to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser findByRank_Last(int rank, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByRank_Last
in interface SocialEquityUserPersistence
rank
- the rank to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser[] findByRank_PrevAndNext(long equityUserId, int rank, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByRank_PrevAndNext
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the current social equity userrank
- the rank to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityUser getByRank_PrevAndNext(Session session, SocialEquityUser socialEquityUser, int rank, OrderByComparator orderByComparator, boolean previous)
public SocialEquityUser findByG_U(long groupId, long userId) throws NoSuchEquityUserException, SystemException
NoSuchEquityUserException
if it could not be found.
findByG_U
in interface SocialEquityUserPersistence
groupId
- the group id to search withuserId
- the user id to search with
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser fetchByG_U(long groupId, long userId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_U
in interface SocialEquityUserPersistence
groupId
- the group id to search withuserId
- the user id to search with
null
if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser fetchByG_U(long groupId, long userId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_U
in interface SocialEquityUserPersistence
groupId
- the group id to search withuserId
- the user id to search with
null
if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByG_R(long groupId, int rank) throws SystemException
findByG_R
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search with
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByG_R(long groupId, int rank, 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.
findByG_R
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityUser> findByG_R(long groupId, int rank, 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.
findByG_R
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search withstart
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic SocialEquityUser findByG_R_First(long groupId, int rank, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByG_R_First
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser findByG_R_Last(long groupId, int rank, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByG_R_Last
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a matching social equity user could not be found
SystemException
- if a system exception occurredpublic SocialEquityUser[] findByG_R_PrevAndNext(long equityUserId, long groupId, int rank, OrderByComparator orderByComparator) throws NoSuchEquityUserException, 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.
findByG_R_PrevAndNext
in interface SocialEquityUserPersistence
equityUserId
- the primary key of the current social equity usergroupId
- the group id to search withrank
- the rank to search withorderByComparator
- the comparator to order the set by
NoSuchEquityUserException
- if a social equity user with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityUser getByG_R_PrevAndNext(Session session, SocialEquityUser socialEquityUser, long groupId, int rank, OrderByComparator orderByComparator, boolean previous)
public List<SocialEquityUser> findAll() throws SystemException
findAll
in interface SocialEquityUserPersistence
SystemException
- if a system exception occurredpublic List<SocialEquityUser> 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.
findAll
in interface SocialEquityUserPersistence
start
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityUser> 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.
findAll
in interface SocialEquityUserPersistence
start
- the lower bound of the range of social equity users to returnend
- the upper bound of the range of social equity users to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface SocialEquityUserPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic void removeByGroupRanked(long groupId) throws SystemException
removeByGroupRanked
in interface SocialEquityUserPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic void removeByUserId(long userId) throws SystemException
removeByUserId
in interface SocialEquityUserPersistence
userId
- the user id to search with
SystemException
- if a system exception occurredpublic void removeByRank(int rank) throws SystemException
removeByRank
in interface SocialEquityUserPersistence
rank
- the rank to search with
SystemException
- if a system exception occurredpublic void removeByG_U(long groupId, long userId) throws NoSuchEquityUserException, SystemException
removeByG_U
in interface SocialEquityUserPersistence
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurred
NoSuchEquityUserException
public void removeByG_R(long groupId, int rank) throws SystemException
removeByG_R
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search with
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface SocialEquityUserPersistence
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface SocialEquityUserPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int countByGroupRanked(long groupId) throws SystemException
countByGroupRanked
in interface SocialEquityUserPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int countByUserId(long userId) throws SystemException
countByUserId
in interface SocialEquityUserPersistence
userId
- the user id to search with
SystemException
- if a system exception occurredpublic int countByRank(int rank) throws SystemException
countByRank
in interface SocialEquityUserPersistence
rank
- the rank to search with
SystemException
- if a system exception occurredpublic int countByG_U(long groupId, long userId) throws SystemException
countByG_U
in interface SocialEquityUserPersistence
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic int countByG_R(long groupId, int rank) throws SystemException
countByG_R
in interface SocialEquityUserPersistence
groupId
- the group id to search withrank
- the rank to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface SocialEquityUserPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |