Liferay 6.0.3

com.liferay.portlet.social.service.persistence
Class SocialRequestPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialRequest>
      extended by com.liferay.portlet.social.service.persistence.SocialRequestPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SocialRequest>, SocialRequestPersistence

public class SocialRequestPersistenceImpl
extends BasePersistenceImpl<SocialRequest>
implements SocialRequestPersistence

See Also:
SocialRequestPersistence, SocialRequestUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_T_R_S
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_R_S
           
static FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID
           
static FinderPath FINDER_PATH_COUNT_BY_U_C_C_T_R
           
static FinderPath FINDER_PATH_COUNT_BY_U_C_C_T_S
           
static FinderPath FINDER_PATH_COUNT_BY_U_S
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_U_C_C_T_R
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_C_C_T_R_S
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_R_S
           
static FinderPath FINDER_PATH_FIND_BY_RECEIVERUSERID
           
static FinderPath FINDER_PATH_FIND_BY_U_C_C_T_S
           
static FinderPath FINDER_PATH_FIND_BY_U_S
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
static FinderPath FINDER_PATH_FIND_BY_UUID
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence
           
protected  SocialEquityHistoryPersistence socialEquityHistoryPersistence
           
protected  SocialEquityLogPersistence socialEquityLogPersistence
           
protected  SocialEquitySettingPersistence socialEquitySettingPersistence
           
protected  SocialEquityUserPersistence socialEquityUserPersistence
           
protected  SocialRelationPersistence socialRelationPersistence
           
