|
Liferay 6.2-ce-ga5 | |||||||||
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<SocialActivitySetting>
com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistenceImpl
public class SocialActivitySettingPersistenceImpl
The persistence implementation for the social activity setting service.
Caching information and settings can be found in portal.properties
SocialActivitySettingPersistence
,
SocialActivitySettingUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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 | |
---|---|
SocialActivitySettingPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the social activity setting persistence. |
void |
cacheResult(List<SocialActivitySetting> socialActivitySettings)
Caches the social activity settings in the entity cache if it is enabled. |
void |
cacheResult(SocialActivitySetting socialActivitySetting)
Caches the social activity setting in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(SocialActivitySetting socialActivitySetting)
|
void |
clearCache()
Clears the cache for all social activity settings. |
void |
clearCache(List<SocialActivitySetting> socialActivitySettings)
Clears the cache for a List instances of this model. |
void |
clearCache(SocialActivitySetting socialActivitySetting)
Clears the cache for the social activity setting. |
protected void |
clearUniqueFindersCache(SocialActivitySetting socialActivitySetting)
|
int |
countAll()
Returns the number of social activity settings. |
int |
countByG_A(long groupId,
int activityType)
Returns the number of social activity settings where groupId = ? and activityType = ?. |
int |
countByG_C_A_N(long groupId,
long classNameId,
int activityType,
String name)
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ? and name = ?. |
int |
countByG_C_A(long groupId,
long classNameId,
int activityType)
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?. |
int |
countByG_C(long groupId,
long classNameId)
Returns the number of social activity settings where groupId = ? and classNameId = ?. |
int |
countByGroupId(long groupId)
Returns the number of social activity settings where groupId = ?. |
SocialActivitySetting |
create(long activitySettingId)
Creates a new social activity setting with the primary key. |
void |
destroy()
|
SocialActivitySetting |
fetchByG_A_First(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. |
SocialActivitySetting |
fetchByG_A_Last(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. |
SocialActivitySetting |
fetchByG_C_A_First(long groupId,
long classNameId,
int activityType,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. |
SocialActivitySetting |
fetchByG_C_A_Last(long groupId,
long classNameId,
int activityType,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. |
SocialActivitySetting |
fetchByG_C_A_N(long groupId,
long classNameId,
int activityType,
String name)
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found. |
SocialActivitySetting |
fetchByG_C_A_N(long groupId,
long classNameId,
int activityType,
String name,
boolean retrieveFromCache)
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
SocialActivitySetting |
fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?. |
SocialActivitySetting |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?. |
SocialActivitySetting |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ?. |
SocialActivitySetting |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ?. |
SocialActivitySetting |
fetchByPrimaryKey(long activitySettingId)
Returns the social activity setting with the primary key or returns null if it could not be found. |
SocialActivitySetting |
fetchByPrimaryKey(Serializable primaryKey)
Returns the social activity setting with the primary key or returns null if it could not be found. |
List<SocialActivitySetting> |
findAll()
Returns all the social activity settings. |
List<SocialActivitySetting> |
findAll(int start,
int end)
Returns a range of all the social activity settings. |
List<SocialActivitySetting> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity settings. |
SocialActivitySetting |
findByG_A_First(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. |
SocialActivitySetting |
findByG_A_Last(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. |
SocialActivitySetting[] |
findByG_A_PrevAndNext(long activitySettingId,
long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and activityType = ?. |
List<SocialActivitySetting> |
findByG_A(long groupId,
int activityType)
Returns all the social activity settings where groupId = ? and activityType = ?. |
List<SocialActivitySetting> |
findByG_A(long groupId,
int activityType,
int start,
int end)
Returns a range of all the social activity settings where groupId = ? and activityType = ?. |
List<SocialActivitySetting> |
findByG_A(long groupId,
int activityType,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?. |
SocialActivitySetting |
findByG_C_A_First(long groupId,
long classNameId,
int activityType,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. |
SocialActivitySetting |
findByG_C_A_Last(long groupId,
long classNameId,
int activityType,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. |
SocialActivitySetting |
findByG_C_A_N(long groupId,
long classNameId,
int activityType,
String name)
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or throws a NoSuchActivitySettingException if it could not be found. |
SocialActivitySetting[] |
findByG_C_A_PrevAndNext(long activitySettingId,
long groupId,
long classNameId,
int activityType,
OrderByComparator orderByComparator)
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. |
List<SocialActivitySetting> |
findByG_C_A(long groupId,
long classNameId,
int activityType)
Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. |
List<SocialActivitySetting> |
findByG_C_A(long groupId,
long classNameId,
int activityType,
int start,
int end)
Returns a range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. |
List<SocialActivitySetting> |
findByG_C_A(long groupId,
long classNameId,
int activityType,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. |
SocialActivitySetting |
findByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?. |
SocialActivitySetting |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?. |
SocialActivitySetting[] |
findByG_C_PrevAndNext(long activitySettingId,
long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ?. |
List<SocialActivitySetting> |
findByG_C(long groupId,
long classNameId)
Returns all the social activity settings where groupId = ? and classNameId = ?. |
List<SocialActivitySetting> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the social activity settings where groupId = ? and classNameId = ?. |
List<SocialActivitySetting> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?. |
SocialActivitySetting |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ?. |
SocialActivitySetting |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ?. |
SocialActivitySetting[] |
findByGroupId_PrevAndNext(long activitySettingId,
long groupId,
OrderByComparator orderByComparator)
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ?. |
List<SocialActivitySetting> |
findByGroupId(long groupId)
Returns all the social activity settings where groupId = ?. |
List<SocialActivitySetting> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the social activity settings where groupId = ?. |
List<SocialActivitySetting> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity settings where groupId = ?. |
SocialActivitySetting |
findByPrimaryKey(long activitySettingId)
Returns the social activity setting with the primary key or throws a NoSuchActivitySettingException if it could not be found. |
SocialActivitySetting |
findByPrimaryKey(Serializable primaryKey)
Returns the social activity setting with the primary key or throws a NoSuchModelException if it could not be found. |
protected SocialActivitySetting |
getByG_A_PrevAndNext(Session session,
SocialActivitySetting socialActivitySetting,
long groupId,
int activityType,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivitySetting |
getByG_C_A_PrevAndNext(Session session,
SocialActivitySetting socialActivitySetting,
long groupId,
long classNameId,
int activityType,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivitySetting |
getByG_C_PrevAndNext(Session session,
SocialActivitySetting socialActivitySetting,
long groupId,
long classNameId,
OrderByComparator orderByComparator,
boolean previous)
|
protected SocialActivitySetting |
getByGroupId_PrevAndNext(Session session,
SocialActivitySetting socialActivitySetting,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
SocialActivitySetting |
remove(long activitySettingId)
Removes the social activity setting with the primary key from the database. |
SocialActivitySetting |
remove(Serializable primaryKey)
Removes the social activity setting with the primary key from the database. |
void |
removeAll()
Removes all the social activity settings from the database. |
void |
removeByG_A(long groupId,
int activityType)
Removes all the social activity settings where groupId = ? and activityType = ? from the database. |
SocialActivitySetting |
removeByG_C_A_N(long groupId,
long classNameId,
int activityType,
String name)
Removes the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? from the database. |
void |
removeByG_C_A(long groupId,
long classNameId,
int activityType)
Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database. |
void |
removeByG_C(long groupId,
long classNameId)
Removes all the social activity settings where groupId = ? and classNameId = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the social activity settings where groupId = ? from the database. |
protected SocialActivitySetting |
removeImpl(SocialActivitySetting socialActivitySetting)
Removes the model instance from the database. |
protected SocialActivitySetting |
toUnwrappedModel(SocialActivitySetting socialActivitySetting)
|
SocialActivitySetting |
updateImpl(SocialActivitySetting socialActivitySetting)
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, 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, 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_G_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
public static final FinderPath FINDER_PATH_COUNT_BY_G_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_A
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_A
public static final FinderPath FINDER_PATH_COUNT_BY_G_A
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_A
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_A
public static final FinderPath FINDER_PATH_COUNT_BY_G_C_A
public static final FinderPath FINDER_PATH_FETCH_BY_G_C_A_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_C_A_N
Constructor Detail |
---|
public SocialActivitySettingPersistenceImpl()
Method Detail |
---|
public List<SocialActivitySetting> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface SocialActivitySettingPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByGroupId(long groupId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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 SocialActivitySettingPersistence
groupId
- the group IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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 SocialActivitySettingPersistence
groupId
- the group IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialActivitySetting findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByGroupId_First
in interface SocialActivitySettingPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_First
in interface SocialActivitySettingPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByGroupId_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting[] findByGroupId_PrevAndNext(long activitySettingId, long groupId, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByGroupId_PrevAndNext
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialActivitySetting getByGroupId_PrevAndNext(Session session, SocialActivitySetting socialActivitySetting, long groupId, OrderByComparator orderByComparator, boolean previous)
public void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface SocialActivitySettingPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface SocialActivitySettingPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_C(long groupId, long classNameId) throws SystemException
findByG_C
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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.
findByG_C
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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.
findByG_C
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDstart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_C_First
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
fetchByG_C_First
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_C_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
fetchByG_C_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting[] findByG_C_PrevAndNext(long activitySettingId, long groupId, long classNameId, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_C_PrevAndNext
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialActivitySetting getByG_C_PrevAndNext(Session session, SocialActivitySetting socialActivitySetting, long groupId, long classNameId, OrderByComparator orderByComparator, boolean previous)
public void removeByG_C(long groupId, long classNameId) throws SystemException
removeByG_C
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredpublic int countByG_C(long groupId, long classNameId) throws SystemException
countByG_C
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_A(long groupId, int activityType) throws SystemException
findByG_A
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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.
findByG_A
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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.
findByG_A
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_A_First(long groupId, int activityType, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_A_First
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_A_First(long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException
fetchByG_A_First
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_A_Last(long groupId, int activityType, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_A_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_A_Last(long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException
fetchByG_A_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting[] findByG_A_PrevAndNext(long activitySettingId, long groupId, int activityType, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_A_PrevAndNext
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialActivitySetting getByG_A_PrevAndNext(Session session, SocialActivitySetting socialActivitySetting, long groupId, int activityType, OrderByComparator orderByComparator, boolean previous)
public void removeByG_A(long groupId, int activityType) throws SystemException
removeByG_A
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic int countByG_A(long groupId, int activityType) throws SystemException
countByG_A
in interface SocialActivitySettingPersistence
groupId
- the group IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType) throws SystemException
findByG_C_A
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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.
findByG_C_A
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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.
findByG_C_A
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_C_A_First
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException
fetchByG_C_A_First
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_C_A_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException
fetchByG_C_A_Last
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting[] findByG_C_A_PrevAndNext(long activitySettingId, long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws NoSuchActivitySettingException, SystemException
findByG_C_A_PrevAndNext
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialActivitySetting getByG_C_A_PrevAndNext(Session session, SocialActivitySetting socialActivitySetting, long groupId, long classNameId, int activityType, OrderByComparator orderByComparator, boolean previous)
public void removeByG_C_A(long groupId, long classNameId, int activityType) throws SystemException
removeByG_C_A
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic int countByG_C_A(long groupId, long classNameId, int activityType) throws SystemException
countByG_C_A
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic SocialActivitySetting findByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws NoSuchActivitySettingException, SystemException
NoSuchActivitySettingException
if it could not be found.
findByG_C_A_N
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_C_A_N
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_C_A_N
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting removeByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws NoSuchActivitySettingException, SystemException
removeByG_C_A_N
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
SystemException
- if a system exception occurred
NoSuchActivitySettingException
public int countByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws SystemException
countByG_C_A_N
in interface SocialActivitySettingPersistence
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
SystemException
- if a system exception occurredpublic void cacheResult(SocialActivitySetting socialActivitySetting)
cacheResult
in interface SocialActivitySettingPersistence
socialActivitySetting
- the social activity settingpublic void cacheResult(List<SocialActivitySetting> socialActivitySettings)
cacheResult
in interface SocialActivitySettingPersistence
socialActivitySettings
- the social activity settingspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialActivitySetting>
clearCache
in class BasePersistenceImpl<SocialActivitySetting>
public void clearCache(SocialActivitySetting socialActivitySetting)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialActivitySetting>
clearCache
in class BasePersistenceImpl<SocialActivitySetting>
socialActivitySetting
- the instance of this model to clear the cache forpublic void clearCache(List<SocialActivitySetting> socialActivitySettings)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<SocialActivitySetting>
clearCache
in class BasePersistenceImpl<SocialActivitySetting>
socialActivitySettings
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(SocialActivitySetting socialActivitySetting)
protected void clearUniqueFindersCache(SocialActivitySetting socialActivitySetting)
public SocialActivitySetting create(long activitySettingId)
create
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key for the new social activity setting
public SocialActivitySetting remove(long activitySettingId) throws NoSuchActivitySettingException, SystemException
remove
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the social activity setting
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting remove(Serializable primaryKey) throws NoSuchActivitySettingException, SystemException
remove
in interface BasePersistence<SocialActivitySetting>
remove
in class BasePersistenceImpl<SocialActivitySetting>
primaryKey
- the primary key of the social activity setting
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialActivitySetting removeImpl(SocialActivitySetting socialActivitySetting) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<SocialActivitySetting>
socialActivitySetting
- the model instance to remove
SystemException
- if a system exception occurredpublic SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface SocialActivitySettingPersistence
updateImpl
in class BasePersistenceImpl<SocialActivitySetting>
socialActivitySetting
- the model instance to update
SystemException
- if a system exception occurredprotected SocialActivitySetting toUnwrappedModel(SocialActivitySetting socialActivitySetting)
public SocialActivitySetting findByPrimaryKey(Serializable primaryKey) throws NoSuchActivitySettingException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<SocialActivitySetting>
findByPrimaryKey
in class BasePersistenceImpl<SocialActivitySetting>
primaryKey
- the primary key of the social activity setting
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting findByPrimaryKey(long activitySettingId) throws NoSuchActivitySettingException, SystemException
NoSuchActivitySettingException
if it could not be found.
findByPrimaryKey
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the social activity setting
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<SocialActivitySetting>
fetchByPrimaryKey
in class BasePersistenceImpl<SocialActivitySetting>
primaryKey
- the primary key of the social activity setting
null
if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialActivitySetting fetchByPrimaryKey(long activitySettingId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface SocialActivitySettingPersistence
activitySettingId
- the primary key of the social activity setting
null
if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findAll() throws SystemException
findAll
in interface SocialActivitySettingPersistence
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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 SocialActivitySettingPersistence
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialActivitySetting> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from SocialActivitySettingModelImpl
. 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 SocialActivitySettingPersistence
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface SocialActivitySettingPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface SocialActivitySettingPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |