Class MemberRequestUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(MemberRequest memberRequest) Caches the member request in the entity cache if it is enabled.static voidcacheResult(List<MemberRequest> memberRequests) Caches the member requests in the entity cache if it is enabled.static voidstatic voidclearCache(MemberRequest memberRequest) static intcountAll()Returns the number of member requests.static intcountByG_R_S(long groupId, long receiverUserId, int status) Returns the number of member requests where groupId = ? and receiverUserId = ? and status = ?.static intcountByKey(String key) Returns the number of member requests where key = ?.static intcountByR_S(long receiverUserId, int status) Returns the number of member requests where receiverUserId = ? and status = ?.static intcountByReceiverUserId(long receiverUserId) Returns the number of member requests where receiverUserId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static MemberRequestcreate(long memberRequestId) Creates a new member request with the primary key.static MemberRequestfetchByG_R_S(long groupId, long receiverUserId, int status) Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returnsnullif it could not be found.static MemberRequestfetchByG_R_S(long groupId, long receiverUserId, int status, boolean useFinderCache) Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returnsnullif it could not be found, optionally using the finder cache.static MemberRequestfetchByKey(String key) Returns the member request where key = ? or returnsnullif it could not be found.static MemberRequestfetchByKey(String key, boolean useFinderCache) Returns the member request where key = ? or returnsnullif it could not be found, optionally using the finder cache.static MemberRequestfetchByPrimaryKey(long memberRequestId) Returns the member request with the primary key or returnsnullif it could not be found.static Map<Serializable,MemberRequest> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static MemberRequestfetchByR_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 = ?.static MemberRequestfetchByR_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 MemberRequestfetchByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) Returns the first member request in the ordered set where receiverUserId = ?.static MemberRequestfetchByReceiverUserId_Last(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) Returns the last member request in the ordered set where receiverUserId = ?.static List<MemberRequest>findAll()Returns all the member requests.static List<MemberRequest>findAll(int start, int end) Returns a range of all the member requests.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.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.static MemberRequestfindByG_R_S(long groupId, long receiverUserId, int status) Returns the member request where groupId = ? and receiverUserId = ? and status = ? or throws aNoSuchMemberRequestExceptionif it could not be found.static MemberRequestReturns the member request where key = ? or throws aNoSuchMemberRequestExceptionif it could not be found.static MemberRequestfindByPrimaryKey(long memberRequestId) Returns the member request with the primary key or throws aNoSuchMemberRequestExceptionif it could not be found.static List<MemberRequest>findByR_S(long receiverUserId, int status) Returns all the member requests where receiverUserId = ? and status = ?.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 = ?.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 = ?.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 = ?.static MemberRequestfindByR_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 = ?.static MemberRequestfindByR_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 = ?.static List<MemberRequest>findByReceiverUserId(long receiverUserId) Returns all the member requests where receiverUserId = ?.static List<MemberRequest>findByReceiverUserId(long receiverUserId, int start, int end) Returns a range of all the member requests where receiverUserId = ?.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 = ?.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 = ?.static MemberRequestfindByReceiverUserId_First(long receiverUserId, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) Returns the first member request in the ordered set where receiverUserId = ?.static MemberRequestfindByReceiverUserId_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 = ?.static List<MemberRequest>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<MemberRequest>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<MemberRequest>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MemberRequest> orderByComparator) static MemberRequestPersistencestatic MemberRequestremove(long memberRequestId) Removes the member request with the primary key from the database.static voidRemoves all the member requests from the database.static MemberRequestremoveByG_R_S(long groupId, long receiverUserId, int status) Removes the member request where groupId = ? and receiverUserId = ? and status = ? from the database.static MemberRequestremoveByKey(String key) Removes the member request where key = ? from the database.static voidremoveByR_S(long receiverUserId, int status) Removes all the member requests where receiverUserId = ? and status = ? from the database.static voidremoveByReceiverUserId(long receiverUserId) Removes all the member requests where receiverUserId = ? from the database.static voidsetPersistence(MemberRequestPersistence persistence) static MemberRequestupdate(MemberRequest memberRequest) static MemberRequestupdate(MemberRequest memberRequest, com.liferay.portal.kernel.service.ServiceContext serviceContext) static MemberRequestupdateImpl(MemberRequest memberRequest)
-
Constructor Details
-
MemberRequestUtil
public MemberRequestUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
- 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
Returns the member request where key = ? or throws aNoSuchMemberRequestExceptionif it could not be found.- Parameters:
key- the key- Returns:
- the matching member request
- Throws:
NoSuchMemberRequestException- if a matching member request could not be foundNoSuchMemberRequestException
-
fetchByKey
Returns the member request where key = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
key- the key- Returns:
- the matching member request, or
nullif a matching member request could not be found
-
fetchByKey
Returns the member request where key = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
key- the keyuseFinderCache- whether to use the finder cache- Returns:
- the matching member request, or
nullif a matching member request could not be found
-
removeByKey
Removes the member request where key = ? from the database.- Parameters:
key- the key- Returns:
- the member request that was removed
- Throws:
NoSuchMemberRequestException
-
countByKey
Returns the number of member requests where key = ?.- Parameters:
key- the key- Returns:
- the number of matching member requests
-
findByReceiverUserId
Returns all the member requests where receiverUserId = ?.- Parameters:
receiverUserId- the receiver user ID- Returns:
- the matching member requests
-
findByReceiverUserId
Returns a range of all the member requests where receiverUserId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
receiverUserId- the receiver user IDstart- the lower bound of the range of member requestsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
receiverUserId- the receiver user IDstart- the lower bound of the range of member requestsend- the upper bound of the range of member requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
receiverUserId- the receiver user IDstart- the lower bound of the range of member requestsend- the upper bound of the range of member requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching member request
- Throws:
NoSuchMemberRequestException- if a matching member request could not be foundNoSuchMemberRequestException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching member request, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching member request
- Throws:
NoSuchMemberRequestException- if a matching member request could not be foundNoSuchMemberRequestException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching member request, or
nullif 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 requestreceiverUserId- the receiver user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next member request
- Throws:
NoSuchMemberRequestException- if a member request with the primary key could not be foundNoSuchMemberRequestException
-
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
Returns all the member requests where receiverUserId = ? and status = ?.- Parameters:
receiverUserId- the receiver user IDstatus- the status- Returns:
- the matching member requests
-
findByR_S
Returns a range of all the member requests where receiverUserId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
receiverUserId- the receiver user IDstatus- the statusstart- the lower bound of the range of member requestsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
receiverUserId- the receiver user IDstatus- the statusstart- the lower bound of the range of member requestsend- the upper bound of the range of member requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
receiverUserId- the receiver user IDstatus- the statusstart- the lower bound of the range of member requestsend- the upper bound of the range of member requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching member request
- Throws:
NoSuchMemberRequestException- if a matching member request could not be foundNoSuchMemberRequestException
-
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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching member request, or
nullif 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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching member request
- Throws:
NoSuchMemberRequestException- if a matching member request could not be foundNoSuchMemberRequestException
-
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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching member request, or
nullif 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 requestreceiverUserId- the receiver user IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next member request
- Throws:
NoSuchMemberRequestException- if a member request with the primary key could not be foundNoSuchMemberRequestException
-
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 IDstatus- 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 IDstatus- 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 aNoSuchMemberRequestExceptionif it could not be found.- Parameters:
groupId- the group IDreceiverUserId- the receiver user IDstatus- the status- Returns:
- the matching member request
- Throws:
NoSuchMemberRequestException- if a matching member request could not be foundNoSuchMemberRequestException
-
fetchByG_R_S
Returns the member request where groupId = ? and receiverUserId = ? and status = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDreceiverUserId- the receiver user IDstatus- the status- Returns:
- the matching member request, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDreceiverUserId- the receiver user IDstatus- the statususeFinderCache- whether to use the finder cache- Returns:
- the matching member request, or
nullif 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 IDreceiverUserId- the receiver user IDstatus- 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 IDreceiverUserId- the receiver user IDstatus- the status- Returns:
- the number of matching member requests
-
cacheResult
Caches the member request in the entity cache if it is enabled.- Parameters:
memberRequest- the member request
-
cacheResult
Caches the member requests in the entity cache if it is enabled.- Parameters:
memberRequests- the member requests
-
create
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
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 foundNoSuchMemberRequestException
-
updateImpl
-
findByPrimaryKey
public static MemberRequest findByPrimaryKey(long memberRequestId) throws NoSuchMemberRequestException Returns the member request with the primary key or throws aNoSuchMemberRequestExceptionif 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 foundNoSuchMemberRequestException
-
fetchByPrimaryKey
Returns the member request with the primary key or returnsnullif it could not be found.- Parameters:
memberRequestId- the primary key of the member request- Returns:
- the member request, or
nullif a member request with the primary key could not be found
-
findAll
Returns all the member requests.- Returns:
- the member requests
-
findAll
Returns a range of all the member requests.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
start- the lower bound of the range of member requestsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
start- the lower bound of the range of member requestsend- the upper bound of the range of member requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromMemberRequestModelImpl.- Parameters:
start- the lower bound of the range of member requestsend- the upper bound of the range of member requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-