|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.social.service.persistence.SocialActivitySettingUtil
public class SocialActivitySettingUtil
The persistence utility for the social activity setting service. This utility wraps SocialActivitySettingPersistenceImpl
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.
Caching information and settings can be found in portal.properties
SocialActivitySettingPersistence
,
SocialActivitySettingPersistenceImpl
Constructor Summary | |
---|---|
SocialActivitySettingUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<SocialActivitySetting> socialActivitySettings)
Caches the social activity settings in the entity cache if it is enabled. |
static void |
cacheResult(SocialActivitySetting socialActivitySetting)
Caches the social activity setting in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(SocialActivitySetting socialActivitySetting)
|
static int |
countAll()
Returns the number of social activity settings. |
static int |
countByG_A(long groupId,
int activityType)
Returns the number of social activity settings where groupId = ? and activityType = ?. |
static 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 = ?. |
static int |
countByG_C_A(long groupId,
long classNameId,
int activityType)
Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SocialActivitySetting |
create(long activitySettingId)
Creates a new social activity setting with the primary key. |
static SocialActivitySetting |
fetchByG_A_First(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. |
static SocialActivitySetting |
fetchByG_A_Last(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. |
static 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 = ?. |
static 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 = ?. |
static 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. |
static 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. |
static SocialActivitySetting |
fetchByPrimaryKey(long activitySettingId)
Returns the social activity setting with the primary key or returns null if it could not be found. |
static List<SocialActivitySetting> |
findAll()
Returns all the social activity settings. |
static List<SocialActivitySetting> |
findAll(int start,
int end)
Returns a range of all the social activity settings. |
static List<SocialActivitySetting> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the social activity settings. |
static SocialActivitySetting |
findByG_A_First(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. |
static SocialActivitySetting |
findByG_A_Last(long groupId,
int activityType,
OrderByComparator orderByComparator)
Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. |
static 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 = ?. |
static List<SocialActivitySetting> |
findByG_A(long groupId,
int activityType)
Returns all the social activity settings where groupId = ? and activityType = ?. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static 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. |
static 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 = ?. |
static List<SocialActivitySetting> |
findByG_C_A(long groupId,
long classNameId,
int activityType)
Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. |
static 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 = ?. |
static 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 = ?. |
static SocialActivitySetting |
findByPrimaryKey(long activitySettingId)
Returns the social activity setting with the primary key or throws a NoSuchActivitySettingException if it could not be found. |
static List<SocialActivitySetting> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<SocialActivitySetting> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<SocialActivitySetting> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static SocialActivitySettingPersistence |
getPersistence()
|
static SocialActivitySetting |
remove(long activitySettingId)
Removes the social activity setting with the primary key from the database. |
static void |
removeAll()
Removes all the social activity settings from the database. |
static void |
removeByG_A(long groupId,
int activityType)
Removes all the social activity settings where groupId = ? and activityType = ? from the database. |
static 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. |
static void |
removeByG_C_A(long groupId,
long classNameId,
int activityType)
Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database. |
void |
setPersistence(SocialActivitySettingPersistence persistence)
Deprecated. |
static SocialActivitySetting |
update(SocialActivitySetting socialActivitySetting,
boolean merge)
|
static SocialActivitySetting |
update(SocialActivitySetting socialActivitySetting,
boolean merge,
ServiceContext serviceContext)
|
static SocialActivitySetting |
updateImpl(SocialActivitySetting socialActivitySetting,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocialActivitySettingUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SocialActivitySetting socialActivitySetting)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SocialActivitySetting> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SocialActivitySetting update(SocialActivitySetting socialActivitySetting, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static SocialActivitySetting update(SocialActivitySetting socialActivitySetting, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(SocialActivitySetting socialActivitySetting)
socialActivitySetting
- the social activity settingpublic static void cacheResult(List<SocialActivitySetting> socialActivitySettings)
socialActivitySettings
- the social activity settingspublic static SocialActivitySetting create(long activitySettingId)
activitySettingId
- the primary key for the new social activity setting
public static SocialActivitySetting remove(long activitySettingId) throws SystemException, NoSuchActivitySettingException
activitySettingId
- the primary key of the social activity setting
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting updateImpl(SocialActivitySetting socialActivitySetting, boolean merge) throws SystemException
SystemException
public static SocialActivitySetting findByPrimaryKey(long activitySettingId) throws SystemException, NoSuchActivitySettingException
NoSuchActivitySettingException
if it could not be found.
activitySettingId
- the primary key of the social activity setting
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByPrimaryKey(long activitySettingId) throws SystemException
null
if it could not be found.
activitySettingId
- the primary key of the social activity setting
null
if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findByG_A(long groupId, int activityType) throws SystemException
groupId
- the group IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end) throws SystemException
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.
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findByG_A(long groupId, int activityType, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static SocialActivitySetting findByG_A_First(long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException, NoSuchActivitySettingException
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByG_A_First(long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting findByG_A_Last(long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException, NoSuchActivitySettingException
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByG_A_Last(long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting[] findByG_A_PrevAndNext(long activitySettingId, long groupId, int activityType, OrderByComparator orderByComparator) throws SystemException, NoSuchActivitySettingException
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType) throws SystemException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end) throws SystemException
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.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findByG_C_A(long groupId, long classNameId, int activityType, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typestart
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static SocialActivitySetting findByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException, NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByG_C_A_First(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting findByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException, NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByG_C_A_Last(long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting[] findByG_C_A_PrevAndNext(long activitySettingId, long groupId, long classNameId, int activityType, OrderByComparator orderByComparator) throws SystemException, NoSuchActivitySettingException
activitySettingId
- the primary key of the current social activity settinggroupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchActivitySettingException
- if a social activity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting findByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws SystemException, NoSuchActivitySettingException
NoSuchActivitySettingException
if it could not be found.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
NoSuchActivitySettingException
- if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, int activityType, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the nameretrieveFromCache
- whether to use the finder cache
null
if a matching social activity setting could not be found
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)
SystemException
- if a system exception occurredpublic static List<SocialActivitySetting> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of social activity settingsend
- the upper bound of the range of social activity settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeByG_A(long groupId, int activityType) throws SystemException
groupId
- the group IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic static void removeByG_C_A(long groupId, long classNameId, int activityType) throws SystemException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic static SocialActivitySetting removeByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws SystemException, NoSuchActivitySettingException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
SystemException
- if a system exception occurred
NoSuchActivitySettingException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByG_A(long groupId, int activityType) throws SystemException
groupId
- the group IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic static int countByG_C_A(long groupId, long classNameId, int activityType) throws SystemException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity type
SystemException
- if a system exception occurredpublic static int countByG_C_A_N(long groupId, long classNameId, int activityType, String name) throws SystemException
groupId
- the group IDclassNameId
- the class name IDactivityType
- the activity typename
- the name
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static SocialActivitySettingPersistence getPersistence()
public void setPersistence(SocialActivitySettingPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |