Class DefinitionUtil
com.liferay.portal.reports.engine.console.service.persistence.impl.DefinitionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(Definition definition) Caches the definition in the entity cache if it is enabled.static voidcacheResult(List<Definition> definitions) Caches the definitions in the entity cache if it is enabled.static voidstatic voidclearCache(Definition definition) static intcountAll()Returns the number of definitions.static intcountByCompanyId(long companyId) Returns the number of definitions where companyId = ?.static intcountByGroupId(long groupId) Returns the number of definitions where groupId = ?.static intcountByUuid(String uuid) Returns the number of definitions where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of definitions where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of definitions where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static Definitioncreate(long definitionId) Creates a new definition with the primary key.static DefinitionfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where companyId = ?.static DefinitionfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where companyId = ?.static DefinitionfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where groupId = ?.static DefinitionfetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where groupId = ?.static DefinitionfetchByPrimaryKey(long definitionId) Returns the definition with the primary key or returnsnullif it could not be found.static Map<Serializable, Definition> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static DefinitionfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where uuid = ? and companyId = ?.static DefinitionfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where uuid = ? and companyId = ?.static DefinitionfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where uuid = ?.static DefinitionfetchByUUID_G(String uuid, long groupId) Returns the definition where uuid = ? and groupId = ? or returnsnullif it could not be found.static DefinitionfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the definition where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static DefinitionfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where uuid = ?.static intfilterCountByGroupId(long groupId) Returns the number of definitions that the user has permission to view where groupId = ?.static List<Definition> filterFindByGroupId(long groupId) Returns all the definitions that the user has permission to view where groupId = ?.static List<Definition> filterFindByGroupId(long groupId, int start, int end) Returns a range of all the definitions that the user has permission to view where groupId = ?.static List<Definition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions that the user has permissions to view where groupId = ?.static Definition[]filterFindByGroupId_PrevAndNext(long definitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the definitions before and after the current definition in the ordered set of definitions that the user has permission to view where groupId = ?.static List<Definition> findAll()Returns all the definitions.static List<Definition> findAll(int start, int end) Returns a range of all the definitions.static List<Definition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions.static List<Definition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions.static List<Definition> findByCompanyId(long companyId) Returns all the definitions where companyId = ?.static List<Definition> findByCompanyId(long companyId, int start, int end) Returns a range of all the definitions where companyId = ?.static List<Definition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where companyId = ?.static List<Definition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where companyId = ?.static DefinitionfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where companyId = ?.static DefinitionfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where companyId = ?.static Definition[]findByCompanyId_PrevAndNext(long definitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the definitions before and after the current definition in the ordered set where companyId = ?.static List<Definition> findByGroupId(long groupId) Returns all the definitions where groupId = ?.static List<Definition> findByGroupId(long groupId, int start, int end) Returns a range of all the definitions where groupId = ?.static List<Definition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where groupId = ?.static List<Definition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where groupId = ?.static DefinitionfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where groupId = ?.static DefinitionfindByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where groupId = ?.static Definition[]findByGroupId_PrevAndNext(long definitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the definitions before and after the current definition in the ordered set where groupId = ?.static DefinitionfindByPrimaryKey(long definitionId) Returns the definition with the primary key or throws aNoSuchDefinitionExceptionif it could not be found.static List<Definition> findByUuid(String uuid) Returns all the definitions where uuid = ?.static List<Definition> findByUuid(String uuid, int start, int end) Returns a range of all the definitions where uuid = ?.static List<Definition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where uuid = ?.static List<Definition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where uuid = ?.static List<Definition> findByUuid_C(String uuid, long companyId) Returns all the definitions where uuid = ? and companyId = ?.static List<Definition> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the definitions where uuid = ? and companyId = ?.static List<Definition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where uuid = ? and companyId = ?.static List<Definition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where uuid = ? and companyId = ?.static DefinitionfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where uuid = ? and companyId = ?.static DefinitionfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where uuid = ? and companyId = ?.static Definition[]findByUuid_C_PrevAndNext(long definitionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the definitions before and after the current definition in the ordered set where uuid = ? and companyId = ?.static DefinitionfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where uuid = ?.static DefinitionfindByUUID_G(String uuid, long groupId) Returns the definition where uuid = ? and groupId = ? or throws aNoSuchDefinitionExceptionif it could not be found.static DefinitionfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where uuid = ?.static Definition[]findByUuid_PrevAndNext(long definitionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the definitions before and after the current definition in the ordered set where uuid = ?.static List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) static DefinitionPersistencestatic Definitionremove(long definitionId) Removes the definition with the primary key from the database.static voidRemoves all the definitions from the database.static voidremoveByCompanyId(long companyId) Removes all the definitions where companyId = ? from the database.static voidremoveByGroupId(long groupId) Removes all the definitions where groupId = ? from the database.static voidremoveByUuid(String uuid) Removes all the definitions where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the definitions where uuid = ? and companyId = ? from the database.static DefinitionremoveByUUID_G(String uuid, long groupId) Removes the definition where uuid = ? and groupId = ? from the database.static voidsetPersistence(DefinitionPersistence persistence) static Definitionupdate(Definition definition) static Definitionupdate(Definition definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DefinitionupdateImpl(Definition definition)
-
Constructor Details
-
DefinitionUtil
public DefinitionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<Definition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static Definition update(Definition definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
Returns all the definitions where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching definitions
-
findByUuid
Returns a range of all the definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)- Returns:
- the range of matching definitions
-
findByUuid
public static List<Definition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching definitions
-
findByUuid
public static List<Definition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching definitions
-
findByUuid_First
public static Definition findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the first definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition
-
fetchByUuid_First
public static Definition fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition, or
nullif a matching definition could not be found
-
findByUuid_Last
public static Definition findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the last definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition
-
fetchByUuid_Last
public static Definition fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition, or
nullif a matching definition could not be found
-
findByUuid_PrevAndNext
public static Definition[] findByUuid_PrevAndNext(long definitionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the definitions before and after the current definition in the ordered set where uuid = ?.- Parameters:
definitionId- the primary key of the current definitionuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next definition
-
removeByUuid
Removes all the definitions where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of definitions where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching definitions
-
findByUUID_G
Returns the definition where uuid = ? and groupId = ? or throws aNoSuchDefinitionExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching definition
-
fetchByUUID_G
Returns the definition where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching definition, or
nullif a matching definition could not be found
-
fetchByUUID_G
Returns the definition where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching definition, or
nullif a matching definition could not be found
-
removeByUUID_G
Removes the definition where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the definition that was removed
- Throws:
NoSuchDefinitionException
-
countByUUID_G
Returns the number of definitions where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching definitions
-
findByUuid_C
Returns all the definitions where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching definitions
-
findByUuid_C
Returns a range of all the definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)- Returns:
- the range of matching definitions
-
findByUuid_C
public static List<Definition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching definitions
-
findByUuid_C
public static List<Definition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching definitions
-
findByUuid_C_First
public static Definition findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the first definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition
-
fetchByUuid_C_First
public static Definition fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition, or
nullif a matching definition could not be found
-
findByUuid_C_Last
public static Definition findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the last definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition
-
fetchByUuid_C_Last
public static Definition fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition, or
nullif a matching definition could not be found
-
findByUuid_C_PrevAndNext
public static Definition[] findByUuid_C_PrevAndNext(long definitionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the definitions before and after the current definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
definitionId- the primary key of the current definitionuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next definition
-
removeByUuid_C
Removes all the definitions where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of definitions where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching definitions
-
findByGroupId
Returns all the definitions where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching definitions
-
findByGroupId
Returns a range of all the definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)- Returns:
- the range of matching definitions
-
findByGroupId
public static List<Definition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching definitions
-
findByGroupId
public static List<Definition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching definitions
-
findByGroupId_First
public static Definition findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the first definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition
-
fetchByGroupId_First
public static Definition fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition, or
nullif a matching definition could not be found
-
findByGroupId_Last
public static Definition findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the last definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition
-
fetchByGroupId_Last
public static Definition fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition, or
nullif a matching definition could not be found
-
findByGroupId_PrevAndNext
public static Definition[] findByGroupId_PrevAndNext(long definitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the definitions before and after the current definition in the ordered set where groupId = ?.- Parameters:
definitionId- the primary key of the current definitiongroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next definition
-
filterFindByGroupId
Returns all the definitions that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching definitions that the user has permission to view
-
filterFindByGroupId
Returns a range of all the definitions that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)- Returns:
- the range of matching definitions that the user has permission to view
-
filterFindByGroupId
public static List<Definition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching definitions that the user has permission to view
-
filterFindByGroupId_PrevAndNext
public static Definition[] filterFindByGroupId_PrevAndNext(long definitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the definitions before and after the current definition in the ordered set of definitions that the user has permission to view where groupId = ?.- Parameters:
definitionId- the primary key of the current definitiongroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next definition
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the definitions where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of definitions where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching definitions
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of definitions that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching definitions that the user has permission to view
-
findByCompanyId
Returns all the definitions where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching definitions
-
findByCompanyId
Returns a range of all the definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)- Returns:
- the range of matching definitions
-
findByCompanyId
public static List<Definition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching definitions
-
findByCompanyId
public static List<Definition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching definitions
-
findByCompanyId_First
public static Definition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the first definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition
-
fetchByCompanyId_First
public static Definition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the first definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching definition, or
nullif a matching definition could not be found
-
findByCompanyId_Last
public static Definition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the last definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition
-
fetchByCompanyId_Last
public static Definition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns the last definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching definition, or
nullif a matching definition could not be found
-
findByCompanyId_PrevAndNext
public static Definition[] findByCompanyId_PrevAndNext(long definitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) throws NoSuchDefinitionException Returns the definitions before and after the current definition in the ordered set where companyId = ?.- Parameters:
definitionId- the primary key of the current definitioncompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next definition
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the definitions where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of definitions where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching definitions
-
cacheResult
Caches the definition in the entity cache if it is enabled.- Parameters:
definition- the definition
-
cacheResult
Caches the definitions in the entity cache if it is enabled.- Parameters:
definitions- the definitions
-
create
Creates a new definition with the primary key. Does not add the definition to the database.- Parameters:
definitionId- the primary key for the new definition- Returns:
- the new definition
-
remove
Removes the definition with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
definitionId- the primary key of the definition- Returns:
- the definition that was removed
-
updateImpl
-
findByPrimaryKey
Returns the definition with the primary key or throws aNoSuchDefinitionExceptionif it could not be found.- Parameters:
definitionId- the primary key of the definition- Returns:
- the definition
-
fetchByPrimaryKey
Returns the definition with the primary key or returnsnullif it could not be found.- Parameters:
definitionId- the primary key of the definition- Returns:
- the definition, or
nullif a definition with the primary key could not be found
-
findAll
Returns all the definitions.- Returns:
- the definitions
-
findAll
Returns a range of all the definitions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
start- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)- Returns:
- the range of definitions
-
findAll
public static List<Definition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator) Returns an ordered range of all the definitions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
start- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of definitions
-
findAll
public static List<Definition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the definitions.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDefinitionModelImpl.- Parameters:
start- the lower bound of the range of definitionsend- the upper bound of the range of definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of definitions
-
removeAll
public static void removeAll()Removes all the definitions from the database. -
countAll
public static int countAll()Returns the number of definitions.- Returns:
- the number of definitions
-
getPersistence
-
setPersistence
-