Liferay 6.0.3

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

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

public class SocialRelationPersistenceImpl
extends BasePersistenceImpl<SocialRelation>
implements SocialRelationPersistence

See Also:
SocialRelationPersistence, SocialRelationUtil
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_T
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_TYPE
           
static FinderPath FINDER_PATH_COUNT_BY_U1_T
           
static FinderPath FINDER_PATH_COUNT_BY_U1_U2_T
           
static FinderPath FINDER_PATH_COUNT_BY_U2_T
           
static FinderPath FINDER_PATH_COUNT_BY_USERID1
           
static FinderPath FINDER_PATH_COUNT_BY_USERID2
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_FETCH_BY_U1_U2_T
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_C_T
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_FIND_BY_U1_T
           
static FinderPath FINDER_PATH_FIND_BY_U2_T
           
static FinderPath FINDER_PATH_FIND_BY_USERID1
           
static FinderPath FINDER_PATH_FIND_BY_USERID2
           
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
SocialRelationPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void cacheResult(List<SocialRelation> socialRelations)
           
 void cacheResult(SocialRelation socialRelation)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(SocialRelation socialRelation)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByC_T(long companyId, int type)
           
 int countByCompanyId(long companyId)
           
 int countByType(int type)
           
 int countByU1_T(long userId1, int type)
           
 int countByU1_U2_T(long userId1, long userId2, int type)
           
 int countByU2_T(long userId2, int type)
           
 int countByUserId1(long userId1)
           
 int countByUserId2(long userId2)
           
 int countByUuid(String uuid)
           
 SocialRelation create(long relationId)
           
 SocialRelation fetchByPrimaryKey(long relationId)
           
 SocialRelation fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type)
           
 SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean retrieveFromCache)
           
 List<SocialRelation> findAll()
           
 List<SocialRelation> findAll(int start, int end)
           
 List<SocialRelation> findAll(int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByC_T_First(long companyId, int type, OrderByComparator orderByComparator)
           
 SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator orderByComparator)
           
 SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByC_T(long companyId, int type)
           
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end)
           
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
           
 SocialRelation findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
           
 SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByCompanyId(long companyId)
           
 List<SocialRelation> findByCompanyId(long companyId, int start, int end)
           
 List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByPrimaryKey(long relationId)
           
 SocialRelation findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 SocialRelation findByType_First(int type, OrderByComparator orderByComparator)
           
 SocialRelation findByType_Last(int type, OrderByComparator orderByComparator)
           
 SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByType(int type)
           
 List<SocialRelation> findByType(int type, int start, int end)
           
 List<SocialRelation> findByType(int type, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator orderByComparator)
           
 SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator orderByComparator)
           
 SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByU1_T(long userId1, int type)
           
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end)
           
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByU1_U2_T(long userId1, long userId2, int type)
           
 SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator orderByComparator)
           
 SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator orderByComparator)
           
 SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByU2_T(long userId2, int type)
           
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end)
           
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByUserId1_First(long userId1, OrderByComparator orderByComparator)
           
 SocialRelation findByUserId1_Last(long userId1, OrderByComparator orderByComparator)
           
 SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByUserId1(long userId1)
           
 List<SocialRelation> findByUserId1(long userId1, int start, int end)
           
 List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByUserId2_First(long userId2, OrderByComparator orderByComparator)
           
 SocialRelation findByUserId2_Last(long userId2, OrderByComparator orderByComparator)
           
 SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByUserId2(long userId2)
           
 List<SocialRelation> findByUserId2(long userId2, int start, int end)
           
 List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator orderByComparator)
           
 SocialRelation findByUuid_First(String uuid, OrderByComparator orderByComparator)
           
 SocialRelation findByUuid_Last(String uuid, OrderByComparator orderByComparator)
           
 SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator orderByComparator)
           
 List<SocialRelation> findByUuid(String uuid)
           
 List<SocialRelation> findByUuid(String uuid, int start, int end)
           
 List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
           
protected  SocialRelation getByC_T_PrevAndNext(Session session, SocialRelation socialRelation, long companyId, int type, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByCompanyId_PrevAndNext(Session session, SocialRelation socialRelation, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByType_PrevAndNext(Session session, SocialRelation socialRelation, int type, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByU1_T_PrevAndNext(Session session, SocialRelation socialRelation, long userId1, int type, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByU2_T_PrevAndNext(Session session, SocialRelation socialRelation, long userId2, int type, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByUserId1_PrevAndNext(Session session, SocialRelation socialRelation, long userId1, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByUserId2_PrevAndNext(Session session, SocialRelation socialRelation, long userId2, OrderByComparator orderByComparator, boolean previous)
           
protected  SocialRelation getByUuid_PrevAndNext(Session session, SocialRelation socialRelation, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 SocialRelation remove(long relationId)
           
 SocialRelation 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_T(long companyId, int type)
           
 void removeByCompanyId(long companyId)
           
 void removeByType(int type)
           
 void removeByU1_T(long userId1, int type)
           
 void removeByU1_U2_T(long userId1, long userId2, int type)
           
 void removeByU2_T(long userId2, int type)
           
 void removeByUserId1(long userId1)
           
 void removeByUserId2(long userId2)
           
 void removeByUuid(String uuid)
           
protected  SocialRelation removeImpl(SocialRelation socialRelation)
          Removes the model instance from the database.
protected  SocialRelation toUnwrappedModel(SocialRelation socialRelation)
           
 SocialRelation updateImpl(SocialRelation socialRelation, 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_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_USERID1

public static final FinderPath FINDER_PATH_FIND_BY_USERID1

FINDER_PATH_COUNT_BY_USERID1

public static final FinderPath FINDER_PATH_COUNT_BY_USERID1

FINDER_PATH_FIND_BY_USERID2

public static final FinderPath FINDER_PATH_FIND_BY_USERID2

FINDER_PATH_COUNT_BY_USERID2

public static final FinderPath FINDER_PATH_COUNT_BY_USERID2

FINDER_PATH_FIND_BY_TYPE

public static final FinderPath FINDER_PATH_FIND_BY_TYPE

FINDER_PATH_COUNT_BY_TYPE

public static final FinderPath FINDER_PATH_COUNT_BY_TYPE

FINDER_PATH_FIND_BY_C_T

public static final FinderPath FINDER_PATH_FIND_BY_C_T

FINDER_PATH_COUNT_BY_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_C_T

FINDER_PATH_FIND_BY_U1_T

public static final FinderPath FINDER_PATH_FIND_BY_U1_T

FINDER_PATH_COUNT_BY_U1_T

public static final FinderPath FINDER_PATH_COUNT_BY_U1_T

FINDER_PATH_FIND_BY_U2_T

public static final FinderPath FINDER_PATH_FIND_BY_U2_T

FINDER_PATH_COUNT_BY_U2_T

public static final FinderPath FINDER_PATH_COUNT_BY_U2_T

FINDER_PATH_FETCH_BY_U1_U2_T

public static final FinderPath FINDER_PATH_FETCH_BY_U1_U2_T

FINDER_PATH_COUNT_BY_U1_U2_T

public static final FinderPath FINDER_PATH_COUNT_BY_U1_U2_T

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

SocialRelationPersistenceImpl

public SocialRelationPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialRelation socialRelation)
Specified by:
cacheResult in interface SocialRelationPersistence

cacheResult

public void cacheResult(List<SocialRelation> socialRelations)
Specified by:
cacheResult in interface SocialRelationPersistence

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<SocialRelation>
Overrides:
clearCache in class BasePersistenceImpl<SocialRelation>

clearCache

public void clearCache(SocialRelation socialRelation)
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<SocialRelation>
Overrides:
clearCache in class BasePersistenceImpl<SocialRelation>
Parameters:
socialRelation - the instance of this model to clear the cache for

create

public SocialRelation create(long relationId)
Specified by:
create in interface SocialRelationPersistence

remove

public SocialRelation 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<SocialRelation>
Overrides:
remove in class BasePersistenceImpl<SocialRelation>
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 SocialRelation remove(long relationId)
                      throws NoSuchRelationException,
                             SystemException
Specified by:
remove in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

removeImpl

protected SocialRelation removeImpl(SocialRelation socialRelation)
                             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<SocialRelation>
Parameters:
socialRelation - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialRelation updateImpl(SocialRelation socialRelation,
                                 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 SocialRelationPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialRelation>
Parameters:
socialRelation - 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 SocialRelation toUnwrappedModel(SocialRelation socialRelation)

findByPrimaryKey

public SocialRelation 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<SocialRelation>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialRelation>
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 SocialRelation findByPrimaryKey(long relationId)
                                throws NoSuchRelationException,
                                       SystemException
Specified by:
findByPrimaryKey in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

fetchByPrimaryKey

public SocialRelation 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<SocialRelation>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialRelation>
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 SocialRelation fetchByPrimaryKey(long relationId)
                                 throws SystemException
Specified by:
fetchByPrimaryKey in interface SocialRelationPersistence
Throws:
SystemException

findByUuid

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

findByUuid

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

findByUuid

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

findByUuid_First

public SocialRelation findByUuid_First(String uuid,
                                       OrderByComparator orderByComparator)
                                throws NoSuchRelationException,
                                       SystemException
Specified by:
findByUuid_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByUuid_Last

public SocialRelation findByUuid_Last(String uuid,
                                      OrderByComparator orderByComparator)
                               throws NoSuchRelationException,
                                      SystemException
Specified by:
findByUuid_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByUuid_PrevAndNext

public SocialRelation[] findByUuid_PrevAndNext(long relationId,
                                               String uuid,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchRelationException,
                                               SystemException
Specified by:
findByUuid_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByUuid_PrevAndNext

protected SocialRelation getByUuid_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               String uuid,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByCompanyId

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

findByCompanyId

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

findByCompanyId

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

findByCompanyId_First

public SocialRelation findByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchRelationException,
                                            SystemException
Specified by:
findByCompanyId_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByCompanyId_Last

public SocialRelation findByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchRelationException,
                                           SystemException
Specified by:
findByCompanyId_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByCompanyId_PrevAndNext

public SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
                                                    long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchRelationException,
                                                    SystemException
Specified by:
findByCompanyId_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByCompanyId_PrevAndNext

protected SocialRelation getByCompanyId_PrevAndNext(Session session,
                                                    SocialRelation socialRelation,
                                                    long companyId,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

findByUserId1

public List<SocialRelation> findByUserId1(long userId1)
                                   throws SystemException
Specified by:
findByUserId1 in interface SocialRelationPersistence
Throws:
SystemException

findByUserId1

public List<SocialRelation> findByUserId1(long userId1,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
findByUserId1 in interface SocialRelationPersistence
Throws:
SystemException

findByUserId1

public List<SocialRelation> findByUserId1(long userId1,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Specified by:
findByUserId1 in interface SocialRelationPersistence
Throws:
SystemException

findByUserId1_First

public SocialRelation findByUserId1_First(long userId1,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchRelationException,
                                          SystemException
Specified by:
findByUserId1_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByUserId1_Last

public SocialRelation findByUserId1_Last(long userId1,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchRelationException,
                                         SystemException
Specified by:
findByUserId1_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByUserId1_PrevAndNext

public SocialRelation[] findByUserId1_PrevAndNext(long relationId,
                                                  long userId1,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchRelationException,
                                                  SystemException
Specified by:
findByUserId1_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByUserId1_PrevAndNext

protected SocialRelation getByUserId1_PrevAndNext(Session session,
                                                  SocialRelation socialRelation,
                                                  long userId1,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

findByUserId2

public List<SocialRelation> findByUserId2(long userId2)
                                   throws SystemException
Specified by:
findByUserId2 in interface SocialRelationPersistence
Throws:
SystemException

findByUserId2

public List<SocialRelation> findByUserId2(long userId2,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
findByUserId2 in interface SocialRelationPersistence
Throws:
SystemException

findByUserId2

public List<SocialRelation> findByUserId2(long userId2,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Specified by:
findByUserId2 in interface SocialRelationPersistence
Throws:
SystemException

findByUserId2_First

public SocialRelation findByUserId2_First(long userId2,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchRelationException,
                                          SystemException
Specified by:
findByUserId2_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByUserId2_Last

public SocialRelation findByUserId2_Last(long userId2,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchRelationException,
                                         SystemException
Specified by:
findByUserId2_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByUserId2_PrevAndNext

public SocialRelation[] findByUserId2_PrevAndNext(long relationId,
                                                  long userId2,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchRelationException,
                                                  SystemException
Specified by:
findByUserId2_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByUserId2_PrevAndNext

protected SocialRelation getByUserId2_PrevAndNext(Session session,
                                                  SocialRelation socialRelation,
                                                  long userId2,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

findByType

public List<SocialRelation> findByType(int type)
                                throws SystemException
Specified by:
findByType in interface SocialRelationPersistence
Throws:
SystemException

findByType

public List<SocialRelation> findByType(int type,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByType in interface SocialRelationPersistence
Throws:
SystemException

findByType

public List<SocialRelation> findByType(int type,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByType in interface SocialRelationPersistence
Throws:
SystemException

findByType_First

public SocialRelation findByType_First(int type,
                                       OrderByComparator orderByComparator)
                                throws NoSuchRelationException,
                                       SystemException
Specified by:
findByType_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByType_Last

public SocialRelation findByType_Last(int type,
                                      OrderByComparator orderByComparator)
                               throws NoSuchRelationException,
                                      SystemException
Specified by:
findByType_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByType_PrevAndNext

public SocialRelation[] findByType_PrevAndNext(long relationId,
                                               int type,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchRelationException,
                                               SystemException
Specified by:
findByType_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByType_PrevAndNext

protected SocialRelation getByType_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               int type,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByC_T

public List<SocialRelation> findByC_T(long companyId,
                                      int type)
                               throws SystemException
Specified by:
findByC_T in interface SocialRelationPersistence
Throws:
SystemException

findByC_T

public List<SocialRelation> findByC_T(long companyId,
                                      int type,
                                      int start,
                                      int end)
                               throws SystemException
Specified by:
findByC_T in interface SocialRelationPersistence
Throws:
SystemException

findByC_T

public List<SocialRelation> findByC_T(long companyId,
                                      int type,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Specified by:
findByC_T in interface SocialRelationPersistence
Throws:
SystemException

findByC_T_First

public SocialRelation findByC_T_First(long companyId,
                                      int type,
                                      OrderByComparator orderByComparator)
                               throws NoSuchRelationException,
                                      SystemException
Specified by:
findByC_T_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByC_T_Last

public SocialRelation findByC_T_Last(long companyId,
                                     int type,
                                     OrderByComparator orderByComparator)
                              throws NoSuchRelationException,
                                     SystemException
Specified by:
findByC_T_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByC_T_PrevAndNext

public SocialRelation[] findByC_T_PrevAndNext(long relationId,
                                              long companyId,
                                              int type,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchRelationException,
                                              SystemException
Specified by:
findByC_T_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByC_T_PrevAndNext

protected SocialRelation getByC_T_PrevAndNext(Session session,
                                              SocialRelation socialRelation,
                                              long companyId,
                                              int type,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

findByU1_T

public List<SocialRelation> findByU1_T(long userId1,
                                       int type)
                                throws SystemException
Specified by:
findByU1_T in interface SocialRelationPersistence
Throws:
SystemException

findByU1_T

public List<SocialRelation> findByU1_T(long userId1,
                                       int type,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByU1_T in interface SocialRelationPersistence
Throws:
SystemException

findByU1_T

public List<SocialRelation> findByU1_T(long userId1,
                                       int type,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByU1_T in interface SocialRelationPersistence
Throws:
SystemException

findByU1_T_First

public SocialRelation findByU1_T_First(long userId1,
                                       int type,
                                       OrderByComparator orderByComparator)
                                throws NoSuchRelationException,
                                       SystemException
Specified by:
findByU1_T_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByU1_T_Last

public SocialRelation findByU1_T_Last(long userId1,
                                      int type,
                                      OrderByComparator orderByComparator)
                               throws NoSuchRelationException,
                                      SystemException
Specified by:
findByU1_T_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByU1_T_PrevAndNext

public SocialRelation[] findByU1_T_PrevAndNext(long relationId,
                                               long userId1,
                                               int type,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchRelationException,
                                               SystemException
Specified by:
findByU1_T_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByU1_T_PrevAndNext

protected SocialRelation getByU1_T_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               long userId1,
                                               int type,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByU2_T

public List<SocialRelation> findByU2_T(long userId2,
                                       int type)
                                throws SystemException
Specified by:
findByU2_T in interface SocialRelationPersistence
Throws:
SystemException

findByU2_T

public List<SocialRelation> findByU2_T(long userId2,
                                       int type,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByU2_T in interface SocialRelationPersistence
Throws:
SystemException

findByU2_T

public List<SocialRelation> findByU2_T(long userId2,
                                       int type,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByU2_T in interface SocialRelationPersistence
Throws:
SystemException

findByU2_T_First

public SocialRelation findByU2_T_First(long userId2,
                                       int type,
                                       OrderByComparator orderByComparator)
                                throws NoSuchRelationException,
                                       SystemException
Specified by:
findByU2_T_First in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByU2_T_Last

public SocialRelation findByU2_T_Last(long userId2,
                                      int type,
                                      OrderByComparator orderByComparator)
                               throws NoSuchRelationException,
                                      SystemException
Specified by:
findByU2_T_Last in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

findByU2_T_PrevAndNext

public SocialRelation[] findByU2_T_PrevAndNext(long relationId,
                                               long userId2,
                                               int type,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchRelationException,
                                               SystemException
Specified by:
findByU2_T_PrevAndNext in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

getByU2_T_PrevAndNext

protected SocialRelation getByU2_T_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               long userId2,
                                               int type,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByU1_U2_T

public SocialRelation findByU1_U2_T(long userId1,
                                    long userId2,
                                    int type)
                             throws NoSuchRelationException,
                                    SystemException
Specified by:
findByU1_U2_T in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

fetchByU1_U2_T

public SocialRelation fetchByU1_U2_T(long userId1,
                                     long userId2,
                                     int type)
                              throws SystemException
Specified by:
fetchByU1_U2_T in interface SocialRelationPersistence
Throws:
SystemException

fetchByU1_U2_T

public SocialRelation fetchByU1_U2_T(long userId1,
                                     long userId2,
                                     int type,
                                     boolean retrieveFromCache)
                              throws SystemException
Specified by:
fetchByU1_U2_T in interface SocialRelationPersistence
Throws:
SystemException

findAll

public List<SocialRelation> findAll()
                             throws SystemException
Specified by:
findAll in interface SocialRelationPersistence
Throws:
SystemException

findAll

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

findAll

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

removeByUuid

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

removeByCompanyId

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

removeByUserId1

public void removeByUserId1(long userId1)
                     throws SystemException
Specified by:
removeByUserId1 in interface SocialRelationPersistence
Throws:
SystemException

removeByUserId2

public void removeByUserId2(long userId2)
                     throws SystemException
Specified by:
removeByUserId2 in interface SocialRelationPersistence
Throws:
SystemException

removeByType

public void removeByType(int type)
                  throws SystemException
Specified by:
removeByType in interface SocialRelationPersistence
Throws:
SystemException

removeByC_T

public void removeByC_T(long companyId,
                        int type)
                 throws SystemException
Specified by:
removeByC_T in interface SocialRelationPersistence
Throws:
SystemException

removeByU1_T

public void removeByU1_T(long userId1,
                         int type)
                  throws SystemException
Specified by:
removeByU1_T in interface SocialRelationPersistence
Throws:
SystemException

removeByU2_T

public void removeByU2_T(long userId2,
                         int type)
                  throws SystemException
Specified by:
removeByU2_T in interface SocialRelationPersistence
Throws:
SystemException

removeByU1_U2_T

public void removeByU1_U2_T(long userId1,
                            long userId2,
                            int type)
                     throws NoSuchRelationException,
                            SystemException
Specified by:
removeByU1_U2_T in interface SocialRelationPersistence
Throws:
NoSuchRelationException
SystemException

removeAll

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

countByUuid

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

countByCompanyId

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

countByUserId1

public int countByUserId1(long userId1)
                   throws SystemException
Specified by:
countByUserId1 in interface SocialRelationPersistence
Throws:
SystemException

countByUserId2

public int countByUserId2(long userId2)
                   throws SystemException
Specified by:
countByUserId2 in interface SocialRelationPersistence
Throws:
SystemException

countByType

public int countByType(int type)
                throws SystemException
Specified by:
countByType in interface SocialRelationPersistence
Throws:
SystemException

countByC_T

public int countByC_T(long companyId,
                      int type)
               throws SystemException
Specified by:
countByC_T in interface SocialRelationPersistence
Throws:
SystemException

countByU1_T

public int countByU1_T(long userId1,
                       int type)
                throws SystemException
Specified by:
countByU1_T in interface SocialRelationPersistence
Throws:
SystemException

countByU2_T

public int countByU2_T(long userId2,
                       int type)
                throws SystemException
Specified by:
countByU2_T in interface SocialRelationPersistence
Throws:
SystemException

countByU1_U2_T

public int countByU1_U2_T(long userId1,
                          long userId2,
                          int type)
                   throws SystemException
Specified by:
countByU1_U2_T in interface SocialRelationPersistence
Throws:
SystemException

countAll

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

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3