@ProviderType
public class SocialRelationUtil
extends Object
SocialRelationPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
SocialRelationPersistence
,
SocialRelationPersistenceImpl
Constructor and Description |
---|
SocialRelationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<SocialRelation> socialRelations)
Caches the social relations in the entity cache if it is enabled.
|
static void |
cacheResult(SocialRelation socialRelation)
Caches the social relation in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SocialRelation socialRelation) |
static int |
countAll()
Returns the number of social relations.
|
static int |
countByC_T(long companyId,
int type)
Returns the number of social relations where companyId = ? and type = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of social relations where companyId = ?.
|
static int |
countByType(int type)
Returns the number of social relations where type = ?.
|
static int |
countByU1_T(long userId1,
int type)
Returns the number of social relations where userId1 = ? and type = ?.
|
static int |
countByU1_U2_T(long userId1,
long userId2,
int type)
Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.
|
static int |
countByU1_U2(long userId1,
long userId2)
Returns the number of social relations where userId1 = ? and userId2 = ?.
|
static int |
countByU2_T(long userId2,
int type)
Returns the number of social relations where userId2 = ? and type = ?.
|
static int |
countByUserId1(long userId1)
Returns the number of social relations where userId1 = ?.
|
static int |
countByUserId2(long userId2)
Returns the number of social relations where userId2 = ?.
|
static int |
countByUuid_C(String uuid,
long companyId)
Returns the number of social relations where uuid = ? and companyId = ?.
|
static int |
countByUuid(String uuid)
Returns the number of social relations where uuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static SocialRelation |
create(long relationId)
Creates a new social relation with the primary key.
|
static SocialRelation |
fetchByC_T_First(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.
|
static SocialRelation |
fetchByC_T_Last(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?.
|
static SocialRelation |
fetchByCompanyId_First(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.
|
static SocialRelation |
fetchByCompanyId_Last(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.
|
static SocialRelation |
fetchByPrimaryKey(long relationId)
Returns the social relation with the primary key or returns
null if it could not be found. |
static Map<Serializable,SocialRelation> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static SocialRelation |
fetchByType_First(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.
|
static SocialRelation |
fetchByType_Last(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.
|
static SocialRelation |
fetchByU1_T_First(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.
|
static SocialRelation |
fetchByU1_T_Last(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?.
|
static SocialRelation |
fetchByU1_U2_First(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
|
static SocialRelation |
fetchByU1_U2_Last(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
|
static 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. |
static SocialRelation |
fetchByU1_U2_T(long userId1,
long userId2,
int type,
boolean retrieveFromCache)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
static SocialRelation |
fetchByU2_T_First(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.
|
static SocialRelation |
fetchByU2_T_Last(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?.
|
static SocialRelation |
fetchByUserId1_First(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.
|
static SocialRelation |
fetchByUserId1_Last(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.
|
static SocialRelation |
fetchByUserId2_First(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.
|
static SocialRelation |
fetchByUserId2_Last(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.
|
static SocialRelation |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
|
static SocialRelation |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
|
static SocialRelation |
fetchByUuid_First(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.
|
static SocialRelation |
fetchByUuid_Last(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.
|
static List<SocialRelation> |
findAll()
Returns all the social relations.
|
static List<SocialRelation> |
findAll(int start,
int end)
Returns a range of all the social relations.
|
static List<SocialRelation> |
findAll(int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations.
|
static List<SocialRelation> |
findAll(int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations.
|
static SocialRelation |
findByC_T_First(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.
|
static SocialRelation |
findByC_T_Last(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?.
|
static SocialRelation[] |
findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.
|
static List<SocialRelation> |
findByC_T(long companyId,
int type)
Returns all the social relations where companyId = ? and type = ?.
|
static List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the social relations where companyId = ? and type = ?.
|
static List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ? and type = ?.
|
static List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where companyId = ? and type = ?.
|
static SocialRelation |
findByCompanyId_First(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.
|
static SocialRelation |
findByCompanyId_Last(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.
|
static SocialRelation[] |
findByCompanyId_PrevAndNext(long relationId,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ?.
|
static List<SocialRelation> |
findByCompanyId(long companyId)
Returns all the social relations where companyId = ?.
|
static List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the social relations where companyId = ?.
|
static List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ?.
|
static List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where companyId = ?.
|
static SocialRelation |
findByPrimaryKey(long relationId)
Returns the social relation with the primary key or throws a
NoSuchRelationException if it could not be found. |
static SocialRelation |
findByType_First(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.
|
static SocialRelation |
findByType_Last(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.
|
static SocialRelation[] |
findByType_PrevAndNext(long relationId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where type = ?.
|
static List<SocialRelation> |
findByType(int type)
Returns all the social relations where type = ?.
|
static List<SocialRelation> |
findByType(int type,
int start,
int end)
Returns a range of all the social relations where type = ?.
|
static List<SocialRelation> |
findByType(int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where type = ?.
|
static List<SocialRelation> |
findByType(int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where type = ?.
|
static SocialRelation |
findByU1_T_First(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.
|
static SocialRelation |
findByU1_T_Last(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?.
|
static SocialRelation[] |
findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.
|
static List<SocialRelation> |
findByU1_T(long userId1,
int type)
Returns all the social relations where userId1 = ? and type = ?.
|
static List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and type = ?.
|
static List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.
|
static List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.
|
static SocialRelation |
findByU1_U2_First(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
|
static SocialRelation |
findByU1_U2_Last(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
|
static SocialRelation[] |
findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.
|
static 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. |
static List<SocialRelation> |
findByU1_U2(long userId1,
long userId2)
Returns all the social relations where userId1 = ? and userId2 = ?.
|
static List<SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and userId2 = ?.
|
static List<SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
|
static List<SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
|
static SocialRelation |
findByU2_T_First(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.
|
static SocialRelation |
findByU2_T_Last(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?.
|
static SocialRelation[] |
findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.
|
static List<SocialRelation> |
findByU2_T(long userId2,
int type)
Returns all the social relations where userId2 = ? and type = ?.
|
static List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end)
Returns a range of all the social relations where userId2 = ? and type = ?.
|
static List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.
|
static List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.
|
static SocialRelation |
findByUserId1_First(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.
|
static SocialRelation |
findByUserId1_Last(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.
|
static SocialRelation[] |
findByUserId1_PrevAndNext(long relationId,
long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.
|
static List<SocialRelation> |
findByUserId1(long userId1)
Returns all the social relations where userId1 = ?.
|
static List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end)
Returns a range of all the social relations where userId1 = ?.
|
static List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ?.
|
static List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId1 = ?.
|
static SocialRelation |
findByUserId2_First(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.
|
static SocialRelation |
findByUserId2_Last(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.
|
static SocialRelation[] |
findByUserId2_PrevAndNext(long relationId,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.
|
static List<SocialRelation> |
findByUserId2(long userId2)
Returns all the social relations where userId2 = ?.
|
static List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end)
Returns a range of all the social relations where userId2 = ?.
|
static List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ?.
|
static List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId2 = ?.
|
static SocialRelation |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
|
static SocialRelation |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
|
static SocialRelation[] |
findByUuid_C_PrevAndNext(long relationId,
String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.
|
static List<SocialRelation> |
findByUuid_C(String uuid,
long companyId)
Returns all the social relations where uuid = ? and companyId = ?.
|
static List<SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the social relations where uuid = ? and companyId = ?.
|
static List<SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
|
static List<SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
|
static SocialRelation |
findByUuid_First(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.
|
static SocialRelation |
findByUuid_Last(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.
|
static SocialRelation[] |
findByUuid_PrevAndNext(long relationId,
String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ?.
|
static List<SocialRelation> |
findByUuid(String uuid)
Returns all the social relations where uuid = ?.
|
static List<SocialRelation> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the social relations where uuid = ?.
|
static List<SocialRelation> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ?.
|
static List<SocialRelation> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social relations where uuid = ?.
|
static List<SocialRelation> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<SocialRelation> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<SocialRelation> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator) |
static Set<String> |
getBadColumnNames() |
static SocialRelationPersistence |
getPersistence() |
static SocialRelation |
remove(long relationId)
Removes the social relation with the primary key from the database.
|
static void |
removeAll()
Removes all the social relations from the database.
|
static void |
removeByC_T(long companyId,
int type)
Removes all the social relations where companyId = ? and type = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the social relations where companyId = ? from the database.
|
static void |
removeByType(int type)
Removes all the social relations where type = ? from the database.
|
static void |
removeByU1_T(long userId1,
int type)
Removes all the social relations where userId1 = ? and type = ? from the database.
|
static SocialRelation |
removeByU1_U2_T(long userId1,
long userId2,
int type)
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
|
static void |
removeByU1_U2(long userId1,
long userId2)
Removes all the social relations where userId1 = ? and userId2 = ? from the database.
|
static void |
removeByU2_T(long userId2,
int type)
Removes all the social relations where userId2 = ? and type = ? from the database.
|
static void |
removeByUserId1(long userId1)
Removes all the social relations where userId1 = ? from the database.
|
static void |
removeByUserId2(long userId2)
Removes all the social relations where userId2 = ? from the database.
|
static void |
removeByUuid_C(String uuid,
long companyId)
Removes all the social relations where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(String uuid)
Removes all the social relations where uuid = ? from the database.
|
static SocialRelation |
update(SocialRelation socialRelation) |
static SocialRelation |
update(SocialRelation socialRelation,
ServiceContext serviceContext) |
static SocialRelation |
updateImpl(SocialRelation socialRelation) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SocialRelation socialRelation)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
public static SocialRelation update(SocialRelation socialRelation)
public static SocialRelation update(SocialRelation socialRelation, ServiceContext serviceContext)
public static List<SocialRelation> findByUuid(String uuid)
uuid
- the uuidpublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)public static List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- 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 static List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByUuid(String uuid)
uuid
- the uuidpublic static int countByUuid(String uuid)
uuid
- the uuidpublic static List<SocialRelation> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- 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 static List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- 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 static List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<SocialRelation> findByCompanyId(long companyId)
companyId
- the company IDpublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)public static List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- 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 static List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static List<SocialRelation> findByUserId1(long userId1)
userId1
- the user id1public static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- the user id1start
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)public static List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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 static List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByUserId1(long userId1)
userId1
- the user id1public static int countByUserId1(long userId1)
userId1
- the user id1public static List<SocialRelation> findByUserId2(long userId2)
userId2
- the user id2public static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId2
- the user id2start
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)public static List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId2
- 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 static List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId2
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByUserId2(long userId2)
userId2
- the user id2public static int countByUserId2(long userId2)
userId2
- the user id2public static List<SocialRelation> findByType(int type)
type
- the typepublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
type
- the typestart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)public static List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
type
- 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 static List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
type
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByType_First(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByType_First(int type, OrderByComparator<SocialRelation> orderByComparator)
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator)
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByType(int type)
type
- the typepublic static int countByType(int type)
type
- the typepublic static List<SocialRelation> findByC_T(long companyId, int type)
companyId
- the company IDtype
- the typepublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- 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 static List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- 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 static List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByC_T(long companyId, int type)
companyId
- the company IDtype
- the typepublic static int countByC_T(long companyId, int type)
companyId
- the company IDtype
- the typepublic static List<SocialRelation> findByU1_U2(long userId1, long userId2)
userId1
- the user id1userId2
- the user id2public static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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 static List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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 static List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId1
- 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 static SocialRelation findByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId1
- 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 static SocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByU1_U2(long userId1, long userId2)
userId1
- the user id1userId2
- the user id2public static int countByU1_U2(long userId1, long userId2)
userId1
- the user id1userId2
- the user id2public static List<SocialRelation> findByU1_T(long userId1, int type)
userId1
- the user id1type
- the typepublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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 static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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 static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId1
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByU1_T(long userId1, int type)
userId1
- the user id1type
- the typepublic static int countByU1_T(long userId1, int type)
userId1
- the user id1type
- the typepublic static List<SocialRelation> findByU2_T(long userId2, int type)
userId2
- the user id2type
- the typepublic static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId2
- 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 static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId2
- 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 static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId2
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundpublic static SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundpublic static void removeByU2_T(long userId2, int type)
userId2
- the user id2type
- the typepublic static int countByU2_T(long userId2, int type)
userId2
- the user id2type
- the typepublic static SocialRelation findByU1_U2_T(long userId1, long userId2, int type) throws NoSuchRelationException
NoSuchRelationException
if it could not be found.userId1
- the user id1userId2
- the user id2type
- the typeNoSuchRelationException
- if a matching social relation could not be foundpublic static SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type)
null
if it could not be found. Uses the finder cache.userId1
- the user id1userId2
- the user id2type
- the typenull
if a matching social relation could not be foundpublic static SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.userId1
- the user id1userId2
- the user id2type
- the typeretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching social relation could not be foundpublic static SocialRelation removeByU1_U2_T(long userId1, long userId2, int type) throws NoSuchRelationException
userId1
- the user id1userId2
- the user id2type
- the typeNoSuchRelationException
public static int countByU1_U2_T(long userId1, long userId2, int type)
userId1
- the user id1userId2
- the user id2type
- the typepublic static void cacheResult(SocialRelation socialRelation)
socialRelation
- the social relationpublic static void cacheResult(List<SocialRelation> socialRelations)
socialRelations
- the social relationspublic static SocialRelation create(long relationId)
relationId
- the primary key for the new social relationpublic static SocialRelation remove(long relationId) throws NoSuchRelationException
relationId
- the primary key of the social relationNoSuchRelationException
- if a social relation with the primary key could not be foundpublic static SocialRelation updateImpl(SocialRelation socialRelation)
public static SocialRelation findByPrimaryKey(long relationId) throws NoSuchRelationException
NoSuchRelationException
if it could not be found.relationId
- the primary key of the social relationNoSuchRelationException
- if a social relation with the primary key could not be foundpublic static SocialRelation fetchByPrimaryKey(long relationId)
null
if it could not be found.relationId
- the primary key of the social relationnull
if a social relation with the primary key could not be foundpublic static Map<Serializable,SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<SocialRelation> findAll()
public static List<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)public static List<SocialRelation> findAll(int start, int end, OrderByComparator<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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- 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 static List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SocialRelationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static Set<String> getBadColumnNames()
public static SocialRelationPersistence getPersistence()