Liferay 6.1.2-ce-ga3

com.liferay.portlet.social.service.persistence
Interface SocialActivitySettingPersistence

All Superinterfaces:
BasePersistence<SocialActivitySetting>
All Known Implementing Classes:
SocialActivitySettingPersistenceImpl

public interface SocialActivitySettingPersistence
extends BasePersistence<SocialActivitySetting>

The persistence interface for the social activity setting service.

Caching information and settings can be found in portal.properties

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

Method Summary
 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.
 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.
 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.
 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 remove(long activitySettingId)
          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.
 SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
socialActivitySetting - the social activity setting

cacheResult

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

Parameters:
socialActivitySettings - the social activity settings

create

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

Parameters:
activitySettingId - the primary key for the new social activity setting
Returns:
the new social activity setting

remove

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

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

updateImpl

SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting,
                                 boolean merge)
                                 throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

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

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

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

Parameters:
groupId - the group ID
activityType - the activity type
Returns:
the matching social activity settings
Throws:
SystemException - if a system exception occurred

findByG_A

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

findByG_C_A

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 = ?.

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

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.

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

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.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

findByG_C_A_N

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

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

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.

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

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.

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

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

Returns:
the social activity settings
Throws:
SystemException - if a system exception occurred

findAll

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.

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

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.

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

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

Parameters:
groupId - the group ID
activityType - the activity type
Throws:
SystemException - if a system exception occurred

removeByG_C_A

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.

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

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

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

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

Throws:
SystemException - if a system exception occurred

countByG_A

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

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

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 = ?.

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

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 = ?.

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

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

Returns:
the number of social activity settings
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3