Interface DefinitionPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<Definition>

@ProviderType public interface DefinitionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Definition>
The persistence interface for the definition service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(Definition definition)
    Caches the definition in the entity cache if it is enabled.
    void
    cacheResult(List<Definition> definitions)
    Caches the definitions in the entity cache if it is enabled.
    int
    Returns the number of definitions.
    int
    countByCompanyId(long companyId)
    Returns the number of definitions where companyId = ?.
    int
    countByGroupId(long groupId)
    Returns the number of definitions where groupId = ?.
    int
    Returns the number of definitions where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of definitions where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of definitions where uuid = ? and groupId = ?.
    create(long definitionId)
    Creates a new definition with the primary key.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the first definition in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the last definition in the ordered set where companyId = ?.
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the first definition in the ordered set where groupId = ?.
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the last definition in the ordered set where groupId = ?.
    fetchByPrimaryKey(long definitionId)
    Returns the definition with the primary key or returns null if it could not be found.
    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 = ?.
    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 = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the first definition in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the definition where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the definition where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the last definition in the ordered set where uuid = ?.
    int
    filterCountByGroupId(long groupId)
    Returns the number of definitions that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId)
    Returns all the definitions that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the definitions that the user has permission to view where groupId = ?.
    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 = ?.
    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 = ?.
    Returns all the definitions.
    findAll(int start, int end)
    Returns a range of all the definitions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns an ordered range of all the definitions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the definitions.
    findByCompanyId(long companyId)
    Returns all the definitions where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the definitions where companyId = ?.
    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 = ?.
    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 = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the first definition in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the last definition in the ordered set where companyId = ?.
    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 = ?.
    findByGroupId(long groupId)
    Returns all the definitions where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the definitions where groupId = ?.
    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 = ?.
    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 = ?.
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the first definition in the ordered set where groupId = ?.
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the last definition in the ordered set where groupId = ?.
    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 = ?.
    findByPrimaryKey(long definitionId)
    Returns the definition with the primary key or throws a NoSuchDefinitionException if it could not be found.
    Returns all the definitions where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the definitions where uuid = ?.
    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 = ?.
    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 = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the definitions where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the definitions where uuid = ? and companyId = ?.
    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 = ?.
    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 = ?.
    findByUuid_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 = ?.
    findByUuid_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 = ?.
    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 = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the first definition in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the definition where uuid = ? and groupId = ? or throws a NoSuchDefinitionException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Definition> orderByComparator)
    Returns the last definition in the ordered set where uuid = ?.
    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 = ?.
    remove(long definitionId)
    Removes the definition with the primary key from the database.
    void
    Removes all the definitions from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the definitions where companyId = ? from the database.
    void
    removeByGroupId(long groupId)
    Removes all the definitions where groupId = ? from the database.
    void
    Removes all the definitions where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the definitions where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the definition where uuid = ? and groupId = ? from the database.
    updateImpl(Definition definition)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUuid

      List<Definition> findByUuid(String uuid)
      Returns all the definitions where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching definitions
    • findByUuid

      List<Definition> findByUuid(String uuid, int start, int end)
      Returns a range of all the definitions where uuid = ?.

      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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      Returns:
      the range of matching definitions
    • findByUuid

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching definitions
    • findByUuid

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching definitions
    • findByUuid_First

      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByUuid_First

      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition, or null if a matching definition could not be found
    • findByUuid_Last

      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByUuid_Last

      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition, or null if a matching definition could not be found
    • findByUuid_PrevAndNext

      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 definition
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next definition
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • removeByUuid

      void removeByUuid(String uuid)
      Removes all the definitions where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      int countByUuid(String uuid)
      Returns the number of definitions where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching definitions
    • findByUUID_G

      Definition findByUUID_G(String uuid, long groupId) throws NoSuchDefinitionException
      Returns the definition where uuid = ? and groupId = ? or throws a NoSuchDefinitionException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByUUID_G

      Definition fetchByUUID_G(String uuid, long groupId)
      Returns the definition where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching definition, or null if a matching definition could not be found
    • fetchByUUID_G

      Definition fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the definition where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching definition, or null if a matching definition could not be found
    • removeByUUID_G

      Definition removeByUUID_G(String uuid, long groupId) throws NoSuchDefinitionException
      Removes the definition where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the definition that was removed
      Throws:
      NoSuchDefinitionException
    • countByUUID_G

      int countByUUID_G(String uuid, long groupId)
      Returns the number of definitions where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching definitions
    • findByUuid_C

      List<Definition> findByUuid_C(String uuid, long companyId)
      Returns all the definitions where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching definitions
    • findByUuid_C

      List<Definition> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the definitions where uuid = ? and companyId = ?.

      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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      Returns:
      the range of matching definitions
    • findByUuid_C

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching definitions
    • findByUuid_C

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching definitions
    • findByUuid_C_First

      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByUuid_C_First

      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition, or null if a matching definition could not be found
    • findByUuid_C_Last

      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByUuid_C_Last

      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition, or null if a matching definition could not be found
    • findByUuid_C_PrevAndNext

      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 definition
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next definition
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the definitions where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      int countByUuid_C(String uuid, long companyId)
      Returns the number of definitions where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching definitions
    • findByGroupId

      List<Definition> findByGroupId(long groupId)
      Returns all the definitions where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching definitions
    • findByGroupId

      List<Definition> findByGroupId(long groupId, int start, int end)
      Returns a range of all the definitions where groupId = ?.

      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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      Returns:
      the range of matching definitions
    • findByGroupId

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching definitions
    • findByGroupId

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching definitions
    • findByGroupId_First

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByGroupId_First

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition, or null if a matching definition could not be found
    • findByGroupId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByGroupId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition, or null if a matching definition could not be found
    • findByGroupId_PrevAndNext

      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 definition
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next definition
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • filterFindByGroupId

      List<Definition> filterFindByGroupId(long groupId)
      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

      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 = ?.

      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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      Returns:
      the range of matching definitions that the user has permission to view
    • filterFindByGroupId

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching definitions that the user has permission to view
    • filterFindByGroupId_PrevAndNext

      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 definition
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next definition
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • removeByGroupId

      void removeByGroupId(long groupId)
      Removes all the definitions where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      int countByGroupId(long groupId)
      Returns the number of definitions where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching definitions
    • filterCountByGroupId

      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

      List<Definition> findByCompanyId(long companyId)
      Returns all the definitions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching definitions
    • findByCompanyId

      List<Definition> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the definitions where companyId = ?.

      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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      Returns:
      the range of matching definitions
    • findByCompanyId

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching definitions
    • findByCompanyId

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching definitions
    • findByCompanyId_First

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByCompanyId_First

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching definition, or null if a matching definition could not be found
    • findByCompanyId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition
      Throws:
      NoSuchDefinitionException - if a matching definition could not be found
    • fetchByCompanyId_Last

      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching definition, or null if a matching definition could not be found
    • findByCompanyId_PrevAndNext

      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 definition
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next definition
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the definitions where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of definitions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching definitions
    • cacheResult

      void cacheResult(Definition definition)
      Caches the definition in the entity cache if it is enabled.
      Parameters:
      definition - the definition
    • cacheResult

      void cacheResult(List<Definition> definitions)
      Caches the definitions in the entity cache if it is enabled.
      Parameters:
      definitions - the definitions
    • create

      Definition create(long definitionId)
      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

      Definition remove(long definitionId) throws NoSuchDefinitionException
      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
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • updateImpl

      Definition updateImpl(Definition definition)
    • findByPrimaryKey

      Definition findByPrimaryKey(long definitionId) throws NoSuchDefinitionException
      Returns the definition with the primary key or throws a NoSuchDefinitionException if it could not be found.
      Parameters:
      definitionId - the primary key of the definition
      Returns:
      the definition
      Throws:
      NoSuchDefinitionException - if a definition with the primary key could not be found
    • fetchByPrimaryKey

      Definition fetchByPrimaryKey(long definitionId)
      Returns the definition with the primary key or returns null if it could not be found.
      Parameters:
      definitionId - the primary key of the definition
      Returns:
      the definition, or null if a definition with the primary key could not be found
    • findAll

      List<Definition> findAll()
      Returns all the definitions.
      Returns:
      the definitions
    • findAll

      List<Definition> findAll(int start, int end)
      Returns a range of all the definitions.

      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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      Returns:
      the range of definitions
    • findAll

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of definitions
    • findAll

      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 - 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, then the query will include the default ORDER BY logic from DefinitionModelImpl.

      Parameters:
      start - the lower bound of the range of definitions
      end - the upper bound of the range of definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of definitions
    • removeAll

      void removeAll()
      Removes all the definitions from the database.
    • countAll

      int countAll()
      Returns the number of definitions.
      Returns:
      the number of definitions