|
Liferay 6.2-ce-ga5 | |||||||||
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<MDRRuleGroup>
com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistenceImpl
public class MDRRuleGroupPersistenceImpl
The persistence implementation for the m d r rule group service.
Caching information and settings can be found in portal.properties
MDRRuleGroupPersistence
,
MDRRuleGroupUtil
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 | |
---|---|
MDRRuleGroupPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the m d r rule group persistence. |
void |
cacheResult(List<MDRRuleGroup> mdrRuleGroups)
Caches the m d r rule groups in the entity cache if it is enabled. |
void |
cacheResult(MDRRuleGroup mdrRuleGroup)
Caches the m d r rule group in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(MDRRuleGroup mdrRuleGroup)
|
void |
clearCache()
Clears the cache for all m d r rule groups. |
void |
clearCache(List<MDRRuleGroup> mdrRuleGroups)
Clears the cache for a List instances of this model. |
void |
clearCache(MDRRuleGroup mdrRuleGroup)
Clears the cache for the m d r rule group. |
protected void |
clearUniqueFindersCache(MDRRuleGroup mdrRuleGroup)
|
int |
countAll()
Returns the number of m d r rule groups. |
int |
countByGroupId(long groupId)
Returns the number of m d r rule groups where groupId = ?. |
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of m d r rule groups where uuid = ? and companyId = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of m d r rule groups where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of m d r rule groups where uuid = ?. |
MDRRuleGroup |
create(long ruleGroupId)
Creates a new m d r rule group with the primary key. |
void |
destroy()
|
MDRRuleGroup |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where groupId = ?. |
MDRRuleGroup |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where groupId = ?. |
MDRRuleGroup |
fetchByPrimaryKey(long ruleGroupId)
Returns the m d r rule group with the primary key or returns null if it could not be found. |
MDRRuleGroup |
fetchByPrimaryKey(Serializable primaryKey)
Returns the m d r rule group with the primary key or returns null if it could not be found. |
MDRRuleGroup |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ? and companyId = ?. |
MDRRuleGroup |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. |
MDRRuleGroup |
fetchByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ?. |
MDRRuleGroup |
fetchByUUID_G(String uuid,
long groupId)
Returns the m d r rule group where uuid = ? and groupId = ? or returns null if it could not be found. |
MDRRuleGroup |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the m d r rule group where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
MDRRuleGroup |
fetchByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ?. |
int |
filterCountByGroupId(long groupId)
Returns the number of m d r rule groups that the user has permission to view where groupId = ?. |
MDRRuleGroup[] |
filterFindByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set of m d r rule groups that the user has permission to view where groupId = ?. |
List<MDRRuleGroup> |
filterFindByGroupId(long groupId)
Returns all the m d r rule groups that the user has permission to view where groupId = ?. |
List<MDRRuleGroup> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the m d r rule groups that the user has permission to view where groupId = ?. |
List<MDRRuleGroup> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rule groups that the user has permissions to view where groupId = ?. |
protected MDRRuleGroup |
filterGetByGroupId_PrevAndNext(Session session,
MDRRuleGroup mdrRuleGroup,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
List<MDRRuleGroup> |
findAll()
Returns all the m d r rule groups. |
List<MDRRuleGroup> |
findAll(int start,
int end)
Returns a range of all the m d r rule groups. |
List<MDRRuleGroup> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rule groups. |
MDRRuleGroup |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where groupId = ?. |
MDRRuleGroup |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where groupId = ?. |
MDRRuleGroup[] |
findByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set where groupId = ?. |
List<MDRRuleGroup> |
findByGroupId(long groupId)
Returns all the m d r rule groups where groupId = ?. |
List<MDRRuleGroup> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the m d r rule groups where groupId = ?. |
List<MDRRuleGroup> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rule groups where groupId = ?. |
MDRRuleGroup |
findByPrimaryKey(long ruleGroupId)
Returns the m d r rule group with the primary key or throws a NoSuchRuleGroupException if it could not be found. |
MDRRuleGroup |
findByPrimaryKey(Serializable primaryKey)
Returns the m d r rule group with the primary key or throws a NoSuchModelException if it could not be found. |
MDRRuleGroup |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ? and companyId = ?. |
MDRRuleGroup |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. |
MDRRuleGroup[] |
findByUuid_C_PrevAndNext(long ruleGroupId,
String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set where uuid = ? and companyId = ?. |
List<MDRRuleGroup> |
findByUuid_C(String uuid,
long companyId)
Returns all the m d r rule groups where uuid = ? and companyId = ?. |
List<MDRRuleGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the m d r rule groups where uuid = ? and companyId = ?. |
List<MDRRuleGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rule groups where uuid = ? and companyId = ?. |
MDRRuleGroup |
findByUuid_First(String uuid,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ?. |
MDRRuleGroup |
findByUUID_G(String uuid,
long groupId)
Returns the m d r rule group where uuid = ? and groupId = ? or throws a NoSuchRuleGroupException if it could not be found. |
MDRRuleGroup |
findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ?. |
MDRRuleGroup[] |
findByUuid_PrevAndNext(long ruleGroupId,
String uuid,
OrderByComparator orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set where uuid = ?. |
List<MDRRuleGroup> |
findByUuid(String uuid)
Returns all the m d r rule groups where uuid = ?. |
List<MDRRuleGroup> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the m d r rule groups where uuid = ?. |
List<MDRRuleGroup> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the m d r rule groups where uuid = ?. |
protected Set<String> |
getBadColumnNames()
|
protected MDRRuleGroup |
getByGroupId_PrevAndNext(Session session,
MDRRuleGroup mdrRuleGroup,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MDRRuleGroup |
getByUuid_C_PrevAndNext(Session session,
MDRRuleGroup mdrRuleGroup,
String uuid,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected MDRRuleGroup |
getByUuid_PrevAndNext(Session session,
MDRRuleGroup mdrRuleGroup,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
|
MDRRuleGroup |
remove(long ruleGroupId)
Removes the m d r rule group with the primary key from the database. |
MDRRuleGroup |
remove(Serializable primaryKey)
Removes the m d r rule group with the primary key from the database. |
void |
removeAll()
Removes all the m d r rule groups from the database. |
void |
removeByGroupId(long groupId)
Removes all the m d r rule groups where groupId = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the m d r rule groups where uuid = ? and companyId = ? from the database. |
MDRRuleGroup |
removeByUUID_G(String uuid,
long groupId)
Removes the m d r rule group where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the m d r rule groups where uuid = ? from the database. |
protected MDRRuleGroup |
removeImpl(MDRRuleGroup mdrRuleGroup)
Removes the model instance from the database. |
protected MDRRuleGroup |
toUnwrappedModel(MDRRuleGroup mdrRuleGroup)
|
MDRRuleGroup |
updateImpl(MDRRuleGroup mdrRuleGroup)
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_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
Constructor Detail |
---|
public MDRRuleGroupPersistenceImpl()
Method Detail |
---|
public List<MDRRuleGroup> findByUuid(String uuid) throws SystemException
findByUuid
in interface MDRRuleGroupPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> 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 MDRRuleGroupModelImpl
. 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 MDRRuleGroupPersistence
uuid
- the uuidstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> 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 MDRRuleGroupModelImpl
. 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 MDRRuleGroupPersistence
uuid
- the uuidstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic MDRRuleGroup findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByUuid_First
in interface MDRRuleGroupPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface MDRRuleGroupPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByUuid_Last
in interface MDRRuleGroupPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface MDRRuleGroupPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup[] findByUuid_PrevAndNext(long ruleGroupId, String uuid, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByUuid_PrevAndNext
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the current m d r rule groupuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredprotected MDRRuleGroup getByUuid_PrevAndNext(Session session, MDRRuleGroup mdrRuleGroup, String uuid, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface MDRRuleGroupPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface MDRRuleGroupPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic MDRRuleGroup findByUUID_G(String uuid, long groupId) throws NoSuchRuleGroupException, SystemException
NoSuchRuleGroupException
if it could not be found.
findByUUID_G
in interface MDRRuleGroupPersistence
uuid
- the uuidgroupId
- the group ID
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface MDRRuleGroupPersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup 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 MDRRuleGroupPersistence
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup removeByUUID_G(String uuid, long groupId) throws NoSuchRuleGroupException, SystemException
removeByUUID_G
in interface MDRRuleGroupPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchRuleGroupException
public int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface MDRRuleGroupPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> findByUuid_C(String uuid, long companyId) throws SystemException
findByUuid_C
in interface MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> 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 MDRRuleGroupModelImpl
. 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 MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> 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 MDRRuleGroupModelImpl
. 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 MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic MDRRuleGroup findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByUuid_C_First
in interface MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_C_First
in interface MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByUuid_C_Last
in interface MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_C_Last
in interface MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup[] findByUuid_C_PrevAndNext(long ruleGroupId, String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByUuid_C_PrevAndNext
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the current m d r rule groupuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredprotected MDRRuleGroup getByUuid_C_PrevAndNext(Session session, MDRRuleGroup mdrRuleGroup, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
public void removeByUuid_C(String uuid, long companyId) throws SystemException
removeByUuid_C
in interface MDRRuleGroupPersistence
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 MDRRuleGroupPersistence
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> findByGroupId(long groupId, 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 MDRRuleGroupModelImpl
. 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.
findByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group IDstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> findByGroupId(long groupId, 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 MDRRuleGroupModelImpl
. 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.
findByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group IDstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic MDRRuleGroup findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByGroupId_First
in interface MDRRuleGroupPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_First
in interface MDRRuleGroupPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByGroupId_Last
in interface MDRRuleGroupPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_Last
in interface MDRRuleGroupPersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching m d r rule group could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup[] findByGroupId_PrevAndNext(long ruleGroupId, long groupId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
findByGroupId_PrevAndNext
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the current m d r rule groupgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredprotected MDRRuleGroup getByGroupId_PrevAndNext(Session session, MDRRuleGroup mdrRuleGroup, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<MDRRuleGroup> filterFindByGroupId(long groupId) throws SystemException
filterFindByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> filterFindByGroupId(long groupId, 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 MDRRuleGroupModelImpl
. 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.
filterFindByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group IDstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> filterFindByGroupId(long groupId, 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 MDRRuleGroupModelImpl
. 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.
filterFindByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group IDstart
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic MDRRuleGroup[] filterFindByGroupId_PrevAndNext(long ruleGroupId, long groupId, OrderByComparator orderByComparator) throws NoSuchRuleGroupException, SystemException
filterFindByGroupId_PrevAndNext
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the current m d r rule groupgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredprotected MDRRuleGroup filterGetByGroupId_PrevAndNext(Session session, MDRRuleGroup mdrRuleGroup, long groupId, OrderByComparator orderByComparator, boolean previous)
public void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface MDRRuleGroupPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic void cacheResult(MDRRuleGroup mdrRuleGroup)
cacheResult
in interface MDRRuleGroupPersistence
mdrRuleGroup
- the m d r rule grouppublic void cacheResult(List<MDRRuleGroup> mdrRuleGroups)
cacheResult
in interface MDRRuleGroupPersistence
mdrRuleGroups
- the m d r rule groupspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<MDRRuleGroup>
clearCache
in class BasePersistenceImpl<MDRRuleGroup>
public void clearCache(MDRRuleGroup mdrRuleGroup)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<MDRRuleGroup>
clearCache
in class BasePersistenceImpl<MDRRuleGroup>
mdrRuleGroup
- the instance of this model to clear the cache forpublic void clearCache(List<MDRRuleGroup> mdrRuleGroups)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<MDRRuleGroup>
clearCache
in class BasePersistenceImpl<MDRRuleGroup>
mdrRuleGroups
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(MDRRuleGroup mdrRuleGroup)
protected void clearUniqueFindersCache(MDRRuleGroup mdrRuleGroup)
public MDRRuleGroup create(long ruleGroupId)
create
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key for the new m d r rule group
public MDRRuleGroup remove(long ruleGroupId) throws NoSuchRuleGroupException, SystemException
remove
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the m d r rule group
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup remove(Serializable primaryKey) throws NoSuchRuleGroupException, SystemException
remove
in interface BasePersistence<MDRRuleGroup>
remove
in class BasePersistenceImpl<MDRRuleGroup>
primaryKey
- the primary key of the m d r rule group
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredprotected MDRRuleGroup removeImpl(MDRRuleGroup mdrRuleGroup) 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<MDRRuleGroup>
mdrRuleGroup
- the model instance to remove
SystemException
- if a system exception occurredpublic MDRRuleGroup updateImpl(MDRRuleGroup mdrRuleGroup) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface MDRRuleGroupPersistence
updateImpl
in class BasePersistenceImpl<MDRRuleGroup>
mdrRuleGroup
- the model instance to update
SystemException
- if a system exception occurredprotected MDRRuleGroup toUnwrappedModel(MDRRuleGroup mdrRuleGroup)
public MDRRuleGroup findByPrimaryKey(Serializable primaryKey) throws NoSuchRuleGroupException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<MDRRuleGroup>
findByPrimaryKey
in class BasePersistenceImpl<MDRRuleGroup>
primaryKey
- the primary key of the m d r rule group
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup findByPrimaryKey(long ruleGroupId) throws NoSuchRuleGroupException, SystemException
NoSuchRuleGroupException
if it could not be found.
findByPrimaryKey
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the m d r rule group
NoSuchRuleGroupException
- if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<MDRRuleGroup>
fetchByPrimaryKey
in class BasePersistenceImpl<MDRRuleGroup>
primaryKey
- the primary key of the m d r rule group
null
if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredpublic MDRRuleGroup fetchByPrimaryKey(long ruleGroupId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface MDRRuleGroupPersistence
ruleGroupId
- the primary key of the m d r rule group
null
if a m d r rule group with the primary key could not be found
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> findAll() throws SystemException
findAll
in interface MDRRuleGroupPersistence
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> 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 MDRRuleGroupModelImpl
. 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 MDRRuleGroupPersistence
start
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (not inclusive)
SystemException
- if a system exception occurredpublic List<MDRRuleGroup> 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 MDRRuleGroupModelImpl
. 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 MDRRuleGroupPersistence
start
- the lower bound of the range of m d r rule groupsend
- the upper bound of the range of m d r rule groups (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 MDRRuleGroupPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface MDRRuleGroupPersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<MDRRuleGroup>
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 |