|
Liferay 6.2-ce-ga5 | |||||||||
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<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. |
protected void |
cacheUniqueFindersCache(MDRRule mdrRule)
|
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_C(String uuid,
long companyId)
Returns the number of m d r rules where uuid = ? and companyId = ?. |
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 |
fetchByRuleGroupId_First(long ruleGroupId,
OrderByComparator orderByComparator)
Returns the first m d r rule in the ordered set where ruleGroupId = ?. |
MDRRule |
fetchByRuleGroupId_Last(long ruleGroupId,
OrderByComparator orderByComparator)
Returns the last m d r rule in the ordered set where ruleGroupId = ?. |
MDRRule |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first m d r rule in the ordered set where uuid = ? and companyId = ?. |
MDRRule |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last m d r rule in the ordered set where uuid = ? and companyId = ?. |
MDRRule |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first m d r rule in the ordered set where uuid = ?. |
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. |
MDRRule |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last m d r rule in the ordered set where uuid = ?. |
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_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first m d r rule in the ordered set where uuid = ? and companyId = ?. |
MDRRule |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last m d r rule in the ordered set where uuid = ? and companyId = ?. |
MDRRule[] |
findByUuid_C_PrevAndNext(long ruleId,
String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the m d r rules before and after the current m d r rule in the ordered set where uuid = ? and companyId = ?. |
List<MDRRule> |
findByUuid_C(String uuid,
long companyId)
Returns all the m d r rules where uuid = ? and companyId = ?. |
List<MDRRule> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the m d r rules where uuid = ? and companyId = ?. |
List<MDRRule> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rules where uuid = ? and companyId = ?. |
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 Set<String> |
getBadColumnNames()
|
protected MDRRule |
getByRuleGroupId_PrevAndNext(Session session,
MDRRule mdrRule,
long ruleGroupId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MDRRule |
getByUuid_C_PrevAndNext(Session session,
MDRRule mdrRule,
String uuid,
long companyId,
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_C(String uuid,
long companyId)
Removes all the m d r rules where uuid = ? and companyId = ? from the database. |
MDRRule |
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)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
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_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
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
Constructor Detail |
---|
public MDRRulePersistenceImpl()
Method Detail |
---|
public List<MDRRule> findByUuid(String uuid) throws SystemException
findByUuid
in interface MDRRulePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid
in interface MDRRulePersistence
uuid
- 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 occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid
in interface MDRRulePersistence
uuid
- 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 occurredpublic MDRRule findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByUuid_First
in interface MDRRulePersistence
uuid
- 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 occurredpublic MDRRule fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface MDRRulePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByUuid_Last
in interface MDRRulePersistence
uuid
- 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 occurredpublic MDRRule fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface MDRRulePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule[] findByUuid_PrevAndNext(long ruleId, String uuid, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByUuid_PrevAndNext
in interface MDRRulePersistence
ruleId
- 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 occurredprotected MDRRule getByUuid_PrevAndNext(Session session, MDRRule mdrRule, String uuid, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface MDRRulePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface MDRRulePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic MDRRule findByUUID_G(String uuid, long groupId) throws NoSuchRuleException, SystemException
NoSuchRuleException
if it could not be found.
findByUUID_G
in interface MDRRulePersistence
uuid
- the uuidgroupId
- the group ID
NoSuchRuleException
- if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface MDRRulePersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic 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 MDRRulePersistence
uuid
- 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 occurredpublic MDRRule removeByUUID_G(String uuid, long groupId) throws NoSuchRuleException, SystemException
removeByUUID_G
in interface MDRRulePersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchRuleException
public int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface MDRRulePersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic List<MDRRule> findByUuid_C(String uuid, long companyId) throws SystemException
findByUuid_C
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic List<MDRRule> findByUuid_C(String uuid, long companyId, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company 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 occurredpublic List<MDRRule> findByUuid_C(String uuid, long companyId, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company 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 occurredpublic MDRRule findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByUuid_C_First
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company 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 occurredpublic MDRRule fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_C_First
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByUuid_C_Last
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company 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 occurredpublic MDRRule fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_C_Last
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule[] findByUuid_C_PrevAndNext(long ruleId, String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByUuid_C_PrevAndNext
in interface MDRRulePersistence
ruleId
- the primary key of the current m d r ruleuuid
- the uuidcompanyId
- the company 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 occurredprotected MDRRule getByUuid_C_PrevAndNext(Session session, MDRRule mdrRule, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid_C(String uuid, long companyId) throws SystemException
removeByUuid_C
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic int countByUuid_C(String uuid, long companyId) throws SystemException
countByUuid_C
in interface MDRRulePersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic List<MDRRule> findByRuleGroupId(long ruleGroupId) throws SystemException
findByRuleGroupId
in interface MDRRulePersistence
ruleGroupId
- the rule group ID
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByRuleGroupId
in interface MDRRulePersistence
ruleGroupId
- 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 occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByRuleGroupId
in interface MDRRulePersistence
ruleGroupId
- 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 occurredpublic MDRRule findByRuleGroupId_First(long ruleGroupId, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByRuleGroupId_First
in interface MDRRulePersistence
ruleGroupId
- 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 occurredpublic MDRRule fetchByRuleGroupId_First(long ruleGroupId, OrderByComparator orderByComparator) throws SystemException
fetchByRuleGroupId_First
in interface MDRRulePersistence
ruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule findByRuleGroupId_Last(long ruleGroupId, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByRuleGroupId_Last
in interface MDRRulePersistence
ruleGroupId
- 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 occurredpublic MDRRule fetchByRuleGroupId_Last(long ruleGroupId, OrderByComparator orderByComparator) throws SystemException
fetchByRuleGroupId_Last
in interface MDRRulePersistence
ruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule could not be found
SystemException
- if a system exception occurredpublic MDRRule[] findByRuleGroupId_PrevAndNext(long ruleId, long ruleGroupId, OrderByComparator orderByComparator) throws NoSuchRuleException, SystemException
findByRuleGroupId_PrevAndNext
in interface MDRRulePersistence
ruleId
- 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 occurredprotected MDRRule getByRuleGroupId_PrevAndNext(Session session, MDRRule mdrRule, long ruleGroupId, OrderByComparator orderByComparator, boolean previous)
public void removeByRuleGroupId(long ruleGroupId) throws SystemException
removeByRuleGroupId
in interface MDRRulePersistence
ruleGroupId
- the rule group ID
SystemException
- if a system exception occurredpublic int countByRuleGroupId(long ruleGroupId) throws SystemException
countByRuleGroupId
in interface MDRRulePersistence
ruleGroupId
- the rule group ID
SystemException
- if a system exception occurredpublic void cacheResult(MDRRule mdrRule)
cacheResult
in interface MDRRulePersistence
mdrRule
- the m d r rulepublic void cacheResult(List<MDRRule> mdrRules)
cacheResult
in interface MDRRulePersistence
mdrRules
- 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 cacheUniqueFindersCache(MDRRule mdrRule)
protected void clearUniqueFindersCache(MDRRule mdrRule)
public MDRRule create(long ruleId)
create
in interface MDRRulePersistence
ruleId
- the primary key for the new m d r rule
public MDRRule remove(long ruleId) throws NoSuchRuleException, SystemException
remove
in interface MDRRulePersistence
ruleId
- 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 occurredpublic 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 occurredprotected MDRRule removeImpl(MDRRule mdrRule) 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<MDRRule>
mdrRule
- the model instance to remove
SystemException
- if a system exception occurredpublic MDRRule updateImpl(MDRRule mdrRule) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface MDRRulePersistence
updateImpl
in class BasePersistenceImpl<MDRRule>
mdrRule
- the model instance to update
SystemException
- if a system exception occurredprotected MDRRule toUnwrappedModel(MDRRule mdrRule)
public MDRRule findByPrimaryKey(Serializable primaryKey) throws NoSuchRuleException, 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
NoSuchRuleException
- if a m d r rule with the primary key could not be found
SystemException
- if a system exception occurredpublic MDRRule findByPrimaryKey(long ruleId) throws NoSuchRuleException, SystemException
NoSuchRuleException
if it could not be found.
findByPrimaryKey
in interface MDRRulePersistence
ruleId
- 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 occurredpublic 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 occurredpublic MDRRule fetchByPrimaryKey(long ruleId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface MDRRulePersistence
ruleId
- 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 occurredpublic List<MDRRule> findAll() throws SystemException
findAll
in interface MDRRulePersistence
SystemException
- if a system exception occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface MDRRulePersistence
start
- 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 occurredpublic 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from MDRRuleModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface MDRRulePersistence
start
- 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 occurredpublic void removeAll() throws SystemException
removeAll
in interface MDRRulePersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface MDRRulePersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<MDRRule>
public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |