|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialRequest> com.liferay.portlet.social.service.persistence.SocialRequestPersistenceImpl
public class SocialRequestPersistenceImpl
The persistence implementation for the social request service.
Caching information and settings can be found in portal.properties
SocialRequestPersistence
,
SocialRequestUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
Constructor Summary | |
---|---|
SocialRequestPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the social request persistence. |
void |
cacheResult(List<SocialRequest> socialRequests)
Caches the social requests in the entity cache if it is enabled. |
void |
cacheResult(SocialRequest socialRequest)
Caches the social request in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(SocialRequest socialRequest)
|
void |
clearCache()
Clears the cache for all social requests. |
void |
clearCache(List<SocialRequest> socialRequests)
Clears the cache for a List instances of this model. |
void |
clearCache(SocialRequest socialRequest)
Clears the cache for the social request. |
protected void |
clearUniqueFindersCache(SocialRequest socialRequest)
|
int |
countAll()
Returns the number of social requests. |
int |
countByC_C_T_R_S(long classNameId,
long classPK,
int type,
long receiverUserId,
int status)
Returns the number of social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
int |
countByCompanyId(long companyId)
Returns the number of social requests where companyId = ?. |
int |
countByR_S(long receiverUserId,
int status)
Returns the number of social requests where receiverUserId = ? and status = ?. |
int |
countByReceiverUserId(long receiverUserId)
Returns the number of social requests where receiverUserId = ?. |
int |
countByU_C_C_T_R(long userId,
long classNameId,
long classPK,
int type,
long receiverUserId)
Returns the number of social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. |
int |
countByU_C_C_T_S(long userId,
long classNameId,
long classPK,
int type,
int status)
Returns the number of social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
int |
countByU_S(long userId,
int status)
Returns the number of social requests where userId = ? and status = ?. |
int |
countByUserId(long userId)
Returns the number of social requests where userId = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of social requests where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of social requests where uuid = ?. |
SocialRequest |
create(long requestId)
Creates a new social request with the primary key. |
void |
destroy()
|
SocialRequest |
fetchByC_C_T_R_S_First(long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
SocialRequest |
fetchByC_C_T_R_S_Last(long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
SocialRequest |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where companyId = ?. |
SocialRequest |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where companyId = ?. |
SocialRequest |
fetchByPrimaryKey(long requestId)
Returns the social request with the primary key or returns null if it could not be found. |
SocialRequest |
fetchByPrimaryKey(Serializable primaryKey)
Returns the social request with the primary key or returns null if it could not be found. |
SocialRequest |
fetchByR_S_First(long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where receiverUserId = ? and status = ?. |
SocialRequest |
fetchByR_S_Last(long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where receiverUserId = ? and status = ?. |
SocialRequest |
fetchByReceiverUserId_First(long receiverUserId,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where receiverUserId = ?. |
SocialRequest |
fetchByReceiverUserId_Last(long receiverUserId,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where receiverUserId = ?. |
SocialRequest |
fetchByU_C_C_T_R(long userId,
long classNameId,
long classPK,
int type,
long receiverUserId)
Returns the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found. |
SocialRequest |
fetchByU_C_C_T_R(long userId,
long classNameId,
long classPK,
int type,
long receiverUserId,
boolean retrieveFromCache)
Returns the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns null if it could not be found, optionally using the finder cache. |
SocialRequest |
fetchByU_C_C_T_S_First(long userId,
long classNameId,
long classPK,
int type,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
SocialRequest |
fetchByU_C_C_T_S_Last(long userId,
long classNameId,
long classPK,
int type,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
SocialRequest |
fetchByU_S_First(long userId,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where userId = ? and status = ?. |
SocialRequest |
fetchByU_S_Last(long userId,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where userId = ? and status = ?. |
SocialRequest |
fetchByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where userId = ?. |
SocialRequest |
fetchByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where userId = ?. |
SocialRequest |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where uuid = ?. |
SocialRequest |
fetchByUUID_G(String uuid,
long groupId)
Returns the social request where uuid = ? and groupId = ? or returns null if it could not be found. |
SocialRequest |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the social request where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
SocialRequest |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where uuid = ?. |
List<SocialRequest> |
findAll()
Returns all the social requests. |
List<SocialRequest> |
findAll(int start,
int end)
Returns a range of all the social requests. |
List<SocialRequest> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests. |
SocialRequest |
findByC_C_T_R_S_First(long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
SocialRequest |
findByC_C_T_R_S_Last(long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
SocialRequest[] |
findByC_C_T_R_S_PrevAndNext(long requestId,
long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
List<SocialRequest> |
findByC_C_T_R_S(long classNameId,
long classPK,
int type,
long receiverUserId,
int status)
Returns all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
List<SocialRequest> |
findByC_C_T_R_S(long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
int start,
int end)
Returns a range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
List<SocialRequest> |
findByC_C_T_R_S(long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. |
SocialRequest |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where companyId = ?. |
SocialRequest |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where companyId = ?. |
SocialRequest[] |
findByCompanyId_PrevAndNext(long requestId,
long companyId,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where companyId = ?. |
List<SocialRequest> |
findByCompanyId(long companyId)
Returns all the social requests where companyId = ?. |
List<SocialRequest> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the social requests where companyId = ?. |
List<SocialRequest> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where companyId = ?. |
SocialRequest |
findByPrimaryKey(long requestId)
Returns the social request with the primary key or throws a NoSuchRequestException if it could not be found. |
SocialRequest |
findByPrimaryKey(Serializable primaryKey)
Returns the social request with the primary key or throws a NoSuchModelException if it could not be found. |
SocialRequest |
findByR_S_First(long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where receiverUserId = ? and status = ?. |
SocialRequest |
findByR_S_Last(long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where receiverUserId = ? and status = ?. |
SocialRequest[] |
findByR_S_PrevAndNext(long requestId,
long receiverUserId,
int status,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where receiverUserId = ? and status = ?. |
List<SocialRequest> |
findByR_S(long receiverUserId,
int status)
Returns all the social requests where receiverUserId = ? and status = ?. |
List<SocialRequest> |
findByR_S(long receiverUserId,
int status,
int start,
int end)
Returns a range of all the social requests where receiverUserId = ? and status = ?. |
List<SocialRequest> |
findByR_S(long receiverUserId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where receiverUserId = ? and status = ?. |
SocialRequest |
findByReceiverUserId_First(long receiverUserId,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where receiverUserId = ?. |
SocialRequest |
findByReceiverUserId_Last(long receiverUserId,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where receiverUserId = ?. |
SocialRequest[] |
findByReceiverUserId_PrevAndNext(long requestId,
long receiverUserId,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where receiverUserId = ?. |
List<SocialRequest> |
findByReceiverUserId(long receiverUserId)
Returns all the social requests where receiverUserId = ?. |
List<SocialRequest> |
findByReceiverUserId(long receiverUserId,
int start,
int end)
Returns a range of all the social requests where receiverUserId = ?. |
List<SocialRequest> |
findByReceiverUserId(long receiverUserId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where receiverUserId = ?. |
SocialRequest |
findByU_C_C_T_R(long userId,
long classNameId,
long classPK,
int type,
long receiverUserId)
Returns the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a NoSuchRequestException if it could not be found. |
SocialRequest |
findByU_C_C_T_S_First(long userId,
long classNameId,
long classPK,
int type,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
SocialRequest |
findByU_C_C_T_S_Last(long userId,
long classNameId,
long classPK,
int type,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
SocialRequest[] |
findByU_C_C_T_S_PrevAndNext(long requestId,
long userId,
long classNameId,
long classPK,
int type,
int status,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
List<SocialRequest> |
findByU_C_C_T_S(long userId,
long classNameId,
long classPK,
int type,
int status)
Returns all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
List<SocialRequest> |
findByU_C_C_T_S(long userId,
long classNameId,
long classPK,
int type,
int status,
int start,
int end)
Returns a range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
List<SocialRequest> |
findByU_C_C_T_S(long userId,
long classNameId,
long classPK,
int type,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. |
SocialRequest |
findByU_S_First(long userId,
int status,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where userId = ? and status = ?. |
SocialRequest |
findByU_S_Last(long userId,
int status,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where userId = ? and status = ?. |
SocialRequest[] |
findByU_S_PrevAndNext(long requestId,
long userId,
int status,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where userId = ? and status = ?. |
List<SocialRequest> |
findByU_S(long userId,
int status)
Returns all the social requests where userId = ? and status = ?. |
List<SocialRequest> |
findByU_S(long userId,
int status,
int start,
int end)
Returns a range of all the social requests where userId = ? and status = ?. |
List<SocialRequest> |
findByU_S(long userId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where userId = ? and status = ?. |
SocialRequest |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where userId = ?. |
SocialRequest |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where userId = ?. |
SocialRequest[] |
findByUserId_PrevAndNext(long requestId,
long userId,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where userId = ?. |
List<SocialRequest> |
findByUserId(long userId)
Returns all the social requests where userId = ?. |
List<SocialRequest> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the social requests where userId = ?. |
List<SocialRequest> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where userId = ?. |
SocialRequest |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first social request in the ordered set where uuid = ?. |
SocialRequest |
findByUUID_G(String uuid,
long groupId)
Returns the social request where uuid = ? and groupId = ? or throws a NoSuchRequestException if it could not be found. |
SocialRequest |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last social request in the ordered set where uuid = ?. |
SocialRequest[] |
findByUuid_PrevAndNext(long requestId,
String uuid,
OrderByComparator orderByComparator)
Returns the social requests before and after the current social request in the ordered set where uuid = ?. |
List<SocialRequest> |
findByUuid(String uuid)
Returns all the social requests where uuid = ?. |
List<SocialRequest> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the social requests where uuid = ?. |
List<SocialRequest> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social requests where uuid = ?. |
protected SocialRequest |
getByC_C_T_R_S_PrevAndNext(Session session,
SocialRequest socialRequest,
long classNameId,
long classPK,
int type,
long receiverUserId,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByCompanyId_PrevAndNext(Session session,
SocialRequest socialRequest,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByR_S_PrevAndNext(Session session,
SocialRequest socialRequest,
long receiverUserId,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByReceiverUserId_PrevAndNext(Session session,
SocialRequest socialRequest,
long receiverUserId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByU_C_C_T_S_PrevAndNext(Session session,
SocialRequest socialRequest,
long userId,
long classNameId,
long classPK,
int type,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByU_S_PrevAndNext(Session session,
SocialRequest socialRequest,
long userId,
int status,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByUserId_PrevAndNext(Session session,
SocialRequest socialRequest,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRequest |
getByUuid_PrevAndNext(Session session,
SocialRequest socialRequest,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
SocialRequest |
remove(long requestId)
Removes the social request with the primary key from the database. |
SocialRequest |
remove(Serializable primaryKey)
Removes the social request with the primary key from the database. |
void |
removeAll()
Removes all the social requests from the database. |
void |
removeByC_C_T_R_S(long classNameId,
long classPK,
int type,
long receiverUserId,
int status)
Removes all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the social requests where companyId = ? from the database. |
void |
removeByR_S(long receiverUserId,
int status)
Removes all the social requests where receiverUserId = ? and status = ? from the database. |
void |
removeByReceiverUserId(long receiverUserId)
Removes all the social requests where receiverUserId = ? from the database. |
SocialRequest |
removeByU_C_C_T_R(long userId,
long classNameId,
long classPK,
int type,
long receiverUserId)
Removes the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. |
void |
removeByU_C_C_T_S(long userId,
long classNameId,
long classPK,
int type,
int status)
Removes all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ? from the database. |
void |
removeByU_S(long userId,
int status)
Removes all the social requests where userId = ? and status = ? from the database. |
void |
removeByUserId(long userId)
Removes all the social requests where userId = ? from the database. |
SocialRequest |
removeByUUID_G(String uuid,
long groupId)
Removes the social request where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the social requests where uuid = ? from the database. |
protected SocialRequest |
removeImpl(SocialRequest socialRequest)
Removes the model instance from the database. |
protected SocialRequest |
toUnwrappedModel(SocialRequest socialRequest)
|
SocialRequest |
updateImpl(SocialRequest socialRequest,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RECEIVERUSERID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECEIVERUSERID
public static final FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_S
public static final FinderPath FINDER_PATH_COUNT_BY_U_S
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_R_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_R_S
public static final FinderPath FINDER_PATH_COUNT_BY_R_S
public static final FinderPath FINDER_PATH_FETCH_BY_U_C_C_T_R
public static final FinderPath FINDER_PATH_COUNT_BY_U_C_C_T_R
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C_C_T_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C_C_T_S
public static final FinderPath FINDER_PATH_COUNT_BY_U_C_C_T_S
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_T_R_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T_R_S
public static final FinderPath FINDER_PATH_COUNT_BY_C_C_T_R_S
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=SocialActivityPersistence.class) protected SocialActivityPersistence socialActivityPersistence
@BeanReference(type=SocialActivityAchievementPersistence.class) protected SocialActivityAchievementPersistence socialActivityAchievementPersistence
@BeanReference(type=SocialActivityCounterPersistence.class) protected SocialActivityCounterPersistence socialActivityCounterPersistence
@BeanReference(type=SocialActivityLimitPersistence.class) protected SocialActivityLimitPersistence socialActivityLimitPersistence
@BeanReference(type=SocialActivitySettingPersistence.class) protected SocialActivitySettingPersistence socialActivitySettingPersistence
@BeanReference(type=SocialRelationPersistence.class) protected SocialRelationPersistence socialRelationPersistence
@BeanReference(type=SocialRequestPersistence.class) protected SocialRequestPersistence socialRequestPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public SocialRequestPersistenceImpl()
Method Detail |
---|
public void cacheResult(SocialRequest socialRequest)
cacheResult
in interface SocialRequestPersistence
socialRequest
- the social requestpublic void cacheResult(List<SocialRequest> socialRequests)
cacheResult
in interface SocialRequestPersistence
socialRequests
- the social requestspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialRequest>
clearCache
in class BasePersistenceImpl<SocialRequest>
public void clearCache(SocialRequest socialRequest)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialRequest>
clearCache
in class BasePersistenceImpl<SocialRequest>
socialRequest
- the instance of this model to clear the cache forpublic void clearCache(List<SocialRequest> socialRequests)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<SocialRequest>
clearCache
in class BasePersistenceImpl<SocialRequest>
socialRequests
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(SocialRequest socialRequest)
protected void clearUniqueFindersCache(SocialRequest socialRequest)
public SocialRequest create(long requestId)
create
in interface SocialRequestPersistence
requestId
- the primary key for the new social request
public SocialRequest remove(long requestId) throws NoSuchRequestException, SystemException
remove
in interface SocialRequestPersistence
requestId
- the primary key of the social request
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialRequest remove(Serializable primaryKey) throws NoSuchRequestException, SystemException
remove
in interface BasePersistence<SocialRequest>
remove
in class BasePersistenceImpl<SocialRequest>
primaryKey
- the primary key of the social request
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest removeImpl(SocialRequest socialRequest) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<SocialRequest>
socialRequest
- the model instance to remove
SystemException
- if a system exception occurredpublic SocialRequest updateImpl(SocialRequest socialRequest, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface SocialRequestPersistence
updateImpl
in class BasePersistenceImpl<SocialRequest>
socialRequest
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected SocialRequest toUnwrappedModel(SocialRequest socialRequest)
public SocialRequest findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<SocialRequest>
findByPrimaryKey
in class BasePersistenceImpl<SocialRequest>
primaryKey
- the primary key of the social request
NoSuchModelException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByPrimaryKey(long requestId) throws NoSuchRequestException, SystemException
NoSuchRequestException
if it could not be found.
findByPrimaryKey
in interface SocialRequestPersistence
requestId
- the primary key of the social request
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<SocialRequest>
fetchByPrimaryKey
in class BasePersistenceImpl<SocialRequest>
primaryKey
- the primary key of the social request
null
if a social request with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByPrimaryKey(long requestId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface SocialRequestPersistence
requestId
- the primary key of the social request
null
if a social request with the primary key could not be found
SystemException
- if a system exception occurredpublic List<SocialRequest> findByUuid(String uuid) throws SystemException
findByUuid
in interface SocialRequestPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<SocialRequest> findByUuid(String uuid, int start, int end) throws SystemException
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.
findByUuid
in interface SocialRequestPersistence
uuid
- the uuidstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByUuid
in interface SocialRequestPersistence
uuid
- the uuidstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByUuid_First
in interface SocialRequestPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface SocialRequestPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByUuid_Last
in interface SocialRequestPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface SocialRequestPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByUuid_PrevAndNext(long requestId, String uuid, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByUuid_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByUuid_PrevAndNext(Session session, SocialRequest socialRequest, String uuid, OrderByComparator orderByComparator, boolean previous)
public SocialRequest findByUUID_G(String uuid, long groupId) throws NoSuchRequestException, SystemException
NoSuchRequestException
if it could not be found.
findByUUID_G
in interface SocialRequestPersistence
uuid
- the uuidgroupId
- the group ID
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface SocialRequestPersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByUUID_G
in interface SocialRequestPersistence
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic List<SocialRequest> findByCompanyId(long companyId) throws SystemException
findByCompanyId
in interface SocialRequestPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic List<SocialRequest> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
findByCompanyId
in interface SocialRequestPersistence
companyId
- the company IDstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByCompanyId
in interface SocialRequestPersistence
companyId
- the company IDstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByCompanyId_First
in interface SocialRequestPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_First
in interface SocialRequestPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByCompanyId_Last
in interface SocialRequestPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByCompanyId_Last
in interface SocialRequestPersistence
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByCompanyId_PrevAndNext(long requestId, long companyId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByCompanyId_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByCompanyId_PrevAndNext(Session session, SocialRequest socialRequest, long companyId, OrderByComparator orderByComparator, boolean previous)
public List<SocialRequest> findByUserId(long userId) throws SystemException
findByUserId
in interface SocialRequestPersistence
userId
- the user ID
SystemException
- if a system exception occurredpublic List<SocialRequest> findByUserId(long userId, int start, int end) throws SystemException
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.
findByUserId
in interface SocialRequestPersistence
userId
- the user IDstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByUserId
in interface SocialRequestPersistence
userId
- the user IDstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByUserId_First
in interface SocialRequestPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException
fetchByUserId_First
in interface SocialRequestPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByUserId_Last
in interface SocialRequestPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException
fetchByUserId_Last
in interface SocialRequestPersistence
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByUserId_PrevAndNext(long requestId, long userId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByUserId_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByUserId_PrevAndNext(Session session, SocialRequest socialRequest, long userId, OrderByComparator orderByComparator, boolean previous)
public List<SocialRequest> findByReceiverUserId(long receiverUserId) throws SystemException
findByReceiverUserId
in interface SocialRequestPersistence
receiverUserId
- the receiver user ID
SystemException
- if a system exception occurredpublic List<SocialRequest> findByReceiverUserId(long receiverUserId, int start, int end) throws SystemException
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.
findByReceiverUserId
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByReceiverUserId
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByReceiverUserId_First
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator) throws SystemException
fetchByReceiverUserId_First
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByReceiverUserId_Last
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator) throws SystemException
fetchByReceiverUserId_Last
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByReceiverUserId_PrevAndNext(long requestId, long receiverUserId, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByReceiverUserId_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestreceiverUserId
- the receiver user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByReceiverUserId_PrevAndNext(Session session, SocialRequest socialRequest, long receiverUserId, OrderByComparator orderByComparator, boolean previous)
public List<SocialRequest> findByU_S(long userId, int status) throws SystemException
findByU_S
in interface SocialRequestPersistence
userId
- the user IDstatus
- the status
SystemException
- if a system exception occurredpublic List<SocialRequest> findByU_S(long userId, int status, int start, int end) throws SystemException
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.
findByU_S
in interface SocialRequestPersistence
userId
- the user IDstatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByU_S(long userId, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByU_S
in interface SocialRequestPersistence
userId
- the user IDstatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByU_S_First(long userId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByU_S_First
in interface SocialRequestPersistence
userId
- the user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByU_S_First(long userId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByU_S_First
in interface SocialRequestPersistence
userId
- the user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByU_S_Last(long userId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByU_S_Last
in interface SocialRequestPersistence
userId
- the user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByU_S_Last(long userId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByU_S_Last
in interface SocialRequestPersistence
userId
- the user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByU_S_PrevAndNext(long requestId, long userId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByU_S_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestuserId
- the user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByU_S_PrevAndNext(Session session, SocialRequest socialRequest, long userId, int status, OrderByComparator orderByComparator, boolean previous)
public List<SocialRequest> findByR_S(long receiverUserId, int status) throws SystemException
findByR_S
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the status
SystemException
- if a system exception occurredpublic List<SocialRequest> findByR_S(long receiverUserId, int status, int start, int end) throws SystemException
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.
findByR_S
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByR_S(long receiverUserId, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByR_S
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByR_S_First(long receiverUserId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByR_S_First
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByR_S_First(long receiverUserId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByR_S_First
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByR_S_Last(long receiverUserId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByR_S_Last
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByR_S_Last(long receiverUserId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByR_S_Last
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByR_S_PrevAndNext(long requestId, long receiverUserId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByR_S_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestreceiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByR_S_PrevAndNext(Session session, SocialRequest socialRequest, long receiverUserId, int status, OrderByComparator orderByComparator, boolean previous)
public SocialRequest findByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId) throws NoSuchRequestException, SystemException
NoSuchRequestException
if it could not be found.
findByU_C_C_T_R
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user ID
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByU_C_C_T_R
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user ID
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByU_C_C_T_R
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDretrieveFromCache
- whether to use the finder cache
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic List<SocialRequest> findByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status) throws SystemException
findByU_C_C_T_S
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the status
SystemException
- if a system exception occurredpublic List<SocialRequest> findByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status, int start, int end) throws SystemException
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.
findByU_C_C_T_S
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByU_C_C_T_S
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByU_C_C_T_S_First(long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByU_C_C_T_S_First
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByU_C_C_T_S_First(long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator) throws SystemException
fetchByU_C_C_T_S_First
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByU_C_C_T_S_Last(long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByU_C_C_T_S_Last
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByU_C_C_T_S_Last(long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator) throws SystemException
fetchByU_C_C_T_S_Last
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByU_C_C_T_S_PrevAndNext(long requestId, long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByU_C_C_T_S_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestuserId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByU_C_C_T_S_PrevAndNext(Session session, SocialRequest socialRequest, long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator, boolean previous)
public List<SocialRequest> findByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status) throws SystemException
findByC_C_T_R_S
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the status
SystemException
- if a system exception occurredpublic List<SocialRequest> findByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status, int start, int end) throws SystemException
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.
findByC_C_T_R_S
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByC_C_T_R_S
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusstart
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialRequest findByC_C_T_R_S_First(long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByC_C_T_R_S_First
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByC_C_T_R_S_First(long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByC_C_T_R_S_First
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest findByC_C_T_R_S_Last(long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByC_C_T_R_S_Last
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest fetchByC_C_T_R_S_Last(long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator) throws SystemException
fetchByC_C_T_R_S_Last
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social request could not be found
SystemException
- if a system exception occurredpublic SocialRequest[] findByC_C_T_R_S_PrevAndNext(long requestId, long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator) throws NoSuchRequestException, SystemException
findByC_C_T_R_S_PrevAndNext
in interface SocialRequestPersistence
requestId
- the primary key of the current social requestclassNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRequestException
- if a social request with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialRequest getByC_C_T_R_S_PrevAndNext(Session session, SocialRequest socialRequest, long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator, boolean previous)
public List<SocialRequest> findAll() throws SystemException
findAll
in interface SocialRequestPersistence
SystemException
- if a system exception occurredpublic List<SocialRequest> findAll(int start, int end) throws SystemException
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.
findAll
in interface SocialRequestPersistence
start
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialRequest> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface SocialRequestPersistence
start
- the lower bound of the range of social requestsend
- the upper bound of the range of social requests (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface SocialRequestPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic SocialRequest removeByUUID_G(String uuid, long groupId) throws NoSuchRequestException, SystemException
removeByUUID_G
in interface SocialRequestPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchRequestException
public void removeByCompanyId(long companyId) throws SystemException
removeByCompanyId
in interface SocialRequestPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic void removeByUserId(long userId) throws SystemException
removeByUserId
in interface SocialRequestPersistence
userId
- the user ID
SystemException
- if a system exception occurredpublic void removeByReceiverUserId(long receiverUserId) throws SystemException
removeByReceiverUserId
in interface SocialRequestPersistence
receiverUserId
- the receiver user ID
SystemException
- if a system exception occurredpublic void removeByU_S(long userId, int status) throws SystemException
removeByU_S
in interface SocialRequestPersistence
userId
- the user IDstatus
- the status
SystemException
- if a system exception occurredpublic void removeByR_S(long receiverUserId, int status) throws SystemException
removeByR_S
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the status
SystemException
- if a system exception occurredpublic SocialRequest removeByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId) throws NoSuchRequestException, SystemException
removeByU_C_C_T_R
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user ID
SystemException
- if a system exception occurred
NoSuchRequestException
public void removeByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status) throws SystemException
removeByU_C_C_T_S
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the status
SystemException
- if a system exception occurredpublic void removeByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status) throws SystemException
removeByC_C_T_R_S
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the status
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface SocialRequestPersistence
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface SocialRequestPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface SocialRequestPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic int countByCompanyId(long companyId) throws SystemException
countByCompanyId
in interface SocialRequestPersistence
companyId
- the company ID
SystemException
- if a system exception occurredpublic int countByUserId(long userId) throws SystemException
countByUserId
in interface SocialRequestPersistence
userId
- the user ID
SystemException
- if a system exception occurredpublic int countByReceiverUserId(long receiverUserId) throws SystemException
countByReceiverUserId
in interface SocialRequestPersistence
receiverUserId
- the receiver user ID
SystemException
- if a system exception occurredpublic int countByU_S(long userId, int status) throws SystemException
countByU_S
in interface SocialRequestPersistence
userId
- the user IDstatus
- the status
SystemException
- if a system exception occurredpublic int countByR_S(long receiverUserId, int status) throws SystemException
countByR_S
in interface SocialRequestPersistence
receiverUserId
- the receiver user IDstatus
- the status
SystemException
- if a system exception occurredpublic int countByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId) throws SystemException
countByU_C_C_T_R
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user ID
SystemException
- if a system exception occurredpublic int countByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status) throws SystemException
countByU_C_C_T_S
in interface SocialRequestPersistence
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p ktype
- the typestatus
- the status
SystemException
- if a system exception occurredpublic int countByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status) throws SystemException
countByC_C_T_R_S
in interface SocialRequestPersistence
classNameId
- the class name IDclassPK
- the class p ktype
- the typereceiverUserId
- the receiver user IDstatus
- the status
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface SocialRequestPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |