|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialEquitySetting> com.liferay.portlet.social.service.persistence.SocialEquitySettingPersistenceImpl
public class SocialEquitySettingPersistenceImpl
The persistence implementation for the social equity setting service.
Never modify or reference this class directly. Always use SocialEquitySettingUtil
to access the social equity setting persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
SocialEquitySettingPersistence
,
SocialEquitySettingUtil
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 | |
---|---|
SocialEquitySettingPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the social equity setting persistence. |
void |
cacheResult(List<SocialEquitySetting> socialEquitySettings)
Caches the social equity settings in the entity cache if it is enabled. |
void |
cacheResult(SocialEquitySetting socialEquitySetting)
Caches the social equity setting in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all social equity settings. |
void |
clearCache(SocialEquitySetting socialEquitySetting)
Clears the cache for the social equity setting. |
int |
countAll()
Counts all the social equity settings. |
int |
countByG_C_A_T(long groupId,
long classNameId,
String actionId,
int type)
Counts all the social equity settings where groupId = ? and classNameId = ? and actionId = ? and type = ?. |
int |
countByG_C_A(long groupId,
long classNameId,
String actionId)
Counts all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. |
SocialEquitySetting |
create(long equitySettingId)
Creates a new social equity setting with the primary key. |
SocialEquitySetting |
fetchByG_C_A_T(long groupId,
long classNameId,
String actionId,
int type)
Finds the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? or returns null if it could not be found. |
SocialEquitySetting |
fetchByG_C_A_T(long groupId,
long classNameId,
String actionId,
int type,
boolean retrieveFromCache)
Finds the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? or returns null if it could not be found, optionally using the finder cache. |
SocialEquitySetting |
fetchByPrimaryKey(long equitySettingId)
Finds the social equity setting with the primary key or returns null if it could not be found. |
SocialEquitySetting |
fetchByPrimaryKey(Serializable primaryKey)
Finds the social equity setting with the primary key or returns null if it could not be found. |
List<SocialEquitySetting> |
findAll()
Finds all the social equity settings. |
List<SocialEquitySetting> |
findAll(int start,
int end)
Finds a range of all the social equity settings. |
List<SocialEquitySetting> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity settings. |
SocialEquitySetting |
findByG_C_A_First(long groupId,
long classNameId,
String actionId,
OrderByComparator orderByComparator)
Finds the first social equity setting in the ordered set where groupId = ? and classNameId = ? and actionId = ?. |
SocialEquitySetting |
findByG_C_A_Last(long groupId,
long classNameId,
String actionId,
OrderByComparator orderByComparator)
Finds the last social equity setting in the ordered set where groupId = ? and classNameId = ? and actionId = ?. |
SocialEquitySetting[] |
findByG_C_A_PrevAndNext(long equitySettingId,
long groupId,
long classNameId,
String actionId,
OrderByComparator orderByComparator)
Finds the social equity settings before and after the current social equity setting in the ordered set where groupId = ? and classNameId = ? and actionId = ?. |
SocialEquitySetting |
findByG_C_A_T(long groupId,
long classNameId,
String actionId,
int type)
Finds the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? or throws a NoSuchEquitySettingException if it could not be found. |
List<SocialEquitySetting> |
findByG_C_A(long groupId,
long classNameId,
String actionId)
Finds all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. |
List<SocialEquitySetting> |
findByG_C_A(long groupId,
long classNameId,
String actionId,
int start,
int end)
Finds a range of all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. |
List<SocialEquitySetting> |
findByG_C_A(long groupId,
long classNameId,
String actionId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the social equity settings where groupId = ? and classNameId = ? and actionId = ?. |
SocialEquitySetting |
findByPrimaryKey(long equitySettingId)
Finds the social equity setting with the primary key or throws a NoSuchEquitySettingException if it could not be found. |
SocialEquitySetting |
findByPrimaryKey(Serializable primaryKey)
Finds the social equity setting with the primary key or throws a NoSuchModelException if it could not be found. |
protected SocialEquitySetting |
getByG_C_A_PrevAndNext(Session session,
SocialEquitySetting socialEquitySetting,
long groupId,
long classNameId,
String actionId,
OrderByComparator orderByComparator,
boolean previous)
|
SocialEquitySetting |
remove(long equitySettingId)
Removes the social equity setting with the primary key from the database. |
SocialEquitySetting |
remove(Serializable primaryKey)
Removes the social equity setting with the primary key from the database. |
void |
removeAll()
Removes all the social equity settings from the database. |
void |
removeByG_C_A_T(long groupId,
long classNameId,
String actionId,
int type)
Removes the social equity setting where groupId = ? and classNameId = ? and actionId = ? and type = ? from the database. |
void |
removeByG_C_A(long groupId,
long classNameId,
String actionId)
Removes all the social equity settings where groupId = ? and classNameId = ? and actionId = ? from the database. |
protected SocialEquitySetting |
removeImpl(SocialEquitySetting socialEquitySetting)
Removes the model instance from the database. |
protected SocialEquitySetting |
toUnwrappedModel(SocialEquitySetting socialEquitySetting)
|
SocialEquitySetting |
updateImpl(SocialEquitySetting socialEquitySetting,
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, 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_FIND_BY_G_C_A
public static final FinderPath FINDER_PATH_COUNT_BY_G_C_A
public static final FinderPath FINDER_PATH_FETCH_BY_G_C_A_T
public static final FinderPath FINDER_PATH_COUNT_BY_G_C_A_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=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 SocialEquitySettingPersistenceImpl()
Method Detail |
---|
public void cacheResult(SocialEquitySetting socialEquitySetting)
cacheResult
in interface SocialEquitySettingPersistence
socialEquitySetting
- the social equity setting to cachepublic void cacheResult(List<SocialEquitySetting> socialEquitySettings)
cacheResult
in interface SocialEquitySettingPersistence
socialEquitySettings
- the social equity settings to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialEquitySetting>
clearCache
in class BasePersistenceImpl<SocialEquitySetting>
public void clearCache(SocialEquitySetting socialEquitySetting)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<SocialEquitySetting>
clearCache
in class BasePersistenceImpl<SocialEquitySetting>
socialEquitySetting
- the instance of this model to clear the cache forpublic SocialEquitySetting create(long equitySettingId)
create
in interface SocialEquitySettingPersistence
equitySettingId
- the primary key for the new social equity setting
public SocialEquitySetting remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<SocialEquitySetting>
remove
in class BasePersistenceImpl<SocialEquitySetting>
primaryKey
- the primary key of the social equity setting to remove
NoSuchModelException
- if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting remove(long equitySettingId) throws NoSuchEquitySettingException, SystemException
remove
in interface SocialEquitySettingPersistence
equitySettingId
- the primary key of the social equity setting to remove
NoSuchEquitySettingException
- if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquitySetting removeImpl(SocialEquitySetting socialEquitySetting) 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<SocialEquitySetting>
socialEquitySetting
- the model instance to remove
SystemException
- if a system exception occurredpublic SocialEquitySetting updateImpl(SocialEquitySetting socialEquitySetting, 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 SocialEquitySettingPersistence
updateImpl
in class BasePersistenceImpl<SocialEquitySetting>
socialEquitySetting
- 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 SocialEquitySetting toUnwrappedModel(SocialEquitySetting socialEquitySetting)
public SocialEquitySetting findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<SocialEquitySetting>
findByPrimaryKey
in class BasePersistenceImpl<SocialEquitySetting>
primaryKey
- the primary key of the social equity setting to find
NoSuchModelException
- if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting findByPrimaryKey(long equitySettingId) throws NoSuchEquitySettingException, SystemException
NoSuchEquitySettingException
if it could not be found.
findByPrimaryKey
in interface SocialEquitySettingPersistence
equitySettingId
- the primary key of the social equity setting to find
NoSuchEquitySettingException
- if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<SocialEquitySetting>
fetchByPrimaryKey
in class BasePersistenceImpl<SocialEquitySetting>
primaryKey
- the primary key of the social equity setting to find
null
if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting fetchByPrimaryKey(long equitySettingId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface SocialEquitySettingPersistence
equitySettingId
- the primary key of the social equity setting to find
null
if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredpublic List<SocialEquitySetting> findByG_C_A(long groupId, long classNameId, String actionId) throws SystemException
findByG_C_A
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search with
SystemException
- if a system exception occurredpublic List<SocialEquitySetting> findByG_C_A(long groupId, long classNameId, String actionId, 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.
findByG_C_A
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withstart
- the lower bound of the range of social equity settings to returnend
- the upper bound of the range of social equity settings to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquitySetting> findByG_C_A(long groupId, long classNameId, String actionId, 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.
findByG_C_A
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withstart
- the lower bound of the range of social equity settings to returnend
- the upper bound of the range of social equity settings to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic SocialEquitySetting findByG_C_A_First(long groupId, long classNameId, String actionId, OrderByComparator orderByComparator) throws NoSuchEquitySettingException, 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.
findByG_C_A_First
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withorderByComparator
- the comparator to order the set by
NoSuchEquitySettingException
- if a matching social equity setting could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting findByG_C_A_Last(long groupId, long classNameId, String actionId, OrderByComparator orderByComparator) throws NoSuchEquitySettingException, 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.
findByG_C_A_Last
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withorderByComparator
- the comparator to order the set by
NoSuchEquitySettingException
- if a matching social equity setting could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting[] findByG_C_A_PrevAndNext(long equitySettingId, long groupId, long classNameId, String actionId, OrderByComparator orderByComparator) throws NoSuchEquitySettingException, 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.
findByG_C_A_PrevAndNext
in interface SocialEquitySettingPersistence
equitySettingId
- the primary key of the current social equity settinggroupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withorderByComparator
- the comparator to order the set by
NoSuchEquitySettingException
- if a social equity setting with the primary key could not be found
SystemException
- if a system exception occurredprotected SocialEquitySetting getByG_C_A_PrevAndNext(Session session, SocialEquitySetting socialEquitySetting, long groupId, long classNameId, String actionId, OrderByComparator orderByComparator, boolean previous)
public SocialEquitySetting findByG_C_A_T(long groupId, long classNameId, String actionId, int type) throws NoSuchEquitySettingException, SystemException
NoSuchEquitySettingException
if it could not be found.
findByG_C_A_T
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withtype
- the type to search with
NoSuchEquitySettingException
- if a matching social equity setting could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting fetchByG_C_A_T(long groupId, long classNameId, String actionId, int type) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_C_A_T
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withtype
- the type to search with
null
if a matching social equity setting could not be found
SystemException
- if a system exception occurredpublic SocialEquitySetting fetchByG_C_A_T(long groupId, long classNameId, String actionId, int type, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByG_C_A_T
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withtype
- the type to search with
null
if a matching social equity setting could not be found
SystemException
- if a system exception occurredpublic List<SocialEquitySetting> findAll() throws SystemException
findAll
in interface SocialEquitySettingPersistence
SystemException
- if a system exception occurredpublic List<SocialEquitySetting> 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 SocialEquitySettingPersistence
start
- the lower bound of the range of social equity settings to returnend
- the upper bound of the range of social equity settings to return (not inclusive)
SystemException
- if a system exception occurredpublic List<SocialEquitySetting> 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 SocialEquitySettingPersistence
start
- the lower bound of the range of social equity settings to returnend
- the upper bound of the range of social equity settings to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByG_C_A(long groupId, long classNameId, String actionId) throws SystemException
removeByG_C_A
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search with
SystemException
- if a system exception occurredpublic void removeByG_C_A_T(long groupId, long classNameId, String actionId, int type) throws NoSuchEquitySettingException, SystemException
removeByG_C_A_T
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withtype
- the type to search with
SystemException
- if a system exception occurred
NoSuchEquitySettingException
public void removeAll() throws SystemException
removeAll
in interface SocialEquitySettingPersistence
SystemException
- if a system exception occurredpublic int countByG_C_A(long groupId, long classNameId, String actionId) throws SystemException
countByG_C_A
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search with
SystemException
- if a system exception occurredpublic int countByG_C_A_T(long groupId, long classNameId, String actionId, int type) throws SystemException
countByG_C_A_T
in interface SocialEquitySettingPersistence
groupId
- the group id to search withclassNameId
- the class name id to search withactionId
- the action id to search withtype
- the type to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface SocialEquitySettingPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |