|
Liferay 6.2.0-ce-m5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialRelation>
com.liferay.portlet.social.service.persistence.SocialRelationPersistenceImpl
public class SocialRelationPersistenceImpl
The persistence implementation for the social relation service.
Caching information and settings can be found in portal.properties
SocialRelationPersistence,
SocialRelationUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
SocialRelationPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the social relation persistence. |
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. |
protected void |
cacheUniqueFindersCache(SocialRelation socialRelation)
|
void |
clearCache()
Clears the cache for all social relations. |
void |
clearCache(List<SocialRelation> socialRelations)
Clears the cache for a List instances of this model. |
void |
clearCache(SocialRelation socialRelation)
Clears the cache for the social relation. |
protected void |
clearUniqueFindersCache(SocialRelation socialRelation)
|
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. |
void |
destroy()
|
SocialRelation |
fetchByC_T_First(long companyId,
int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?. |
SocialRelation |
fetchByC_T_Last(long companyId,
int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?. |
SocialRelation |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where companyId = ?. |
SocialRelation |
fetchByCompanyId_Last(long companyId,
OrderByComparator 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 |
fetchByPrimaryKey(Serializable primaryKey)
Returns the social relation with the primary key or returns null if it could not be found. |
SocialRelation |
fetchByType_First(int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where type = ?. |
SocialRelation |
fetchByType_Last(int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where type = ?. |
SocialRelation |
fetchByU1_T_First(long userId1,
int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?. |
SocialRelation |
fetchByU1_T_Last(long userId1,
int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?. |
SocialRelation |
fetchByU1_U2_First(long userId1,
long userId2,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?. |
SocialRelation |
fetchByU1_U2_Last(long userId1,
long userId2,
OrderByComparator 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 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. |
SocialRelation |
fetchByU2_T_First(long userId2,
int type,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?. |
SocialRelation |
fetchByU2_T_Last(long userId2,
int type,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?. |
SocialRelation |
fetchByUserId1_First(long userId1,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?. |
SocialRelation |
fetchByUserId1_Last(long userId1,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?. |
SocialRelation |
fetchByUserId2_First(long userId2,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?. |
SocialRelation |
fetchByUserId2_Last(long userId2,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?. |
SocialRelation |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?. |
SocialRelation |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?. |
SocialRelation |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where uuid = ?. |
SocialRelation |
fetchByUuid_Last(String uuid,
OrderByComparator 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 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 |
findByPrimaryKey(Serializable primaryKey)
Returns the social relation with the primary key or throws a NoSuchModelException 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_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?. |
SocialRelation |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator 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 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 orderByComparator)
Returns an ordered range of all the social relations where uuid = ? and companyId = ?. |
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 = ?. |
protected Set<String> |
getBadColumnNames()
|
protected SocialRelation |
getByC_T_PrevAndNext(Session session,
SocialRelation socialRelation,
long companyId,
int type,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByCompanyId_PrevAndNext(Session session,
SocialRelation socialRelation,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByType_PrevAndNext(Session session,
SocialRelation socialRelation,
int type,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByU1_T_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId1,
int type,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByU1_U2_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId1,
long userId2,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByU2_T_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId2,
int type,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByUserId1_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId1,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByUserId2_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId2,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByUuid_C_PrevAndNext(Session session,
SocialRelation socialRelation,
String uuid,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialRelation |
getByUuid_PrevAndNext(Session session,
SocialRelation socialRelation,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
SocialRelation |
remove(long relationId)
Removes the social relation with the primary key from the database. |
SocialRelation |
remove(Serializable primaryKey)
Removes the social relation with the primary key from the database. |
void |
removeAll()
Removes all the social relations from the database. |
void |
removeByC_T(long companyId,
int type)
Removes all the social relations where companyId = ? and type = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the social relations where companyId = ? from the database. |
void |
removeByType(int type)
Removes all the social relations where type = ? from the database. |
void |
removeByU1_T(long userId1,
int type)
Removes all the social relations where userId1 = ? and type = ? from the database. |
SocialRelation |
removeByU1_U2_T(long userId1,
long userId2,
int type)
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database. |
void |
removeByU1_U2(long userId1,
long userId2)
Removes all the social relations where userId1 = ? and userId2 = ? from the database. |
void |
removeByU2_T(long userId2,
int type)
Removes all the social relations where userId2 = ? and type = ? from the database. |
void |
removeByUserId1(long userId1)
Removes all the social relations where userId1 = ? from the database. |
void |
removeByUserId2(long userId2)
Removes all the social relations where userId2 = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the social relations where uuid = ? and companyId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the social relations where uuid = ? from the database. |
protected SocialRelation |
removeImpl(SocialRelation socialRelation)
Removes the model instance from the database. |
protected SocialRelation |
toUnwrappedModel(SocialRelation socialRelation)
|
SocialRelation |
updateImpl(SocialRelation socialRelation)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1
public static final FinderPath FINDER_PATH_COUNT_BY_USERID1
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2
public static final FinderPath FINDER_PATH_COUNT_BY_USERID2
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
public static final FinderPath FINDER_PATH_COUNT_BY_TYPE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T
public static final FinderPath FINDER_PATH_COUNT_BY_C_T
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2
public static final FinderPath FINDER_PATH_COUNT_BY_U1_U2
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T
public static final FinderPath FINDER_PATH_COUNT_BY_U1_T
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T
public static final FinderPath FINDER_PATH_COUNT_BY_U2_T
public static final FinderPath FINDER_PATH_FETCH_BY_U1_U2_T
public static final FinderPath FINDER_PATH_COUNT_BY_U1_U2_T
| Constructor Detail |
|---|
public SocialRelationPersistenceImpl()
| Method Detail |
|---|
public List<SocialRelation> findByUuid(String uuid)
throws SystemException
findByUuid in interface SocialRelationPersistenceuuid - the uuid
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface SocialRelationPersistenceuuid - 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
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface SocialRelationPersistenceuuid - the uuidstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByUuid_First(String uuid,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUuid_First in interface SocialRelationPersistenceuuid - 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
public SocialRelation fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
throws SystemException
fetchByUuid_First in interface SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUuid_Last in interface SocialRelationPersistenceuuid - 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
public SocialRelation fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
throws SystemException
fetchByUuid_Last in interface SocialRelationPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByUuid_PrevAndNext(long relationId,
String uuid,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUuid_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByUuid_PrevAndNext(Session session,
SocialRelation socialRelation,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
public void removeByUuid(String uuid)
throws SystemException
removeByUuid in interface SocialRelationPersistenceuuid - the uuid
SystemException - if a system exception occurred
public int countByUuid(String uuid)
throws SystemException
countByUuid in interface SocialRelationPersistenceuuid - the uuid
SystemException - if a system exception occurred
public List<SocialRelation> findByUuid_C(String uuid,
long companyId)
throws SystemException
findByUuid_C in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company ID
SystemException - if a system exception occurred
public List<SocialRelation> findByUuid_C(String uuid,
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
public List<SocialRelation> findByUuid_C(String uuid,
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUuid_C_First in interface SocialRelationPersistenceuuid - the uuidcompanyId - 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
public SocialRelation fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
throws SystemException
fetchByUuid_C_First in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUuid_C_Last in interface SocialRelationPersistenceuuid - the uuidcompanyId - 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
public SocialRelation fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
throws SystemException
fetchByUuid_C_Last in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByUuid_C_PrevAndNext(long relationId,
String uuid,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUuid_C_PrevAndNext in interface SocialRelationPersistencerelationId - 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 found
SystemException - if a system exception occurred
protected SocialRelation getByUuid_C_PrevAndNext(Session session,
SocialRelation socialRelation,
String uuid,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByUuid_C(String uuid,
long companyId)
throws SystemException
removeByUuid_C in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company ID
SystemException - if a system exception occurred
public int countByUuid_C(String uuid,
long companyId)
throws SystemException
countByUuid_C in interface SocialRelationPersistenceuuid - the uuidcompanyId - the company ID
SystemException - if a system exception occurred
public List<SocialRelation> findByCompanyId(long companyId)
throws SystemException
findByCompanyId in interface SocialRelationPersistencecompanyId - the company ID
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface SocialRelationPersistencecompanyId - 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
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface SocialRelationPersistencecompanyId - the company IDstart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByCompanyId_First in interface SocialRelationPersistencecompanyId - 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
public SocialRelation fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws SystemException
fetchByCompanyId_First in interface SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByCompanyId_Last in interface SocialRelationPersistencecompanyId - 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
public SocialRelation fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws SystemException
fetchByCompanyId_Last in interface SocialRelationPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByCompanyId_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByCompanyId_PrevAndNext(Session session,
SocialRelation socialRelation,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
throws SystemException
removeByCompanyId in interface SocialRelationPersistencecompanyId - the company ID
SystemException - if a system exception occurred
public int countByCompanyId(long companyId)
throws SystemException
countByCompanyId in interface SocialRelationPersistencecompanyId - the company ID
SystemException - if a system exception occurred
public List<SocialRelation> findByUserId1(long userId1)
throws SystemException
findByUserId1 in interface SocialRelationPersistenceuserId1 - the user id1
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUserId1 in interface SocialRelationPersistenceuserId1 - 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
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUserId1 in interface SocialRelationPersistenceuserId1 - the user id1start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByUserId1_First(long userId1,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUserId1_First in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation fetchByUserId1_First(long userId1,
OrderByComparator orderByComparator)
throws SystemException
fetchByUserId1_First in interface SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByUserId1_Last(long userId1,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUserId1_Last in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation fetchByUserId1_Last(long userId1,
OrderByComparator orderByComparator)
throws SystemException
fetchByUserId1_Last in interface SocialRelationPersistenceuserId1 - the user id1orderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByUserId1_PrevAndNext(long relationId,
long userId1,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUserId1_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByUserId1_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId1,
OrderByComparator orderByComparator,
boolean previous)
public void removeByUserId1(long userId1)
throws SystemException
removeByUserId1 in interface SocialRelationPersistenceuserId1 - the user id1
SystemException - if a system exception occurred
public int countByUserId1(long userId1)
throws SystemException
countByUserId1 in interface SocialRelationPersistenceuserId1 - the user id1
SystemException - if a system exception occurred
public List<SocialRelation> findByUserId2(long userId2)
throws SystemException
findByUserId2 in interface SocialRelationPersistenceuserId2 - the user id2
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUserId2 in interface SocialRelationPersistenceuserId2 - 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
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUserId2 in interface SocialRelationPersistenceuserId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByUserId2_First(long userId2,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUserId2_First in interface SocialRelationPersistenceuserId2 - 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
public SocialRelation fetchByUserId2_First(long userId2,
OrderByComparator orderByComparator)
throws SystemException
fetchByUserId2_First in interface SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByUserId2_Last(long userId2,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUserId2_Last in interface SocialRelationPersistenceuserId2 - 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
public SocialRelation fetchByUserId2_Last(long userId2,
OrderByComparator orderByComparator)
throws SystemException
fetchByUserId2_Last in interface SocialRelationPersistenceuserId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByUserId2_PrevAndNext(long relationId,
long userId2,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByUserId2_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByUserId2_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId2,
OrderByComparator orderByComparator,
boolean previous)
public void removeByUserId2(long userId2)
throws SystemException
removeByUserId2 in interface SocialRelationPersistenceuserId2 - the user id2
SystemException - if a system exception occurred
public int countByUserId2(long userId2)
throws SystemException
countByUserId2 in interface SocialRelationPersistenceuserId2 - the user id2
SystemException - if a system exception occurred
public List<SocialRelation> findByType(int type)
throws SystemException
findByType in interface SocialRelationPersistencetype - the type
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByType in interface SocialRelationPersistencetype - 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
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByType in interface SocialRelationPersistencetype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByType_First(int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByType_First in interface SocialRelationPersistencetype - 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
public SocialRelation fetchByType_First(int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByType_First in interface SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByType_Last(int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByType_Last in interface SocialRelationPersistencetype - 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
public SocialRelation fetchByType_Last(int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByType_Last in interface SocialRelationPersistencetype - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByType_PrevAndNext(long relationId,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByType_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByType_PrevAndNext(Session session,
SocialRelation socialRelation,
int type,
OrderByComparator orderByComparator,
boolean previous)
public void removeByType(int type)
throws SystemException
removeByType in interface SocialRelationPersistencetype - the type
SystemException - if a system exception occurred
public int countByType(int type)
throws SystemException
countByType in interface SocialRelationPersistencetype - the type
SystemException - if a system exception occurred
public List<SocialRelation> findByC_T(long companyId,
int type)
throws SystemException
findByC_T in interface SocialRelationPersistencecompanyId - the company IDtype - the type
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_T in interface SocialRelationPersistencecompanyId - the company IDtype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_T in interface SocialRelationPersistencecompanyId - the company IDtype - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByC_T_First(long companyId,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByC_T_First in interface SocialRelationPersistencecompanyId - 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
public SocialRelation fetchByC_T_First(long companyId,
int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByC_T_First in interface SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByC_T_Last(long companyId,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByC_T_Last in interface SocialRelationPersistencecompanyId - 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
public SocialRelation fetchByC_T_Last(long companyId,
int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByC_T_Last in interface SocialRelationPersistencecompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByC_T_PrevAndNext(long relationId,
long companyId,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByC_T_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByC_T_PrevAndNext(Session session,
SocialRelation socialRelation,
long companyId,
int type,
OrderByComparator orderByComparator,
boolean previous)
public void removeByC_T(long companyId,
int type)
throws SystemException
removeByC_T in interface SocialRelationPersistencecompanyId - the company IDtype - the type
SystemException - if a system exception occurred
public int countByC_T(long companyId,
int type)
throws SystemException
countByC_T in interface SocialRelationPersistencecompanyId - the company IDtype - the type
SystemException - if a system exception occurred
public List<SocialRelation> findByU1_U2(long userId1,
long userId2)
throws SystemException
findByU1_U2 in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByU1_U2 in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByU1_U2 in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2start - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByU1_U2_First(long userId1,
long userId2,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU1_U2_First in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation fetchByU1_U2_First(long userId1,
long userId2,
OrderByComparator orderByComparator)
throws SystemException
fetchByU1_U2_First in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByU1_U2_Last(long userId1,
long userId2,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU1_U2_Last in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation fetchByU1_U2_Last(long userId1,
long userId2,
OrderByComparator orderByComparator)
throws SystemException
fetchByU1_U2_Last in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2orderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByU1_U2_PrevAndNext(long relationId,
long userId1,
long userId2,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU1_U2_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByU1_U2_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId1,
long userId2,
OrderByComparator orderByComparator,
boolean previous)
public void removeByU1_U2(long userId1,
long userId2)
throws SystemException
removeByU1_U2 in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2
SystemException - if a system exception occurred
public int countByU1_U2(long userId1,
long userId2)
throws SystemException
countByU1_U2 in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2
SystemException - if a system exception occurred
public List<SocialRelation> findByU1_T(long userId1,
int type)
throws SystemException
findByU1_T in interface SocialRelationPersistenceuserId1 - the user id1type - the type
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByU1_T in interface SocialRelationPersistenceuserId1 - the user id1type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByU1_T in interface SocialRelationPersistenceuserId1 - the user id1type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByU1_T_First(long userId1,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU1_T_First in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation fetchByU1_T_First(long userId1,
int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByU1_T_First in interface SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByU1_T_Last(long userId1,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU1_T_Last in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation fetchByU1_T_Last(long userId1,
int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByU1_T_Last in interface SocialRelationPersistenceuserId1 - the user id1type - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByU1_T_PrevAndNext(long relationId,
long userId1,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU1_T_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByU1_T_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId1,
int type,
OrderByComparator orderByComparator,
boolean previous)
public void removeByU1_T(long userId1,
int type)
throws SystemException
removeByU1_T in interface SocialRelationPersistenceuserId1 - the user id1type - the type
SystemException - if a system exception occurred
public int countByU1_T(long userId1,
int type)
throws SystemException
countByU1_T in interface SocialRelationPersistenceuserId1 - the user id1type - the type
SystemException - if a system exception occurred
public List<SocialRelation> findByU2_T(long userId2,
int type)
throws SystemException
findByU2_T in interface SocialRelationPersistenceuserId2 - the user id2type - the type
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByU2_T in interface SocialRelationPersistenceuserId2 - the user id2type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)
SystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByU2_T in interface SocialRelationPersistenceuserId2 - the user id2type - the typestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SocialRelation findByU2_T_First(long userId2,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU2_T_First in interface SocialRelationPersistenceuserId2 - 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
public SocialRelation fetchByU2_T_First(long userId2,
int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByU2_T_First in interface SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation findByU2_T_Last(long userId2,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU2_T_Last in interface SocialRelationPersistenceuserId2 - 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
public SocialRelation fetchByU2_T_Last(long userId2,
int type,
OrderByComparator orderByComparator)
throws SystemException
fetchByU2_T_Last in interface SocialRelationPersistenceuserId2 - the user id2type - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation[] findByU2_T_PrevAndNext(long relationId,
long userId2,
int type,
OrderByComparator orderByComparator)
throws NoSuchRelationException,
SystemException
findByU2_T_PrevAndNext in interface SocialRelationPersistencerelationId - 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
protected SocialRelation getByU2_T_PrevAndNext(Session session,
SocialRelation socialRelation,
long userId2,
int type,
OrderByComparator orderByComparator,
boolean previous)
public void removeByU2_T(long userId2,
int type)
throws SystemException
removeByU2_T in interface SocialRelationPersistenceuserId2 - the user id2type - the type
SystemException - if a system exception occurred
public int countByU2_T(long userId2,
int type)
throws SystemException
countByU2_T in interface SocialRelationPersistenceuserId2 - the user id2type - the type
SystemException - if a system exception occurred
public SocialRelation findByU1_U2_T(long userId1,
long userId2,
int type)
throws NoSuchRelationException,
SystemException
NoSuchRelationException if it could not be found.
findByU1_U2_T in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred
public SocialRelation fetchByU1_U2_T(long userId1,
long userId2,
int type)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByU1_U2_T in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
null if a matching social relation could not be found
SystemException - if a system exception occurred
public 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.
fetchByU1_U2_T in interface SocialRelationPersistenceuserId1 - 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
public SocialRelation removeByU1_U2_T(long userId1,
long userId2,
int type)
throws NoSuchRelationException,
SystemException
removeByU1_U2_T in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
SystemException - if a system exception occurred
NoSuchRelationException
public int countByU1_U2_T(long userId1,
long userId2,
int type)
throws SystemException
countByU1_U2_T in interface SocialRelationPersistenceuserId1 - the user id1userId2 - the user id2type - the type
SystemException - if a system exception occurredpublic void cacheResult(SocialRelation socialRelation)
cacheResult in interface SocialRelationPersistencesocialRelation - the social relationpublic void cacheResult(List<SocialRelation> socialRelations)
cacheResult in interface SocialRelationPersistencesocialRelations - the social relationspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SocialRelation>clearCache in class BasePersistenceImpl<SocialRelation>public void clearCache(SocialRelation socialRelation)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SocialRelation>clearCache in class BasePersistenceImpl<SocialRelation>socialRelation - the instance of this model to clear the cache forpublic void clearCache(List<SocialRelation> socialRelations)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<SocialRelation>clearCache in class BasePersistenceImpl<SocialRelation>socialRelations - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(SocialRelation socialRelation)
protected void clearUniqueFindersCache(SocialRelation socialRelation)
public SocialRelation create(long relationId)
create in interface SocialRelationPersistencerelationId - the primary key for the new social relation
public SocialRelation remove(long relationId)
throws NoSuchRelationException,
SystemException
remove in interface SocialRelationPersistencerelationId - 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
public SocialRelation remove(Serializable primaryKey)
throws NoSuchRelationException,
SystemException
remove in interface BasePersistence<SocialRelation>remove in class BasePersistenceImpl<SocialRelation>primaryKey - 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
protected SocialRelation removeImpl(SocialRelation socialRelation)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<SocialRelation>socialRelation - the model instance to remove
SystemException - if a system exception occurred
public SocialRelation updateImpl(SocialRelation socialRelation)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface SocialRelationPersistenceupdateImpl in class BasePersistenceImpl<SocialRelation>socialRelation - the model instance to update
SystemException - if a system exception occurredprotected SocialRelation toUnwrappedModel(SocialRelation socialRelation)
public SocialRelation findByPrimaryKey(Serializable primaryKey)
throws NoSuchRelationException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<SocialRelation>findByPrimaryKey in class BasePersistenceImpl<SocialRelation>primaryKey - 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
public SocialRelation findByPrimaryKey(long relationId)
throws NoSuchRelationException,
SystemException
NoSuchRelationException if it could not be found.
findByPrimaryKey in interface SocialRelationPersistencerelationId - 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
public SocialRelation fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<SocialRelation>fetchByPrimaryKey in class BasePersistenceImpl<SocialRelation>primaryKey - 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
public SocialRelation fetchByPrimaryKey(long relationId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface SocialRelationPersistencerelationId - 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
public List<SocialRelation> findAll()
throws SystemException
findAll in interface SocialRelationPersistenceSystemException - if a system exception occurred
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface SocialRelationPersistencestart - 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
public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface SocialRelationPersistencestart - the lower bound of the range of social relationsend - the upper bound of the range of social relations (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface SocialRelationPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface SocialRelationPersistenceSystemException - if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames in class BasePersistenceImpl<SocialRelation>public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-m5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||