|
Liferay 7.0-ce-b4 | |||||||||
| 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<SocialActivityLimit>
com.liferay.portlet.social.service.persistence.impl.SocialActivityLimitPersistenceImpl
@ProviderType public class SocialActivityLimitPersistenceImpl
The persistence implementation for the social activity limit service.
Caching information and settings can be found in portal.properties
SocialActivityLimitPersistence,
SocialActivityLimitUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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 | |
|---|---|
SocialActivityLimitPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the social activity limit persistence. |
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. |
protected void |
cacheUniqueFindersCache(SocialActivityLimitModelImpl socialActivityLimitModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all social activity limits. |
void |
clearCache(List<SocialActivityLimit> socialActivityLimits)
Clears the cache for a List instances of this model. |
void |
clearCache(SocialActivityLimit socialActivityLimit)
Clears the cache for the social activity limit. |
protected void |
clearUniqueFindersCache(SocialActivityLimitModelImpl socialActivityLimitModelImpl)
|
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 = ?. |
int |
countByGroupId(long groupId)
Returns the number of social activity limits where groupId = ?. |
int |
countByUserId(long userId)
Returns the number of social activity limits where userId = ?. |
SocialActivityLimit |
create(long activityLimitId)
Creates a new social activity limit with the primary key. |
void |
destroy()
|
SocialActivityLimit |
fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. |
SocialActivityLimit |
fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> 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 |
fetchByGroupId_First(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the first social activity limit in the ordered set where groupId = ?. |
SocialActivityLimit |
fetchByGroupId_Last(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the last social activity limit in the ordered set where groupId = ?. |
SocialActivityLimit |
fetchByPrimaryKey(long activityLimitId)
Returns the social activity limit with the primary key or returns null if it could not be found. |
SocialActivityLimit |
fetchByPrimaryKey(Serializable primaryKey)
Returns the social activity limit with the primary key or returns null if it could not be found. |
Map<Serializable,SocialActivityLimit> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
SocialActivityLimit |
fetchByUserId_First(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the first social activity limit in the ordered set where userId = ?. |
SocialActivityLimit |
fetchByUserId_Last(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the last social activity limit in the ordered set where userId = ?. |
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<SocialActivityLimit> orderByComparator)
Returns an ordered range of all the social activity limits. |
List<SocialActivityLimit> |
findAll(int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity limits. |
SocialActivityLimit |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. |
SocialActivityLimit |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> 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<SocialActivityLimit> 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<SocialActivityLimit> orderByComparator)
Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?. |
List<SocialActivityLimit> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
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 |
findByGroupId_First(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the first social activity limit in the ordered set where groupId = ?. |
SocialActivityLimit |
findByGroupId_Last(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the last social activity limit in the ordered set where groupId = ?. |
SocialActivityLimit[] |
findByGroupId_PrevAndNext(long activityLimitId,
long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = ?. |
List<SocialActivityLimit> |
findByGroupId(long groupId)
Returns all the social activity limits where groupId = ?. |
List<SocialActivityLimit> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the social activity limits where groupId = ?. |
List<SocialActivityLimit> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns an ordered range of all the social activity limits where groupId = ?. |
List<SocialActivityLimit> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity limits where groupId = ?. |
SocialActivityLimit |
findByPrimaryKey(long activityLimitId)
Returns the social activity limit with the primary key or throws a NoSuchActivityLimitException if it could not be found. |
SocialActivityLimit |
findByPrimaryKey(Serializable primaryKey)
Returns the social activity limit with the primary key or throws a NoSuchModelException if it could not be found. |
SocialActivityLimit |
findByUserId_First(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the first social activity limit in the ordered set where userId = ?. |
SocialActivityLimit |
findByUserId_Last(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the last social activity limit in the ordered set where userId = ?. |
SocialActivityLimit[] |
findByUserId_PrevAndNext(long activityLimitId,
long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?. |
List<SocialActivityLimit> |
findByUserId(long userId)
Returns all the social activity limits where userId = ?. |
List<SocialActivityLimit> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the social activity limits where userId = ?. |
List<SocialActivityLimit> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator)
Returns an ordered range of all the social activity limits where userId = ?. |
List<SocialActivityLimit> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the social activity limits where userId = ?. |
protected SocialActivityLimit |
getByC_C_PrevAndNext(Session session,
SocialActivityLimit socialActivityLimit,
long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean previous)
|
protected SocialActivityLimit |
getByGroupId_PrevAndNext(Session session,
SocialActivityLimit socialActivityLimit,
long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean previous)
|
protected SocialActivityLimit |
getByUserId_PrevAndNext(Session session,
SocialActivityLimit socialActivityLimit,
long userId,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
SocialActivityLimit |
remove(long activityLimitId)
Removes the social activity limit with the primary key from the database. |
SocialActivityLimit |
remove(Serializable primaryKey)
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. |
void |
removeByGroupId(long groupId)
Removes all the social activity limits where groupId = ? from the database. |
void |
removeByUserId(long userId)
Removes all the social activity limits where userId = ? from the database. |
protected SocialActivityLimit |
removeImpl(SocialActivityLimit socialActivityLimit)
Removes the model instance from the database. |
protected SocialActivityLimit |
toUnwrappedModel(SocialActivityLimit socialActivityLimit)
|
SocialActivityLimit |
updateImpl(SocialActivityLimit socialActivityLimit)
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, 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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, 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_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C
public static final FinderPath FINDER_PATH_COUNT_BY_C_C
public static final FinderPath FINDER_PATH_FETCH_BY_G_U_C_C_A_A
public static final FinderPath FINDER_PATH_COUNT_BY_G_U_C_C_A_A
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public SocialActivityLimitPersistenceImpl()
| Method Detail |
|---|
public List<SocialActivityLimit> findByGroupId(long groupId)
findByGroupId in interface SocialActivityLimitPersistencegroupId - the group ID
public List<SocialActivityLimit> findByGroupId(long groupId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findByGroupId in interface SocialActivityLimitPersistencegroupId - 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)
public List<SocialActivityLimit> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findByGroupId in interface SocialActivityLimitPersistencegroupId - 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)
public List<SocialActivityLimit> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
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.
findByGroupId in interface SocialActivityLimitPersistencegroupId - 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)retrieveFromCache - whether to retrieve from the finder cache
public SocialActivityLimit findByGroupId_First(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByGroupId_First in interface SocialActivityLimitPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityLimitException - if a matching social activity limit could not be found
public SocialActivityLimit fetchByGroupId_First(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
fetchByGroupId_First in interface SocialActivityLimitPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity limit could not be found
public SocialActivityLimit findByGroupId_Last(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByGroupId_Last in interface SocialActivityLimitPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityLimitException - if a matching social activity limit could not be found
public SocialActivityLimit fetchByGroupId_Last(long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
fetchByGroupId_Last in interface SocialActivityLimitPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity limit could not be found
public SocialActivityLimit[] findByGroupId_PrevAndNext(long activityLimitId,
long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByGroupId_PrevAndNext in interface SocialActivityLimitPersistenceactivityLimitId - 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
protected SocialActivityLimit getByGroupId_PrevAndNext(Session session,
SocialActivityLimit socialActivityLimit,
long groupId,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId in interface SocialActivityLimitPersistencegroupId - the group IDpublic int countByGroupId(long groupId)
countByGroupId in interface SocialActivityLimitPersistencegroupId - the group ID
public List<SocialActivityLimit> findByUserId(long userId)
findByUserId in interface SocialActivityLimitPersistenceuserId - the user ID
public List<SocialActivityLimit> findByUserId(long userId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findByUserId in interface SocialActivityLimitPersistenceuserId - 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)
public List<SocialActivityLimit> findByUserId(long userId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findByUserId in interface SocialActivityLimitPersistenceuserId - 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)
public List<SocialActivityLimit> findByUserId(long userId,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
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.
findByUserId in interface SocialActivityLimitPersistenceuserId - 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)retrieveFromCache - whether to retrieve from the finder cache
public SocialActivityLimit findByUserId_First(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByUserId_First in interface SocialActivityLimitPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityLimitException - if a matching social activity limit could not be found
public SocialActivityLimit fetchByUserId_First(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
fetchByUserId_First in interface SocialActivityLimitPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity limit could not be found
public SocialActivityLimit findByUserId_Last(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByUserId_Last in interface SocialActivityLimitPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchActivityLimitException - if a matching social activity limit could not be found
public SocialActivityLimit fetchByUserId_Last(long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
fetchByUserId_Last in interface SocialActivityLimitPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching social activity limit could not be found
public SocialActivityLimit[] findByUserId_PrevAndNext(long activityLimitId,
long userId,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByUserId_PrevAndNext in interface SocialActivityLimitPersistenceactivityLimitId - 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
protected SocialActivityLimit getByUserId_PrevAndNext(Session session,
SocialActivityLimit socialActivityLimit,
long userId,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean previous)
public void removeByUserId(long userId)
removeByUserId in interface SocialActivityLimitPersistenceuserId - the user IDpublic int countByUserId(long userId)
countByUserId in interface SocialActivityLimitPersistenceuserId - the user ID
public List<SocialActivityLimit> findByC_C(long classNameId,
long classPK)
findByC_C in interface SocialActivityLimitPersistenceclassNameId - the class name IDclassPK - the class p k
public List<SocialActivityLimit> findByC_C(long classNameId,
long classPK,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findByC_C in interface SocialActivityLimitPersistenceclassNameId - 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)
public List<SocialActivityLimit> findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findByC_C in interface SocialActivityLimitPersistenceclassNameId - 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)
public List<SocialActivityLimit> findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
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.
findByC_C in interface SocialActivityLimitPersistenceclassNameId - 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)retrieveFromCache - whether to retrieve from the finder cache
public SocialActivityLimit findByC_C_First(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByC_C_First in interface SocialActivityLimitPersistenceclassNameId - 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
public SocialActivityLimit fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
fetchByC_C_First in interface SocialActivityLimitPersistenceclassNameId - 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
public SocialActivityLimit findByC_C_Last(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByC_C_Last in interface SocialActivityLimitPersistenceclassNameId - 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
public SocialActivityLimit fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
fetchByC_C_Last in interface SocialActivityLimitPersistenceclassNameId - 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
public SocialActivityLimit[] findByC_C_PrevAndNext(long activityLimitId,
long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator)
throws NoSuchActivityLimitException
findByC_C_PrevAndNext in interface SocialActivityLimitPersistenceactivityLimitId - 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
protected SocialActivityLimit getByC_C_PrevAndNext(Session session,
SocialActivityLimit socialActivityLimit,
long classNameId,
long classPK,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean previous)
public void removeByC_C(long classNameId,
long classPK)
removeByC_C in interface SocialActivityLimitPersistenceclassNameId - the class name IDclassPK - the class p k
public int countByC_C(long classNameId,
long classPK)
countByC_C in interface SocialActivityLimitPersistenceclassNameId - the class name IDclassPK - the class p k
public SocialActivityLimit findByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
throws NoSuchActivityLimitException
NoSuchActivityLimitException if it could not be found.
findByG_U_C_C_A_A in interface SocialActivityLimitPersistencegroupId - 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
public SocialActivityLimit fetchByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
null if it could not be found. Uses the finder cache.
fetchByG_U_C_C_A_A in interface SocialActivityLimitPersistencegroupId - 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
public SocialActivityLimit fetchByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByG_U_C_C_A_A in interface SocialActivityLimitPersistencegroupId - the group IDuserId - the user IDclassNameId - the class name IDclassPK - the class p kactivityType - the activity typeactivityCounterName - the activity counter nameretrieveFromCache - whether to retrieve from the finder cache
null if a matching social activity limit could not be found
public SocialActivityLimit removeByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
throws NoSuchActivityLimitException
removeByG_U_C_C_A_A in interface SocialActivityLimitPersistencegroupId - the group IDuserId - the user IDclassNameId - the class name IDclassPK - the class p kactivityType - the activity typeactivityCounterName - the activity counter name
NoSuchActivityLimitException
public int countByG_U_C_C_A_A(long groupId,
long userId,
long classNameId,
long classPK,
int activityType,
String activityCounterName)
countByG_U_C_C_A_A in interface SocialActivityLimitPersistencegroupId - the group IDuserId - the user IDclassNameId - the class name IDclassPK - the class p kactivityType - the activity typeactivityCounterName - the activity counter name
public void cacheResult(SocialActivityLimit socialActivityLimit)
cacheResult in interface SocialActivityLimitPersistencesocialActivityLimit - the social activity limitpublic void cacheResult(List<SocialActivityLimit> socialActivityLimits)
cacheResult in interface SocialActivityLimitPersistencesocialActivityLimits - the social activity limitspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SocialActivityLimit>clearCache in class BasePersistenceImpl<SocialActivityLimit>public void clearCache(SocialActivityLimit socialActivityLimit)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SocialActivityLimit>clearCache in class BasePersistenceImpl<SocialActivityLimit>socialActivityLimit - the instance of this model to clear the cache forpublic void clearCache(List<SocialActivityLimit> socialActivityLimits)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<SocialActivityLimit>clearCache in class BasePersistenceImpl<SocialActivityLimit>socialActivityLimits - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(SocialActivityLimitModelImpl socialActivityLimitModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(SocialActivityLimitModelImpl socialActivityLimitModelImpl)
public SocialActivityLimit create(long activityLimitId)
create in interface SocialActivityLimitPersistenceactivityLimitId - the primary key for the new social activity limit
public SocialActivityLimit remove(long activityLimitId)
throws NoSuchActivityLimitException
remove in interface SocialActivityLimitPersistenceactivityLimitId - the primary key of the social activity limit
NoSuchActivityLimitException - if a social activity limit with the primary key could not be found
public SocialActivityLimit remove(Serializable primaryKey)
throws NoSuchActivityLimitException
remove in interface BasePersistence<SocialActivityLimit>remove in class BasePersistenceImpl<SocialActivityLimit>primaryKey - the primary key of the social activity limit
NoSuchActivityLimitException - if a social activity limit with the primary key could not be foundprotected SocialActivityLimit removeImpl(SocialActivityLimit socialActivityLimit)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<SocialActivityLimit>socialActivityLimit - the model instance to remove
public SocialActivityLimit updateImpl(SocialActivityLimit socialActivityLimit)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface SocialActivityLimitPersistenceupdateImpl in class BasePersistenceImpl<SocialActivityLimit>socialActivityLimit - the model instance to update
protected SocialActivityLimit toUnwrappedModel(SocialActivityLimit socialActivityLimit)
public SocialActivityLimit findByPrimaryKey(Serializable primaryKey)
throws NoSuchActivityLimitException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<SocialActivityLimit>findByPrimaryKey in class BasePersistenceImpl<SocialActivityLimit>primaryKey - the primary key of the social activity limit
NoSuchActivityLimitException - if a social activity limit with the primary key could not be found
public SocialActivityLimit findByPrimaryKey(long activityLimitId)
throws NoSuchActivityLimitException
NoSuchActivityLimitException if it could not be found.
findByPrimaryKey in interface SocialActivityLimitPersistenceactivityLimitId - the primary key of the social activity limit
NoSuchActivityLimitException - if a social activity limit with the primary key could not be foundpublic SocialActivityLimit fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<SocialActivityLimit>fetchByPrimaryKey in class BasePersistenceImpl<SocialActivityLimit>primaryKey - the primary key of the social activity limit
null if a social activity limit with the primary key could not be foundpublic SocialActivityLimit fetchByPrimaryKey(long activityLimitId)
null if it could not be found.
fetchByPrimaryKey in interface SocialActivityLimitPersistenceactivityLimitId - the primary key of the social activity limit
null if a social activity limit with the primary key could not be foundpublic Map<Serializable,SocialActivityLimit> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<SocialActivityLimit>fetchByPrimaryKeys in interface SocialActivityLimitPersistencefetchByPrimaryKeys in class BasePersistenceImpl<SocialActivityLimit>public List<SocialActivityLimit> findAll()
findAll in interface SocialActivityLimitPersistence
public List<SocialActivityLimit> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findAll in interface SocialActivityLimitPersistencestart - the lower bound of the range of social activity limitsend - the upper bound of the range of social activity limits (not inclusive)
public List<SocialActivityLimit> findAll(int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent 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.
findAll in interface SocialActivityLimitPersistencestart - 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)
public List<SocialActivityLimit> findAll(int start,
int end,
OrderByComparator<SocialActivityLimit> orderByComparator,
boolean retrieveFromCache)
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.
findAll in interface SocialActivityLimitPersistencestart - 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)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface SocialActivityLimitPersistencepublic int countAll()
countAll in interface SocialActivityLimitPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<SocialActivityLimit>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||