@ProviderType public interface SocialRelationPersistence extends BasePersistence<SocialRelation>, CTPersistence<SocialRelation>
Caching information and settings can be found in portal.properties
SocialRelationUtil
Modifier and Type | Method and Description |
---|---|
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_C(String uuid,
long companyId)
Returns the number of social relations where uuid = ? and companyId = ?.
|
int |
countByUuid(String uuid)
Returns the number of social relations where uuid = ?.
|
SocialRelation |
create(long relationId)
Creates a new social relation with the primary key.
|
SocialRelation |
fetchByC_T_First(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.
|
SocialRelation |
fetchByC_T_Last(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?.
|
SocialRelation |
fetchByCompanyId_First(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.
|
SocialRelation |
fetchByCompanyId_Last(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.
|
SocialRelation |
fetchByPrimaryKey(long relationId)
Returns the social relation with the primary key or returns
null if it could not be found. |
SocialRelation |
fetchByType_First(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.
|
SocialRelation |
fetchByType_Last(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.
|
SocialRelation |
fetchByU1_T_First(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.
|
SocialRelation |
fetchByU1_T_Last(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?.
|
SocialRelation |
fetchByU1_U2_First(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
|
SocialRelation |
fetchByU1_U2_Last(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
|
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 useFinderCache)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
SocialRelation |
fetchByU2_T_First(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.
|
SocialRelation |
fetchByU2_T_Last(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?.
|
SocialRelation |
fetchByUserId1_First(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.
|
SocialRelation |
fetchByUserId1_Last(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.
|
SocialRelation |
fetchByUserId2_First(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.
|
SocialRelation |
fetchByUserId2_Last(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.
|
SocialRelation |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
|
SocialRelation |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
|
SocialRelation |
fetchByUuid_First(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.
|
SocialRelation |
fetchByUuid_Last(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.
|
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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations.
|
List<SocialRelation> |
findAll(int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations.
|
SocialRelation |
findByC_T_First(long companyId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.
|
SocialRelation |
findByC_T_Last(long companyId,
int type,
OrderByComparator<SocialRelation> 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<SocialRelation> 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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ? and type = ?.
|
List<SocialRelation> |
findByC_T(long companyId,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where companyId = ? and type = ?.
|
SocialRelation |
findByCompanyId_First(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.
|
SocialRelation |
findByCompanyId_Last(long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.
|
SocialRelation[] |
findByCompanyId_PrevAndNext(long relationId,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where companyId = ?.
|
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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ?.
|
List<SocialRelation> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
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<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.
|
SocialRelation |
findByType_Last(int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.
|
SocialRelation[] |
findByType_PrevAndNext(long relationId,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where type = ?.
|
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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where type = ?.
|
List<SocialRelation> |
findByType(int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where type = ?.
|
SocialRelation |
findByU1_T_First(long userId1,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.
|
SocialRelation |
findByU1_T_Last(long userId1,
int type,
OrderByComparator<SocialRelation> 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<SocialRelation> 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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.
|
List<SocialRelation> |
findByU1_T(long userId1,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.
|
SocialRelation |
findByU1_U2_First(long userId1,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
|
SocialRelation |
findByU1_U2_Last(long userId1,
long userId2,
OrderByComparator<SocialRelation> 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<SocialRelation> 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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
|
List<SocialRelation> |
findByU1_U2(long userId1,
long userId2,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
|
SocialRelation |
findByU2_T_First(long userId2,
int type,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.
|
SocialRelation |
findByU2_T_Last(long userId2,
int type,
OrderByComparator<SocialRelation> 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<SocialRelation> 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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.
|
List<SocialRelation> |
findByU2_T(long userId2,
int type,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.
|
SocialRelation |
findByUserId1_First(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.
|
SocialRelation |
findByUserId1_Last(long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.
|
SocialRelation[] |
findByUserId1_PrevAndNext(long relationId,
long userId1,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.
|
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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ?.
|
List<SocialRelation> |
findByUserId1(long userId1,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId1 = ?.
|
SocialRelation |
findByUserId2_First(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.
|
SocialRelation |
findByUserId2_Last(long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.
|
SocialRelation[] |
findByUserId2_PrevAndNext(long relationId,
long userId2,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.
|
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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ?.
|
List<SocialRelation> |
findByUserId2(long userId2,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where userId2 = ?.
|
SocialRelation |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
|
SocialRelation |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
|
SocialRelation[] |
findByUuid_C_PrevAndNext(long relationId,
String uuid,
long companyId,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.
|
List<SocialRelation> |
findByUuid_C(String uuid,
long companyId)
Returns all the social relations where uuid = ? and companyId = ?.
|
List<SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the social relations where uuid = ? and companyId = ?.
|
List<SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
|
List<SocialRelation> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
|
SocialRelation |
findByUuid_First(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.
|
SocialRelation |
findByUuid_Last(String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.
|
SocialRelation[] |
findByUuid_PrevAndNext(long relationId,
String uuid,
OrderByComparator<SocialRelation> orderByComparator)
Returns the social relations before and after the current social relation in the ordered set where uuid = ?.
|
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<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ?.
|
List<SocialRelation> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<SocialRelation> orderByComparator,
boolean useFinderCache)
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.
|
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.
|
SocialRelation |
removeByU1_U2_T(long userId1,
long userId2,
int type)
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
|
void |
removeByU1_U2(long userId1,
long userId2)
Removes all the social relations where userId1 = ? and userId2 = ? from the database.
|
void |
removeByU2_T(long userId2,
int type)
Removes all the social relations where userId2 = ? and type = ? from the database.
|
void |
removeByUserId1(long userId1)
Removes all the social relations where userId1 = ? from the database.
|
void |
removeByUserId2(long userId2)
Removes all the social relations where userId2 = ? from the database.
|
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the social relations where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(String uuid)
Removes all the social relations where uuid = ? from the database.
|
SocialRelation |
updateImpl(SocialRelation socialRelation) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<SocialRelation> findByUuid(String uuid)
uuid
- the uuidList<SocialRelation> findByUuid(String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByUuid(String uuid)
uuid
- the uuidint countByUuid(String uuid)
uuid
- the uuidList<SocialRelation> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDList<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheSocialRelation findByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDList<SocialRelation> findByCompanyId(long companyId)
companyId
- the company IDList<SocialRelation> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDList<SocialRelation> findByUserId1(long userId1)
userId1
- the user id1List<SocialRelation> findByUserId1(long userId1, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
userId1
- the user id1start
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId1
- the user id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByUserId1(long userId1)
userId1
- the user id1int countByUserId1(long userId1)
userId1
- the user id1List<SocialRelation> findByUserId2(long userId2)
userId2
- the user id2List<SocialRelation> findByUserId2(long userId2, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
userId2
- the user id2start
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByUserId2(long userId2)
userId2
- the user id2int countByUserId2(long userId2)
userId2
- the user id2List<SocialRelation> findByType(int type)
type
- the typeList<SocialRelation> findByType(int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
type
- the typestart
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByType_First(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByType_First(int type, OrderByComparator<SocialRelation> orderByComparator)
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator)
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByType(int type)
type
- the typeint countByType(int type)
type
- the typeList<SocialRelation> findByC_T(long companyId, int type)
companyId
- the company IDtype
- the typeList<SocialRelation> findByC_T(long companyId, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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)List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByC_T(long companyId, int type)
companyId
- the company IDtype
- the typeint countByC_T(long companyId, int type)
companyId
- the company IDtype
- the typeList<SocialRelation> findByU1_U2(long userId1, long userId2)
userId1
- the user id1userId2
- the user id2List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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)List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByU1_U2(long userId1, long userId2)
userId1
- the user id1userId2
- the user id2int countByU1_U2(long userId1, long userId2)
userId1
- the user id1userId2
- the user id2List<SocialRelation> findByU1_T(long userId1, int type)
userId1
- the user id1type
- the typeList<SocialRelation> findByU1_T(long userId1, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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)List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByU1_T(long userId1, int type)
userId1
- the user id1type
- the typeint countByU1_T(long userId1, int type)
userId1
- the user id1type
- the typeList<SocialRelation> findByU2_T(long userId2, int type)
userId2
- the user id2type
- the typeList<SocialRelation> findByU2_T(long userId2, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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)List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cacheSocialRelation findByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social relation could not be foundSocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
relationId
- the primary key of the current social relationuserId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRelationException
- if a social relation with the primary key could not be foundvoid removeByU2_T(long userId2, int type)
userId2
- the user id2type
- the typeint countByU2_T(long userId2, int type)
userId2
- the user id2type
- the typeSocialRelation findByU1_U2_T(long userId1, long userId2, int type) throws NoSuchRelationException
NoSuchRelationException
if it could not be found.userId1
- the user id1userId2
- the user id2type
- the typeNoSuchRelationException
- if a matching social relation could not be foundSocialRelation fetchByU1_U2_T(long userId1, long userId2, int type)
null
if it could not be found. Uses the finder cache.userId1
- the user id1userId2
- the user id2type
- the typenull
if a matching social relation could not be foundSocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.userId1
- the user id1userId2
- the user id2type
- the typeuseFinderCache
- whether to use the finder cachenull
if a matching social relation could not be foundSocialRelation removeByU1_U2_T(long userId1, long userId2, int type) throws NoSuchRelationException
userId1
- the user id1userId2
- the user id2type
- the typeNoSuchRelationException
int countByU1_U2_T(long userId1, long userId2, int type)
userId1
- the user id1userId2
- the user id2type
- the typevoid 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 relationSocialRelation remove(long relationId) throws NoSuchRelationException
relationId
- the primary key of the social relationNoSuchRelationException
- if a social relation with the primary key could not be foundSocialRelation updateImpl(SocialRelation socialRelation)
SocialRelation findByPrimaryKey(long relationId) throws NoSuchRelationException
NoSuchRelationException
if it could not be found.relationId
- the primary key of the social relationNoSuchRelationException
- if a social relation with the primary key could not be foundSocialRelation fetchByPrimaryKey(long relationId)
null
if it could not be found.relationId
- the primary key of the social relationnull
if a social relation with the primary key could not be foundList<SocialRelation> findAll()
List<SocialRelation> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
start
- the lower bound of the range of social relationsend
- the upper bound of the range of social relations (not inclusive)List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl
.
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
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()