Liferay 6.0-ee

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

All Superinterfaces:
BasePersistence<SocialEquityGroupSetting>
All Known Implementing Classes:
SocialEquityGroupSettingPersistenceImpl

public interface SocialEquityGroupSettingPersistence
extends BasePersistence<SocialEquityGroupSetting>

The persistence interface for the social equity group setting service.

Never modify or reference this interface directly. Always use SocialEquityGroupSettingUtil to access the social equity group setting persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<SocialEquityGroupSetting> socialEquityGroupSettings)
          Caches the social equity group settings in the entity cache if it is enabled.
 void cacheResult(SocialEquityGroupSetting socialEquityGroupSetting)
          Caches the social equity group setting in the entity cache if it is enabled.
 int countAll()
          Counts all the social equity group settings.
 int countByG_C_T(long groupId, long classNameId, int type)
          Counts all the social equity group settings where groupId = ? and classNameId = ? and type = ?.
 SocialEquityGroupSetting create(long equityGroupSettingId)
          Creates a new social equity group setting with the primary key.
 SocialEquityGroupSetting fetchByG_C_T(long groupId, long classNameId, int type)
          Finds the social equity group setting where groupId = ? and classNameId = ? and type = ? or returns null if it could not be found.
 SocialEquityGroupSetting fetchByG_C_T(long groupId, long classNameId, int type, boolean retrieveFromCache)
          Finds the social equity group setting where groupId = ? and classNameId = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
 SocialEquityGroupSetting fetchByPrimaryKey(long equityGroupSettingId)
          Finds the social equity group setting with the primary key or returns null if it could not be found.
 List<SocialEquityGroupSetting> findAll()
          Finds all the social equity group settings.
 List<SocialEquityGroupSetting> findAll(int start, int end)
          Finds a range of all the social equity group settings.
 List<SocialEquityGroupSetting> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity group settings.
 SocialEquityGroupSetting findByG_C_T(long groupId, long classNameId, int type)
          Finds the social equity group setting where groupId = ? and classNameId = ? and type = ? or throws a NoSuchEquityGroupSettingException if it could not be found.
 SocialEquityGroupSetting findByPrimaryKey(long equityGroupSettingId)
          Finds the social equity group setting with the primary key or throws a NoSuchEquityGroupSettingException if it could not be found.
 SocialEquityGroupSetting remove(long equityGroupSettingId)
          Removes the social equity group setting with the primary key from the database.
 void removeAll()
          Removes all the social equity group settings from the database.
 void removeByG_C_T(long groupId, long classNameId, int type)
          Removes the social equity group setting where groupId = ? and classNameId = ? and type = ? from the database.
 SocialEquityGroupSetting updateImpl(SocialEquityGroupSetting socialEquityGroupSetting, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(SocialEquityGroupSetting socialEquityGroupSetting)
Caches the social equity group setting in the entity cache if it is enabled.

Parameters:
socialEquityGroupSetting - the social equity group setting to cache

cacheResult

void cacheResult(List<SocialEquityGroupSetting> socialEquityGroupSettings)
Caches the social equity group settings in the entity cache if it is enabled.

Parameters:
socialEquityGroupSettings - the social equity group settings to cache

create

SocialEquityGroupSetting create(long equityGroupSettingId)
Creates a new social equity group setting with the primary key. Does not add the social equity group setting to the database.

Parameters:
equityGroupSettingId - the primary key for the new social equity group setting
Returns:
the new social equity group setting

remove

SocialEquityGroupSetting remove(long equityGroupSettingId)
                                throws SystemException,
                                       NoSuchEquityGroupSettingException
Removes the social equity group setting with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
equityGroupSettingId - the primary key of the social equity group setting to remove
Returns:
the social equity group setting that was removed
Throws:
NoSuchEquityGroupSettingException - if a social equity group setting with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

SocialEquityGroupSetting updateImpl(SocialEquityGroupSetting socialEquityGroupSetting,
                                    boolean merge)
                                    throws SystemException
Throws:
SystemException

findByPrimaryKey

SocialEquityGroupSetting findByPrimaryKey(long equityGroupSettingId)
                                          throws SystemException,
                                                 NoSuchEquityGroupSettingException
Finds the social equity group setting with the primary key or throws a NoSuchEquityGroupSettingException if it could not be found.

Parameters:
equityGroupSettingId - the primary key of the social equity group setting to find
Returns:
the social equity group setting
Throws:
NoSuchEquityGroupSettingException - if a social equity group setting with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

SocialEquityGroupSetting fetchByPrimaryKey(long equityGroupSettingId)
                                           throws SystemException
Finds the social equity group setting with the primary key or returns null if it could not be found.

Parameters:
equityGroupSettingId - the primary key of the social equity group setting to find
Returns:
the social equity group setting, or null if a social equity group setting with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_T

SocialEquityGroupSetting findByG_C_T(long groupId,
                                     long classNameId,
                                     int type)
                                     throws SystemException,
                                            NoSuchEquityGroupSettingException
Finds the social equity group setting where groupId = ? and classNameId = ? and type = ? or throws a NoSuchEquityGroupSettingException if it could not be found.

Parameters:
groupId - the group id to search with
classNameId - the class name id to search with
type - the type to search with
Returns:
the matching social equity group setting
Throws:
NoSuchEquityGroupSettingException - if a matching social equity group setting could not be found
SystemException - if a system exception occurred

fetchByG_C_T

SocialEquityGroupSetting fetchByG_C_T(long groupId,
                                      long classNameId,
                                      int type)
                                      throws SystemException
Finds the social equity group setting where groupId = ? and classNameId = ? and type = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group id to search with
classNameId - the class name id to search with
type - the type to search with
Returns:
the matching social equity group setting, or null if a matching social equity group setting could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_C_T

SocialEquityGroupSetting fetchByG_C_T(long groupId,
                                      long classNameId,
                                      int type,
                                      boolean retrieveFromCache)
                                      throws SystemException
Finds the social equity group setting where groupId = ? and classNameId = ? and type = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group id to search with
classNameId - the class name id to search with
type - the type to search with
Returns:
the matching social equity group setting, or null if a matching social equity group setting could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<SocialEquityGroupSetting> findAll()
                                       throws SystemException
Finds all the social equity group settings.

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

findAll

List<SocialEquityGroupSetting> findAll(int start,
                                       int end)
                                       throws SystemException
Finds a range of all the social equity group 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 equity group settings to return
end - the upper bound of the range of social equity group settings to return (not inclusive)
Returns:
the range of social equity group settings
Throws:
SystemException - if a system exception occurred

findAll

List<SocialEquityGroupSetting> findAll(int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Finds an ordered range of all the social equity group 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 equity group settings to return
end - the upper bound of the range of social equity group settings to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social equity group settings
Throws:
SystemException - if a system exception occurred

removeByG_C_T

void removeByG_C_T(long groupId,
                   long classNameId,
                   int type)
                   throws SystemException,
                          NoSuchEquityGroupSettingException
Removes the social equity group setting where groupId = ? and classNameId = ? and type = ? from the database.

Parameters:
groupId - the group id to search with
classNameId - the class name id to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred
NoSuchEquityGroupSettingException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByG_C_T

int countByG_C_T(long groupId,
                 long classNameId,
                 int type)
                 throws SystemException
Counts all the social equity group settings where groupId = ? and classNameId = ? and type = ?.

Parameters:
groupId - the group id to search with
classNameId - the class name id to search with
type - the type to search with
Returns:
the number of matching social equity group settings
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the social equity group settings.

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

Liferay 6.0-ee