Interface MemberRequestPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<MemberRequest>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(MemberRequest memberRequest) Caches the member request in the entity cache if it is enabled.voidcacheResult(List<MemberRequest> memberRequests) Caches the member requests in the entity cache if it is enabled.intcountAll()Returns the number of member requests.intcountByG_R_S(long groupId, long receiverUserId, int status) Returns the number of member requests where groupId = ? and receiverUserId = ? and status = ?.intcountByKey(String key) Returns the number of member requests where key = ?.intcountByR_S(long receiverUserId, int status) Returns the number of member requests where receiverUserId = ? and status = ?.intcountByReceiverUserId(long receiverUserId) Returns the number of member requests where receiverUserId = ?.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 returnsnullif 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 returnsnullif it could not be found, optionally using the finder cache.fetchByKey(String key) Returns the member request where key = ? or returnsnullif it could not be found.fetchByKey(String key, boolean useFinderCache) Returns the member request where key = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long memberRequestId) Returns the member request with the primary key or returnsnullif 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 = ?.findAll()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 aNoSuchMemberRequestExceptionif it could not be found.Returns the member request where key = ? or throws aNoSuchMemberRequestExceptionif it could not be found.findByPrimaryKey(long memberRequestId) Returns the member request with the primary key or throws aNoSuchMemberRequestExceptionif 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 = ?.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 = ?.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 = ?.remove(long memberRequestId) Removes the member request with the primary key from the database.voidRemoves 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.removeByKey(String key) Removes the member request where key = ? from the database.voidremoveByR_S(long receiverUserId, int status) Removes all the member requests where receiverUserId = ? and status = ? from the database.voidremoveByReceiverUserId(long receiverUserId) Removes all the member requests where receiverUserId = ? from the database.updateImpl(MemberRequest memberRequest) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 found
-
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
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
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
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 found
-
fetchByReceiverUserId_First
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
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 found
-
fetchByReceiverUserId_Last
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
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 found
-
removeByReceiverUserId
void removeByReceiverUserId(long receiverUserId) Removes all the member requests where receiverUserId = ? from the database.- Parameters:
receiverUserId- the receiver user ID
-
countByReceiverUserId
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
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
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
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 found
-
fetchByR_S_First
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
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 found
-
fetchByR_S_Last
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
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 found
-
removeByR_S
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
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
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 found
-
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
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
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
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 found
-
updateImpl
-
findByPrimaryKey
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 found
-
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
List<MemberRequest> 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
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
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
void removeAll()Removes all the member requests from the database. -
countAll
int countAll()Returns the number of member requests.- Returns:
- the number of member requests
-