public class SocialRelationPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
implements com.liferay.social.kernel.service.persistence.SocialRelationPersistence
Caching information and settings can be found in portal.properties
| Modifier and Type | Field and Description |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY |
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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 and Description |
|---|
SocialRelationPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the social relation persistence.
|
void |
cacheResult(List<com.liferay.social.kernel.model.SocialRelation> socialRelations)
Caches the social relations in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.social.kernel.model.SocialRelation socialRelation)
Caches the social relation in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl) |
void |
clearCache()
Clears the cache for all social relations.
|
void |
clearCache(List<com.liferay.social.kernel.model.SocialRelation> socialRelations) |
void |
clearCache(Set<Serializable> primaryKeys) |
void |
clearCache(com.liferay.social.kernel.model.SocialRelation socialRelation)
Clears the cache for the social relation.
|
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_C(String uuid,
long companyId)
Returns the number of social relations where uuid = ? and companyId = ?.
|
int |
countByUuid(String uuid)
Returns the number of social relations where uuid = ?.
|
com.liferay.social.kernel.model.SocialRelation |
create(long relationId)
Creates a new social relation with the primary key.
|
void |
destroy() |
com.liferay.social.kernel.model.SocialRelation |
fetchByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByPrimaryKey(long relationId)
Returns the social relation with the primary key or returns
null if it could not be found. |
com.liferay.social.kernel.model.SocialRelation |
fetchByPrimaryKey(Serializable primaryKey)
Returns the social relation with the primary key or returns
null if it could not be found. |
Map<Serializable,com.liferay.social.kernel.model.SocialRelation> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
com.liferay.social.kernel.model.SocialRelation |
fetchByType_First(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByType_Last(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByU1_T_First(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByU1_T_Last(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByU1_U2_First(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByU1_U2_Last(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
|
com.liferay.social.kernel.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.social.kernel.model.SocialRelation |
fetchByU1_U2_T(long userId1,
long userId2,
int type,
boolean useFinderCache)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.social.kernel.model.SocialRelation |
fetchByU2_T_First(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByU2_T_Last(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUserId1_First(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUserId1_Last(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUserId2_First(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUserId2_Last(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUuid_C_First(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUuid_C_Last(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUuid_First(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.
|
com.liferay.social.kernel.model.SocialRelation |
fetchByUuid_Last(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findAll()
Returns all the social relations.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findAll(int start,
int end)
Returns a range of all the social relations.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations.
|
com.liferay.social.kernel.model.SocialRelation |
findByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByC_T(long companyId,
int type)
Returns all the social relations where companyId = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the social relations where companyId = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where companyId = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByCompanyId_PrevAndNext(long relationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByCompanyId(long companyId)
Returns all the social relations where companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the social relations where companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where companyId = ?.
|
com.liferay.social.kernel.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.social.kernel.model.SocialRelation |
findByPrimaryKey(Serializable primaryKey)
Returns the social relation with the primary key or throws a
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found. |
com.liferay.social.kernel.model.SocialRelation |
findByType_First(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByType_Last(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByType_PrevAndNext(long relationId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByType(int type)
Returns all the social relations where type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByType(int type,
int start,
int end)
Returns a range of all the social relations where type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByType(int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByType(int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByU1_T_First(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByU1_T_Last(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_T(long userId1,
int type)
Returns all the social relations where userId1 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByU1_U2_First(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByU1_U2_Last(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.
|
com.liferay.social.kernel.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. |
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2)
Returns all the social relations where userId1 = ? and userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByU2_T_First(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByU2_T_Last(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU2_T(long userId2,
int type)
Returns all the social relations where userId2 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end)
Returns a range of all the social relations where userId2 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUserId1_First(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUserId1_Last(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByUserId1_PrevAndNext(long relationId,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId1(long userId1)
Returns all the social relations where userId1 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId1(long userId1,
int start,
int end)
Returns a range of all the social relations where userId1 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId1 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUserId2_First(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUserId2_Last(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByUserId2_PrevAndNext(long relationId,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId2(long userId2)
Returns all the social relations where userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId2(long userId2,
int start,
int end)
Returns a range of all the social relations where userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId2 = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUuid_C_First(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUuid_C_Last(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByUuid_C_PrevAndNext(long relationId,
String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid_C(String uuid,
long companyId)
Returns all the social relations where uuid = ? and companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the social relations where uuid = ? and companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUuid_First(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.
|
com.liferay.social.kernel.model.SocialRelation |
findByUuid_Last(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.
|
com.liferay.social.kernel.model.SocialRelation[] |
findByUuid_PrevAndNext(long relationId,
String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid(String uuid)
Returns all the social relations where uuid = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the social relations where uuid = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid(String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ?.
|
List<com.liferay.social.kernel.model.SocialRelation> |
findByUuid(String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where uuid = ?.
|
Set<String> |
getBadColumnNames() |
protected com.liferay.social.kernel.model.SocialRelation |
getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
protected com.liferay.social.kernel.model.SocialRelation |
getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous) |
Set<String> |
getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
getEntityCache() |
protected com.liferay.portal.kernel.dao.orm.FinderCache |
getFinderCache() |
List<String> |
getMappingTableNames() |
protected String |
getPKDBName() |
protected String |
getSelectSQL() |
Map<String,Integer> |
getTableColumnsMap() |
String |
getTableName() |
List<String[]> |
getUniqueIndexColumnNames() |
com.liferay.social.kernel.model.SocialRelation |
remove(long relationId)
Removes the social relation with the primary key from the database.
|
com.liferay.social.kernel.model.SocialRelation |
remove(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.
|
com.liferay.social.kernel.model.SocialRelation |
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_C(String uuid,
long companyId)
Removes all the social relations where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(String uuid)
Removes all the social relations where uuid = ? from the database.
|
protected com.liferay.social.kernel.model.SocialRelation |
removeImpl(com.liferay.social.kernel.model.SocialRelation socialRelation) |
com.liferay.social.kernel.model.SocialRelation |
updateImpl(com.liferay.social.kernel.model.SocialRelation socialRelation) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid)
findByUuid in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidpublic List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUuid in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUuid in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUuid in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByUuid_First(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUuid_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUuid_First(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUuid_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByUuid_Last(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUuid_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUuid_Last(String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUuid_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByUuid_PrevAndNext(long relationId,
String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUuid_PrevAndNext in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
String uuid,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByUuid(String uuid)
removeByUuid in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidpublic int countByUuid(String uuid)
countByUuid in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidpublic List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid,
long companyId)
findByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDpublic List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid,
long companyId,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)public List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - 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)public List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - 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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByUuid_C_First(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUuid_C_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUuid_C_First(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUuid_C_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByUuid_C_Last(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUuid_C_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUuid_C_Last(String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUuid_C_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByUuid_C_PrevAndNext(long relationId,
String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUuid_C_PrevAndNext in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByUuid_C(String uuid,
long companyId)
removeByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDpublic int countByUuid_C(String uuid,
long companyId)
countByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuuid - the uuidcompanyId - the company IDpublic List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId)
findByCompanyId in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDpublic List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByCompanyId in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByCompanyId in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByCompanyId in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByCompanyId_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByCompanyId_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByCompanyId_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByCompanyId_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByCompanyId_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
removeByCompanyId in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDpublic int countByCompanyId(long companyId)
countByCompanyId in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDpublic List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1)
findByUserId1 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1public List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUserId1 in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUserId1 in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUserId1 in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByUserId1_First(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUserId1_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUserId1_First(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUserId1_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByUserId1_Last(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUserId1_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUserId1_Last(long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUserId1_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByUserId1_PrevAndNext(long relationId,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUserId1_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId1,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByUserId1(long userId1)
removeByUserId1 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1public int countByUserId1(long userId1)
countByUserId1 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2)
findByUserId2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUserId2 in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUserId2 in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByUserId2 in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByUserId2_First(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUserId2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUserId2_First(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUserId2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByUserId2_Last(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUserId2_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByUserId2_Last(long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByUserId2_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByUserId2_PrevAndNext(long relationId,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByUserId2_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByUserId2(long userId2)
removeByUserId2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2public int countByUserId2(long userId2)
countByUserId2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2public List<com.liferay.social.kernel.model.SocialRelation> findByType(int type)
findByType in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByType(int type,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByType in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByType(int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByType in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByType(int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByType in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByType_First(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByType_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByType_First(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByType_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByType_Last(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByType_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByType_Last(int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByType_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByType_PrevAndNext(long relationId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByType_PrevAndNext in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key of the current social relationtype - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByType(int type)
removeByType in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typepublic int countByType(int type)
countByType in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencetype - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId,
int type)
findByC_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId,
int type,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByC_T in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByC_T in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByC_T in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByC_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByC_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByC_T_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByC_T_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByC_T_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByC_T(long companyId,
int type)
removeByC_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typepublic int countByC_T(long companyId,
int type)
countByC_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecompanyId - the company IDtype - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1,
long userId2)
findByU1_U2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2public List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1,
long userId2,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU1_U2 in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU1_U2 in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1,
long userId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU1_U2 in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByU1_U2_First(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU1_U2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_First(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByU1_U2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByU1_U2_Last(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU1_U2_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_Last(long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByU1_U2_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU1_U2_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId1,
long userId2,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByU1_U2(long userId1,
long userId2)
removeByU1_U2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2public int countByU1_U2(long userId1,
long userId2)
countByU1_U2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2public List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1,
int type)
findByU1_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1,
int type,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU1_T in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU1_T in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU1_T in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByU1_T_First(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU1_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU1_T_First(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByU1_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByU1_T_Last(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU1_T_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU1_T_Last(long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByU1_T_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU1_T_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId1,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByU1_T(long userId1,
int type)
removeByU1_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typepublic int countByU1_T(long userId1,
int type)
countByU1_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1type - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2,
int type)
findByU2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typepublic List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2,
int type,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU2_T in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU2_T in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findByU2_T in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.social.kernel.model.SocialRelation findByU2_T_First(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU2_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU2_T_First(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByU2_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByU2_T_Last(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU2_T_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU2_T_Last(long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
fetchByU2_T_Last in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation[] findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
throws com.liferay.social.kernel.exception.NoSuchRelationException
findByU2_T_PrevAndNext in interface com.liferay.social.kernel.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.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.social.kernel.model.SocialRelation socialRelation,
long userId2,
int type,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean previous)
public void removeByU2_T(long userId2,
int type)
removeByU2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typepublic int countByU2_T(long userId2,
int type)
countByU2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId2 - the user id2type - the typepublic com.liferay.social.kernel.model.SocialRelation findByU1_U2_T(long userId1,
long userId2,
int type)
throws com.liferay.social.kernel.exception.NoSuchRelationException
NoSuchRelationException if it could not be found.findByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the typecom.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_T(long userId1,
long userId2,
int type)
null if it could not be found. Uses the finder cache.fetchByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the typenull if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_T(long userId1,
long userId2,
int type,
boolean useFinderCache)
null if it could not be found, optionally using the finder cache.fetchByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the typeuseFinderCache - whether to use the finder cachenull if a matching social relation could not be foundpublic com.liferay.social.kernel.model.SocialRelation removeByU1_U2_T(long userId1,
long userId2,
int type)
throws com.liferay.social.kernel.exception.NoSuchRelationException
removeByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the typecom.liferay.social.kernel.exception.NoSuchRelationExceptionpublic int countByU1_U2_T(long userId1,
long userId2,
int type)
countByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the typepublic void cacheResult(com.liferay.social.kernel.model.SocialRelation socialRelation)
cacheResult in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencecacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>socialRelation - the social relationpublic void cacheResult(List<com.liferay.social.kernel.model.SocialRelation> socialRelations)
cacheResult in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencesocialRelations - the social relationspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public void clearCache(com.liferay.social.kernel.model.SocialRelation socialRelation)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public void clearCache(List<com.liferay.social.kernel.model.SocialRelation> socialRelations)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public void clearCache(Set<Serializable> primaryKeys)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>protected void cacheUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl)
public com.liferay.social.kernel.model.SocialRelation create(long relationId)
create in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key for the new social relationpublic com.liferay.social.kernel.model.SocialRelation remove(long relationId)
throws com.liferay.social.kernel.exception.NoSuchRelationException
remove in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key of the social relationcom.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundpublic com.liferay.social.kernel.model.SocialRelation remove(Serializable primaryKey)
throws com.liferay.social.kernel.exception.NoSuchRelationException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>primaryKey - the primary key of the social relationcom.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundprotected com.liferay.social.kernel.model.SocialRelation removeImpl(com.liferay.social.kernel.model.SocialRelation socialRelation)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public com.liferay.social.kernel.model.SocialRelation updateImpl(com.liferay.social.kernel.model.SocialRelation socialRelation)
updateImpl in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public com.liferay.social.kernel.model.SocialRelation findByPrimaryKey(Serializable primaryKey)
throws com.liferay.social.kernel.exception.NoSuchRelationException
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>primaryKey - the primary key of the social relationcom.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundpublic com.liferay.social.kernel.model.SocialRelation findByPrimaryKey(long relationId)
throws com.liferay.social.kernel.exception.NoSuchRelationException
NoSuchRelationException if it could not be found.findByPrimaryKey in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key of the social relationcom.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>primaryKey - the primary key of the social relationnull if a social relation with the primary key could not be foundpublic com.liferay.social.kernel.model.SocialRelation fetchByPrimaryKey(long relationId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencerelationId - the primary key of the social relationnull if a social relation with the primary key could not be foundpublic Map<Serializable,com.liferay.social.kernel.model.SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public List<com.liferay.social.kernel.model.SocialRelation> findAll()
findAll in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencepublic List<com.liferay.social.kernel.model.SocialRelation> findAll(int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findAll in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)public List<com.liferay.social.kernel.model.SocialRelation> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findAll in interface com.liferay.social.kernel.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)public List<com.liferay.social.kernel.model.SocialRelation> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.
findAll in interface com.liferay.social.kernel.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)useFinderCache - whether to use the finder cachepublic void removeAll()
removeAll in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencepublic int countAll()
countAll in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>protected String getPKDBName()
getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>protected String getSelectSQL()
getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>public List<String> getMappingTableNames()
getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>public Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>public String getTableName()
getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>public List<String[]> getUniqueIndexColumnNames()
getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>public void afterPropertiesSet()
public void destroy()
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>