Interface CPOptionCategoryPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CPOptionCategory>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPOptionCategory>

@ProviderType public interface CPOptionCategoryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPOptionCategory>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPOptionCategory>
The persistence interface for the cp option category service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CPOptionCategory cpOptionCategory)
    Caches the cp option category in the entity cache if it is enabled.
    void
    cacheResult(List<CPOptionCategory> cpOptionCategories)
    Caches the cp option categories in the entity cache if it is enabled.
    int
    Returns the number of cp option categories.
    int
    countByC_K(long companyId, String key)
    Returns the number of cp option categories where companyId = ? and key = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of cp option categories where companyId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of cp option categories where externalReferenceCode = ? and companyId = ?.
    int
    Returns the number of cp option categories where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of cp option categories where uuid = ? and companyId = ?.
    create(long CPOptionCategoryId)
    Creates a new cp option category with the primary key.
    fetchByC_K(long companyId, String key)
    Returns the cp option category where companyId = ? and key = ? or returns null if it could not be found.
    fetchByC_K(long companyId, String key, boolean useFinderCache)
    Returns the cp option category where companyId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the first cp option category in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the last cp option category in the ordered set where companyId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the cp option category where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the cp option category where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long CPOptionCategoryId)
    Returns the cp option category 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<CPOptionCategory> orderByComparator)
    Returns the first cp option category in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the last cp option category in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the first cp option category in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the last cp option category in the ordered set where uuid = ?.
    int
    filterCountByCompanyId(long companyId)
    Returns the number of cp option categories that the user has permission to view where companyId = ?.
    int
    Returns the number of cp option categories that the user has permission to view where uuid = ?.
    int
    filterCountByUuid_C(String uuid, long companyId)
    Returns the number of cp option categories that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByCompanyId(long companyId)
    Returns all the cp option categories that the user has permission to view where companyId = ?.
    filterFindByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp option categories that the user has permission to view where companyId = ?.
    filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories that the user has permissions to view where companyId = ?.
    filterFindByCompanyId_PrevAndNext(long CPOptionCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the cp option categories before and after the current cp option category in the ordered set of cp option categories that the user has permission to view where companyId = ?.
    Returns all the cp option categories that the user has permission to view where uuid = ?.
    filterFindByUuid(String uuid, int start, int end)
    Returns a range of all the cp option categories that the user has permission to view where uuid = ?.
    filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories that the user has permissions to view where uuid = ?.
    filterFindByUuid_C(String uuid, long companyId)
    Returns all the cp option categories that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp option categories that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories that the user has permissions to view where uuid = ? and companyId = ?.
    filterFindByUuid_C_PrevAndNext(long CPOptionCategoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the cp option categories before and after the current cp option category in the ordered set of cp option categories that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the cp option categories before and after the current cp option category in the ordered set of cp option categories that the user has permission to view where uuid = ?.
    Returns all the cp option categories.
    findAll(int start, int end)
    Returns a range of all the cp option categories.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option categories.
    findByC_K(long companyId, String key)
    Returns the cp option category where companyId = ? and key = ? or throws a NoSuchCPOptionCategoryException if it could not be found.
    findByCompanyId(long companyId)
    Returns all the cp option categories where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp option categories where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option categories where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the first cp option category in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the last cp option category in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long CPOptionCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the cp option categories before and after the current cp option category in the ordered set where companyId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the cp option category where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPOptionCategoryException if it could not be found.
    findByPrimaryKey(long CPOptionCategoryId)
    Returns the cp option category with the primary key or throws a NoSuchCPOptionCategoryException if it could not be found.
    Returns all the cp option categories where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the cp option categories where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option categories where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the cp option categories where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp option categories where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns an ordered range of all the cp option categories where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option categories where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the first cp option category in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the last cp option category in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long CPOptionCategoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the cp option categories before and after the current cp option category in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the first cp option category in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the last cp option category in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
    Returns the cp option categories before and after the current cp option category in the ordered set where uuid = ?.
    remove(long CPOptionCategoryId)
    Removes the cp option category with the primary key from the database.
    void
    Removes all the cp option categories from the database.
    removeByC_K(long companyId, String key)
    Removes the cp option category where companyId = ? and key = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the cp option categories where companyId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the cp option category where externalReferenceCode = ? and companyId = ? from the database.
    void
    Removes all the cp option categories where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the cp option categories where uuid = ? and companyId = ? from the database.
    updateImpl(CPOptionCategory cpOptionCategory)
     

    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

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByUuid

      List<CPOptionCategory> findByUuid(String uuid)
      Returns all the cp option categories where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp option categories
    • findByUuid

      List<CPOptionCategory> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp option categories 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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories 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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp option categories 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 CPOptionCategoryModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (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 cp option categories
    • findByUuid_First

      CPOptionCategory findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the first cp option category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByUuid_First

      CPOptionCategory fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns the first cp option category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp option category, or null if a matching cp option category could not be found
    • findByUuid_Last

      CPOptionCategory findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the last cp option category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByUuid_Last

      CPOptionCategory fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns the last cp option category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp option category, or null if a matching cp option category could not be found
    • findByUuid_PrevAndNext

      CPOptionCategory[] findByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the cp option categories before and after the current cp option category in the ordered set where uuid = ?.
      Parameters:
      CPOptionCategoryId - the primary key of the current cp option category
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • filterFindByUuid

      List<CPOptionCategory> filterFindByUuid(String uuid)
      Returns all the cp option categories that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp option categories that the user has permission to view
    • filterFindByUuid

      List<CPOptionCategory> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the cp option categories that the user has permission to view 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 CPOptionCategoryModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (not inclusive)
      Returns:
      the range of matching cp option categories that the user has permission to view
    • filterFindByUuid

      List<CPOptionCategory> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories that the user has permissions to view 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 CPOptionCategoryModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp option categories that the user has permission to view
    • filterFindByUuid_PrevAndNext

      CPOptionCategory[] filterFindByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the cp option categories before and after the current cp option category in the ordered set of cp option categories that the user has permission to view where uuid = ?.
      Parameters:
      CPOptionCategoryId - the primary key of the current cp option category
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • removeByUuid

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

      int countByUuid(String uuid)
      Returns the number of cp option categories where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp option categories
    • filterCountByUuid

      int filterCountByUuid(String uuid)
      Returns the number of cp option categories that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp option categories that the user has permission to view
    • findByUuid_C

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

      List<CPOptionCategory> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp option categories 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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories 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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp option categories 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 CPOptionCategoryModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (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 cp option categories
    • findByUuid_C_First

      CPOptionCategory findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the first cp option category 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 cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByUuid_C_First

      CPOptionCategory fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns the first cp option category 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 cp option category, or null if a matching cp option category could not be found
    • findByUuid_C_Last

      CPOptionCategory findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the last cp option category 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 cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByUuid_C_Last

      CPOptionCategory fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns the last cp option category 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 cp option category, or null if a matching cp option category could not be found
    • findByUuid_C_PrevAndNext

      CPOptionCategory[] findByUuid_C_PrevAndNext(long CPOptionCategoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the cp option categories before and after the current cp option category in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      CPOptionCategoryId - the primary key of the current cp option category
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • filterFindByUuid_C

      List<CPOptionCategory> filterFindByUuid_C(String uuid, long companyId)
      Returns all the cp option categories that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching cp option categories that the user has permission to view
    • filterFindByUuid_C

      List<CPOptionCategory> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp option categories that the user has permission to view 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 CPOptionCategoryModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (not inclusive)
      Returns:
      the range of matching cp option categories that the user has permission to view
    • filterFindByUuid_C

      List<CPOptionCategory> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories that the user has permissions to view 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 CPOptionCategoryModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp option categories that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      CPOptionCategory[] filterFindByUuid_C_PrevAndNext(long CPOptionCategoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the cp option categories before and after the current cp option category in the ordered set of cp option categories that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      CPOptionCategoryId - the primary key of the current cp option category
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the cp option categories 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 cp option categories where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cp option categories
    • filterCountByUuid_C

      int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of cp option categories that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cp option categories that the user has permission to view
    • findByCompanyId

      List<CPOptionCategory> findByCompanyId(long companyId)
      Returns all the cp option categories where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp option categories
    • findByCompanyId

      List<CPOptionCategory> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp option categories 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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories 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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp option categories 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 CPOptionCategoryModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (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 cp option categories
    • findByCompanyId_First

      CPOptionCategory findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the first cp option category 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 cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByCompanyId_First

      CPOptionCategory fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns the first cp option category 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 cp option category, or null if a matching cp option category could not be found
    • findByCompanyId_Last

      CPOptionCategory findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the last cp option category 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 cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByCompanyId_Last

      CPOptionCategory fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns the last cp option category 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 cp option category, or null if a matching cp option category could not be found
    • findByCompanyId_PrevAndNext

      CPOptionCategory[] findByCompanyId_PrevAndNext(long CPOptionCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the cp option categories before and after the current cp option category in the ordered set where companyId = ?.
      Parameters:
      CPOptionCategoryId - the primary key of the current cp option category
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • filterFindByCompanyId

      List<CPOptionCategory> filterFindByCompanyId(long companyId)
      Returns all the cp option categories that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp option categories that the user has permission to view
    • filterFindByCompanyId

      List<CPOptionCategory> filterFindByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp option categories that the user has permission to view 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 CPOptionCategoryModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (not inclusive)
      Returns:
      the range of matching cp option categories that the user has permission to view
    • filterFindByCompanyId

      List<CPOptionCategory> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories that the user has permissions to view 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 CPOptionCategoryModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp option categories
      end - the upper bound of the range of cp option categories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp option categories that the user has permission to view
    • filterFindByCompanyId_PrevAndNext

      CPOptionCategory[] filterFindByCompanyId_PrevAndNext(long CPOptionCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException
      Returns the cp option categories before and after the current cp option category in the ordered set of cp option categories that the user has permission to view where companyId = ?.
      Parameters:
      CPOptionCategoryId - the primary key of the current cp option category
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • removeByCompanyId

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

      int countByCompanyId(long companyId)
      Returns the number of cp option categories where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp option categories
    • filterCountByCompanyId

      int filterCountByCompanyId(long companyId)
      Returns the number of cp option categories that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp option categories that the user has permission to view
    • findByC_K

      CPOptionCategory findByC_K(long companyId, String key) throws NoSuchCPOptionCategoryException
      Returns the cp option category where companyId = ? and key = ? or throws a NoSuchCPOptionCategoryException if it could not be found.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the matching cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByC_K

      CPOptionCategory fetchByC_K(long companyId, String key)
      Returns the cp option category where companyId = ? and key = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the matching cp option category, or null if a matching cp option category could not be found
    • fetchByC_K

      CPOptionCategory fetchByC_K(long companyId, String key, boolean useFinderCache)
      Returns the cp option category where companyId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      key - the key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp option category, or null if a matching cp option category could not be found
    • removeByC_K

      CPOptionCategory removeByC_K(long companyId, String key) throws NoSuchCPOptionCategoryException
      Removes the cp option category where companyId = ? and key = ? from the database.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the cp option category that was removed
      Throws:
      NoSuchCPOptionCategoryException
    • countByC_K

      int countByC_K(long companyId, String key)
      Returns the number of cp option categories where companyId = ? and key = ?.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the number of matching cp option categories
    • findByERC_C

      CPOptionCategory findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionCategoryException
      Returns the cp option category where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPOptionCategoryException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a matching cp option category could not be found
    • fetchByERC_C

      CPOptionCategory fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the cp option category where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching cp option category, or null if a matching cp option category could not be found
    • fetchByERC_C

      CPOptionCategory fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the cp option category where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp option category, or null if a matching cp option category could not be found
    • removeByERC_C

      CPOptionCategory removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionCategoryException
      Removes the cp option category where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the cp option category that was removed
      Throws:
      NoSuchCPOptionCategoryException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of cp option categories where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching cp option categories
    • cacheResult

      void cacheResult(CPOptionCategory cpOptionCategory)
      Caches the cp option category in the entity cache if it is enabled.
      Parameters:
      cpOptionCategory - the cp option category
    • cacheResult

      void cacheResult(List<CPOptionCategory> cpOptionCategories)
      Caches the cp option categories in the entity cache if it is enabled.
      Parameters:
      cpOptionCategories - the cp option categories
    • create

      CPOptionCategory create(long CPOptionCategoryId)
      Creates a new cp option category with the primary key. Does not add the cp option category to the database.
      Parameters:
      CPOptionCategoryId - the primary key for the new cp option category
      Returns:
      the new cp option category
    • remove

      CPOptionCategory remove(long CPOptionCategoryId) throws NoSuchCPOptionCategoryException
      Removes the cp option category with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      CPOptionCategoryId - the primary key of the cp option category
      Returns:
      the cp option category that was removed
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • updateImpl

      CPOptionCategory updateImpl(CPOptionCategory cpOptionCategory)
    • findByPrimaryKey

      CPOptionCategory findByPrimaryKey(long CPOptionCategoryId) throws NoSuchCPOptionCategoryException
      Returns the cp option category with the primary key or throws a NoSuchCPOptionCategoryException if it could not be found.
      Parameters:
      CPOptionCategoryId - the primary key of the cp option category
      Returns:
      the cp option category
      Throws:
      NoSuchCPOptionCategoryException - if a cp option category with the primary key could not be found
    • fetchByPrimaryKey

      CPOptionCategory fetchByPrimaryKey(long CPOptionCategoryId)
      Returns the cp option category with the primary key or returns null if it could not be found.
      Parameters:
      CPOptionCategoryId - the primary key of the cp option category
      Returns:
      the cp option category, or null if a cp option category with the primary key could not be found
    • findAll

      Returns all the cp option categories.
      Returns:
      the cp option categories
    • findAll

      List<CPOptionCategory> findAll(int start, int end)
      Returns a range of all the cp option categories.

      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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator)
      Returns an ordered range of all the cp option categories.

      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 CPOptionCategoryModelImpl.

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

      List<CPOptionCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp option categories.

      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 CPOptionCategoryModelImpl.

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

      void removeAll()
      Removes all the cp option categories from the database.
    • countAll

      int countAll()
      Returns the number of cp option categories.
      Returns:
      the number of cp option categories