Interface CPOptionValuePersistence

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

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

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CPOptionValue cpOptionValue)
    Caches the cp option value in the entity cache if it is enabled.
    void
    cacheResult(List<CPOptionValue> cpOptionValues)
    Caches the cp option values in the entity cache if it is enabled.
    int
    Returns the number of cp option values.
    int
    countByC_K(long CPOptionId, String key)
    Returns the number of cp option values where CPOptionId = ? and key = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of cp option values where companyId = ?.
    int
    countByCPOptionId(long CPOptionId)
    Returns the number of cp option values where CPOptionId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of cp option values where externalReferenceCode = ? and companyId = ?.
    int
    Returns the number of cp option values where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of cp option values where uuid = ? and companyId = ?.
    create(long CPOptionValueId)
    Creates a new cp option value with the primary key.
    fetchByC_K(long CPOptionId, String key)
    Returns the cp option value where CPOptionId = ? and key = ? or returns null if it could not be found.
    fetchByC_K(long CPOptionId, String key, boolean useFinderCache)
    Returns the cp option value where CPOptionId = ? 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<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where companyId = ?.
    fetchByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where CPOptionId = ?.
    fetchByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where CPOptionId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the cp option value 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 value where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long CPOptionValueId)
    Returns the cp option value 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<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where uuid = ?.
    Returns all the cp option values.
    findAll(int start, int end)
    Returns a range of all the cp option values.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns an ordered range of all the cp option values.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option values.
    findByC_K(long CPOptionId, String key)
    Returns the cp option value where CPOptionId = ? and key = ? or throws a NoSuchCPOptionValueException if it could not be found.
    findByCompanyId(long companyId)
    Returns all the cp option values where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp option values where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns an ordered range of all the cp option values where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option values where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long CPOptionValueId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the cp option values before and after the current cp option value in the ordered set where companyId = ?.
    findByCPOptionId(long CPOptionId)
    Returns all the cp option values where CPOptionId = ?.
    findByCPOptionId(long CPOptionId, int start, int end)
    Returns a range of all the cp option values where CPOptionId = ?.
    findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns an ordered range of all the cp option values where CPOptionId = ?.
    findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option values where CPOptionId = ?.
    findByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where CPOptionId = ?.
    findByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where CPOptionId = ?.
    findByCPOptionId_PrevAndNext(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the cp option value where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPOptionValueException if it could not be found.
    findByPrimaryKey(long CPOptionValueId)
    Returns the cp option value with the primary key or throws a NoSuchCPOptionValueException if it could not be found.
    Returns all the cp option values where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the cp option values where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns an ordered range of all the cp option values where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option values where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the cp option values where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp option values where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long CPOptionValueId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the cp option values before and after the current cp option value in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the first cp option value in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the last cp option value in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long CPOptionValueId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
    Returns the cp option values before and after the current cp option value in the ordered set where uuid = ?.
    remove(long CPOptionValueId)
    Removes the cp option value with the primary key from the database.
    void
    Removes all the cp option values from the database.
    removeByC_K(long CPOptionId, String key)
    Removes the cp option value where CPOptionId = ? and key = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the cp option values where companyId = ? from the database.
    void
    removeByCPOptionId(long CPOptionId)
    Removes all the cp option values where CPOptionId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the cp option value where externalReferenceCode = ? and companyId = ? from the database.
    void
    Removes all the cp option values where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the cp option values where uuid = ? and companyId = ? from the database.
    updateImpl(CPOptionValue cpOptionValue)
     

    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<CPOptionValue> findByUuid(String uuid)
      Returns all the cp option values where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp option values
    • findByUuid

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

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

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

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

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

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

      CPOptionValue findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
      Returns the first cp option value 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 value
      Throws:
      NoSuchCPOptionValueException - if a matching cp option value could not be found
    • fetchByUuid_First

      CPOptionValue fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      Returns the first cp option value 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 value, or null if a matching cp option value could not be found
    • findByUuid_Last

      CPOptionValue findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
      Returns the last cp option value 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 value
      Throws:
      NoSuchCPOptionValueException - if a matching cp option value could not be found
    • fetchByUuid_Last

      CPOptionValue fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      Returns the last cp option value 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 value, or null if a matching cp option value could not be found
    • findByUuid_PrevAndNext

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      CPOptionValue[] findByUuid_C_PrevAndNext(long CPOptionValueId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
      Returns the cp option values before and after the current cp option value in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      CPOptionValueId - the primary key of the current cp option value
      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 value
      Throws:
      NoSuchCPOptionValueException - if a cp option value with the primary key could not be found
    • removeByUuid_C

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      List<CPOptionValue> findByCPOptionId(long CPOptionId)
      Returns all the cp option values where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      Returns:
      the matching cp option values
    • findByCPOptionId

      List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end)
      Returns a range of all the cp option values where CPOptionId = ?.

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

      Parameters:
      CPOptionId - the cp option ID
      start - the lower bound of the range of cp option values
      end - the upper bound of the range of cp option values (not inclusive)
      Returns:
      the range of matching cp option values
    • findByCPOptionId

      List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      Returns an ordered range of all the cp option values where CPOptionId = ?.

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

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

      List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp option values where CPOptionId = ?.

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

      Parameters:
      CPOptionId - the cp option ID
      start - the lower bound of the range of cp option values
      end - the upper bound of the range of cp option values (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 values
    • findByCPOptionId_First

      CPOptionValue findByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
      Returns the first cp option value in the ordered set where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp option value
      Throws:
      NoSuchCPOptionValueException - if a matching cp option value could not be found
    • fetchByCPOptionId_First

      CPOptionValue fetchByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      Returns the first cp option value in the ordered set where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp option value, or null if a matching cp option value could not be found
    • findByCPOptionId_Last

      CPOptionValue findByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
      Returns the last cp option value in the ordered set where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp option value
      Throws:
      NoSuchCPOptionValueException - if a matching cp option value could not be found
    • fetchByCPOptionId_Last

      CPOptionValue fetchByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      Returns the last cp option value in the ordered set where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp option value, or null if a matching cp option value could not be found
    • findByCPOptionId_PrevAndNext

      CPOptionValue[] findByCPOptionId_PrevAndNext(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
      Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = ?.
      Parameters:
      CPOptionValueId - the primary key of the current cp option value
      CPOptionId - the cp option ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option value
      Throws:
      NoSuchCPOptionValueException - if a cp option value with the primary key could not be found
    • removeByCPOptionId

      void removeByCPOptionId(long CPOptionId)
      Removes all the cp option values where CPOptionId = ? from the database.
      Parameters:
      CPOptionId - the cp option ID
    • countByCPOptionId

      int countByCPOptionId(long CPOptionId)
      Returns the number of cp option values where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      Returns:
      the number of matching cp option values
    • findByC_K

      CPOptionValue findByC_K(long CPOptionId, String key) throws NoSuchCPOptionValueException
      Returns the cp option value where CPOptionId = ? and key = ? or throws a NoSuchCPOptionValueException if it could not be found.
      Parameters:
      CPOptionId - the cp option ID
      key - the key
      Returns:
      the matching cp option value
      Throws:
      NoSuchCPOptionValueException - if a matching cp option value could not be found
    • fetchByC_K

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

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

      CPOptionValue removeByC_K(long CPOptionId, String key) throws NoSuchCPOptionValueException
      Removes the cp option value where CPOptionId = ? and key = ? from the database.
      Parameters:
      CPOptionId - the cp option ID
      key - the key
      Returns:
      the cp option value that was removed
      Throws:
      NoSuchCPOptionValueException
    • countByC_K

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

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

      CPOptionValue fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the cp option value 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 value, or null if a matching cp option value could not be found
    • fetchByERC_C

      CPOptionValue fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the cp option value 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 value, or null if a matching cp option value could not be found
    • removeByERC_C

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

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

      void cacheResult(CPOptionValue cpOptionValue)
      Caches the cp option value in the entity cache if it is enabled.
      Parameters:
      cpOptionValue - the cp option value
    • cacheResult

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

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

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

      CPOptionValue updateImpl(CPOptionValue cpOptionValue)
    • findByPrimaryKey

      CPOptionValue findByPrimaryKey(long CPOptionValueId) throws NoSuchCPOptionValueException
      Returns the cp option value with the primary key or throws a NoSuchCPOptionValueException if it could not be found.
      Parameters:
      CPOptionValueId - the primary key of the cp option value
      Returns:
      the cp option value
      Throws:
      NoSuchCPOptionValueException - if a cp option value with the primary key could not be found
    • fetchByPrimaryKey

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

      List<CPOptionValue> findAll()
      Returns all the cp option values.
      Returns:
      the cp option values
    • findAll

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

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

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

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

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

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

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

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

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

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

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