|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocialRelationPersistence
The persistence interface for the social relation service.
Caching information and settings can be found in portal.properties
SocialRelationPersistenceImpl,
SocialRelationUtil| Method Summary | |
|---|---|
void |
cacheResult(List<SocialRelation> socialRelations)
Caches the social relations in the entity cache if it is enabled. |
void |
cacheResult(SocialRelation socialRelation)
Caches the social relation in the entity cache if it is enabled. |
int |
countAll()
Returns the number of social relations. |
int |
countByC_T(long companyId,
int type)
Returns the number of social relations where companyId = ? and type = ?. |
int |
countByCompanyId(long companyId)
Returns the number of social relations where companyId = ?. |
int |
countByType(int type)
Returns the number of social relations where type = ?. |
int |
countByU1_T(long userId1,
int type)
Returns the number of social relations where userId1 = ? and type = ?. |
int |
countByU1_U2_T(long userId1,
long userId2,
int type)
Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?. |
int |
countByU1_U2(long userId1,
long userId2)
Returns the number of social relations where userId1 = ? and userId2 = ?. |
int |
countByU2_T(long userId2,
int type)
Returns the number of social relations where userId2 = ? and type = ?. |
int |
countByUserId1(long userId1)
Returns the number of social relations where userId1 = ?. |
int |
countByUserId2(long userId2)
Returns the number of social relations where userId2 = ?. |
int |
countByUuid(String uuid)
Returns the number of social relations where uuid = ?. |
SocialRelation |
create(long relationId)
Creates a new social relation with the primary key. |
SocialRelation |
fetchByPrimaryKey(long relationId)
Returns the social relation with the primary key or returns null if it could not be found. |
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. |
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. |
List<SocialRelation> |
findAll()
Returns all the social relations. |
List<SocialRelation> |
findAll(int start,
int end)
Returns a range of all the social relations. |
List<SocialRelation> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations. |
SocialRelation |
findByC_T_First(long companyId,
int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?. |
SocialRelation |
findByC_T_Last(long companyId,
int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?. |
SocialRelation[] |
findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?. |
List<SocialRelation> |
findByC_T(long companyId,
int type)
Returns all the social relations where companyId = ? and type = ?. |
List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the social relations where companyId = ? and type = ?. |
List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where companyId = ? and type = ?. |
SocialRelation |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where companyId = ?. |
SocialRelation |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where companyId = ?. |
SocialRelation[] |
findByCompanyId_PrevAndNext(long relationId,
long companyId,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ?. |
List<SocialRelation> |
findByCompanyId(long companyId)
Returns all the social relations where companyId = ?. |
List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the social relations where companyId = ?. |
List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where companyId = ?. |
SocialRelation |
findByPrimaryKey(long relationId)
Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found. |
SocialRelation |
findByType_First(int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where type = ?. |
SocialRelation |
findByType_Last(int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where type = ?. |
SocialRelation[] |
findByType_PrevAndNext(long relationId,
int type,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where type = ?. |
List<SocialRelation> |
findByType(int type)
Returns all the social relations where type = ?. |
List<SocialRelation> |
findByType(int type,
int start,
int end)
Returns a range of all the social relations where type = ?. |
List<SocialRelation> |
findByType(int type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where type = ?. |
SocialRelation |
findByU1_T_First(long userId1,
int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?. |
SocialRelation |
findByU1_T_Last(long userId1,
int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?. |
SocialRelation[] |
findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?. |
List<SocialRelation> |
findByU1_T(long userId1,
int type)
Returns all the social relations where userId1 = ? and type = ?. |
List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and type = ?. |
List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and type = ?. |
SocialRelation |
findByU1_U2_First(long userId1,
long userId2,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?. |
SocialRelation |
findByU1_U2_Last(long userId1,
long userId2,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?. |
SocialRelation[] |
findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?. |
SocialRelation |
findByU1_U2_T(long userId1,
long userId2,
int type)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found. |
List<SocialRelation> |
findByU1_U2(long userId1,
long userId2)
Returns all the social relations where userId1 = ? and userId2 = ?. |
List<SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end)
Returns a range of all the social relations where userId1 = ? and userId2 = ?. |
List<SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?. |
SocialRelation |
findByU2_T_First(long userId2,
int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?. |
SocialRelation |
findByU2_T_Last(long userId2,
int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?. |
SocialRelation[] |
findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?. |
List<SocialRelation> |
findByU2_T(long userId2,
int type)
Returns all the social relations where userId2 = ? and type = ?. |
List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end)
Returns a range of all the social relations where userId2 = ? and type = ?. |
List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId2 = ? and type = ?. |
SocialRelation |
findByUserId1_First(long userId1,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?. |
SocialRelation |
findByUserId1_Last(long userId1,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?. |
SocialRelation[] |
findByUserId1_PrevAndNext(long relationId,
long userId1,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ?. |
List<SocialRelation> |
findByUserId1(long userId1)
Returns all the social relations where userId1 = ?. |
List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end)
Returns a range of all the social relations where userId1 = ?. |
List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId1 = ?. |
SocialRelation |
findByUserId2_First(long userId2,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?. |
SocialRelation |
findByUserId2_Last(long userId2,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?. |
SocialRelation[] |
findByUserId2_PrevAndNext(long relationId,
long userId2,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ?. |
List<SocialRelation> |
findByUserId2(long userId2)
Returns all the social relations where userId2 = ?. |
List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end)
Returns a range of all the social relations where userId2 = ?. |
List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where userId2 = ?. |
SocialRelation |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where uuid = ?. |
SocialRelation |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where uuid = ?. |
SocialRelation[] |
findByUuid_PrevAndNext(long relationId,
String uuid,
OrderByComparator orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ?. |
List<SocialRelation> |
findByUuid(String uuid)
Returns all the social relations where uuid = ?. |
List<SocialRelation> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the social relations where uuid = ?. |
List<SocialRelation> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social relations where uuid = ?. |
SocialRelation |
remove(long relationId)
Removes the social relation with the primary key from the database. |
SocialRelation |
remove(SocialRelation socialRelation)
Removes the model instance from the database. |
void |
removeAll()
Removes all the social relations from the database. |
void |
removeByC_T(long companyId,
int type)
Removes all the social relations where companyId = ? and type = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the social relations where companyId = ? from the database. |
void |
removeByType(int type)
Removes all the social relations where type = ? from the database. |
void |
removeByU1_T(long userId1,
int type)
Removes all the social relations where userId1 = ? and type = ? from the database. |
void |
removeByU1_U2_T(long userId1,
long userId2,
int type)
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database. |
void |
removeByU1_U2(long userId1,
long userId2)
Removes all the social relations where userId1 = ? and userId2 = ? from the database. |
void |
removeByU2_T(long userId2,
int type)
Removes all the social relations where userId2 = ? and type = ? from the database. |
void |
removeByUserId1(long userId1)
Removes all the social relations where userId1 = ? from the database. |
void |
removeByUserId2(long userId2)
Removes all the social relations where userId2 = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the social relations where uuid = ? from the database. |
SocialRelation |
updateImpl(SocialRelation socialRelation,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(SocialRelation socialRelation)
socialRelation - the social relationvoid cacheResult(List<SocialRelation> socialRelations)
socialRelations - the social relationsSocialRelation create(long relationId)
relationId - the primary key for the new social relation
SocialRelation remove(long relationId)
throws SystemException,
NoSuchRelationException
relationId - the primary key of the social relation
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
SocialRelation updateImpl(SocialRelation socialRelation,
boolean merge)
throws SystemException
SystemException
SocialRelation findByPrimaryKey(long relationId)
throws SystemException,
NoSuchRelationException
NoSuchRelationException if it could not be found.
relationId - the primary key of the social relation
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
SocialRelation fetchByPrimaryKey(long relationId)
throws SystemException
null if it could not be found.
relationId - the primary key of the social relation
null if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByUuid(String uuid)
throws SystemException
uuid - the uuid
SystemException - if a system exception occurred
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 uuidstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
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 IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByUserId1(long userId1)
throws SystemException
userId1 - the user id1
SystemException - if a system exception occurred
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 id1start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 id1orderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id1orderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id1orderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByUserId2(long userId2)
throws SystemException
userId2 - the user id2
SystemException - if a system exception occurred
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 id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 id2orderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id2orderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id2orderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByType(int type)
throws SystemException
type - the type
SystemException - if a system exception occurred
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 typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByC_T(long companyId,
int type)
throws SystemException
companyId - the company IDtype - the type
SystemException - if a system exception occurred
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 IDtype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByU1_U2(long userId1,
long userId2)
throws SystemException
userId1 - the user id1userId2 - the user id2
SystemException - if a system exception occurred
List<SocialRelation> findByU1_U2(long userId1,
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.
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)
SystemException - if a system exception occurred
List<SocialRelation> findByU1_U2(long userId1,
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.
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)
SystemException - if a system exception occurred
SocialRelation findByU1_U2_First(long userId1,
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.
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 found
SystemException - if a system exception occurred
SocialRelation findByU1_U2_Last(long userId1,
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.
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 found
SystemException - if a system exception occurred
SocialRelation[] findByU1_U2_PrevAndNext(long relationId,
long userId1,
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 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 found
SystemException - if a system exception occurred
List<SocialRelation> findByU1_T(long userId1,
int type)
throws SystemException
userId1 - the user id1type - the type
SystemException - if a system exception occurred
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 id1type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
List<SocialRelation> findByU2_T(long userId2,
int type)
throws SystemException
userId2 - the user id2type - the type
SystemException - if a system exception occurred
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 id2type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 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)
SystemException - if a system exception occurred
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 id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred
SocialRelation findByU1_U2_T(long userId1,
long userId2,
int type)
throws SystemException,
NoSuchRelationException
NoSuchRelationException if it could not be found.
userId1 - the user id1userId2 - the user id2type - the type
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
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 id1userId2 - the user id2type - the type
null if a matching social relation could not be found
SystemException - if a system exception occurred
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 id1userId2 - the user id2type - the typeretrieveFromCache - whether to use the finder cache
null if a matching social relation could not be found
SystemException - if a system exception occurred
List<SocialRelation> findAll()
throws SystemException
SystemException - if a system exception occurred
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 relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
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 relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeByUuid(String uuid)
throws SystemException
uuid - the uuid
SystemException - if a system exception occurred
void removeByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
void removeByUserId1(long userId1)
throws SystemException
userId1 - the user id1
SystemException - if a system exception occurred
void removeByUserId2(long userId2)
throws SystemException
userId2 - the user id2
SystemException - if a system exception occurred
void removeByType(int type)
throws SystemException
type - the type
SystemException - if a system exception occurred
void removeByC_T(long companyId,
int type)
throws SystemException
companyId - the company IDtype - the type
SystemException - if a system exception occurred
void removeByU1_U2(long userId1,
long userId2)
throws SystemException
userId1 - the user id1userId2 - the user id2
SystemException - if a system exception occurred
void removeByU1_T(long userId1,
int type)
throws SystemException
userId1 - the user id1type - the type
SystemException - if a system exception occurred
void removeByU2_T(long userId2,
int type)
throws SystemException
userId2 - the user id2type - the type
SystemException - if a system exception occurred
void removeByU1_U2_T(long userId1,
long userId2,
int type)
throws SystemException,
NoSuchRelationException
userId1 - the user id1userId2 - the user id2type - the type
SystemException - if a system exception occurred
NoSuchRelationException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByUuid(String uuid)
throws SystemException
uuid - the uuid
SystemException - if a system exception occurred
int countByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
int countByUserId1(long userId1)
throws SystemException
userId1 - the user id1
SystemException - if a system exception occurred
int countByUserId2(long userId2)
throws SystemException
userId2 - the user id2
SystemException - if a system exception occurred
int countByType(int type)
throws SystemException
type - the type
SystemException - if a system exception occurred
int countByC_T(long companyId,
int type)
throws SystemException
companyId - the company IDtype - the type
SystemException - if a system exception occurred
int countByU1_U2(long userId1,
long userId2)
throws SystemException
userId1 - the user id1userId2 - the user id2
SystemException - if a system exception occurred
int countByU1_T(long userId1,
int type)
throws SystemException
userId1 - the user id1type - the type
SystemException - if a system exception occurred
int countByU2_T(long userId2,
int type)
throws SystemException
userId2 - the user id2type - the type
SystemException - if a system exception occurred
int countByU1_U2_T(long userId1,
long userId2,
int type)
throws SystemException
userId1 - the user id1userId2 - the user id2type - the type
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
SocialRelation remove(SocialRelation socialRelation)
throws SystemException
BasePersistence
remove in interface BasePersistence<SocialRelation>socialRelation - the model instance to remove
SystemException - if a system exception occurred
|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||