Liferay 6.0-ee

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

java.lang.Object
  extended by com.liferay.portlet.social.service.persistence.SocialEquityGroupSettingUtil

public class SocialEquityGroupSettingUtil
extends Object

The persistence utility for the social equity group setting service. This utility wraps SocialEquityGroupSettingPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
SocialEquityGroupSettingUtil()
           
 
Method Summary
static void cacheResult(List<SocialEquityGroupSetting> socialEquityGroupSettings)
          Caches the social equity group settings in the entity cache if it is enabled.
static void cacheResult(SocialEquityGroupSetting socialEquityGroupSetting)
          Caches the social equity group setting in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SocialEquityGroupSetting socialEquityGroupSetting)
           
static int countAll()
          Counts all the social equity group settings.
static int countByG_C_T(long groupId, long classNameId, int type)
          Counts all the social equity group settings where groupId = ? and classNameId = ? and type = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SocialEquityGroupSetting create(long equityGroupSettingId)
          Creates a new social equity group setting with the primary key.
static 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.
static 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.
static SocialEquityGroupSetting fetchByPrimaryKey(long equityGroupSettingId)
          Finds the social equity group setting with the primary key or returns null if it could not be found.
static List<SocialEquityGroupSetting> findAll()
          Finds all the social equity group settings.
static List<SocialEquityGroupSetting> findAll(int start, int end)
          Finds a range of all the social equity group settings.
static List<SocialEquityGroupSetting> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity group settings.
static 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.
static SocialEquityGroupSetting findByPrimaryKey(long equityGroupSettingId)
          Finds the social equity group setting with the primary key or throws a NoSuchEquityGroupSettingException if it could not be found.
static List<SocialEquityGroupSetting> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SocialEquityGroupSetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SocialEquityGroupSetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static SocialEquityGroupSettingPersistence getPersistence()
           
static SocialEquityGroupSetting remove(long equityGroupSettingId)
          Removes the social equity group setting with the primary key from the database.
static SocialEquityGroupSetting remove(SocialEquityGroupSetting socialEquityGroupSetting)
           
static void removeAll()
          Removes all the social equity group settings from the database.
static 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.
 void setPersistence(SocialEquityGroupSettingPersistence persistence)
           
static SocialEquityGroupSetting update(SocialEquityGroupSetting socialEquityGroupSetting, boolean merge)
           
static SocialEquityGroupSetting update(SocialEquityGroupSetting socialEquityGroupSetting, boolean merge, ServiceContext serviceContext)
           
static SocialEquityGroupSetting updateImpl(SocialEquityGroupSetting socialEquityGroupSetting, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialEquityGroupSettingUtil

public SocialEquityGroupSettingUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(SocialEquityGroupSetting socialEquityGroupSetting)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SocialEquityGroupSetting> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SocialEquityGroupSetting> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                                  int start,
                                                                  int end)
                                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<SocialEquityGroupSetting> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator orderByComparator)
                                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static SocialEquityGroupSetting remove(SocialEquityGroupSetting socialEquityGroupSetting)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static SocialEquityGroupSetting update(SocialEquityGroupSetting socialEquityGroupSetting,
                                              boolean merge)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static SocialEquityGroupSetting update(SocialEquityGroupSetting socialEquityGroupSetting,
                                              boolean merge,
                                              ServiceContext serviceContext)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static 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

public static 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

public static 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

public static 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

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

findByPrimaryKey

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

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

Throws:
SystemException - if a system exception occurred

countByG_C_T

public static 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

public static 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

getPersistence

public static SocialEquityGroupSettingPersistence getPersistence()

setPersistence

public void setPersistence(SocialEquityGroupSettingPersistence persistence)

Liferay 6.0-ee