|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocialActivityLimitPersistence
The persistence interface for the social activity limit service.
Caching information and settings can be found in portal.properties
SocialActivityLimitPersistenceImpl
,
SocialActivityLimitUtil
Method Summary | |
---|---|
void |
cacheResult(List<SocialActivityLimit> socialActivityLimits)
Caches the social activity limits in the entity cache if it is enabled. |
void |
cacheResult(SocialActivityLimit socialActivityLimit)
Caches the social activity limit in the entity cache if it is enabled. |
int |
countAll()
Returns the number of social activity limits. |
int |
countByC_C(long classNameId,
long classPK)
Returns the number of social activity limits where classNameId = ? and classPK = ?. |
int |
countByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?. |
SocialActivityLimit |
create(long activityLimitId)
Creates a new social activity limit with the primary key. |
SocialActivityLimit |
fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. |
SocialActivityLimit |
fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. |
SocialActivityLimit |
fetchByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns null if it could not be found. |
SocialActivityLimit |
fetchByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName,
boolean retrieveFromCache)
Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns null if it could not be found, optionally using the finder cache. |
SocialActivityLimit |
fetchByPrimaryKey(long activityLimitId)
Returns the social activity limit with the primary key or returns null if it could not be found. |
List<SocialActivityLimit> |
findAll()
Returns all the social activity limits. |
List<SocialActivityLimit> |
findAll(int start,
int end)
Returns a range of all the social activity limits. |
List<SocialActivityLimit> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity limits. |
SocialActivityLimit |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. |
SocialActivityLimit |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. |
SocialActivityLimit[] |
findByC_C_PrevAndNext(long activityLimitId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?. |
List<SocialActivityLimit> |
findByC_C(long classNameId,
long classPK)
Returns all the social activity limits where classNameId = ? and classPK = ?. |
List<SocialActivityLimit> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the social activity limits where classNameId = ? and classPK = ?. |
List<SocialActivityLimit> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?. |
SocialActivityLimit |
findByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or throws a NoSuchActivityLimitException if it could not be found. |
SocialActivityLimit |
findByPrimaryKey(long activityLimitId)
Returns the social activity limit with the primary key or throws a NoSuchActivityLimitException if it could not be found. |
SocialActivityLimit |
remove(long activityLimitId)
Removes the social activity limit with the primary key from the database. |
void |
removeAll()
Removes all the social activity limits from the database. |
void |
removeByC_C(long classNameId,
long classPK)
Removes all the social activity limits where classNameId = ? and classPK = ? from the database. |
SocialActivityLimit |
removeByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
Removes the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? from the database. |
SocialActivityLimit |
updateImpl(SocialActivityLimit socialActivityLimit,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(SocialActivityLimit socialActivityLimit)
socialActivityLimit
- the social activity limitvoid cacheResult(List<SocialActivityLimit> socialActivityLimits)
socialActivityLimits
- the social activity limitsSocialActivityLimit create(long activityLimitId)
activityLimitId
- the primary key for the new social activity limit
SocialActivityLimit remove(long activityLimitId) throws SystemException, NoSuchActivityLimitException
activityLimitId
- the primary key of the social activity limit
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
SystemException
- if a system exception occurredSocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit, boolean merge) throws SystemException
SystemException
SocialActivityLimit findByPrimaryKey(long activityLimitId) throws SystemException, NoSuchActivityLimitException
NoSuchActivityLimitException
if it could not be found.
activityLimitId
- the primary key of the social activity limit
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
SystemException
- if a system exception occurredSocialActivityLimit fetchByPrimaryKey(long activityLimitId) throws SystemException
null
if it could not be found.
activityLimitId
- the primary key of the social activity limit
null
if a social activity limit with the primary key could not be found
SystemException
- if a system exception occurredList<SocialActivityLimit> findByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredList<SocialActivityLimit> findByC_C(long classNameId, long classPK, 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.
classNameId
- the class name IDclassPK
- the class p kstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)
SystemException
- if a system exception occurredList<SocialActivityLimit> findByC_C(long classNameId, long classPK, 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.
classNameId
- the class name IDclassPK
- the class p kstart
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredSocialActivityLimit findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivityLimitException
- if a matching social activity limit could not be found
SystemException
- if a system exception occurredSocialActivityLimit fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity limit could not be found
SystemException
- if a system exception occurredSocialActivityLimit findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivityLimitException
- if a matching social activity limit could not be found
SystemException
- if a system exception occurredSocialActivityLimit fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity limit could not be found
SystemException
- if a system exception occurredSocialActivityLimit[] findByC_C_PrevAndNext(long activityLimitId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
activityLimitId
- the primary key of the current social activity limitclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivityLimitException
- if a social activity limit with the primary key could not be found
SystemException
- if a system exception occurredSocialActivityLimit findByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) throws SystemException, NoSuchActivityLimitException
NoSuchActivityLimitException
if it could not be found.
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class p kactivityType
- the activity typeactivityCounterName
- the activity counter name
NoSuchActivityLimitException
- if a matching social activity limit could not be found
SystemException
- if a system exception occurredSocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class p kactivityType
- the activity typeactivityCounterName
- the activity counter name
null
if a matching social activity limit could not be found
SystemException
- if a system exception occurredSocialActivityLimit fetchByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class p kactivityType
- the activity typeactivityCounterName
- the activity counter nameretrieveFromCache
- whether to use the finder cache
null
if a matching social activity limit could not be found
SystemException
- if a system exception occurredList<SocialActivityLimit> findAll() throws SystemException
SystemException
- if a system exception occurredList<SocialActivityLimit> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)
SystemException
- if a system exception occurredList<SocialActivityLimit> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
start
- the lower bound of the range of social activity limitsend
- the upper bound of the range of social activity limits (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredvoid removeByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredSocialActivityLimit removeByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) throws SystemException, NoSuchActivityLimitException
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class p kactivityType
- the activity typeactivityCounterName
- the activity counter name
SystemException
- if a system exception occurred
NoSuchActivityLimitException
void removeAll() throws SystemException
SystemException
- if a system exception occurredint countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredint countByG_U_C_C_A_A(long groupId, long userId, long classNameId, long classPK, int activityType, String activityCounterName) throws SystemException
groupId
- the group IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class p kactivityType
- the activity typeactivityCounterName
- the activity counter name
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |