Interface SocialActivityCounterPersistence
- All Superinterfaces:
BasePersistence<SocialActivityCounter>
,CTPersistence<SocialActivityCounter>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(SocialActivityCounter socialActivityCounter) Caches the social activity counter in the entity cache if it is enabled.void
cacheResult
(List<SocialActivityCounter> socialActivityCounters) Caches the social activity counters in the entity cache if it is enabled.int
countAll()
Returns the number of social activity counters.int
countByC_C
(long classNameId, long classPK) Returns the number of social activity counters where classNameId = ? and classPK = ?.int
countByG_C_C_N_O_E
(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?.int
countByG_C_C_N_O_S
(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?.int
countByG_C_C_O
(long groupId, long classNameId, long classPK, int ownerType) Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.int
countByGroupId
(long groupId) Returns the number of social activity counters where groupId = ?.create
(long activityCounterId) Creates a new social activity counter with the primary key.fetchByC_C_First
(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.fetchByC_C_Last
(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.fetchByG_C_C_N_O_E
(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returnsnull
if it could not be found.fetchByG_C_C_N_O_E
(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod, boolean useFinderCache) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByG_C_C_N_O_S
(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returnsnull
if it could not be found.fetchByG_C_C_N_O_S
(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod, boolean useFinderCache) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByG_C_C_O_First
(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.fetchByG_C_C_O_Last
(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.fetchByGroupId_First
(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where groupId = ?.fetchByPrimaryKey
(long activityCounterId) Returns the social activity counter with the primary key or returnsnull
if it could not be found.findAll()
Returns all the social activity counters.findAll
(int start, int end) Returns a range of all the social activity counters.findAll
(int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters.findAll
(int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters.findByC_C
(long classNameId, long classPK) Returns all the social activity counters where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end) Returns a range of all the social activity counters where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?.findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?.findByC_C_First
(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.findByC_C_Last
(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.findByC_C_PrevAndNext
(long activityCounterId, long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?.findByG_C_C_N_O_E
(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or throws aNoSuchActivityCounterException
if it could not be found.findByG_C_C_N_O_S
(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or throws aNoSuchActivityCounterException
if it could not be found.findByG_C_C_O
(long groupId, long classNameId, long classPK, int ownerType) Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByG_C_C_O
(long groupId, long classNameId, long classPK, int ownerType, int start, int end) Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByG_C_C_O
(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByG_C_C_O
(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByG_C_C_O_First
(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByG_C_C_O_Last
(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByG_C_C_O_PrevAndNext
(long activityCounterId, long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.findByGroupId
(long groupId) Returns all the social activity counters where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the social activity counters where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters where groupId = ?.findByGroupId_First
(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where groupId = ?.findByGroupId_Last
(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where groupId = ?.findByGroupId_PrevAndNext
(long activityCounterId, long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ?.findByPrimaryKey
(long activityCounterId) Returns the social activity counter with the primary key or throws aNoSuchActivityCounterException
if it could not be found.remove
(long activityCounterId) Removes the social activity counter with the primary key from the database.void
Removes all the social activity counters from the database.void
removeByC_C
(long classNameId, long classPK) Removes all the social activity counters where classNameId = ? and classPK = ? from the database.removeByG_C_C_N_O_E
(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database.removeByG_C_C_N_O_S
(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database.void
removeByG_C_C_O
(long groupId, long classNameId, long classPK, int ownerType) Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database.void
removeByGroupId
(long groupId) Removes all the social activity counters where groupId = ? from the database.updateImpl
(SocialActivityCounter socialActivityCounter) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByGroupId
Returns all the social activity counters where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching social activity counters
-
findByGroupId
Returns a range of all the social activity counters where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)- Returns:
- the range of matching social activity counters
-
findByGroupId
List<SocialActivityCounter> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity counters
-
findByGroupId
List<SocialActivityCounter> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity counters
-
findByGroupId_First
SocialActivityCounter findByGroupId_First(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the first social activity counter in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByGroupId_First
SocialActivityCounter fetchByGroupId_First(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity counter, or
null
if a matching social activity counter could not be found
-
findByGroupId_Last
SocialActivityCounter findByGroupId_Last(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the last social activity counter in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByGroupId_Last
SocialActivityCounter fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity counter, or
null
if a matching social activity counter could not be found
-
findByGroupId_PrevAndNext
SocialActivityCounter[] findByGroupId_PrevAndNext(long activityCounterId, long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ?.- Parameters:
activityCounterId
- the primary key of the current social activity countergroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity counter
- Throws:
NoSuchActivityCounterException
- if a social activity counter with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the social activity counters where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of social activity counters where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching social activity counters
-
findByC_C
Returns all the social activity counters where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching social activity counters
-
findByC_C
Returns a range of all the social activity counters where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)- Returns:
- the range of matching social activity counters
-
findByC_C
List<SocialActivityCounter> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity counters
-
findByC_C
List<SocialActivityCounter> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity counters
-
findByC_C_First
SocialActivityCounter findByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByC_C_First
SocialActivityCounter fetchByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity counter, or
null
if a matching social activity counter could not be found
-
findByC_C_Last
SocialActivityCounter findByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByC_C_Last
SocialActivityCounter fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity counter, or
null
if a matching social activity counter could not be found
-
findByC_C_PrevAndNext
SocialActivityCounter[] findByC_C_PrevAndNext(long activityCounterId, long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?.- Parameters:
activityCounterId
- the primary key of the current social activity counterclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity counter
- Throws:
NoSuchActivityCounterException
- if a social activity counter with the primary key could not be found
-
removeByC_C
void removeByC_C(long classNameId, long classPK) Removes all the social activity counters where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
int countByC_C(long classNameId, long classPK) Returns the number of social activity counters where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching social activity counters
-
findByG_C_C_O
List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType) Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner type- Returns:
- the matching social activity counters
-
findByG_C_C_O
List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end) Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typestart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)- Returns:
- the range of matching social activity counters
-
findByG_C_C_O
List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typestart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching social activity counters
-
findByG_C_C_O
List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typestart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching social activity counters
-
findByG_C_C_O_First
SocialActivityCounter findByG_C_C_O_First(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByG_C_C_O_First
SocialActivityCounter fetchByG_C_C_O_First(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social activity counter, or
null
if a matching social activity counter could not be found
-
findByG_C_C_O_Last
SocialActivityCounter findByG_C_C_O_Last(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByG_C_C_O_Last
SocialActivityCounter fetchByG_C_C_O_Last(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social activity counter, or
null
if a matching social activity counter could not be found
-
findByG_C_C_O_PrevAndNext
SocialActivityCounter[] findByG_C_C_O_PrevAndNext(long activityCounterId, long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
activityCounterId
- the primary key of the current social activity countergroupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social activity counter
- Throws:
NoSuchActivityCounterException
- if a social activity counter with the primary key could not be found
-
removeByG_C_C_O
void removeByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType) Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner type
-
countByG_C_C_O
int countByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType) Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner type- Returns:
- the number of matching social activity counters
-
findByG_C_C_N_O_S
SocialActivityCounter findByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) throws NoSuchActivityCounterException Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or throws aNoSuchActivityCounterException
if it could not be found.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start period- Returns:
- the matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByG_C_C_N_O_S
SocialActivityCounter fetchByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start period- Returns:
- the matching social activity counter, or
null
if a matching social activity counter could not be found
-
fetchByG_C_C_N_O_S
SocialActivityCounter fetchByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod, boolean useFinderCache) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start perioduseFinderCache
- whether to use the finder cache- Returns:
- the matching social activity counter, or
null
if a matching social activity counter could not be found
-
removeByG_C_C_N_O_S
SocialActivityCounter removeByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) throws NoSuchActivityCounterException Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start period- Returns:
- the social activity counter that was removed
- Throws:
NoSuchActivityCounterException
-
countByG_C_C_N_O_S
int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start period- Returns:
- the number of matching social activity counters
-
findByG_C_C_N_O_E
SocialActivityCounter findByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) throws NoSuchActivityCounterException Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or throws aNoSuchActivityCounterException
if it could not be found.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end period- Returns:
- the matching social activity counter
- Throws:
NoSuchActivityCounterException
- if a matching social activity counter could not be found
-
fetchByG_C_C_N_O_E
SocialActivityCounter fetchByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end period- Returns:
- the matching social activity counter, or
null
if a matching social activity counter could not be found
-
fetchByG_C_C_N_O_E
SocialActivityCounter fetchByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod, boolean useFinderCache) Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end perioduseFinderCache
- whether to use the finder cache- Returns:
- the matching social activity counter, or
null
if a matching social activity counter could not be found
-
removeByG_C_C_N_O_E
SocialActivityCounter removeByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) throws NoSuchActivityCounterException Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end period- Returns:
- the social activity counter that was removed
- Throws:
NoSuchActivityCounterException
-
countByG_C_C_N_O_E
int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?.- Parameters:
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end period- Returns:
- the number of matching social activity counters
-
cacheResult
Caches the social activity counter in the entity cache if it is enabled.- Parameters:
socialActivityCounter
- the social activity counter
-
cacheResult
Caches the social activity counters in the entity cache if it is enabled.- Parameters:
socialActivityCounters
- the social activity counters
-
create
Creates a new social activity counter with the primary key. Does not add the social activity counter to the database.- Parameters:
activityCounterId
- the primary key for the new social activity counter- Returns:
- the new social activity counter
-
remove
Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
activityCounterId
- the primary key of the social activity counter- Returns:
- the social activity counter that was removed
- Throws:
NoSuchActivityCounterException
- if a social activity counter with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
SocialActivityCounter findByPrimaryKey(long activityCounterId) throws NoSuchActivityCounterException Returns the social activity counter with the primary key or throws aNoSuchActivityCounterException
if it could not be found.- Parameters:
activityCounterId
- the primary key of the social activity counter- Returns:
- the social activity counter
- Throws:
NoSuchActivityCounterException
- if a social activity counter with the primary key could not be found
-
fetchByPrimaryKey
Returns the social activity counter with the primary key or returnsnull
if it could not be found.- Parameters:
activityCounterId
- the primary key of the social activity counter- Returns:
- the social activity counter, or
null
if a social activity counter with the primary key could not be found
-
findAll
List<SocialActivityCounter> findAll()Returns all the social activity counters.- Returns:
- the social activity counters
-
findAll
Returns a range of all the social activity counters.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
start
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)- Returns:
- the range of social activity counters
-
findAll
List<SocialActivityCounter> findAll(int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator) Returns an ordered range of all the social activity counters.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
start
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of social activity counters
-
findAll
List<SocialActivityCounter> findAll(int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social activity counters.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialActivityCounterModelImpl
.- Parameters:
start
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of social activity counters
-
removeAll
void removeAll()Removes all the social activity counters from the database. -
countAll
int countAll()Returns the number of social activity counters.- Returns:
- the number of social activity counters
-