|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.social.service.persistence.SocialActivityLimitUtil
@ProviderType public class SocialActivityLimitUtil
The persistence utility for the social activity limit service. This utility wraps SocialActivityLimitPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
SocialActivityLimitPersistence
,
SocialActivityLimitPersistenceImpl
Constructor Summary | |
---|---|
SocialActivityLimitUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<SocialActivityLimit> socialActivityLimits)
Caches the social activity limits in the entity cache if it is enabled. |
static void |
cacheResult(SocialActivityLimit socialActivityLimit)
Caches the social activity limit in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(SocialActivityLimit socialActivityLimit)
|
static int |
countAll()
Returns the number of social activity limits. |
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of social activity limits where classNameId = ? and classPK = ?. |
static 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 = ?. |
static int |
countByGroupId(long groupId)
Returns the number of social activity limits where groupId = ?. |
static int |
countByUserId(long userId)
Returns the number of social activity limits where userId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SocialActivityLimit |
create(long activityLimitId)
Creates a new social activity limit with the primary key. |
static SocialActivityLimit |
fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. |
static SocialActivityLimit |
fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. |
static 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. |
static 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. |
static SocialActivityLimit |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where groupId = ?. |
static SocialActivityLimit |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where groupId = ?. |
static SocialActivityLimit |
fetchByPrimaryKey(long activityLimitId)
Returns the social activity limit with the primary key or returns null if it could not be found. |
static SocialActivityLimit |
fetchByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where userId = ?. |
static SocialActivityLimit |
fetchByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where userId = ?. |
static List<SocialActivityLimit> |
findAll()
Returns all the social activity limits. |
static List<SocialActivityLimit> |
findAll(int start,
int end)
Returns a range of all the social activity limits. |
static List<SocialActivityLimit> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity limits. |
static SocialActivityLimit |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. |
static SocialActivityLimit |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. |
static 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 = ?. |
static List<SocialActivityLimit> |
findByC_C(long classNameId,
long classPK)
Returns all the social activity limits where classNameId = ? and classPK = ?. |
static 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 = ?. |
static 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 = ?. |
static 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. |
static SocialActivityLimit |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where groupId = ?. |
static SocialActivityLimit |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where groupId = ?. |
static SocialActivityLimit[] |
findByGroupId_PrevAndNext(long activityLimitId,
long groupId,
OrderByComparator orderByComparator)
Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = ?. |
static List<SocialActivityLimit> |
findByGroupId(long groupId)
Returns all the social activity limits where groupId = ?. |
static List<SocialActivityLimit> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the social activity limits where groupId = ?. |
static List<SocialActivityLimit> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity limits where groupId = ?. |
static SocialActivityLimit |
findByPrimaryKey(long activityLimitId)
Returns the social activity limit with the primary key or throws a NoSuchActivityLimitException if it could not be found. |
static SocialActivityLimit |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first social activity limit in the ordered set where userId = ?. |
static SocialActivityLimit |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last social activity limit in the ordered set where userId = ?. |
static SocialActivityLimit[] |
findByUserId_PrevAndNext(long activityLimitId,
long userId,
OrderByComparator orderByComparator)
Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?. |
static List<SocialActivityLimit> |
findByUserId(long userId)
Returns all the social activity limits where userId = ?. |
static List<SocialActivityLimit> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the social activity limits where userId = ?. |
static List<SocialActivityLimit> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity limits where userId = ?. |
static List<SocialActivityLimit> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<SocialActivityLimit> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<SocialActivityLimit> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static SocialActivityLimitPersistence |
getPersistence()
|
static SocialActivityLimit |
remove(long activityLimitId)
Removes the social activity limit with the primary key from the database. |
static void |
removeAll()
Removes all the social activity limits from the database. |
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the social activity limits where classNameId = ? and classPK = ? from the database. |
static 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. |
static void |
removeByGroupId(long groupId)
Removes all the social activity limits where groupId = ? from the database. |
static void |
removeByUserId(long userId)
Removes all the social activity limits where userId = ? from the database. |
void |
setPersistence(SocialActivityLimitPersistence persistence)
Deprecated. As of 6.2.0 |
static SocialActivityLimit |
update(SocialActivityLimit socialActivityLimit)
|
static SocialActivityLimit |
update(SocialActivityLimit socialActivityLimit,
ServiceContext serviceContext)
|
static SocialActivityLimit |
updateImpl(SocialActivityLimit socialActivityLimit)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocialActivityLimitUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SocialActivityLimit socialActivityLimit)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SocialActivityLimit> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SocialActivityLimit update(SocialActivityLimit socialActivityLimit) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static SocialActivityLimit update(SocialActivityLimit socialActivityLimit, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<SocialActivityLimit> findByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<SocialActivityLimit> findByGroupId(long groupId, 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 SocialActivityLimitModelImpl
. 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.
groupId
- the group IDstart
- 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 occurredpublic static List<SocialActivityLimit> findByGroupId(long groupId, 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 SocialActivityLimitModelImpl
. 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.
groupId
- the group IDstart
- 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 occurredpublic static SocialActivityLimit findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
groupId
- the group IDorderByComparator
- 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 occurredpublic static SocialActivityLimit fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- 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 occurredpublic static SocialActivityLimit findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
groupId
- the group IDorderByComparator
- 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 occurredpublic static SocialActivityLimit fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- 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 occurredpublic static SocialActivityLimit[] findByGroupId_PrevAndNext(long activityLimitId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
activityLimitId
- the primary key of the current social activity limitgroupId
- the group IDorderByComparator
- 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 occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<SocialActivityLimit> findByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredpublic static List<SocialActivityLimit> findByUserId(long userId, 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 SocialActivityLimitModelImpl
. 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.
userId
- the user IDstart
- 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 occurredpublic static List<SocialActivityLimit> findByUserId(long userId, 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 SocialActivityLimitModelImpl
. 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.
userId
- the user IDstart
- 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 occurredpublic static SocialActivityLimit findByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
userId
- the user IDorderByComparator
- 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 occurredpublic static SocialActivityLimit fetchByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDorderByComparator
- 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 occurredpublic static SocialActivityLimit findByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
userId
- the user IDorderByComparator
- 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 occurredpublic static SocialActivityLimit fetchByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDorderByComparator
- 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 occurredpublic static SocialActivityLimit[] findByUserId_PrevAndNext(long activityLimitId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchActivityLimitException
activityLimitId
- the primary key of the current social activity limituserId
- the user IDorderByComparator
- 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 occurredpublic static void removeByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredpublic static int countByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredpublic static List<SocialActivityLimit> findByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static List<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. 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 SocialActivityLimitModelImpl
. 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.
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 occurredpublic static List<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. 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 SocialActivityLimitModelImpl
. 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.
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 occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit[] 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 occurredpublic static void removeByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static int countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit 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 occurredpublic static SocialActivityLimit 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
public static int 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 occurredpublic static void cacheResult(SocialActivityLimit socialActivityLimit)
socialActivityLimit
- the social activity limitpublic static void cacheResult(List<SocialActivityLimit> socialActivityLimits)
socialActivityLimits
- the social activity limitspublic static SocialActivityLimit create(long activityLimitId)
activityLimitId
- the primary key for the new social activity limit
public static 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 occurredpublic static SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit) throws SystemException
SystemException
public static 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 occurredpublic static SocialActivityLimit 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 occurredpublic static List<SocialActivityLimit> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<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. 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 SocialActivityLimitModelImpl
. 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.
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 occurredpublic static List<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. 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 SocialActivityLimitModelImpl
. 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.
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 occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static SocialActivityLimitPersistence getPersistence()
public void setPersistence(SocialActivityLimitPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |