|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.social.service.persistence.SocialRelationUtil
public class SocialRelationUtil
The persistence utility for the social relation service. This utility wraps 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.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
SocialRelationPersistence
,
SocialRelationPersistenceImpl
Constructor Summary | |
---|---|
SocialRelationUtil()
|
Method Summary | |
---|---|
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()
Counts all the social relations. |
static int |
countByC_T(long companyId,
int type)
Counts all the social relations where companyId = ? and type = ?. |
static int |
countByCompanyId(long companyId)
Counts all the social relations where companyId = ?. |
static int |
countByType(int type)
Counts all the social relations where type = ?. |
static int |
countByU1_T(long userId1,
int type)
Counts all the social relations where userId1 = ? and type = ?. |
static int |
countByU1_U2_T(long userId1,
long userId2,
int type)
Counts all the social relations where userId1 = ? and userId2 = ? and type = ?. |
static int |
countByU2_T(long userId2,
int type)
Counts all the social relations where userId2 = ? and type = ?. |
static int |
countByUserId1(long userId1)
Counts all the social relations where userId1 = ?. |
static int |
countByUserId2(long userId2)
Counts all the social relations where userId2 = ?. |
static int |
countByUuid(String uuid)
Counts all the social relations where uuid = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SocialRelation |
create(long relationId)
Creates a new social relation with the primary key. |
static SocialRelation |
fetchByPrimaryKey(long relationId)
Finds the social relation with the primary key or returns null if it could not be found. |
static SocialRelation |
fetchByU1_U2_T(long userId1,
long userId2,
int type)
Finds 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)
Finds the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache. |
static List<SocialRelation> |
findAll()
Finds all the social relations. |
static List<SocialRelation> |
findAll(int start,
int end)
Finds a range of all the social relations. |
static List<SocialRelation> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social relations. |
static SocialRelation |
findByC_T_First(long companyId,
int type,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where companyId = ? and type = ?. |
static SocialRelation |
findByC_T_Last(long companyId,
int type,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where companyId = ? and type = ?. |
static SocialRelation[] |
findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
OrderByComparator orderByComparator)
Finds 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)
Finds all the social relations where companyId = ? and type = ?. |
static List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end)
Finds 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 orderByComparator)
Finds an ordered range of all the social relations where companyId = ? and type = ?. |
static SocialRelation |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where companyId = ?. |
static SocialRelation |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where companyId = ?. |
static SocialRelation[] |
findByCompanyId_PrevAndNext(long relationId,
long companyId,
OrderByComparator orderByComparator)
Finds the social relations before and after the current social relation in the ordered set where companyId = ?. |
static List<SocialRelation> |
findByCompanyId(long companyId)
Finds all the social relations where companyId = ?. |
static List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the social relations where companyId = ?. |
static List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social relations where companyId = ?. |
static SocialRelation |
findByPrimaryKey(long relationId)
Finds the social relation with the primary key or throws a NoSuchRelationException if it could not be found. |
static SocialRelation |
findByType_First(int type,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where type = ?. |
static SocialRelation |
findByType_Last(int type,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where type = ?. |
static SocialRelation[] |
findByType_PrevAndNext(long relationId,
int type,
OrderByComparator orderByComparator)
Finds the social relations before and after the current social relation in the ordered set where type = ?. |
static List<SocialRelation> |
findByType(int type)
Finds all the social relations where type = ?. |
static List<SocialRelation> |
findByType(int type,
int start,
int end)
Finds a range of all the social relations where type = ?. |
static List<SocialRelation> |
findByType(int type,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social relations where type = ?. |
static SocialRelation |
findByU1_T_First(long userId1,
int type,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where userId1 = ? and type = ?. |
static SocialRelation |
findByU1_T_Last(long userId1,
int type,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where userId1 = ? and type = ?. |
static SocialRelation[] |
findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
OrderByComparator orderByComparator)
Finds 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)
Finds all the social relations where userId1 = ? and type = ?. |
static List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end)
Finds 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 orderByComparator)
Finds an ordered range of all the social relations where userId1 = ? and type = ?. |
static SocialRelation |
findByU1_U2_T(long userId1,
long userId2,
int type)
Finds the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found. |
static SocialRelation |
findByU2_T_First(long userId2,
int type,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where userId2 = ? and type = ?. |
static SocialRelation |
findByU2_T_Last(long userId2,
int type,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where userId2 = ? and type = ?. |
static SocialRelation[] |
findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
OrderByComparator orderByComparator)
Finds 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)
Finds all the social relations where userId2 = ? and type = ?. |
static List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end)
Finds 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 orderByComparator)
Finds an ordered range of all the social relations where userId2 = ? and type = ?. |
static SocialRelation |
findByUserId1_First(long userId1,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where userId1 = ?. |
static SocialRelation |
findByUserId1_Last(long userId1,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where userId1 = ?. |
static SocialRelation[] |
findByUserId1_PrevAndNext(long relationId,
long userId1,
OrderByComparator orderByComparator)
Finds the social relations before and after the current social relation in the ordered set where userId1 = ?. |
static List<SocialRelation> |
findByUserId1(long userId1)
Finds all the social relations where userId1 = ?. |
static List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end)
Finds a range of all the social relations where userId1 = ?. |
static List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social relations where userId1 = ?. |
static SocialRelation |
findByUserId2_First(long userId2,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where userId2 = ?. |
static SocialRelation |
findByUserId2_Last(long userId2,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where userId2 = ?. |
static SocialRelation[] |
findByUserId2_PrevAndNext(long relationId,
long userId2,
OrderByComparator orderByComparator)
Finds the social relations before and after the current social relation in the ordered set where userId2 = ?. |
static List<SocialRelation> |
findByUserId2(long userId2)
Finds all the social relations where userId2 = ?. |
static List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end)
Finds a range of all the social relations where userId2 = ?. |
static List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social relations where userId2 = ?. |
static SocialRelation |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Finds the first social relation in the ordered set where uuid = ?. |
static SocialRelation |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Finds the last social relation in the ordered set where uuid = ?. |
static SocialRelation[] |
findByUuid_PrevAndNext(long relationId,
String uuid,
OrderByComparator orderByComparator)
Finds the social relations before and after the current social relation in the ordered set where uuid = ?. |
static List<SocialRelation> |
findByUuid(String uuid)
Finds all the social relations where uuid = ?. |
static List<SocialRelation> |
findByUuid(String uuid,
int start,
int end)
Finds a range of all the social relations where uuid = ?. |
static List<SocialRelation> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Finds 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 orderByComparator)
|
static SocialRelationPersistence |
getPersistence()
|
static SocialRelation |
remove(long relationId)
Removes the social relation with the primary key from the database. |
static SocialRelation |
remove(SocialRelation socialRelation)
|
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 void |
removeByU1_U2_T(long userId1,
long userId2,
int type)
Removes the social relation where userId1 = ? and userId2 = ? and type = ? 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(String uuid)
Removes all the social relations where uuid = ? from the database. |
void |
setPersistence(SocialRelationPersistence persistence)
|
static SocialRelation |
update(SocialRelation socialRelation,
boolean merge)
|
static SocialRelation |
update(SocialRelation socialRelation,
boolean merge,
ServiceContext serviceContext)
|
static SocialRelation |
updateImpl(SocialRelation socialRelation,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocialRelationUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SocialRelation socialRelation)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SocialRelation remove(SocialRelation socialRelation) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static SocialRelation update(SocialRelation socialRelation, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static SocialRelation update(SocialRelation socialRelation, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(SocialRelation socialRelation)
socialRelation
- the social relation to cachepublic static void cacheResult(List<SocialRelation> socialRelations)
socialRelations
- the social relations to cachepublic static SocialRelation create(long relationId)
relationId
- the primary key for the new social relation
public static SocialRelation remove(long relationId) throws SystemException, NoSuchRelationException
relationId
- the primary key of the social relation to remove
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialRelation updateImpl(SocialRelation socialRelation, boolean merge) throws SystemException
SystemException
public static SocialRelation findByPrimaryKey(long relationId) throws SystemException, NoSuchRelationException
NoSuchRelationException
if it could not be found.
relationId
- the primary key of the social relation to find
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialRelation fetchByPrimaryKey(long relationId) throws SystemException
null
if it could not be found.
relationId
- the primary key of the social relation to find
null
if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUuid(String uuid) throws SystemException
uuid
- the uuid to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUuid(String uuid, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
uuid
- the uuid to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
uuid
- the uuid to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
uuid
- the uuid to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
uuid
- the uuid to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationuuid
- the uuid to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByCompanyId(long companyId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationcompanyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUserId1(long userId1) throws SystemException
userId1
- the user id1 to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUserId1(long userId1, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId1
- the user id1 to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId1
- the user id1 to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByUserId1_First(long userId1, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId1
- the user id1 to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByUserId1_Last(long userId1, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId1
- the user id1 to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationuserId1
- the user id1 to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUserId2(long userId2) throws SystemException
userId2
- the user id2 to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUserId2(long userId2, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId2
- the user id2 to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId2
- the user id2 to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByUserId2_First(long userId2, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId2
- the user id2 to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByUserId2_Last(long userId2, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId2
- the user id2 to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationuserId2
- the user id2 to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByType(int type) throws SystemException
type
- the type to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByType(int type, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
type
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByType(int type, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
type
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByType_First(int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
type
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByType_Last(int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
type
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByC_T(long companyId, int type) throws SystemException
companyId
- the company id to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByC_T(long companyId, int type, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withtype
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
companyId
- the company id to search withtype
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByC_T_First(long companyId, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
companyId
- the company id to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
companyId
- the company id to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationcompanyId
- the company id to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByU1_T(long userId1, int type) throws SystemException
userId1
- the user id1 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId1
- the user id1 to search withtype
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId1
- the user id1 to search withtype
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId1
- the user id1 to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId1
- the user id1 to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationuserId1
- the user id1 to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByU2_T(long userId2, int type) throws SystemException
userId2
- the user id2 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId2
- the user id2 to search withtype
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
userId2
- the user id2 to search withtype
- the type to search withstart
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId2
- the user id2 to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
userId2
- the user id2 to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator orderByComparator) throws SystemException, NoSuchRelationException
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.
relationId
- the primary key of the current social relationuserId2
- the user id2 to search withtype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchRelationException
- if a social relation with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialRelation findByU1_U2_T(long userId1, long userId2, int type) throws SystemException, NoSuchRelationException
NoSuchRelationException
if it could not be found.
userId1
- the user id1 to search withuserId2
- the user id2 to search withtype
- the type to search with
NoSuchRelationException
- if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type) throws SystemException
null
if it could not be found. Uses the finder cache.
userId1
- the user id1 to search withuserId2
- the user id2 to search withtype
- the type to search with
null
if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
userId1
- the user id1 to search withuserId2
- the user id2 to search withtype
- the type to search with
null
if a matching social relation could not be found
SystemException
- if a system exception occurredpublic static List<SocialRelation> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<SocialRelation> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialRelation> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of social relations to returnend
- the upper bound of the range of social relations to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByUuid(String uuid) throws SystemException
uuid
- the uuid to search with
SystemException
- if a system exception occurredpublic static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static void removeByUserId1(long userId1) throws SystemException
userId1
- the user id1 to search with
SystemException
- if a system exception occurredpublic static void removeByUserId2(long userId2) throws SystemException
userId2
- the user id2 to search with
SystemException
- if a system exception occurredpublic static void removeByType(int type) throws SystemException
type
- the type to search with
SystemException
- if a system exception occurredpublic static void removeByC_T(long companyId, int type) throws SystemException
companyId
- the company id to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static void removeByU1_T(long userId1, int type) throws SystemException
userId1
- the user id1 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static void removeByU2_T(long userId2, int type) throws SystemException
userId2
- the user id2 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static void removeByU1_U2_T(long userId1, long userId2, int type) throws SystemException, NoSuchRelationException
userId1
- the user id1 to search withuserId2
- the user id2 to search withtype
- the type to search with
SystemException
- if a system exception occurred
NoSuchRelationException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByUuid(String uuid) throws SystemException
uuid
- the uuid to search with
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static int countByUserId1(long userId1) throws SystemException
userId1
- the user id1 to search with
SystemException
- if a system exception occurredpublic static int countByUserId2(long userId2) throws SystemException
userId2
- the user id2 to search with
SystemException
- if a system exception occurredpublic static int countByType(int type) throws SystemException
type
- the type to search with
SystemException
- if a system exception occurredpublic static int countByC_T(long companyId, int type) throws SystemException
companyId
- the company id to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static int countByU1_T(long userId1, int type) throws SystemException
userId1
- the user id1 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static int countByU2_T(long userId2, int type) throws SystemException
userId2
- the user id2 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static int countByU1_U2_T(long userId1, long userId2, int type) throws SystemException
userId1
- the user id1 to search withuserId2
- the user id2 to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static SocialRelationPersistence getPersistence()
public void setPersistence(SocialRelationPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |