|
Liferay 6.1.0-ce-rc1 | |||||||||
| 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<MDRRule>
com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistenceImpl
public class MDRRulePersistenceImpl
The persistence implementation for the m d r rule service.
Caching information and settings can be found in portal.properties
MDRRulePersistence,
MDRRuleUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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 | |
|---|---|
MDRRulePersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the m d r rule persistence. |
void |
cacheResult(List<MDRRule> mdrRules)
Caches the m d r rules in the entity cache if it is enabled. |
void |
cacheResult(MDRRule mdrRule)
Caches the m d r rule in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all m d r rules. |
void |
clearCache(List<MDRRule> mdrRules)
Clears the cache for a List instances of this model. |
void |
clearCache(MDRRule mdrRule)
Clears the cache for the m d r rule. |
protected void |
clearUniqueFindersCache(MDRRule mdrRule)
|
int |
countAll()
Returns the number of m d r rules. |
int |
countByRuleGroupId(long ruleGroupId)
Returns the number of m d r rules where ruleGroupId = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of m d r rules where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of m d r rules where uuid = ?. |
MDRRule |
create(long ruleId)
Creates a new m d r rule with the primary key. |
void |
destroy()
|
MDRRule |
fetchByPrimaryKey(long ruleId)
Returns the m d r rule with the primary key or returns null if it could not be found. |
MDRRule |
fetchByPrimaryKey(Serializable primaryKey)
Returns the m d r rule with the primary key or returns null if it could not be found. |
MDRRule |
fetchByUUID_G(String uuid,
long groupId)
Returns the m d r rule where uuid = ? and groupId = ? or returns null if it could not be found. |
MDRRule |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the m d r rule where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
List<MDRRule> |
findAll()
Returns all the m d r rules. |
List<MDRRule> |
findAll(int start,
int end)
Returns a range of all the m d r rules. |
List<MDRRule> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rules. |
MDRRule |
findByPrimaryKey(long ruleId)
Returns the m d r rule with the primary key or throws a NoSuchRuleException if it could not be found. |
MDRRule |
findByPrimaryKey(Serializable primaryKey)
Returns the m d r rule with the primary key or throws a NoSuchModelException if it could not be found. |
MDRRule |
findByRuleGroupId_First(long ruleGroupId,
OrderByComparator orderByComparator)
Returns the first m d r rule in the ordered set where ruleGroupId = ?. |
MDRRule |
findByRuleGroupId_Last(long ruleGroupId,
OrderByComparator orderByComparator)
Returns the last m d r rule in the ordered set where ruleGroupId = ?. |
MDRRule[] |
findByRuleGroupId_PrevAndNext(long ruleId,
long ruleGroupId,
OrderByComparator orderByComparator)
Returns the m d r rules before and after the current m d r rule in the ordered set where ruleGroupId = ?. |
List<MDRRule> |
findByRuleGroupId(long ruleGroupId)
Returns all the m d r rules where ruleGroupId = ?. |
List<MDRRule> |
findByRuleGroupId(long ruleGroupId,
int start,
int end)
Returns a range of all the m d r rules where ruleGroupId = ?. |
List<MDRRule> |
findByRuleGroupId(long ruleGroupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rules where ruleGroupId = ?. |
MDRRule |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first m d r rule in the ordered set where uuid = ?. |
MDRRule |
findByUUID_G(String uuid,
long groupId)
Returns the m d r rule where uuid = ? and groupId = ? or throws a NoSuchRuleException if it could not be found. |
MDRRule |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last m d r rule in the ordered set where uuid = ?. |
MDRRule[] |
findByUuid_PrevAndNext(long ruleId,
String uuid,
OrderByComparator orderByComparator)
Returns the m d r rules before and after the current m d r rule in the ordered set where uuid = ?. |
List<MDRRule> |
findByUuid(String uuid)
Returns all the m d r rules where uuid = ?. |
List<MDRRule> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the m d r rules where uuid = ?. |
List<MDRRule> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rules where uuid = ?. |
protected MDRRule |
getByRuleGroupId_PrevAndNext(Session session,
MDRRule mdrRule,
long ruleGroupId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MDRRule |
getByUuid_PrevAndNext(Session session,
MDRRule mdrRule,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
MDRRule |
remove(long ruleId)
Removes the m d r rule with the primary key from the database. |
MDRRule |
remove(Serializable primaryKey)
Removes the m d r rule with the primary key from the database. |
void |
removeAll()
Removes all the m d r rules from the database. |
void |
removeByRuleGroupId(long ruleGroupId)
Removes all the m d r rules where ruleGroupId = ? from the database. |
void |
removeByUUID_G(String uuid,
long groupId)
Removes the m d r rule where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the m d r rules where uuid = ? from the database. |
protected MDRRule |
removeImpl(MDRRule mdrRule)
Removes the model instance from the database. |
protected MDRRule |
toUnwrappedModel(MDRRule mdrRule)
|
MDRRule |
updateImpl(MDRRule mdrRule,
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 |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RULEGROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RULEGROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_RULEGROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=MDRActionPersistence.class) protected MDRActionPersistence mdrActionPersistence
@BeanReference(type=MDRRulePersistence.class) protected MDRRulePersistence mdrRulePersistence
@BeanReference(type=MDRRuleGroupPersistence.class) protected MDRRuleGroupPersistence mdrRuleGroupPersistence
@BeanReference(type=MDRRuleGroupInstancePersistence.class) protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
| Constructor Detail |
|---|
public MDRRulePersistenceImpl()
| Method Detail |
|---|
public void cacheResult(MDRRule mdrRule)
cacheResult in interface MDRRulePersistencemdrRule - the m d r rulepublic void cacheResult(List<MDRRule> mdrRules)
cacheResult in interface MDRRulePersistencemdrRules - the m d r rulespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<MDRRule>clearCache in class BasePersistenceImpl<MDRRule>public void clearCache(MDRRule mdrRule)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<MDRRule>clearCache in class BasePersistenceImpl<MDRRule>mdrRule - the instance of this model to clear the cache forpublic void clearCache(List<MDRRule> mdrRules)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<MDRRule>clearCache in class BasePersistenceImpl<MDRRule>mdrRules - the List instances of this model to clear the cache forprotected void clearUniqueFindersCache(MDRRule mdrRule)
public MDRRule create(long ruleId)
create in interface MDRRulePersistenceruleId - the primary key for the new m d r rule
public MDRRule remove(long ruleId)
throws NoSuchRuleException,
SystemException
remove in interface MDRRulePersistenceruleId - the primary key of the m d r rule
NoSuchRuleException - if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
public MDRRule remove(Serializable primaryKey)
throws NoSuchRuleException,
SystemException
remove in interface BasePersistence<MDRRule>remove in class BasePersistenceImpl<MDRRule>primaryKey - the primary key of the m d r rule
NoSuchRuleException - if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
protected MDRRule removeImpl(MDRRule mdrRule)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<MDRRule>mdrRule - the model instance to remove
SystemException - if a system exception occurred
public MDRRule updateImpl(MDRRule mdrRule,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface MDRRulePersistenceupdateImpl in class BasePersistenceImpl<MDRRule>mdrRule - 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 MDRRule toUnwrappedModel(MDRRule mdrRule)
public MDRRule findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<MDRRule>findByPrimaryKey in class BasePersistenceImpl<MDRRule>primaryKey - the primary key of the m d r rule
NoSuchModelException - if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
public MDRRule findByPrimaryKey(long ruleId)
throws NoSuchRuleException,
SystemException
NoSuchRuleException if it could not be found.
findByPrimaryKey in interface MDRRulePersistenceruleId - the primary key of the m d r rule
NoSuchRuleException - if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
public MDRRule fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<MDRRule>fetchByPrimaryKey in class BasePersistenceImpl<MDRRule>primaryKey - the primary key of the m d r rule
null if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
public MDRRule fetchByPrimaryKey(long ruleId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface MDRRulePersistenceruleId - the primary key of the m d r rule
null if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
public List<MDRRule> findByUuid(String uuid)
throws SystemException
findByUuid in interface MDRRulePersistenceuuid - the uuid
SystemException - if a system exception occurred
public List<MDRRule> findByUuid(String uuid,
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.
findByUuid in interface MDRRulePersistenceuuid - the uuidstart - the lower bound of the range of m d r rulesend - the upper bound of the range of m d r rules (not inclusive)
SystemException - if a system exception occurred
public List<MDRRule> findByUuid(String uuid,
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.
findByUuid in interface MDRRulePersistenceuuid - the uuidstart - the lower bound of the range of m d r rulesend - the upper bound of the range of m d r rules (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public MDRRule findByUuid_First(String uuid,
OrderByComparator orderByComparator)
throws NoSuchRuleException,
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.
findByUuid_First in interface MDRRulePersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleException - if a matching m d r rule could not be found
SystemException - if a system exception occurred
public MDRRule findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
throws NoSuchRuleException,
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.
findByUuid_Last in interface MDRRulePersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleException - if a matching m d r rule could not be found
SystemException - if a system exception occurred
public MDRRule[] findByUuid_PrevAndNext(long ruleId,
String uuid,
OrderByComparator orderByComparator)
throws NoSuchRuleException,
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.
findByUuid_PrevAndNext in interface MDRRulePersistenceruleId - the primary key of the current m d r ruleuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleException - if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
protected MDRRule getByUuid_PrevAndNext(Session session,
MDRRule mdrRule,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
public MDRRule findByUUID_G(String uuid,
long groupId)
throws NoSuchRuleException,
SystemException
NoSuchRuleException if it could not be found.
findByUUID_G in interface MDRRulePersistenceuuid - the uuidgroupId - the group ID
NoSuchRuleException - if a matching m d r rule could not be found
SystemException - if a system exception occurred
public MDRRule fetchByUUID_G(String uuid,
long groupId)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByUUID_G in interface MDRRulePersistenceuuid - the uuidgroupId - the group ID
null if a matching m d r rule could not be found
SystemException - if a system exception occurred
public MDRRule fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByUUID_G in interface MDRRulePersistenceuuid - the uuidgroupId - the group IDretrieveFromCache - whether to use the finder cache
null if a matching m d r rule could not be found
SystemException - if a system exception occurred
public List<MDRRule> findByRuleGroupId(long ruleGroupId)
throws SystemException
findByRuleGroupId in interface MDRRulePersistenceruleGroupId - the rule group ID
SystemException - if a system exception occurred
public List<MDRRule> findByRuleGroupId(long ruleGroupId,
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.
findByRuleGroupId in interface MDRRulePersistenceruleGroupId - the rule group IDstart - the lower bound of the range of m d r rulesend - the upper bound of the range of m d r rules (not inclusive)
SystemException - if a system exception occurred
public List<MDRRule> findByRuleGroupId(long ruleGroupId,
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.
findByRuleGroupId in interface MDRRulePersistenceruleGroupId - the rule group IDstart - the lower bound of the range of m d r rulesend - the upper bound of the range of m d r rules (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public MDRRule findByRuleGroupId_First(long ruleGroupId,
OrderByComparator orderByComparator)
throws NoSuchRuleException,
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.
findByRuleGroupId_First in interface MDRRulePersistenceruleGroupId - the rule group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleException - if a matching m d r rule could not be found
SystemException - if a system exception occurred
public MDRRule findByRuleGroupId_Last(long ruleGroupId,
OrderByComparator orderByComparator)
throws NoSuchRuleException,
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.
findByRuleGroupId_Last in interface MDRRulePersistenceruleGroupId - the rule group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleException - if a matching m d r rule could not be found
SystemException - if a system exception occurred
public MDRRule[] findByRuleGroupId_PrevAndNext(long ruleId,
long ruleGroupId,
OrderByComparator orderByComparator)
throws NoSuchRuleException,
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.
findByRuleGroupId_PrevAndNext in interface MDRRulePersistenceruleId - the primary key of the current m d r ruleruleGroupId - the rule group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleException - if a m d r rule with the primary key could not be found
SystemException - if a system exception occurred
protected MDRRule getByRuleGroupId_PrevAndNext(Session session,
MDRRule mdrRule,
long ruleGroupId,
OrderByComparator orderByComparator,
boolean previous)
public List<MDRRule> findAll()
throws SystemException
findAll in interface MDRRulePersistenceSystemException - if a system exception occurred
public List<MDRRule> 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 MDRRulePersistencestart - the lower bound of the range of m d r rulesend - the upper bound of the range of m d r rules (not inclusive)
SystemException - if a system exception occurred
public List<MDRRule> 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 MDRRulePersistencestart - the lower bound of the range of m d r rulesend - the upper bound of the range of m d r rules (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public void removeByUuid(String uuid)
throws SystemException
removeByUuid in interface MDRRulePersistenceuuid - the uuid
SystemException - if a system exception occurred
public void removeByUUID_G(String uuid,
long groupId)
throws NoSuchRuleException,
SystemException
removeByUUID_G in interface MDRRulePersistenceuuid - the uuidgroupId - the group ID
SystemException - if a system exception occurred
NoSuchRuleException
public void removeByRuleGroupId(long ruleGroupId)
throws SystemException
removeByRuleGroupId in interface MDRRulePersistenceruleGroupId - the rule group ID
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface MDRRulePersistenceSystemException - if a system exception occurred
public int countByUuid(String uuid)
throws SystemException
countByUuid in interface MDRRulePersistenceuuid - the uuid
SystemException - if a system exception occurred
public int countByUUID_G(String uuid,
long groupId)
throws SystemException
countByUUID_G in interface MDRRulePersistenceuuid - the uuidgroupId - the group ID
SystemException - if a system exception occurred
public int countByRuleGroupId(long ruleGroupId)
throws SystemException
countByRuleGroupId in interface MDRRulePersistenceruleGroupId - the rule group ID
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface MDRRulePersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||