java.lang.Object
com.liferay.invitation.invite.members.service.persistence.MemberRequestUtil

public class MemberRequestUtil extends Object
The persistence utility for the member request service. This utility wraps com.liferay.invitation.invite.members.service.persistence.impl.MemberRequestPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(MemberRequest memberRequest)
    Caches the member request in the entity cache if it is enabled.
    static void
    cacheResult(List<MemberRequest> memberRequests)
    Caches the member requests in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(MemberRequest memberRequest)
     
    static int
    Returns the number of member requests.
    static int
    countByG_R_S(long groupId, long receiverUserId, int status)
    Returns the number of member requests where groupId = ? and receiverUserId = ? and status = ?.
    static int
    Returns the number of member requests where key = ?.
    static int
    countByR_S(long receiverUserId, int status)
    Returns the number of member requests where receiverUserId = ? and status = ?.
    static int
    countByReceiverUserId(long receiverUserId)
    Returns the number of member requests where receiverUserId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    create(long memberRequestId)
    Creates a new member request with the primary key.
    fetchByG_R_S(long groupId, long receiverUserId, int status)
    Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returns null if it could not be found.
    fetchByG_R_S(long groupId, long receiverUserId, int status, boolean useFinderCache)
    Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returns null if it could not be found, optionally using the finder cache.
    Returns the member request where key = ? or returns null if it could not be found.
    fetchByKey(String key, boolean useFinderCache)
    Returns the member request where key = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long memberRequestId)
    Returns the member request with the primary key or returns null if it could not be found.
     
    fetchByR_S_First(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the first member request in the ordered set where receiverUserId = ? and status = ?.
    fetchByR_S_Last(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the last member request in the ordered set where receiverUserId = ? and status = ?.
    fetchByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the first member request in the ordered set where receiverUserId = ?.
    fetchByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the last member request in the ordered set where receiverUserId = ?.
    Returns all the member requests.
    findAll(int start, int end)
    Returns a range of all the member requests.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns an ordered range of all the member requests.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the member requests.
    findByG_R_S(long groupId, long receiverUserId, int status)
    Returns the member request where groupId = ? and receiverUserId = ? and status = ? or throws a NoSuchMemberRequestException if it could not be found.
    Returns the member request where key = ? or throws a NoSuchMemberRequestException if it could not be found.
    findByPrimaryKey(long memberRequestId)
    Returns the member request with the primary key or throws a NoSuchMemberRequestException if it could not be found.
    findByR_S(long receiverUserId, int status)
    Returns all the member requests where receiverUserId = ? and status = ?.
    findByR_S(long receiverUserId, int status, int start, int end)
    Returns a range of all the member requests where receiverUserId = ? and status = ?.
    findByR_S(long receiverUserId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns an ordered range of all the member requests where receiverUserId = ? and status = ?.
    findByR_S(long receiverUserId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the member requests where receiverUserId = ? and status = ?.
    findByR_S_First(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the first member request in the ordered set where receiverUserId = ? and status = ?.
    findByR_S_Last(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the last member request in the ordered set where receiverUserId = ? and status = ?.
    static MemberRequest[]
    findByR_S_PrevAndNext(long memberRequestId, long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the member requests before and after the current member request in the ordered set where receiverUserId = ? and status = ?.
    findByReceiverUserId(long receiverUserId)
    Returns all the member requests where receiverUserId = ?.
    findByReceiverUserId(long receiverUserId, int start, int end)
    Returns a range of all the member requests where receiverUserId = ?.
    findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns an ordered range of all the member requests where receiverUserId = ?.
    findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the member requests where receiverUserId = ?.
    findByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the first member request in the ordered set where receiverUserId = ?.
    findByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the last member request in the ordered set where receiverUserId = ?.
    static MemberRequest[]
    findByReceiverUserId_PrevAndNext(long memberRequestId, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
    Returns the member requests before and after the current member request in the ordered set where receiverUserId = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
     
     
    remove(long memberRequestId)
    Removes the member request with the primary key from the database.
    static void
    Removes all the member requests from the database.
    removeByG_R_S(long groupId, long receiverUserId, int status)
    Removes the member request where groupId = ? and receiverUserId = ? and status = ? from the database.
    Removes the member request where key = ? from the database.
    static void
    removeByR_S(long receiverUserId, int status)
    Removes all the member requests where receiverUserId = ? and status = ? from the database.
    static void
    removeByReceiverUserId(long receiverUserId)
    Removes all the member requests where receiverUserId = ? from the database.
    static void
     
    update(MemberRequest memberRequest)
     
    update(MemberRequest memberRequest, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(MemberRequest memberRequest)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MemberRequestUtil

      public MemberRequestUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(MemberRequest memberRequest)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,MemberRequest> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<MemberRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<MemberRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<MemberRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static MemberRequest update(MemberRequest memberRequest)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static MemberRequest update(MemberRequest memberRequest, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByKey

      public static MemberRequest findByKey(String key) throws NoSuchMemberRequestException
      Returns the member request where key = ? or throws a NoSuchMemberRequestException if it could not be found.
      Parameters:
      key - the key
      Returns:
      the matching member request
      Throws:
      NoSuchMemberRequestException - if a matching member request could not be found
      NoSuchMemberRequestException
    • fetchByKey

      public static MemberRequest fetchByKey(String key)
      Returns the member request where key = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      key - the key
      Returns:
      the matching member request, or null if a matching member request could not be found
    • fetchByKey

      public static MemberRequest fetchByKey(String key, boolean useFinderCache)
      Returns the member request where key = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      key - the key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching member request, or null if a matching member request could not be found
    • removeByKey

      public static MemberRequest removeByKey(String key) throws NoSuchMemberRequestException
      Removes the member request where key = ? from the database.
      Parameters:
      key - the key
      Returns:
      the member request that was removed
      Throws:
      NoSuchMemberRequestException
    • countByKey

      public static int countByKey(String key)
      Returns the number of member requests where key = ?.
      Parameters:
      key - the key
      Returns:
      the number of matching member requests
    • findByReceiverUserId

      public static List<MemberRequest> findByReceiverUserId(long receiverUserId)
      Returns all the member requests where receiverUserId = ?.
      Parameters:
      receiverUserId - the receiver user ID
      Returns:
      the matching member requests
    • findByReceiverUserId

      public static List<MemberRequest> findByReceiverUserId(long receiverUserId, int start, int end)
      Returns a range of all the member requests where receiverUserId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      receiverUserId - the receiver user ID
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      Returns:
      the range of matching member requests
    • findByReceiverUserId

      public static List<MemberRequest> findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns an ordered range of all the member requests where receiverUserId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      receiverUserId - the receiver user ID
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching member requests
    • findByReceiverUserId

      public static List<MemberRequest> findByReceiverUserId(long receiverUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the member requests where receiverUserId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      receiverUserId - the receiver user ID
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching member requests
    • findByReceiverUserId_First

      public static MemberRequest findByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) throws NoSuchMemberRequestException
      Returns the first member request in the ordered set where receiverUserId = ?.
      Parameters:
      receiverUserId - the receiver user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching member request
      Throws:
      NoSuchMemberRequestException - if a matching member request could not be found
      NoSuchMemberRequestException
    • fetchByReceiverUserId_First

      public static MemberRequest fetchByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns the first member request in the ordered set where receiverUserId = ?.
      Parameters:
      receiverUserId - the receiver user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching member request, or null if a matching member request could not be found
    • findByReceiverUserId_Last

      public static MemberRequest findByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) throws NoSuchMemberRequestException
      Returns the last member request in the ordered set where receiverUserId = ?.
      Parameters:
      receiverUserId - the receiver user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching member request
      Throws:
      NoSuchMemberRequestException - if a matching member request could not be found
      NoSuchMemberRequestException
    • fetchByReceiverUserId_Last

      public static MemberRequest fetchByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns the last member request in the ordered set where receiverUserId = ?.
      Parameters:
      receiverUserId - the receiver user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching member request, or null if a matching member request could not be found
    • findByReceiverUserId_PrevAndNext

      public static MemberRequest[] findByReceiverUserId_PrevAndNext(long memberRequestId, long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) throws NoSuchMemberRequestException
      Returns the member requests before and after the current member request in the ordered set where receiverUserId = ?.
      Parameters:
      memberRequestId - the primary key of the current member request
      receiverUserId - the receiver user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next member request
      Throws:
      NoSuchMemberRequestException - if a member request with the primary key could not be found
      NoSuchMemberRequestException
    • removeByReceiverUserId

      public static void removeByReceiverUserId(long receiverUserId)
      Removes all the member requests where receiverUserId = ? from the database.
      Parameters:
      receiverUserId - the receiver user ID
    • countByReceiverUserId

      public static int countByReceiverUserId(long receiverUserId)
      Returns the number of member requests where receiverUserId = ?.
      Parameters:
      receiverUserId - the receiver user ID
      Returns:
      the number of matching member requests
    • findByR_S

      public static List<MemberRequest> findByR_S(long receiverUserId, int status)
      Returns all the member requests where receiverUserId = ? and status = ?.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      Returns:
      the matching member requests
    • findByR_S

      public static List<MemberRequest> findByR_S(long receiverUserId, int status, int start, int end)
      Returns a range of all the member requests where receiverUserId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      Returns:
      the range of matching member requests
    • findByR_S

      public static List<MemberRequest> findByR_S(long receiverUserId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns an ordered range of all the member requests where receiverUserId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching member requests
    • findByR_S

      public static List<MemberRequest> findByR_S(long receiverUserId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the member requests where receiverUserId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching member requests
    • findByR_S_First

      public static MemberRequest findByR_S_First(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) throws NoSuchMemberRequestException
      Returns the first member request in the ordered set where receiverUserId = ? and status = ?.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching member request
      Throws:
      NoSuchMemberRequestException - if a matching member request could not be found
      NoSuchMemberRequestException
    • fetchByR_S_First

      public static MemberRequest fetchByR_S_First(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns the first member request in the ordered set where receiverUserId = ? and status = ?.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching member request, or null if a matching member request could not be found
    • findByR_S_Last

      public static MemberRequest findByR_S_Last(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) throws NoSuchMemberRequestException
      Returns the last member request in the ordered set where receiverUserId = ? and status = ?.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching member request
      Throws:
      NoSuchMemberRequestException - if a matching member request could not be found
      NoSuchMemberRequestException
    • fetchByR_S_Last

      public static MemberRequest fetchByR_S_Last(long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns the last member request in the ordered set where receiverUserId = ? and status = ?.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching member request, or null if a matching member request could not be found
    • findByR_S_PrevAndNext

      public static MemberRequest[] findByR_S_PrevAndNext(long memberRequestId, long receiverUserId, int status, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) throws NoSuchMemberRequestException
      Returns the member requests before and after the current member request in the ordered set where receiverUserId = ? and status = ?.
      Parameters:
      memberRequestId - the primary key of the current member request
      receiverUserId - the receiver user ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next member request
      Throws:
      NoSuchMemberRequestException - if a member request with the primary key could not be found
      NoSuchMemberRequestException
    • removeByR_S

      public static void removeByR_S(long receiverUserId, int status)
      Removes all the member requests where receiverUserId = ? and status = ? from the database.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
    • countByR_S

      public static int countByR_S(long receiverUserId, int status)
      Returns the number of member requests where receiverUserId = ? and status = ?.
      Parameters:
      receiverUserId - the receiver user ID
      status - the status
      Returns:
      the number of matching member requests
    • findByG_R_S

      public static MemberRequest findByG_R_S(long groupId, long receiverUserId, int status) throws NoSuchMemberRequestException
      Returns the member request where groupId = ? and receiverUserId = ? and status = ? or throws a NoSuchMemberRequestException if it could not be found.
      Parameters:
      groupId - the group ID
      receiverUserId - the receiver user ID
      status - the status
      Returns:
      the matching member request
      Throws:
      NoSuchMemberRequestException - if a matching member request could not be found
      NoSuchMemberRequestException
    • fetchByG_R_S

      public static MemberRequest fetchByG_R_S(long groupId, long receiverUserId, int status)
      Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      receiverUserId - the receiver user ID
      status - the status
      Returns:
      the matching member request, or null if a matching member request could not be found
    • fetchByG_R_S

      public static MemberRequest fetchByG_R_S(long groupId, long receiverUserId, int status, boolean useFinderCache)
      Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      receiverUserId - the receiver user ID
      status - the status
      useFinderCache - whether to use the finder cache
      Returns:
      the matching member request, or null if a matching member request could not be found
    • removeByG_R_S

      public static MemberRequest removeByG_R_S(long groupId, long receiverUserId, int status) throws NoSuchMemberRequestException
      Removes the member request where groupId = ? and receiverUserId = ? and status = ? from the database.
      Parameters:
      groupId - the group ID
      receiverUserId - the receiver user ID
      status - the status
      Returns:
      the member request that was removed
      Throws:
      NoSuchMemberRequestException
    • countByG_R_S

      public static int countByG_R_S(long groupId, long receiverUserId, int status)
      Returns the number of member requests where groupId = ? and receiverUserId = ? and status = ?.
      Parameters:
      groupId - the group ID
      receiverUserId - the receiver user ID
      status - the status
      Returns:
      the number of matching member requests
    • cacheResult

      public static void cacheResult(MemberRequest memberRequest)
      Caches the member request in the entity cache if it is enabled.
      Parameters:
      memberRequest - the member request
    • cacheResult

      public static void cacheResult(List<MemberRequest> memberRequests)
      Caches the member requests in the entity cache if it is enabled.
      Parameters:
      memberRequests - the member requests
    • create

      public static MemberRequest create(long memberRequestId)
      Creates a new member request with the primary key. Does not add the member request to the database.
      Parameters:
      memberRequestId - the primary key for the new member request
      Returns:
      the new member request
    • remove

      public static MemberRequest remove(long memberRequestId) throws NoSuchMemberRequestException
      Removes the member request with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      memberRequestId - the primary key of the member request
      Returns:
      the member request that was removed
      Throws:
      NoSuchMemberRequestException - if a member request with the primary key could not be found
      NoSuchMemberRequestException
    • updateImpl

      public static MemberRequest updateImpl(MemberRequest memberRequest)
    • findByPrimaryKey

      public static MemberRequest findByPrimaryKey(long memberRequestId) throws NoSuchMemberRequestException
      Returns the member request with the primary key or throws a NoSuchMemberRequestException if it could not be found.
      Parameters:
      memberRequestId - the primary key of the member request
      Returns:
      the member request
      Throws:
      NoSuchMemberRequestException - if a member request with the primary key could not be found
      NoSuchMemberRequestException
    • fetchByPrimaryKey

      public static MemberRequest fetchByPrimaryKey(long memberRequestId)
      Returns the member request with the primary key or returns null if it could not be found.
      Parameters:
      memberRequestId - the primary key of the member request
      Returns:
      the member request, or null if a member request with the primary key could not be found
    • findAll

      public static List<MemberRequest> findAll()
      Returns all the member requests.
      Returns:
      the member requests
    • findAll

      public static List<MemberRequest> findAll(int start, int end)
      Returns a range of all the member requests.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      Returns:
      the range of member requests
    • findAll

      public static List<MemberRequest> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator)
      Returns an ordered range of all the member requests.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of member requests
    • findAll

      public static List<MemberRequest> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the member requests.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from MemberRequestModelImpl.

      Parameters:
      start - the lower bound of the range of member requests
      end - the upper bound of the range of member requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of member requests
    • removeAll

      public static void removeAll()
      Removes all the member requests from the database.
    • countAll

      public static int countAll()
      Returns the number of member requests.
      Returns:
      the number of member requests
    • getPersistence

      public static MemberRequestPersistence getPersistence()
    • setPersistence

      public static void setPersistence(MemberRequestPersistence persistence)