|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
com.liferay.portlet.social.service.persistence.SocialRelationPersistenceImpl
public class SocialRelationPersistenceImpl
The persistence implementation for the social relation service.
Caching information and settings can be found in portal.properties
SocialRelationPersistence,
SocialRelationUtil| Field Summary | |
|---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY
|
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
|
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_COMPANYID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_TYPE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U1_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U1_U2
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U1_U2_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_U2_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_USERID1
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_USERID2
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_UUID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_U1_U2_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2
|
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
|
protected com.liferay.portal.service.persistence.ResourcePersistence |
resourcePersistence
|
protected com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence |
socialActivityAchievementPersistence
|
protected com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence |
socialActivityCounterPersistence
|
protected com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence |
socialActivityLimitPersistence
|
protected com.liferay.portlet.social.service.persistence.SocialActivityPersistence |
socialActivityPersistence
|
protected com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence |
socialActivitySettingPersistence
|
protected com.liferay.portlet.social.service.persistence.SocialRelationPersistence |
socialRelationPersistence
|
protected com.liferay.portlet.social.service.persistence.SocialRequestPersistence |
socialRequestPersistence
|
protected com.liferay.portal.service.persistence.UserPersistence |
userPersistence
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
SocialRelationPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the social relation persistence. |
void |
cacheResult(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
Caches the social relations in the entity cache if it is enabled. |
void |
cacheResult(com.liferay.portlet.social.model.SocialRelation socialRelation)
Caches the social relation in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all social relations. |
void |
clearCache(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
|
void |
clearCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
Clears the cache for the social relation. |
protected void |
clearUniqueFindersCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
|
int |
countAll()
Returns the number of social relations. |
int |
countByC_T(long companyId,
int type)
Returns the number of social relations where companyId = ? and type = ?. |
int |
countByCompanyId(long companyId)
Returns the number of social relations where companyId = ?. |
int |
countByType(int type)
Returns the number of social relations where type = ?. |
int |
countByU1_T(long userId1,
int type)
Returns the number of social relations where userId1 = ? and type = ?. |
int |
countByU1_U2_T(long userId1,
long userId2,
int type)
Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?. |
int |
countByU1_U2(long userId1,
long userId2)
Returns the number of social relations where userId1 = ? and userId2 = ?. |
int |
countByU2_T(long userId2,
int type)
Returns the number of social relations where userId2 = ? and type = ?. |
int |
countByUserId1(long userId1)
Returns the number of social relations where userId1 = ?. |
int |
countByUserId2(long userId2)
Returns the number of social relations where userId2 = ?. |
int |
countByUuid(java.lang.String uuid)
Returns the number of social relations where uuid = ?. |
com.liferay.portlet.social.model.SocialRelation |
create(long relationId)
Creates a new social relation with the primary key. |
void |
destroy()
|
com.liferay.portlet.social.model.SocialRelation |
fetchByPrimaryKey(long relationId)
Returns the social relation with the primary key or returns null if it could not be found. |
com.liferay.portlet.social.model.SocialRelation |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the social relation with the primary key or returns null if it could not be found. |
com.liferay.portlet.social.model.SocialRelation |
fetchByU1_U2_T(long userId1,
long userId2,
int type)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found. |
com.liferay.portlet.social.model.SocialRelation |
fetchByU1_U2_T(long userId1,
long userId2,
int type,
boolean retrieveFromCache)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findAll()
Returns all the social relations. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findAll(int start,
int end)
Returns a range of all the social relations. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations. |
com.liferay.portlet.social.model.SocialRelation |
findByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByC_T(long companyId,
int type)
Returns all the social relations where companyId = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the social relations where companyId = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where companyId = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where companyId = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where companyId = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByCompanyId_PrevAndNext(long relationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByCompanyId(long companyId)
Returns all the social relations where companyId = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the social relations where companyId = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where companyId = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByPrimaryKey(long relationId)
Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found. |
com.liferay.portlet.social.model.SocialRelation |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the social relation with the primary key or throws a NoSuchModelException if it could not be found. |
com.liferay.portlet.social.model.SocialRelation |
findByType_First(int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByType_Last(int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where type = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByType_PrevAndNext(long relationId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByType(int type)
Returns all the social relations where type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByType(int type,
int start,
int end)
Returns a range of all the social relations where type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByType(int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU1_T_First(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU1_T_Last(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU1_T(long userId1,
int type)
Returns all the social relations where userId1 = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU1_U2_First(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU1_U2_Last(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU1_U2_T(long userId1,
long userId2,
int type)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2)
Returns all the social relations where userId1 = ? and userId2 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and userId2 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU2_T_First(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByU2_T_Last(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU2_T(long userId2,
int type)
Returns all the social relations where userId2 = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end)
Returns a range of all the social relations where userId2 = ? and type = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId2 = ? and type = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByUserId1_First(long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByUserId1_Last(long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByUserId1_PrevAndNext(long relationId,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUserId1(long userId1)
Returns all the social relations where userId1 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUserId1(long userId1,
int start,
int end)
Returns a range of all the social relations where userId1 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId1 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByUserId2_First(long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByUserId2_Last(long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByUserId2_PrevAndNext(long relationId,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUserId2(long userId2)
Returns all the social relations where userId2 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUserId2(long userId2,
int start,
int end)
Returns a range of all the social relations where userId2 = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId2 = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where uuid = ?. |
com.liferay.portlet.social.model.SocialRelation |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where uuid = ?. |
com.liferay.portlet.social.model.SocialRelation[] |
findByUuid_PrevAndNext(long relationId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUuid(java.lang.String uuid)
Returns all the social relations where uuid = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the social relations where uuid = ?. |
java.util.List<com.liferay.portlet.social.model.SocialRelation> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where uuid = ?. |
protected com.liferay.portlet.social.model.SocialRelation |
getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
protected com.liferay.portlet.social.model.SocialRelation |
getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
|
com.liferay.portlet.social.model.SocialRelation |
remove(long relationId)
Removes the social relation with the primary key from the database. |
com.liferay.portlet.social.model.SocialRelation |
remove(java.io.Serializable primaryKey)
Removes the social relation with the primary key from the database. |
void |
removeAll()
Removes all the social relations from the database. |
void |
removeByC_T(long companyId,
int type)
Removes all the social relations where companyId = ? and type = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the social relations where companyId = ? from the database. |
void |
removeByType(int type)
Removes all the social relations where type = ? from the database. |
void |
removeByU1_T(long userId1,
int type)
Removes all the social relations where userId1 = ? and type = ? from the database. |
void |
removeByU1_U2_T(long userId1,
long userId2,
int type)
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database. |
void |
removeByU1_U2(long userId1,
long userId2)
Removes all the social relations where userId1 = ? and userId2 = ? from the database. |
void |
removeByU2_T(long userId2,
int type)
Removes all the social relations where userId2 = ? and type = ? from the database. |
void |
removeByUserId1(long userId1)
Removes all the social relations where userId1 = ? from the database. |
void |
removeByUserId2(long userId2)
Removes all the social relations where userId2 = ? from the database. |
void |
removeByUuid(java.lang.String uuid)
Removes all the social relations where uuid = ? from the database. |
protected com.liferay.portlet.social.model.SocialRelation |
removeImpl(com.liferay.portlet.social.model.SocialRelation socialRelation)
|
protected com.liferay.portlet.social.model.SocialRelation |
toUnwrappedModel(com.liferay.portlet.social.model.SocialRelation socialRelation)
|
com.liferay.portlet.social.model.SocialRelation |
updateImpl(com.liferay.portlet.social.model.SocialRelation socialRelation,
boolean merge)
|
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID1
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_TYPE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_U2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U2_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_U1_U2_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_U2_T
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRelationPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence
@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRequestPersistence.class) protected com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence
@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class) protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class) protected com.liferay.portal.service.persistence.UserPersistence userPersistence
| Constructor Detail |
|---|
public SocialRelationPersistenceImpl()
| Method Detail |
|---|
public void cacheResult(com.liferay.portlet.social.model.SocialRelation socialRelation)
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencesocialRelation - the social relationpublic void cacheResult(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencesocialRelations - the social relationspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>public void clearCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>public void clearCache(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>protected void clearUniqueFindersCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
public com.liferay.portlet.social.model.SocialRelation create(long relationId)
create in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key for the new social relation
public com.liferay.portlet.social.model.SocialRelation remove(long relationId)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the social relation
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation remove(java.io.Serializable primaryKey)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>primaryKey - the primary key of the social relation
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation removeImpl(com.liferay.portlet.social.model.SocialRelation socialRelation)
throws com.liferay.portal.kernel.exception.SystemException
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>com.liferay.portal.kernel.exception.SystemException
public com.liferay.portlet.social.model.SocialRelation updateImpl(com.liferay.portlet.social.model.SocialRelation socialRelation,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
updateImpl in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>com.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portlet.social.model.SocialRelation toUnwrappedModel(com.liferay.portlet.social.model.SocialRelation socialRelation)
public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchModelException,
com.liferay.portal.kernel.exception.SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>primaryKey - the primary key of the social relation
com.liferay.portal.NoSuchModelException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(long relationId)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
NoSuchRelationException if it could not be found.
findByPrimaryKey in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the social relation
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>primaryKey - the primary key of the social relation
null if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(long relationId)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.
fetchByPrimaryKey in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the social relation
null if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException
findByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuid
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuidstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuidstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUuid_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUuid_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(long relationId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUuid_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByCompanyId_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByCompanyId_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByCompanyId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1)
throws com.liferay.portal.kernel.exception.SystemException
findByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId1_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId1_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(long relationId,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId1_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2)
throws com.liferay.portal.kernel.exception.SystemException
findByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId2_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId2_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(long relationId,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByUserId2_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type)
throws com.liferay.portal.kernel.exception.SystemException
findByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByType_First(int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByType_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByType_Last(int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByType_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(long relationId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByType_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationtype - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId,
int type)
throws com.liferay.portal.kernel.exception.SystemException
findByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId,
int type,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByC_T_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByC_T_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByC_T_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationcompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1,
long userId2)
throws com.liferay.portal.kernel.exception.SystemException
findByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1,
long userId2,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByU1_U2_First(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_U2_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByU1_U2_Last(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_U2_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_U2_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1,
int type)
throws com.liferay.portal.kernel.exception.SystemException
findByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1,
int type,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_T_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_T_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU1_T_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2,
int type)
throws com.liferay.portal.kernel.exception.SystemException
findByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2,
int type,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU2_T_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU2_T_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByU2_T_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
protected com.liferay.portlet.social.model.SocialRelation getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.social.model.SocialRelation socialRelation,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(long userId1,
long userId2,
int type)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
NoSuchRelationException if it could not be found.
findByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(long userId1,
long userId2,
int type)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.
fetchByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
null if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(long userId1,
long userId2,
int type,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.
fetchByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the typeretrieveFromCache - whether to use the finder cache
null if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
throws com.liferay.portal.kernel.exception.SystemException
findAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException
removeByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuid
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
removeByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByUserId1(long userId1)
throws com.liferay.portal.kernel.exception.SystemException
removeByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByUserId2(long userId2)
throws com.liferay.portal.kernel.exception.SystemException
removeByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByType(int type)
throws com.liferay.portal.kernel.exception.SystemException
removeByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByC_T(long companyId,
int type)
throws com.liferay.portal.kernel.exception.SystemException
removeByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByU1_U2(long userId1,
long userId2)
throws com.liferay.portal.kernel.exception.SystemException
removeByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByU1_T(long userId1,
int type)
throws com.liferay.portal.kernel.exception.SystemException
removeByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByU2_T(long userId2,
int type)
throws com.liferay.portal.kernel.exception.SystemException
removeByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public void removeByU1_U2_T(long userId1,
long userId2,
int type)
throws com.liferay.portlet.social.NoSuchRelationException,
com.liferay.portal.kernel.exception.SystemException
removeByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.social.NoSuchRelationException
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
removeAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException
countByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuuid - the uuid
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
countByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company ID
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByUserId1(long userId1)
throws com.liferay.portal.kernel.exception.SystemException
countByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByUserId2(long userId2)
throws com.liferay.portal.kernel.exception.SystemException
countByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByType(int type)
throws com.liferay.portal.kernel.exception.SystemException
countByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencetype - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByC_T(long companyId,
int type)
throws com.liferay.portal.kernel.exception.SystemException
countByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByU1_U2(long userId1,
long userId2)
throws com.liferay.portal.kernel.exception.SystemException
countByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByU1_T(long userId1,
int type)
throws com.liferay.portal.kernel.exception.SystemException
countByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByU2_T(long userId2,
int type)
throws com.liferay.portal.kernel.exception.SystemException
countByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countByU1_U2_T(long userId1,
long userId2,
int type)
throws com.liferay.portal.kernel.exception.SystemException
countByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException
countAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||