@ProviderType public interface SocialActivityCounterPersistence extends BasePersistence<SocialActivityCounter>
Caching information and settings can be found in portal.properties
SocialActivityCounterUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(List<SocialActivityCounter> socialActivityCounters)
Caches the social activity counters in the entity cache if it is enabled.
|
void |
cacheResult(SocialActivityCounter socialActivityCounter)
Caches the social activity counter 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 = ?.
|
SocialActivityCounter |
create(long activityCounterId)
Creates a new social activity counter with the primary key.
|
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 = ?.
|
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 = ?.
|
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 returns
null if it could not be found. |
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 returns
null if it could not be found, optionally using the finder cache. |
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 returns
null if it could not be found. |
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 returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
SocialActivityCounter |
fetchByGroupId_First(long groupId,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns the first social activity counter in the ordered set where groupId = ?.
|
SocialActivityCounter |
fetchByGroupId_Last(long groupId,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns the last social activity counter in the ordered set where groupId = ?.
|
SocialActivityCounter |
fetchByPrimaryKey(long activityCounterId)
Returns the social activity counter with the primary key or returns
null if it could not be found. |
List<SocialActivityCounter> |
findAll()
Returns all the social activity counters.
|
List<SocialActivityCounter> |
findAll(int start,
int end)
Returns a range of all the social activity counters.
|
List<SocialActivityCounter> |
findAll(int start,
int end,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns an ordered range of all the social activity counters.
|
List<SocialActivityCounter> |
findAll(int start,
int end,
OrderByComparator<SocialActivityCounter> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the social activity counters.
|
SocialActivityCounter |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?.
|
SocialActivityCounter |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?.
|
SocialActivityCounter[] |
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 = ?.
|
List<SocialActivityCounter> |
findByC_C(long classNameId,
long classPK)
Returns all the social activity counters where classNameId = ? and classPK = ?.
|
List<SocialActivityCounter> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the social activity counters where classNameId = ? and classPK = ?.
|
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 = ?.
|
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 = ?.
|
SocialActivityCounter |
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 a
NoSuchActivityCounterException if it could not be found. |
SocialActivityCounter |
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 a
NoSuchActivityCounterException if it could not be found. |
SocialActivityCounter |
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 = ?.
|
SocialActivityCounter |
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 = ?.
|
SocialActivityCounter[] |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
SocialActivityCounter |
findByGroupId_First(long groupId,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns the first social activity counter in the ordered set where groupId = ?.
|
SocialActivityCounter |
findByGroupId_Last(long groupId,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns the last social activity counter in the ordered set where groupId = ?.
|
SocialActivityCounter[] |
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 = ?.
|
List<SocialActivityCounter> |
findByGroupId(long groupId)
Returns all the social activity counters where groupId = ?.
|
List<SocialActivityCounter> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the social activity counters where groupId = ?.
|
List<SocialActivityCounter> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SocialActivityCounter> orderByComparator)
Returns an ordered range of all the social activity counters where groupId = ?.
|
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 = ?.
|
SocialActivityCounter |
findByPrimaryKey(long activityCounterId)
Returns the social activity counter with the primary key or throws a
NoSuchActivityCounterException if it could not be found. |
SocialActivityCounter |
remove(long activityCounterId)
Removes the social activity counter with the primary key from the database.
|
void |
removeAll()
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.
|
SocialActivityCounter |
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.
|
SocialActivityCounter |
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.
|
SocialActivityCounter |
updateImpl(SocialActivityCounter socialActivityCounter) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<SocialActivityCounter> findByGroupId(long groupId)
groupId
- the group IDList<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 countersend
- the upper bound of the range of social activity counters (not inclusive)List<SocialActivityCounter> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<SocialActivityCounter> findByGroupId(long groupId, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache)
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 SocialActivityCounterModelImpl
. 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 countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheSocialActivityCounter findByGroupId_First(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByGroupId_First(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity counter could not be foundSocialActivityCounter findByGroupId_Last(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByGroupId_Last(long groupId, OrderByComparator<SocialActivityCounter> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity counter could not be foundSocialActivityCounter[] findByGroupId_PrevAndNext(long activityCounterId, long groupId, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
activityCounterId
- the primary key of the current social activity countergroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a social activity counter with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDList<SocialActivityCounter> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkList<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 pkstart
- the lower bound of the range of social activity countersend
- the upper bound of the range of social activity counters (not inclusive)List<SocialActivityCounter> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 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 (optionally null
)List<SocialActivityCounter> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache)
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 SocialActivityCounterModelImpl
. 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 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 (optionally null
)useFinderCache
- whether to use the finder cacheSocialActivityCounter findByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByC_C_First(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity counter could not be foundSocialActivityCounter findByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity counter could not be foundSocialActivityCounter[] findByC_C_PrevAndNext(long activityCounterId, long classNameId, long classPK, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
activityCounterId
- the primary key of the current social activity counterclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a social activity counter with the primary key could not be foundvoid removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkint countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkList<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeList<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, 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 SocialActivityCounterModelImpl
. 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 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)List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 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 (optionally null
)List<SocialActivityCounter> findByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType, int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache)
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 SocialActivityCounterModelImpl
. 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 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 (optionally null
)useFinderCache
- whether to use the finder cacheSocialActivityCounter findByG_C_C_O_First(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByG_C_C_O_First(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity counter could not be foundSocialActivityCounter findByG_C_C_O_Last(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByG_C_C_O_Last(long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching social activity counter could not be foundSocialActivityCounter[] findByG_C_C_O_PrevAndNext(long activityCounterId, long groupId, long classNameId, long classPK, int ownerType, OrderByComparator<SocialActivityCounter> orderByComparator) throws NoSuchActivityCounterException
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 (optionally null
)NoSuchActivityCounterException
- if a social activity counter with the primary key could not be foundvoid removeByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeint countByG_C_C_O(long groupId, long classNameId, long classPK, int ownerType)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkownerType
- the owner typeSocialActivityCounter findByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) throws NoSuchActivityCounterException
NoSuchActivityCounterException
if it could not be found.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start periodNoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod)
null
if it could not be found. Uses the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start periodnull
if a matching social activity counter could not be foundSocialActivityCounter fetchByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start perioduseFinderCache
- whether to use the finder cachenull
if a matching social activity counter could not be foundSocialActivityCounter removeByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod) throws NoSuchActivityCounterException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start periodNoSuchActivityCounterException
int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK, String name, int ownerType, int startPeriod)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typestartPeriod
- the start periodSocialActivityCounter findByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) throws NoSuchActivityCounterException
NoSuchActivityCounterException
if it could not be found.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end periodNoSuchActivityCounterException
- if a matching social activity counter could not be foundSocialActivityCounter fetchByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod)
null
if it could not be found. Uses the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end periodnull
if a matching social activity counter could not be foundSocialActivityCounter fetchByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end perioduseFinderCache
- whether to use the finder cachenull
if a matching social activity counter could not be foundSocialActivityCounter removeByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod) throws NoSuchActivityCounterException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end periodNoSuchActivityCounterException
int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK, String name, int ownerType, int endPeriod)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkname
- the nameownerType
- the owner typeendPeriod
- the end periodvoid cacheResult(SocialActivityCounter socialActivityCounter)
socialActivityCounter
- the social activity countervoid cacheResult(List<SocialActivityCounter> socialActivityCounters)
socialActivityCounters
- the social activity countersSocialActivityCounter create(long activityCounterId)
activityCounterId
- the primary key for the new social activity counterSocialActivityCounter remove(long activityCounterId) throws NoSuchActivityCounterException
activityCounterId
- the primary key of the social activity counterNoSuchActivityCounterException
- if a social activity counter with the primary key could not be foundSocialActivityCounter updateImpl(SocialActivityCounter socialActivityCounter)
SocialActivityCounter findByPrimaryKey(long activityCounterId) throws NoSuchActivityCounterException
NoSuchActivityCounterException
if it could not be found.activityCounterId
- the primary key of the social activity counterNoSuchActivityCounterException
- if a social activity counter with the primary key could not be foundSocialActivityCounter fetchByPrimaryKey(long activityCounterId)
null
if it could not be found.activityCounterId
- the primary key of the social activity counternull
if a social activity counter with the primary key could not be foundList<SocialActivityCounter> findAll()
List<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 countersend
- the upper bound of the range of social activity counters (not inclusive)List<SocialActivityCounter> findAll(int start, int end, OrderByComparator<SocialActivityCounter> 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 SocialActivityCounterModelImpl
. 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 countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<SocialActivityCounter> findAll(int start, int end, OrderByComparator<SocialActivityCounter> orderByComparator, boolean useFinderCache)
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 SocialActivityCounterModelImpl
. 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 countersend
- the upper bound of the range of social activity counters (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()