Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialEquityUser>
      extended by com.liferay.portlet.social.service.persistence.SocialEquityUserPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SocialEquityUser>, SocialEquityUserPersistence

public class SocialEquityUserPersistenceImpl
extends BasePersistenceImpl<SocialEquityUser>
implements SocialEquityUserPersistence

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

See Also:
SocialEquityUserPersistence, SocialEquityUserUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_R
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPRANKED
           
static FinderPath FINDER_PATH_COUNT_BY_RANK
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_G_U
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_G_R
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_GROUPRANKED
           
static FinderPath FINDER_PATH_FIND_BY_RANK
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence
           
protected  SocialEquityHistoryPersistence socialEquityHistoryPersistence
           
protected  SocialEquityLogPersistence socialEquityLogPersistence
           
protected  SocialEquitySettingPersistence socialEquitySettingPersistence
           
protected  SocialEquityUserPersistence socialEquityUserPersistence
           
protected  SocialRelationPersistence socialRelationPersistence
           
protected  SocialRequestPersistence socialRequestPersistence
           
protected  UserPersistence userPersistence
           
 
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

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_GROUPRANKED

public static final FinderPath FINDER_PATH_FIND_BY_GROUPRANKED

FINDER_PATH_COUNT_BY_GROUPRANKED

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPRANKED

FINDER_PATH_FIND_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FIND_BY_RANK

public static final FinderPath FINDER_PATH_FIND_BY_RANK

FINDER_PATH_COUNT_BY_RANK

public static final FinderPath FINDER_PATH_COUNT_BY_RANK

FINDER_PATH_FETCH_BY_G_U

public static final FinderPath FINDER_PATH_FETCH_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_FIND_BY_G_R

public static final FinderPath FINDER_PATH_FIND_BY_G_R

FINDER_PATH_COUNT_BY_G_R

public static final FinderPath FINDER_PATH_COUNT_BY_G_R

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence

socialEquityAssetEntryPersistence

@BeanReference(type=SocialEquityAssetEntryPersistence.class)
protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence

socialEquityHistoryPersistence

@BeanReference(type=SocialEquityHistoryPersistence.class)
protected SocialEquityHistoryPersistence socialEquityHistoryPersistence

socialEquityLogPersistence

@BeanReference(type=SocialEquityLogPersistence.class)
protected SocialEquityLogPersistence socialEquityLogPersistence

socialEquitySettingPersistence

@BeanReference(type=SocialEquitySettingPersistence.class)
protected SocialEquitySettingPersistence socialEquitySettingPersistence

socialEquityUserPersistence

@BeanReference(type=SocialEquityUserPersistence.class)
protected SocialEquityUserPersistence socialEquityUserPersistence

socialRelationPersistence

@BeanReference(type=SocialRelationPersistence.class)
protected SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=SocialRequestPersistence.class)
protected SocialRequestPersistence socialRequestPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

SocialEquityUserPersistenceImpl

public SocialEquityUserPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialEquityUser socialEquityUser)
Caches the social equity user in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialEquityUserPersistence
Parameters:
socialEquityUser - the social equity user to cache

cacheResult

public void cacheResult(List<SocialEquityUser> socialEquityUsers)
Caches the social equity users in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialEquityUserPersistence
Parameters:
socialEquityUsers - the social equity users to cache

clearCache

public void clearCache()
Clears the cache for all social equity users.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialEquityUser>
Overrides:
clearCache in class BasePersistenceImpl<SocialEquityUser>

clearCache

public void clearCache(SocialEquityUser socialEquityUser)
Clears the cache for the social equity user.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialEquityUser>
Overrides:
clearCache in class BasePersistenceImpl<SocialEquityUser>
Parameters:
socialEquityUser - the instance of this model to clear the cache for

create

public SocialEquityUser create(long equityUserId)
Creates a new social equity user with the primary key. Does not add the social equity user to the database.

Specified by:
create in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key for the new social equity user
Returns:
the new social equity user

remove

public SocialEquityUser remove(Serializable primaryKey)
                        throws NoSuchModelException,
                               SystemException
Removes the social equity user with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialEquityUser>
Overrides:
remove in class BasePersistenceImpl<SocialEquityUser>
Parameters:
primaryKey - the primary key of the social equity user to remove
Returns:
the social equity user that was removed
Throws:
NoSuchModelException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

remove

public SocialEquityUser remove(long equityUserId)
                        throws NoSuchEquityUserException,
                               SystemException
Removes the social equity user with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the social equity user to remove
Returns:
the social equity user that was removed
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SocialEquityUser removeImpl(SocialEquityUser socialEquityUser)
                               throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialEquityUser>
Parameters:
socialEquityUser - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialEquityUser updateImpl(SocialEquityUser socialEquityUser,
                                   boolean merge)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialEquityUserPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialEquityUser>
Parameters:
socialEquityUser - the model instance to update
merge - 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.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialEquityUser toUnwrappedModel(SocialEquityUser socialEquityUser)

findByPrimaryKey

public SocialEquityUser findByPrimaryKey(Serializable primaryKey)
                                  throws NoSuchModelException,
                                         SystemException
Finds the social equity user with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialEquityUser>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialEquityUser>
Parameters:
primaryKey - the primary key of the social equity user to find
Returns:
the social equity user
Throws:
NoSuchModelException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public SocialEquityUser findByPrimaryKey(long equityUserId)
                                  throws NoSuchEquityUserException,
                                         SystemException
Finds the social equity user with the primary key or throws a NoSuchEquityUserException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the social equity user to find
Returns:
the social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialEquityUser fetchByPrimaryKey(Serializable primaryKey)
                                   throws SystemException
Finds the social equity user with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialEquityUser>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialEquityUser>
Parameters:
primaryKey - the primary key of the social equity user to find
Returns:
the social equity user, or null if a social equity user with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialEquityUser fetchByPrimaryKey(long equityUserId)
                                   throws SystemException
Finds the social equity user with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the social equity user to find
Returns:
the social equity user, or null if a social equity user with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialEquityUser> findByGroupId(long groupId)
                                     throws SystemException
Finds all the social equity users where groupId = ?.

