|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialEquityGroupSetting>
com.liferay.portlet.social.service.persistence.SocialEquityGroupSettingPersistenceImpl
public class SocialEquityGroupSettingPersistenceImpl
The persistence implementation for the social equity group setting service.
Never modify or reference this class directly. Always use SocialEquityGroupSettingUtil
to access the social equity group setting persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
SocialEquityGroupSettingPersistence
,
SocialEquityGroupSettingUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, 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 | |
---|---|
SocialEquityGroupSettingPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the social equity group setting persistence. |
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. |
void |
clearCache()
Clears the cache for all social equity group settings. |
void |
clearCache(SocialEquityGroupSetting socialEquityGroupSetting)
Clears the cache for the social equity group setting. |
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. |
void |
destroy()
|
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. |
SocialEquityGroupSetting |
fetchByPrimaryKey(Serializable primaryKey)
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 |
findByPrimaryKey(Serializable primaryKey)
Finds the social equity group setting with the primary key or throws a NoSuchModelException if it could not be found. |
SocialEquityGroupSetting |
remove(long equityGroupSettingId)
Removes the social equity group setting with the primary key from the database. |
SocialEquityGroupSetting |
remove(Serializable primaryKey)
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. |
protected SocialEquityGroupSetting |
removeImpl(SocialEquityGroupSetting socialEquityGroupSetting)
Removes the model instance from the database. |
protected SocialEquityGroupSetting |
toUnwrappedModel(SocialEquityGroupSetting socialEquityGroupSetting)
|
SocialEquityGroupSetting |
updateImpl(SocialEquityGroupSetting socialEquityGroupSetting,
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, 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 |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FETCH_BY_G_C_T
public static final FinderPath FINDER_PATH_COUNT_BY_G_C_T
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=SocialActivityPersistence.class) protected SocialActivityPersistence socialActivityPersistence
@BeanReference(type=SocialEquityAssetEntryPersistence.class) protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence
@BeanReference(type=SocialEquityGroupSettingPersistence.class) protected SocialEquityGroupSettingPersistence socialEquityGroupSettingPersistence
@BeanReference(type=SocialEquityHistoryPersistence.class) protected SocialEquityHistoryPersistence socialEquityHistoryPersistence
@BeanReference(type=SocialEquityLogPersistence.class) protected SocialEquityLogPersistence socialEquityLogPersistence
@BeanReference(type=SocialEquitySettingPersistence.class) protected SocialEquitySettingPersistence socialEquitySettingPersistence
@BeanReference(type=SocialEquityUserPersistence.class) protected SocialEquityUserPersistence socialEquityUserPersistence
@BeanReference(type=SocialRelationPersistence.class) protected SocialRelationPersistence socialRelationPersistence
@BeanReference(type=SocialRequestPersistence.class) protected SocialRequestPersistence socialRequestPersistence
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public SocialEquityGroupSettingPersistenceImpl()
Method Detail |
---|
public void cacheResult(SocialEquityGroupSetting socialEquityGroupSetting)
cacheResult
in interface SocialEquityGroupSettingPersistence
socialEquityGroupSetting
- the social equity group setting to cachepublic void cacheResult(List<SocialEquityGroupSetting> socialEquityGroupSettings)
cacheResult
in interface SocialEquityGroupSettingPersistence
socialEquityGroupSettings
- the social equity group settings to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialEquityGroupSetting>
clearCache
in class BasePersistenceImpl<SocialEquityGroupSetting>
public void clearCache(SocialEquityGroupSetting socialEquityGroupSetting)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialEquityGroupSetting>
clearCache
in class BasePersistenceImpl<SocialEquityGroupSetting>
socialEquityGroupSetting
- the instance of this model to clear the cache forpublic SocialEquityGroupSetting create(long equityGroupSettingId)
create
in interface SocialEquityGroupSettingPersistence
equityGroupSettingId
- the primary key for the new social equity group setting
public SocialEquityGroupSetting remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<SocialEquityGroupSetting>
remove
in class BasePersistenceImpl<SocialEquityGroupSetting>
primaryKey
- the primary key of the social equity group setting to remove
NoSuchModelException
- if a social equity group setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting remove(long equityGroupSettingId) throws NoSuchEquityGroupSettingException, SystemException
remove
in interface SocialEquityGroupSettingPersistence
equityGroupSettingId
- the primary key of the social equity group setting to remove
NoSuchEquityGroupSettingException
- if a social equity group setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquityGroupSetting removeImpl(SocialEquityGroupSetting socialEquityGroupSetting) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<SocialEquityGroupSetting>
socialEquityGroupSetting
- the model instance to remove
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting updateImpl(SocialEquityGroupSetting socialEquityGroupSetting, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface SocialEquityGroupSettingPersistence
updateImpl
in class BasePersistenceImpl<SocialEquityGroupSetting>
socialEquityGroupSetting
- the model instance to updatemerge
- 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.
SystemException
- if a system exception occurredprotected SocialEquityGroupSetting toUnwrappedModel(SocialEquityGroupSetting socialEquityGroupSetting)
public SocialEquityGroupSetting findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<SocialEquityGroupSetting>
findByPrimaryKey
in class BasePersistenceImpl<SocialEquityGroupSetting>
primaryKey
- the primary key of the social equity group setting to find
NoSuchModelException
- if a social equity group setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting findByPrimaryKey(long equityGroupSettingId) throws NoSuchEquityGroupSettingException, SystemException
NoSuchEquityGroupSettingException
if it could not be found.
findByPrimaryKey
in interface SocialEquityGroupSettingPersistence
equityGroupSettingId
- the primary key of the social equity group setting to find
NoSuchEquityGroupSettingException
- if a social equity group setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<SocialEquityGroupSetting>
fetchByPrimaryKey
in class BasePersistenceImpl<SocialEquityGroupSetting>
primaryKey
- the primary key of the social equity group setting to find
null
if a social equity group setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting fetchByPrimaryKey(long equityGroupSettingId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface SocialEquityGroupSettingPersistence
equityGroupSettingId
- the primary key of the social equity group setting to find
null
if a social equity group setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting findByG_C_T(long groupId, long classNameId, int type) throws NoSuchEquityGroupSettingException, SystemException
NoSuchEquityGroupSettingException
if it could not be found.
findByG_C_T
in interface SocialEquityGroupSettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withtype
- the type to search with
NoSuchEquityGroupSettingException
- if a matching social equity group setting could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting fetchByG_C_T(long groupId, long classNameId, int type) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_C_T
in interface SocialEquityGroupSettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withtype
- the type to search with
null
if a matching social equity group setting could not be found
SystemException
- if a system exception occurredpublic SocialEquityGroupSetting fetchByG_C_T(long groupId, long classNameId, int type, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_C_T
in interface SocialEquityGroupSettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withtype
- the type to search with
null
if a matching social equity group setting could not be found
SystemException
- if a system exception occurredpublic List<SocialEquityGroupSetting> findAll() throws SystemException
findAll
in interface SocialEquityGroupSettingPersistence
SystemException
- if a system exception occurredpublic List<SocialEquityGroupSetting> 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.
findAll
in interface SocialEquityGroupSettingPersistence
start
- the lower bound of the range of social equity group settings to returnend
- the upper bound of the range of social equity group settings to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquityGroupSetting> 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.
findAll
in interface SocialEquityGroupSettingPersistence
start
- the lower bound of the range of social equity group settings to returnend
- the upper bound of the range of social equity group settings to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByG_C_T(long groupId, long classNameId, int type) throws NoSuchEquityGroupSettingException, SystemException
removeByG_C_T
in interface SocialEquityGroupSettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withtype
- the type to search with
SystemException
- if a system exception occurred
NoSuchEquityGroupSettingException
public void removeAll() throws SystemException
removeAll
in interface SocialEquityGroupSettingPersistence
SystemException
- if a system exception occurredpublic int countByG_C_T(long groupId, long classNameId, int type) throws SystemException
countByG_C_T
in interface SocialEquityGroupSettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface SocialEquityGroupSettingPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |