Liferay 6.2-ce-ga5

com.liferay.portlet.social.service.persistence
Class SocialActivitySettingPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialActivitySetting>
      extended by com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SocialActivitySetting>, SocialActivitySettingPersistence

public class SocialActivitySettingPersistenceImpl
extends BasePersistenceImpl<SocialActivitySetting>
implements SocialActivitySettingPersistence

The persistence implementation for the social activity setting service.

Caching information and settings can be found in portal.properties

See Also:
SocialActivitySettingPersistence, SocialActivitySettingUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_A
           
static FinderPath FINDER_PATH_COUNT_BY_G_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_A
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_A_N
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_FETCH_BY_G_C_A_N
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
 
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

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

FINDER_PATH_COUNT_BY_G_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_A

FINDER_PATH_COUNT_BY_G_A

public static final FinderPath FINDER_PATH_COUNT_BY_G_A

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_A

FINDER_PATH_COUNT_BY_G_C_A

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_A

FINDER_PATH_FETCH_BY_G_C_A_N

public static final FinderPath FINDER_PATH_FETCH_BY_G_C_A_N

FINDER_PATH_COUNT_BY_G_C_A_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_A_N
Constructor Detail

SocialActivitySettingPersistenceImpl

public SocialActivitySettingPersistenceImpl()
Method Detail

findByGroupId

public List<SocialActivitySetting> findByGroupId(long groupId)
                                          throws SystemException
Returns all the social activity settings where groupId = ?.

Specified by:
findByGroupId in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialActivitySetting> findByGroupId(long groupId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Returns a range of all the social activity settings where groupId = ?.

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.

Specified by:
findByGroupId in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
Returns:
the range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<SocialActivitySetting> findByGroupId(long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns an ordered range of all the social activity settings where groupId = ?.

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.

Specified by:
findByGroupId in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public SocialActivitySetting findByGroupId_First(long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchActivitySettingException,
                                                 SystemException
Returns the first social activity setting in the ordered set where groupId = ?.

Specified by:
findByGroupId_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public SocialActivitySetting fetchByGroupId_First(long groupId,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns the first social activity setting in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public SocialActivitySetting findByGroupId_Last(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchActivitySettingException,
                                                SystemException
Returns the last social activity setting in the ordered set where groupId = ?.

Specified by:
findByGroupId_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public SocialActivitySetting fetchByGroupId_Last(long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Returns the last social activity setting in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public SocialActivitySetting[] findByGroupId_PrevAndNext(long activitySettingId,
                                                         long groupId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchActivitySettingException,
                                                         SystemException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected SocialActivitySetting getByGroupId_PrevAndNext(Session session,
                                                         SocialActivitySetting socialActivitySetting,
                                                         long groupId,
                                                         OrderByComparator orderByComparator,
                                                         boolean previous)

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Removes all the social activity settings where groupId = ? from the database.

Specified by:
removeByGroupId in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Returns the number of social activity settings where groupId = ?.

Specified by:
countByGroupId in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C

public List<SocialActivitySetting> findByG_C(long groupId,
                                             long classNameId)
                                      throws SystemException
Returns all the social activity settings where groupId = ? and classNameId = ?.

Specified by:
findByG_C in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C

public List<SocialActivitySetting> findByG_C(long groupId,
                                             long classNameId,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the social activity settings where groupId = ? and classNameId = ?.

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.

Specified by:
findByG_C in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
Returns:
the range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C

public List<SocialActivitySetting> findByG_C(long groupId,
                                             long classNameId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?.

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.

Specified by:
findByG_C in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_First

public SocialActivitySetting findByG_C_First(long groupId,
                                             long classNameId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchActivitySettingException,
                                             SystemException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?.

Specified by:
findByG_C_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_First

public SocialActivitySetting fetchByG_C_First(long groupId,
                                              long classNameId,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?.

Specified by:
fetchByG_C_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_Last

public SocialActivitySetting findByG_C_Last(long groupId,
                                            long classNameId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchActivitySettingException,
                                            SystemException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.

Specified by:
findByG_C_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_Last

public SocialActivitySetting fetchByG_C_Last(long groupId,
                                             long classNameId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?.

Specified by:
fetchByG_C_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_PrevAndNext

public SocialActivitySetting[] findByG_C_PrevAndNext(long activitySettingId,
                                                     long groupId,
                                                     long classNameId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchActivitySettingException,
                                                     SystemException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ?.

Specified by:
findByG_C_PrevAndNext in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

getByG_C_PrevAndNext

protected SocialActivitySetting getByG_C_PrevAndNext(Session session,
                                                     SocialActivitySetting socialActivitySetting,
                                                     long groupId,
                                                     long classNameId,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

removeByG_C

public void removeByG_C(long groupId,
                        long classNameId)
                 throws SystemException
Removes all the social activity settings where groupId = ? and classNameId = ? from the database.

Specified by:
removeByG_C in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_C

public int countByG_C(long groupId,
                      long classNameId)
               throws SystemException
Returns the number of social activity settings where groupId = ? and classNameId = ?.

Specified by:
countByG_C in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_A

public List<SocialActivitySetting> findByG_A(long groupId,
                                             int activityType)
                                      throws SystemException
Returns all the social activity settings where groupId = ? and activityType = ?.

Specified by:
findByG_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_A

public List<SocialActivitySetting> findByG_A(long groupId,
                                             int activityType,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the social activity settings where groupId = ? and activityType = ?.

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.

Specified by:
findByG_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
Returns:
the range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_A

public List<SocialActivitySetting> findByG_A(long groupId,
                                             int activityType,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?.

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.

Specified by:
findByG_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_A_First

public SocialActivitySetting findByG_A_First(long groupId,
                                             int activityType,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchActivitySettingException,
                                             SystemException
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?.

Specified by:
findByG_A_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_A_First

public SocialActivitySetting fetchByG_A_First(long groupId,
                                              int activityType,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?.

Specified by:
fetchByG_A_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByG_A_Last

public SocialActivitySetting findByG_A_Last(long groupId,
                                            int activityType,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchActivitySettingException,
                                            SystemException
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?.

Specified by:
findByG_A_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_A_Last

public SocialActivitySetting fetchByG_A_Last(long groupId,
                                             int activityType,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?.

Specified by:
fetchByG_A_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByG_A_PrevAndNext

public SocialActivitySetting[] findByG_A_PrevAndNext(long activitySettingId,
                                                     long groupId,
                                                     int activityType,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchActivitySettingException,
                                                     SystemException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and activityType = ?.

Specified by:
findByG_A_PrevAndNext in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

getByG_A_PrevAndNext

protected SocialActivitySetting getByG_A_PrevAndNext(Session session,
                                                     SocialActivitySetting socialActivitySetting,
                                                     long groupId,
                                                     int activityType,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

removeByG_A

public void removeByG_A(long groupId,
                        int activityType)
                 throws SystemException
Removes all the social activity settings where groupId = ? and activityType = ? from the database.

Specified by:
removeByG_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
Throws:
SystemException - if a system exception occurred

countByG_A

public int countByG_A(long groupId,
                      int activityType)
               throws SystemException
Returns the number of social activity settings where groupId = ? and activityType = ?.

Specified by:
countByG_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
activityType - the activity type
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A

public List<SocialActivitySetting> findByG_C_A(long groupId,
                                               long classNameId,
                                               int activityType)
                                        throws SystemException
Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
findByG_C_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A

public List<SocialActivitySetting> findByG_C_A(long groupId,
                                               long classNameId,
                                               int activityType,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.

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.

Specified by:
findByG_C_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
Returns:
the range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A

public List<SocialActivitySetting> findByG_C_A(long groupId,
                                               long classNameId,
                                               int activityType,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?.

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.

Specified by:
findByG_C_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A_First

public SocialActivitySetting findByG_C_A_First(long groupId,
                                               long classNameId,
                                               int activityType,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchActivitySettingException,
                                               SystemException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
findByG_C_A_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_A_First

public SocialActivitySetting fetchByG_C_A_First(long groupId,
                                                long classNameId,
                                                int activityType,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
fetchByG_C_A_First in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_A_Last

public SocialActivitySetting findByG_C_A_Last(long groupId,
                                              long classNameId,
                                              int activityType,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchActivitySettingException,
                                              SystemException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
findByG_C_A_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_A_Last

public SocialActivitySetting fetchByG_C_A_Last(long groupId,
                                               long classNameId,
                                               int activityType,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
fetchByG_C_A_Last in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_A_PrevAndNext

public SocialActivitySetting[] findByG_C_A_PrevAndNext(long activitySettingId,
                                                       long groupId,
                                                       long classNameId,
                                                       int activityType,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchActivitySettingException,
                                                       SystemException
Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
findByG_C_A_PrevAndNext in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the current social activity setting
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

getByG_C_A_PrevAndNext

protected SocialActivitySetting getByG_C_A_PrevAndNext(Session session,
                                                       SocialActivitySetting socialActivitySetting,
                                                       long groupId,
                                                       long classNameId,
                                                       int activityType,
                                                       OrderByComparator orderByComparator,
                                                       boolean previous)

removeByG_C_A

public void removeByG_C_A(long groupId,
                          long classNameId,
                          int activityType)
                   throws SystemException
Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database.

Specified by:
removeByG_C_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
Throws:
SystemException - if a system exception occurred

countByG_C_A

public int countByG_C_A(long groupId,
                        long classNameId,
                        int activityType)
                 throws SystemException
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?.

Specified by:
countByG_C_A in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_C_A_N

public SocialActivitySetting findByG_C_A_N(long groupId,
                                           long classNameId,
                                           int activityType,
                                           String name)
                                    throws NoSuchActivitySettingException,
                                           SystemException
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or throws a NoSuchActivitySettingException if it could not be found.

Specified by:
findByG_C_A_N in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the matching social activity setting
Throws:
NoSuchActivitySettingException - if a matching social activity setting could not be found
SystemException - if a system exception occurred

fetchByG_C_A_N

public SocialActivitySetting fetchByG_C_A_N(long groupId,
                                            long classNameId,
                                            int activityType,
                                            String name)
                                     throws SystemException
Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_C_A_N in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_C_A_N

public SocialActivitySetting fetchByG_C_A_N(long groupId,
                                            long classNameId,
                                            int activityType,
                                            String name,
                                            boolean retrieveFromCache)
                                     throws SystemException
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.

Specified by:
fetchByG_C_A_N in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching social activity setting, or null if a matching social activity setting could not be found
Throws:
SystemException - if a system exception occurred

removeByG_C_A_N

public SocialActivitySetting removeByG_C_A_N(long groupId,
                                             long classNameId,
                                             int activityType,
                                             String name)
                                      throws NoSuchActivitySettingException,
                                             SystemException
Removes the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? from the database.

Specified by:
removeByG_C_A_N in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the social activity setting that was removed
Throws:
SystemException - if a system exception occurred
NoSuchActivitySettingException

countByG_C_A_N

public int countByG_C_A_N(long groupId,
                          long classNameId,
                          int activityType,
                          String name)
                   throws SystemException
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ? and name = ?.

Specified by:
countByG_C_A_N in interface SocialActivitySettingPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
activityType - the activity type
name - the name
Returns:
the number of matching social activity settings
Throws:
SystemException - if a system exception occurred

cacheResult

public void cacheResult(SocialActivitySetting socialActivitySetting)
Caches the social activity setting in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialActivitySettingPersistence
Parameters:
socialActivitySetting - the social activity setting

cacheResult

public void cacheResult(List<SocialActivitySetting> socialActivitySettings)
Caches the social activity settings in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialActivitySettingPersistence
Parameters:
socialActivitySettings - the social activity settings

clearCache

public void clearCache()
Clears the cache for all social activity settings.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivitySetting>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivitySetting>

clearCache

public void clearCache(SocialActivitySetting socialActivitySetting)
Clears the cache for the social activity setting.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivitySetting>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
socialActivitySetting - the instance of this model to clear the cache for

clearCache

public void clearCache(List<SocialActivitySetting> socialActivitySettings)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivitySetting>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
socialActivitySettings - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SocialActivitySetting socialActivitySetting)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SocialActivitySetting socialActivitySetting)

create

public SocialActivitySetting create(long activitySettingId)
Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.

Specified by:
create in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key for the new social activity setting
Returns:
the new social activity setting

remove

public SocialActivitySetting remove(long activitySettingId)
                             throws NoSuchActivitySettingException,
                                    SystemException
Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the social activity setting
Returns:
the social activity setting that was removed
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

remove

public SocialActivitySetting remove(Serializable primaryKey)
                             throws NoSuchActivitySettingException,
                                    SystemException
Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialActivitySetting>
Overrides:
remove in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
primaryKey - the primary key of the social activity setting
Returns:
the social activity setting that was removed
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SocialActivitySetting removeImpl(SocialActivitySetting socialActivitySetting)
                                    throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
socialActivitySetting - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting)
                                 throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialActivitySettingPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
socialActivitySetting - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialActivitySetting toUnwrappedModel(SocialActivitySetting socialActivitySetting)

findByPrimaryKey

public SocialActivitySetting findByPrimaryKey(Serializable primaryKey)
                                       throws NoSuchActivitySettingException,
                                              SystemException
Returns the social activity setting with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialActivitySetting>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
primaryKey - the primary key of the social activity setting
Returns:
the social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public SocialActivitySetting findByPrimaryKey(long activitySettingId)
                                       throws NoSuchActivitySettingException,
                                              SystemException
Returns the social activity setting with the primary key or throws a NoSuchActivitySettingException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the social activity setting
Returns:
the social activity setting
Throws:
NoSuchActivitySettingException - if a social activity setting with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialActivitySetting fetchByPrimaryKey(Serializable primaryKey)
                                        throws SystemException
Returns the social activity setting with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialActivitySetting>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialActivitySetting>
Parameters:
primaryKey - the primary key of the social activity setting
Returns:
the social activity setting, or null if a social activity setting with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialActivitySetting fetchByPrimaryKey(long activitySettingId)
                                        throws SystemException
Returns the social activity setting with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface SocialActivitySettingPersistence
Parameters:
activitySettingId - the primary key of the social activity setting
Returns:
the social activity setting, or null if a social activity setting with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivitySetting> findAll()
                                    throws SystemException
Returns all the social activity settings.

Specified by:
findAll in interface SocialActivitySettingPersistence
Returns:
the social activity settings
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivitySetting> findAll(int start,
                                           int end)
                                    throws SystemException
Returns a range of all the social activity settings.

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.

Specified by:
findAll in interface SocialActivitySettingPersistence
Parameters:
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
Returns:
the range of social activity settings
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivitySetting> findAll(int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the social activity settings.

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.

Specified by:
findAll in interface SocialActivitySettingPersistence
Parameters:
start - the lower bound of the range of social activity settings
end - the upper bound of the range of social activity settings (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activity settings
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the social activity settings from the database.

Specified by:
removeAll in interface SocialActivitySettingPersistence
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of social activity settings.

Specified by:
countAll in interface SocialActivitySettingPersistence
Returns:
the number of social activity settings
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social activity setting persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5