Liferay 6.1.2-ce-ga3

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_A
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_A_N
           
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_A
           
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_A
           
protected  GroupPersistence groupPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityAchievementPersistence socialActivityAchievementPersistence
           
protected  SocialActivityCounterPersistence socialActivityCounterPersistence
           
protected  SocialActivityLimitPersistence socialActivityLimitPersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  SocialActivitySettingPersistence socialActivitySettingPersistence
           
protected  SocialRelationPersistence socialRelationPersistence
           
protected  SocialRequestPersistence socialRequestPersistence
           
protected  UserPersistence userPersistence
           
 
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 = ?.
 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 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 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)
           
 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.
protected  SocialActivitySetting removeImpl(SocialActivitySetting socialActivitySetting)
          Removes the model instance from the database.
protected  SocialActivitySetting toUnwrappedModel(SocialActivitySetting socialActivitySetting)
           
 SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting, boolean merge)
          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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, 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_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

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

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence

socialActivityAchievementPersistence

@BeanReference(type=SocialActivityAchievementPersistence.class)
protected SocialActivityAchievementPersistence socialActivityAchievementPersistence

socialActivityCounterPersistence

@BeanReference(type=SocialActivityCounterPersistence.class)
protected SocialActivityCounterPersistence socialActivityCounterPersistence

socialActivityLimitPersistence

@BeanReference(type=SocialActivityLimitPersistence.class)
protected SocialActivityLimitPersistence socialActivityLimitPersistence

socialActivitySettingPersistence

@BeanReference(type=SocialActivitySettingPersistence.class)
protected SocialActivitySettingPersistence socialActivitySettingPersistence

socialRelationPersistence

@BeanReference(type=SocialRelationPersistence.class)
protected SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=SocialRequestPersistence.class)
protected SocialRequestPersistence socialRequestPersistence

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

SocialActivitySettingPersistenceImpl

public SocialActivitySettingPersistenceImpl()
Method Detail

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,
                                        boolean merge)
                                 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
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
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 NoSuchModelException,
                                              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:
NoSuchModelException - 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

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.

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.

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)

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.

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.

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)

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

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.

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.

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

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

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

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

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

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

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

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

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.1.2-ce-ga3