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 Details

    • MemberRequestUtil

      public MemberRequestUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<MemberRequest> memberRequests)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(MemberRequest memberRequest)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • 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
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.invitation.invite.members.model.impl.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
    • 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
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.invitation.invite.members.model.impl.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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.invitation.invite.members.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.invitation.invite.members.model.impl.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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.invitation.invite.members.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.invitation.invite.members.model.impl.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
    • getPersistence

      public static MemberRequestPersistence getPersistence()
    • setPersistence

      public static void setPersistence(MemberRequestPersistence persistence)