protected  SocialRequestPersistence socialRequestPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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()
           
 void cacheResult(List<SocialRequest> socialRequests)
           
 void cacheResult(SocialRequest socialRequest)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(SocialRequest socialRequest)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status)
           
 int countByCompanyId(long companyId)
           
 int countByR_S(long receiverUserId, int status)
           
 int countByReceiverUserId(long receiverUserId)
           
 int countByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId)
           
 int countByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status)
           
 int countByU_S(long userId, int status)
           
 int countByUserId(long userId)
           
 int countByUUID_G(String uuid, long groupId)
           
 int countByUuid(String uuid)
           
 SocialRequest create(long requestId)
           
 SocialRequest fetchByPrimaryKey(long requestId)
           
 SocialRequest fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 SocialRequest fetchByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId)
           
 SocialRequest fetchByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId, boolean retrieveFromCache)
           
 SocialRequest fetchByUUID_G(String uuid, long groupId)
           
 SocialRequest fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
           
 List<SocialRequest> findAll()
           
 List<SocialRequest> findAll(int start, int end)
           
 List<SocialRequest> findAll(int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByC_C_T_R_S_First(long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator)
           
 SocialRequest findByC_C_T_R_S_Last(long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator)
           
 SocialRequest[] findByC_C_T_R_S_PrevAndNext(long requestId, long classNameId, long classPK, int type, long receiverUserId, int status, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status)
           
 List<SocialRequest> findByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status, int start, int end)
           
 List<SocialRequest> findByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
           
 SocialRequest findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
           
 SocialRequest[] findByCompanyId_PrevAndNext(long requestId, long companyId, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByCompanyId(long companyId)
           
 List<SocialRequest> findByCompanyId(long companyId, int start, int end)
           
 List<SocialRequest> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByPrimaryKey(long requestId)
           
 SocialRequest findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 SocialRequest findByR_S_First(long receiverUserId, int status, OrderByComparator orderByComparator)
           
 SocialRequest findByR_S_Last(long receiverUserId, int status, OrderByComparator orderByComparator)
           
 SocialRequest[] findByR_S_PrevAndNext(long requestId, long receiverUserId, int status, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByR_S(long receiverUserId, int status)
           
 List<SocialRequest> findByR_S(long receiverUserId, int status, int start, int end)
           
 List<SocialRequest> findByR_S(long receiverUserId, int status, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByReceiverUserId_First(long receiverUserId, OrderByComparator orderByComparator)
           
 SocialRequest findByReceiverUserId_Last(long receiverUserId, OrderByComparator orderByComparator)
           
 SocialRequest[] findByReceiverUserId_PrevAndNext(long requestId, long receiverUserId, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByReceiverUserId(long receiverUserId)
           
 List<SocialRequest> findByReceiverUserId(long receiverUserId, int start, int end)
           
 List<SocialRequest> findByReceiverUserId(long receiverUserId, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId)
           
 SocialRequest findByU_C_C_T_S_First(long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator)
           
 SocialRequest findByU_C_C_T_S_Last(long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator)
           
 SocialRequest[] findByU_C_C_T_S_PrevAndNext(long requestId, long userId, long classNameId, long classPK, int type, int status, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status)
           
 List<SocialRequest> findByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status, int start, int end)
           
 List<SocialRequest> findByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByU_S_First(long userId, int status, OrderByComparator orderByComparator)
           
 SocialRequest findByU_S_Last(long userId, int status, OrderByComparator orderByComparator)
           
 SocialRequest[] findByU_S_PrevAndNext(long requestId, long userId, int status, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByU_S(long userId, int status)
           
 List<SocialRequest> findByU_S(long userId, int status, int start, int end)
           
 List<SocialRequest> findByU_S(long userId, int status, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByUserId_First(long userId, OrderByComparator orderByComparator)
           
 SocialRequest findByUserId_Last(long userId, OrderByComparator orderByComparator)
           
 SocialRequest[] findByUserId_PrevAndNext(long requestId, long userId, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByUserId(long userId)
           
 List<SocialRequest> findByUserId(long userId, int start, int end)
           
 List<SocialRequest> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
           
 SocialRequest findByUuid_First(String uuid, OrderByComparator orderByComparator)
           
 SocialRequest findByUUID_G(String uuid, long groupId)
           
 SocialRequest findByUuid_Last(String uuid, OrderByComparator orderByComparator)
           
 SocialRequest[] findByUuid_PrevAndNext(long requestId, String uuid, OrderByComparator orderByComparator)
           
 List<SocialRequest> findByUuid(String uuid)
           
 List<SocialRequest> findByUuid(String uuid, int start, int end)
           
 List<SocialRequest> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
           
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)
           
 SocialRequest remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeByC_C_T_R_S(long classNameId, long classPK, int type, long receiverUserId, int status)
           
 void removeByCompanyId(long companyId)
           
 void removeByR_S(long receiverUserId, int status)
           
 void removeByReceiverUserId(long receiverUserId)
           
 void removeByU_C_C_T_R(long userId, long classNameId, long classPK, int type, long receiverUserId)
           
 void removeByU_C_C_T_S(long userId, long classNameId, long classPK, int type, int status)
           
 void removeByU_S(long userId, int status)
           
 void removeByUserId(long userId)
           
 void removeByUUID_G(String uuid, long groupId)
           
 void removeByUuid(String uuid)
           
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, getDataSource, 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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_UUID

public static final FinderPath FINDER_PATH_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FIND_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FIND_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_FIND_BY_RECEIVERUSERID

FINDER_PATH_COUNT_BY_RECEIVERUSERID

public static final FinderPath FINDER_PATH_COUNT_BY_RECEIVERUSERID

FINDER_PATH_FIND_BY_U_S

public static final FinderPath FINDER_PATH_FIND_BY_U_S

FINDER_PATH_COUNT_BY_U_S

public static final FinderPath FINDER_PATH_COUNT_BY_U_S

FINDER_PATH_FIND_BY_R_S

public static final FinderPath FINDER_PATH_FIND_BY_R_S

FINDER_PATH_COUNT_BY_R_S

public static final FinderPath FINDER_PATH_COUNT_BY_R_S

FINDER_PATH_FETCH_BY_U_C_C_T_R

public static final FinderPath FINDER_PATH_FETCH_BY_U_C_C_T_R

FINDER_PATH_COUNT_BY_U_C_C_T_R

public static final FinderPath FINDER_PATH_COUNT_BY_U_C_C_T_R

FINDER_PATH_FIND_BY_U_C_C_T_S

public static final FinderPath FINDER_PATH_FIND_BY_U_C_C_T_S

FINDER_PATH_COUNT_BY_U_C_C_T_S

public static final FinderPath FINDER_PATH_COUNT_BY_U_C_C_T_S

FINDER_PATH_FIND_BY_C_C_T_R_S

public static final FinderPath FINDER_PATH_FIND_BY_C_C_T_R_S

FINDER_PATH_COUNT_BY_C_C_T_R_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_T_R_S

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence

socialEquityAssetEntryPersistence

@BeanReference(type=SocialEquityAssetEntryPersistence.class)
protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence

socialEquityHistoryPersistence

@BeanReference(type=SocialEquityHistoryPersistence.class)
protected SocialEquityHistoryPersistence socialEquityHistoryPersistence

socialEquityLogPersistence

@BeanReference(type=SocialEquityLogPersistence.class)
protected SocialEquityLogPersistence socialEquityLogPersistence

socialEquitySettingPersistence

@BeanReference(type=SocialEquitySettingPersistence.class)
protected SocialEquitySettingPersistence socialEquitySettingPersistence

socialEquityUserPersistence

@BeanReference(type=SocialEquityUserPersistence.class)
protected SocialEquityUserPersistence socialEquityUserPersistence

socialRelationPersistence

@BeanReference(type=SocialRelationPersistence.class)
protected SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=SocialRequestPersistence.class)
protected SocialRequestPersistence socialRequestPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

SocialRequestPersistenceImpl

public SocialRequestPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialRequest socialRequest)
Specified by:
cacheResult in interface SocialRequestPersistence

cacheResult

public void cacheResult(List<SocialRequest> socialRequests)
Specified by:
cacheResult in interface SocialRequestPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

Specified by:
clearCache in interface BasePersistence<SocialRequest>
Overrides:
clearCache in class BasePersistenceImpl<SocialRequest>

clearCache

public void clearCache(SocialRequest socialRequest)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialRequest>
Overrides:
clearCache in class BasePersistenceImpl<SocialRequest>
Parameters:
socialRequest - the instance of this model to clear the cache for

create

public SocialRequest create(long requestId)
Specified by:
create in interface SocialRequestPersistence

remove

public SocialRequest remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialRequest>
Overrides:
remove in class BasePersistenceImpl<SocialRequest>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public SocialRequest remove(long requestId)
                     throws NoSuchRequestException,
                            SystemException
Specified by:
remove in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

removeImpl

protected SocialRequest removeImpl(SocialRequest socialRequest)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialRequest>
Parameters:
socialRequest - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialRequest updateImpl(SocialRequest socialRequest,
                                boolean merge)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialRequestPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialRequest>
Parameters:
socialRequest - the model instance to update
merge - 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.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialRequest toUnwrappedModel(SocialRequest socialRequest)

findByPrimaryKey

public SocialRequest findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialRequest>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialRequest>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public SocialRequest findByPrimaryKey(long requestId)
                               throws NoSuchRequestException,
                                      SystemException
Specified by:
findByPrimaryKey in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

fetchByPrimaryKey

public SocialRequest fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialRequest>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialRequest>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public SocialRequest fetchByPrimaryKey(long requestId)
                                throws SystemException
Specified by:
fetchByPrimaryKey in interface SocialRequestPersistence
Throws:
SystemException

findByUuid

public List<SocialRequest> findByUuid(String uuid)
                               throws SystemException
Specified by:
findByUuid in interface SocialRequestPersistence
Throws:
SystemException

findByUuid

public List<SocialRequest> findByUuid(String uuid,
                                      int start,
                                      int end)
                               throws SystemException
Specified by:
findByUuid in interface SocialRequestPersistence
Throws:
SystemException

findByUuid

public List<SocialRequest> findByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Specified by:
findByUuid in interface SocialRequestPersistence
Throws:
SystemException

findByUuid_First

public SocialRequest findByUuid_First(String uuid,
                                      OrderByComparator orderByComparator)
                               throws NoSuchRequestException,
                                      SystemException
Specified by:
findByUuid_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByUuid_Last

public SocialRequest findByUuid_Last(String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchRequestException,
                                     SystemException
Specified by:
findByUuid_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByUuid_PrevAndNext

public SocialRequest[] findByUuid_PrevAndNext(long requestId,
                                              String uuid,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchRequestException,
                                              SystemException
Specified by:
findByUuid_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByUuid_PrevAndNext

protected SocialRequest getByUuid_PrevAndNext(Session session,
                                              SocialRequest socialRequest,
                                              String uuid,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

findByUUID_G

public SocialRequest findByUUID_G(String uuid,
                                  long groupId)
                           throws NoSuchRequestException,
                                  SystemException
Specified by:
findByUUID_G in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

fetchByUUID_G

public SocialRequest fetchByUUID_G(String uuid,
                                   long groupId)
                            throws SystemException
Specified by:
fetchByUUID_G in interface SocialRequestPersistence
Throws:
SystemException

fetchByUUID_G

public SocialRequest fetchByUUID_G(String uuid,
                                   long groupId,
                                   boolean retrieveFromCache)
                            throws SystemException
Specified by:
fetchByUUID_G in interface SocialRequestPersistence
Throws:
SystemException

findByCompanyId

public List<SocialRequest> findByCompanyId(long companyId)
                                    throws SystemException
Specified by:
findByCompanyId in interface SocialRequestPersistence
Throws:
SystemException

findByCompanyId

public List<SocialRequest> findByCompanyId(long companyId,
                                           int start,
                                           int end)
                                    throws SystemException
Specified by:
findByCompanyId in interface SocialRequestPersistence
Throws:
SystemException

findByCompanyId

public List<SocialRequest> findByCompanyId(long companyId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Specified by:
findByCompanyId in interface SocialRequestPersistence
Throws:
SystemException

findByCompanyId_First

public SocialRequest findByCompanyId_First(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchRequestException,
                                           SystemException
Specified by:
findByCompanyId_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByCompanyId_Last

public SocialRequest findByCompanyId_Last(long companyId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchRequestException,
                                          SystemException
Specified by:
findByCompanyId_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByCompanyId_PrevAndNext

public SocialRequest[] findByCompanyId_PrevAndNext(long requestId,
                                                   long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchRequestException,
                                                   SystemException
Specified by:
findByCompanyId_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByCompanyId_PrevAndNext

protected SocialRequest getByCompanyId_PrevAndNext(Session session,
                                                   SocialRequest socialRequest,
                                                   long companyId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

findByUserId

public List<SocialRequest> findByUserId(long userId)
                                 throws SystemException
Specified by:
findByUserId in interface SocialRequestPersistence
Throws:
SystemException

findByUserId

public List<SocialRequest> findByUserId(long userId,
                                        int start,
                                        int end)
                                 throws SystemException
Specified by:
findByUserId in interface SocialRequestPersistence
Throws:
SystemException

findByUserId

public List<SocialRequest> findByUserId(long userId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Specified by:
findByUserId in interface SocialRequestPersistence
Throws:
SystemException

findByUserId_First

public SocialRequest findByUserId_First(long userId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchRequestException,
                                        SystemException
Specified by:
findByUserId_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByUserId_Last

public SocialRequest findByUserId_Last(long userId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchRequestException,
                                       SystemException
Specified by:
findByUserId_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByUserId_PrevAndNext

public SocialRequest[] findByUserId_PrevAndNext(long requestId,
                                                long userId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchRequestException,
                                                SystemException
Specified by:
findByUserId_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByUserId_PrevAndNext

protected SocialRequest getByUserId_PrevAndNext(Session session,
                                                SocialRequest socialRequest,
                                                long userId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findByReceiverUserId

public List<SocialRequest> findByReceiverUserId(long receiverUserId)
                                         throws SystemException
Specified by:
findByReceiverUserId in interface SocialRequestPersistence
Throws:
SystemException

findByReceiverUserId

public List<SocialRequest> findByReceiverUserId(long receiverUserId,
                                                int start,
                                                int end)
                                         throws SystemException
Specified by:
findByReceiverUserId in interface SocialRequestPersistence
Throws:
SystemException

findByReceiverUserId

public List<SocialRequest> findByReceiverUserId(long receiverUserId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Specified by:
findByReceiverUserId in interface SocialRequestPersistence
Throws:
SystemException

findByReceiverUserId_First

public SocialRequest findByReceiverUserId_First(long receiverUserId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchRequestException,
                                                SystemException
Specified by:
findByReceiverUserId_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByReceiverUserId_Last

public SocialRequest findByReceiverUserId_Last(long receiverUserId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchRequestException,
                                               SystemException
Specified by:
findByReceiverUserId_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByReceiverUserId_PrevAndNext

public SocialRequest[] findByReceiverUserId_PrevAndNext(long requestId,
                                                        long receiverUserId,
                                                        OrderByComparator orderByComparator)
                                                 throws NoSuchRequestException,
                                                        SystemException
Specified by:
findByReceiverUserId_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByReceiverUserId_PrevAndNext

protected SocialRequest getByReceiverUserId_PrevAndNext(Session session,
                                                        SocialRequest socialRequest,
                                                        long receiverUserId,
                                                        OrderByComparator orderByComparator,
                                                        boolean previous)

findByU_S

public List<SocialRequest> findByU_S(long userId,
                                     int status)
                              throws SystemException
Specified by:
findByU_S in interface SocialRequestPersistence
Throws:
SystemException

findByU_S

public List<SocialRequest> findByU_S(long userId,
                                     int status,
                                     int start,
                                     int end)
                              throws SystemException
Specified by:
findByU_S in interface SocialRequestPersistence
Throws:
SystemException

findByU_S

public List<SocialRequest> findByU_S(long userId,
                                     int status,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Specified by:
findByU_S in interface SocialRequestPersistence
Throws:
SystemException

findByU_S_First

public SocialRequest findByU_S_First(long userId,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws NoSuchRequestException,
                                     SystemException
Specified by:
findByU_S_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByU_S_Last

public SocialRequest findByU_S_Last(long userId,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws NoSuchRequestException,
                                    SystemException
Specified by:
findByU_S_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByU_S_PrevAndNext

public SocialRequest[] findByU_S_PrevAndNext(long requestId,
                                             long userId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchRequestException,
                                             SystemException
Specified by:
findByU_S_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByU_S_PrevAndNext

protected SocialRequest getByU_S_PrevAndNext(Session session,
                                             SocialRequest socialRequest,
                                             long userId,
                                             int status,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByR_S

public List<SocialRequest> findByR_S(long receiverUserId,
                                     int status)
                              throws SystemException
Specified by:
findByR_S in interface SocialRequestPersistence
Throws:
SystemException

findByR_S

public List<SocialRequest> findByR_S(long receiverUserId,
                                     int status,
                                     int start,
                                     int end)
                              throws SystemException
Specified by:
findByR_S in interface SocialRequestPersistence
Throws:
SystemException

findByR_S

public List<SocialRequest> findByR_S(long receiverUserId,
                                     int status,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Specified by:
findByR_S in interface SocialRequestPersistence
Throws:
SystemException

findByR_S_First

public SocialRequest findByR_S_First(long receiverUserId,
                                     int status,
                                     OrderByComparator orderByComparator)
                              throws NoSuchRequestException,
                                     SystemException
Specified by:
findByR_S_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByR_S_Last

public SocialRequest findByR_S_Last(long receiverUserId,
                                    int status,
                                    OrderByComparator orderByComparator)
                             throws NoSuchRequestException,
                                    SystemException
Specified by:
findByR_S_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByR_S_PrevAndNext

public SocialRequest[] findByR_S_PrevAndNext(long requestId,
                                             long receiverUserId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchRequestException,
                                             SystemException
Specified by:
findByR_S_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByR_S_PrevAndNext

protected SocialRequest getByR_S_PrevAndNext(Session session,
                                             SocialRequest socialRequest,
                                             long receiverUserId,
                                             int status,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByU_C_C_T_R

public SocialRequest findByU_C_C_T_R(long userId,
                                     long classNameId,
                                     long classPK,
                                     int type,
                                     long receiverUserId)
                              throws NoSuchRequestException,
                                     SystemException
Specified by:
findByU_C_C_T_R in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

fetchByU_C_C_T_R

public SocialRequest fetchByU_C_C_T_R(long userId,
                                      long classNameId,
                                      long classPK,
                                      int type,
                                      long receiverUserId)
                               throws SystemException
Specified by:
fetchByU_C_C_T_R in interface SocialRequestPersistence
Throws:
SystemException

fetchByU_C_C_T_R

public SocialRequest fetchByU_C_C_T_R(long userId,
                                      long classNameId,
                                      long classPK,
                                      int type,
                                      long receiverUserId,
                                      boolean retrieveFromCache)
                               throws SystemException
Specified by:
fetchByU_C_C_T_R in interface SocialRequestPersistence
Throws:
SystemException

findByU_C_C_T_S

public List<SocialRequest> findByU_C_C_T_S(long userId,
                                           long classNameId,
                                           long classPK,
                                           int type,
                                           int status)
                                    throws SystemException
Specified by:
findByU_C_C_T_S in interface SocialRequestPersistence
Throws:
SystemException

findByU_C_C_T_S

public List<SocialRequest> findByU_C_C_T_S(long userId,
                                           long classNameId,
                                           long classPK,
                                           int type,
                                           int status,
                                           int start,
                                           int end)
                                    throws SystemException
Specified by:
findByU_C_C_T_S in interface SocialRequestPersistence
Throws:
SystemException

findByU_C_C_T_S

public 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
Specified by:
findByU_C_C_T_S in interface SocialRequestPersistence
Throws:
SystemException

findByU_C_C_T_S_First

public SocialRequest findByU_C_C_T_S_First(long userId,
                                           long classNameId,
                                           long classPK,
                                           int type,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchRequestException,
                                           SystemException
Specified by:
findByU_C_C_T_S_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByU_C_C_T_S_Last

public SocialRequest findByU_C_C_T_S_Last(long userId,
                                          long classNameId,
                                          long classPK,
                                          int type,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchRequestException,
                                          SystemException
Specified by:
findByU_C_C_T_S_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByU_C_C_T_S_PrevAndNext

public SocialRequest[] findByU_C_C_T_S_PrevAndNext(long requestId,
                                                   long userId,
                                                   long classNameId,
                                                   long classPK,
                                                   int type,
                                                   int status,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchRequestException,
                                                   SystemException
Specified by:
findByU_C_C_T_S_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByU_C_C_T_S_PrevAndNext

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)

findByC_C_T_R_S

public List<SocialRequest> findByC_C_T_R_S(long classNameId,
                                           long classPK,
                                           int type,
                                           long receiverUserId,
                                           int status)
                                    throws SystemException
Specified by:
findByC_C_T_R_S in interface SocialRequestPersistence
Throws:
SystemException

findByC_C_T_R_S

public List<SocialRequest> findByC_C_T_R_S(long classNameId,
                                           long classPK,
                                           int type,
                                           long receiverUserId,
                                           int status,
                                           int start,
                                           int end)
                                    throws SystemException
Specified by:
findByC_C_T_R_S in interface SocialRequestPersistence
Throws:
SystemException

findByC_C_T_R_S

public 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
Specified by:
findByC_C_T_R_S in interface SocialRequestPersistence
Throws:
SystemException

findByC_C_T_R_S_First

public SocialRequest findByC_C_T_R_S_First(long classNameId,
                                           long classPK,
                                           int type,
                                           long receiverUserId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchRequestException,
                                           SystemException
Specified by:
findByC_C_T_R_S_First in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByC_C_T_R_S_Last

public SocialRequest findByC_C_T_R_S_Last(long classNameId,
                                          long classPK,
                                          int type,
                                          long receiverUserId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchRequestException,
                                          SystemException
Specified by:
findByC_C_T_R_S_Last in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

findByC_C_T_R_S_PrevAndNext

public SocialRequest[] findByC_C_T_R_S_PrevAndNext(long requestId,
                                                   long classNameId,
                                                   long classPK,
                                                   int type,
                                                   long receiverUserId,
                                                   int status,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchRequestException,
                                                   SystemException
Specified by:
findByC_C_T_R_S_PrevAndNext in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

getByC_C_T_R_S_PrevAndNext

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)

findAll

public List<SocialRequest> findAll()
                            throws SystemException
Specified by:
findAll in interface SocialRequestPersistence
Throws:
SystemException

findAll

public List<SocialRequest> findAll(int start,
                                   int end)
                            throws SystemException
Specified by:
findAll in interface SocialRequestPersistence
Throws:
SystemException

findAll

public List<SocialRequest> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Specified by:
findAll in interface SocialRequestPersistence
Throws:
SystemException

removeByUuid

public void removeByUuid(String uuid)
                  throws SystemException
Specified by:
removeByUuid in interface SocialRequestPersistence
Throws:
SystemException

removeByUUID_G

public void removeByUUID_G(String uuid,
                           long groupId)
                    throws NoSuchRequestException,
                           SystemException
Specified by:
removeByUUID_G in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Specified by:
removeByCompanyId in interface SocialRequestPersistence
Throws:
SystemException

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Specified by:
removeByUserId in interface SocialRequestPersistence
Throws:
SystemException

removeByReceiverUserId

public void removeByReceiverUserId(long receiverUserId)
                            throws SystemException
Specified by:
removeByReceiverUserId in interface SocialRequestPersistence
Throws:
SystemException

removeByU_S

public void removeByU_S(long userId,
                        int status)
                 throws SystemException
Specified by:
removeByU_S in interface SocialRequestPersistence
Throws:
SystemException

removeByR_S

public void removeByR_S(long receiverUserId,
                        int status)
                 throws SystemException
Specified by:
removeByR_S in interface SocialRequestPersistence
Throws:
SystemException

removeByU_C_C_T_R

public void removeByU_C_C_T_R(long userId,
                              long classNameId,
                              long classPK,
                              int type,
                              long receiverUserId)
                       throws NoSuchRequestException,
                              SystemException
Specified by:
removeByU_C_C_T_R in interface SocialRequestPersistence
Throws:
NoSuchRequestException
SystemException

removeByU_C_C_T_S

public void removeByU_C_C_T_S(long userId,
                              long classNameId,
                              long classPK,
                              int type,
                              int status)
                       throws SystemException
Specified by:
removeByU_C_C_T_S in interface SocialRequestPersistence
Throws:
SystemException

removeByC_C_T_R_S

public void removeByC_C_T_R_S(long classNameId,
                              long classPK,
                              int type,
                              long receiverUserId,
                              int status)
                       throws SystemException
Specified by:
removeByC_C_T_R_S in interface SocialRequestPersistence
Throws:
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface SocialRequestPersistence
Throws:
SystemException

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Specified by:
countByUuid in interface SocialRequestPersistence
Throws:
SystemException

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Specified by:
countByUUID_G in interface SocialRequestPersistence
Throws:
SystemException

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Specified by:
countByCompanyId in interface SocialRequestPersistence
Throws:
SystemException

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Specified by:
countByUserId in interface SocialRequestPersistence
Throws:
SystemException

countByReceiverUserId

public int countByReceiverUserId(long receiverUserId)
                          throws SystemException
Specified by:
countByReceiverUserId in interface SocialRequestPersistence
Throws:
SystemException

countByU_S

public int countByU_S(long userId,
                      int status)
               throws SystemException
Specified by:
countByU_S in interface SocialRequestPersistence
Throws:
SystemException

countByR_S

public int countByR_S(long receiverUserId,
                      int status)
               throws SystemException
Specified by:
countByR_S in interface SocialRequestPersistence
Throws:
SystemException

countByU_C_C_T_R

public int countByU_C_C_T_R(long userId,
                            long classNameId,
                            long classPK,
                            int type,
                            long receiverUserId)
                     throws SystemException
Specified by:
countByU_C_C_T_R in interface SocialRequestPersistence
Throws:
SystemException

countByU_C_C_T_S

public int countByU_C_C_T_S(long userId,
                            long classNameId,
                            long classPK,
                            int type,
                            int status)
                     throws SystemException
Specified by:
countByU_C_C_T_S in interface SocialRequestPersistence
Throws:
SystemException

countByC_C_T_R_S

public int countByC_C_T_R_S(long classNameId,
                            long classPK,
                            int type,
                            long receiverUserId,
                            int status)
                     throws SystemException
Specified by:
countByC_C_T_R_S in interface SocialRequestPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface SocialRequestPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3