Specified by:
findByGroupId in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialEquityUser> findByGroupId(long groupId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds a range of all the social equity users where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialEquityUser> findByGroupId(long groupId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the social equity users where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public SocialEquityUser findByGroupId_First(long groupId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchEquityUserException,
                                            SystemException
Finds the first social equity user in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_First in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public SocialEquityUser findByGroupId_Last(long groupId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchEquityUserException,
                                           SystemException
Finds the last social equity user in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_Last in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public SocialEquityUser[] findByGroupId_PrevAndNext(long equityUserId,
                                                    long groupId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchEquityUserException,
                                                    SystemException
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupId_PrevAndNext in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the current social equity user
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected SocialEquityUser getByGroupId_PrevAndNext(Session session,
                                                    SocialEquityUser socialEquityUser,
                                                    long groupId,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

findByGroupRanked

public List<SocialEquityUser> findByGroupRanked(long groupId)
                                         throws SystemException
Finds all the social equity users where groupId = ?.

Specified by:
findByGroupRanked in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupRanked

public List<SocialEquityUser> findByGroupRanked(long groupId,
                                                int start,
                                                int end)
                                         throws SystemException
Finds a range of all the social equity users where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupRanked in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupRanked

public List<SocialEquityUser> findByGroupRanked(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Finds an ordered range of all the social equity users where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupRanked in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupRanked_First

public SocialEquityUser findByGroupRanked_First(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchEquityUserException,
                                                SystemException
Finds the first social equity user in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupRanked_First in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupRanked_Last

public SocialEquityUser findByGroupRanked_Last(long groupId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchEquityUserException,
                                               SystemException
Finds the last social equity user in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupRanked_Last in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupRanked_PrevAndNext

public SocialEquityUser[] findByGroupRanked_PrevAndNext(long equityUserId,
                                                        long groupId,
                                                        OrderByComparator orderByComparator)
                                                 throws NoSuchEquityUserException,
                                                        SystemException
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByGroupRanked_PrevAndNext in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the current social equity user
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

getByGroupRanked_PrevAndNext

protected SocialEquityUser getByGroupRanked_PrevAndNext(Session session,
                                                        SocialEquityUser socialEquityUser,
                                                        long groupId,
                                                        OrderByComparator orderByComparator,
                                                        boolean previous)

findByUserId

public List<SocialEquityUser> findByUserId(long userId)
                                    throws SystemException
Finds all the social equity users where userId = ?.

Specified by:
findByUserId in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByUserId

public List<SocialEquityUser> findByUserId(long userId,
                                           int start,
                                           int end)
                                    throws SystemException
Finds a range of all the social equity users where userId = ?.

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.

Specified by:
findByUserId in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByUserId

public List<SocialEquityUser> findByUserId(long userId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Finds an ordered range of all the social equity users where userId = ?.

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.

Specified by:
findByUserId in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByUserId_First

public SocialEquityUser findByUserId_First(long userId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchEquityUserException,
                                           SystemException
Finds the first social equity user in the ordered set where userId = ?.

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.

Specified by:
findByUserId_First in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByUserId_Last

public SocialEquityUser findByUserId_Last(long userId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchEquityUserException,
                                          SystemException
Finds the last social equity user in the ordered set where userId = ?.

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.

Specified by:
findByUserId_Last in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public SocialEquityUser[] findByUserId_PrevAndNext(long equityUserId,
                                                   long userId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchEquityUserException,
                                                   SystemException
Finds the social equity users before and after the current social equity user in the ordered set where userId = ?.

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.

Specified by:
findByUserId_PrevAndNext in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the current social equity user
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

getByUserId_PrevAndNext

protected SocialEquityUser getByUserId_PrevAndNext(Session session,
                                                   SocialEquityUser socialEquityUser,
                                                   long userId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

findByRank

public List<SocialEquityUser> findByRank(int rank)
                                  throws SystemException
Finds all the social equity users where rank = ?.

Specified by:
findByRank in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByRank

public List<SocialEquityUser> findByRank(int rank,
                                         int start,
                                         int end)
                                  throws SystemException
Finds a range of all the social equity users where rank = ?.

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.

Specified by:
findByRank in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByRank

public List<SocialEquityUser> findByRank(int rank,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the social equity users where rank = ?.

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.

Specified by:
findByRank in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByRank_First

public SocialEquityUser findByRank_First(int rank,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchEquityUserException,
                                         SystemException
Finds the first social equity user in the ordered set where rank = ?.

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.

Specified by:
findByRank_First in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByRank_Last

public SocialEquityUser findByRank_Last(int rank,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchEquityUserException,
                                        SystemException
Finds the last social equity user in the ordered set where rank = ?.

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.

Specified by:
findByRank_Last in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByRank_PrevAndNext

public SocialEquityUser[] findByRank_PrevAndNext(long equityUserId,
                                                 int rank,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchEquityUserException,
                                                 SystemException
Finds the social equity users before and after the current social equity user in the ordered set where rank = ?.

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.

Specified by:
findByRank_PrevAndNext in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the current social equity user
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

getByRank_PrevAndNext

protected SocialEquityUser getByRank_PrevAndNext(Session session,
                                                 SocialEquityUser socialEquityUser,
                                                 int rank,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

findByG_U

public SocialEquityUser findByG_U(long groupId,
                                  long userId)
                           throws NoSuchEquityUserException,
                                  SystemException
Finds the social equity user where groupId = ? and userId = ? or throws a NoSuchEquityUserException if it could not be found.

Specified by:
findByG_U in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

fetchByG_U

public SocialEquityUser fetchByG_U(long groupId,
                                   long userId)
                            throws SystemException
Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_U in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching social equity user, or null if a matching social equity user could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_U

public SocialEquityUser fetchByG_U(long groupId,
                                   long userId,
                                   boolean retrieveFromCache)
                            throws SystemException
Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_U in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching social equity user, or null if a matching social equity user could not be found
Throws:
SystemException - if a system exception occurred

findByG_R

public List<SocialEquityUser> findByG_R(long groupId,
                                        int rank)
                                 throws SystemException
Finds all the social equity users where groupId = ? and rank = ?.

Specified by:
findByG_R in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByG_R

public List<SocialEquityUser> findByG_R(long groupId,
                                        int rank,
                                        int start,
                                        int end)
                                 throws SystemException
Finds a range of all the social equity users where groupId = ? and rank = ?.

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.

Specified by:
findByG_R in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByG_R

public List<SocialEquityUser> findByG_R(long groupId,
                                        int rank,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the social equity users where groupId = ? and rank = ?.

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.

Specified by:
findByG_R in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByG_R_First

public SocialEquityUser findByG_R_First(long groupId,
                                        int rank,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchEquityUserException,
                                        SystemException
Finds the first social equity user in the ordered set where groupId = ? and rank = ?.

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.

Specified by:
findByG_R_First in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByG_R_Last

public SocialEquityUser findByG_R_Last(long groupId,
                                       int rank,
                                       OrderByComparator orderByComparator)
                                throws NoSuchEquityUserException,
                                       SystemException
Finds the last social equity user in the ordered set where groupId = ? and rank = ?.

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.

Specified by:
findByG_R_Last in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByG_R_PrevAndNext

public SocialEquityUser[] findByG_R_PrevAndNext(long equityUserId,
                                                long groupId,
                                                int rank,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchEquityUserException,
                                                SystemException
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ? and rank = ?.

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.

Specified by:
findByG_R_PrevAndNext in interface SocialEquityUserPersistence
Parameters:
equityUserId - the primary key of the current social equity user
groupId - the group id to search with
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

getByG_R_PrevAndNext

protected SocialEquityUser getByG_R_PrevAndNext(Session session,
                                                SocialEquityUser socialEquityUser,
                                                long groupId,
                                                int rank,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findAll

public List<SocialEquityUser> findAll()
                               throws SystemException
Finds all the social equity users.

Specified by:
findAll in interface SocialEquityUserPersistence
Returns:
the social equity users
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialEquityUser> findAll(int start,
                                      int end)
                               throws SystemException
Finds a range of all the social equity users.

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.

Specified by:
findAll in interface SocialEquityUserPersistence
Parameters:
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of social equity users
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialEquityUser> findAll(int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Finds an ordered range of all the social equity users.

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.

Specified by:
findAll in interface SocialEquityUserPersistence
Parameters:
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social equity users
Throws:
SystemException - if a system exception occurred

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Removes all the social equity users where groupId = ? from the database.

Specified by:
removeByGroupId in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByGroupRanked

public void removeByGroupRanked(long groupId)
                         throws SystemException
Removes all the social equity users where groupId = ? from the database.

Specified by:
removeByGroupRanked in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Removes all the social equity users where userId = ? from the database.

Specified by:
removeByUserId in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByRank

public void removeByRank(int rank)
                  throws SystemException
Removes all the social equity users where rank = ? from the database.

Specified by:
removeByRank in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
Throws:
SystemException - if a system exception occurred

removeByG_U

public void removeByG_U(long groupId,
                        long userId)
                 throws NoSuchEquityUserException,
                        SystemException
Removes the social equity user where groupId = ? and userId = ? from the database.

Specified by:
removeByG_U in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
Throws:
SystemException - if a system exception occurred
NoSuchEquityUserException

removeByG_R

public void removeByG_R(long groupId,
                        int rank)
                 throws SystemException
Removes all the social equity users where groupId = ? and rank = ? from the database.

Specified by:
removeByG_R in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the social equity users from the database.

Specified by:
removeAll in interface SocialEquityUserPersistence
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Counts all the social equity users where groupId = ?.

Specified by:
countByGroupId in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByGroupRanked

public int countByGroupRanked(long groupId)
                       throws SystemException
Counts all the social equity users where groupId = ?.

Specified by:
countByGroupRanked in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Counts all the social equity users where userId = ?.

Specified by:
countByUserId in interface SocialEquityUserPersistence
Parameters:
userId - the user id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByRank

public int countByRank(int rank)
                throws SystemException
Counts all the social equity users where rank = ?.

Specified by:
countByRank in interface SocialEquityUserPersistence
Parameters:
rank - the rank to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByG_U

public int countByG_U(long groupId,
                      long userId)
               throws SystemException
Counts all the social equity users where groupId = ? and userId = ?.

Specified by:
countByG_U in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByG_R

public int countByG_R(long groupId,
                      int rank)
               throws SystemException
Counts all the social equity users where groupId = ? and rank = ?.

Specified by:
countByG_R in interface SocialEquityUserPersistence
Parameters:
groupId - the group id to search with
rank - the rank to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the social equity users.

Specified by:
countAll in interface SocialEquityUserPersistence
Returns:
the number of social equity users
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social equity user persistence.


Liferay 6.0.5