Class CPOptionValueUtil

java.lang.Object
com.liferay.commerce.product.service.persistence.CPOptionValueUtil

public class CPOptionValueUtil extends Object
The persistence utility for the cp option value service. This utility wraps com.liferay.commerce.product.service.persistence.impl.CPOptionValuePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • CPOptionValueUtil

      public CPOptionValueUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CPOptionValue cpOptionValue)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CPOptionValue> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CPOptionValue update(CPOptionValue cpOptionValue)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CPOptionValue update(CPOptionValue cpOptionValue, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CPOptionValue> findByUuid(String uuid)
      Returns all the cp option values where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp option values
    • findByUuid

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByUuid_First

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByUuid_Last

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • removeByUuid

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByUuid_C_First

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByUuid_C_Last

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • removeByUuid_C

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByCompanyId_First

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByCompanyId_Last

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • removeByCompanyId

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByCPOptionId_First

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByCPOptionId_Last

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • removeByCPOptionId

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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByC_K

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • fetchByERC_C

      public static 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

      public static 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

      public static 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

      public static 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

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

      public static 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

      public static 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

      public static 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
      NoSuchCPOptionValueException
    • updateImpl

      public static CPOptionValue updateImpl(CPOptionValue cpOptionValue)
    • findByPrimaryKey

      public static 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
      NoSuchCPOptionValueException
    • fetchByPrimaryKey

      public static 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

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

      public static 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

      public static 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

      public static 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

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

      public static int countAll()
      Returns the number of cp option values.
      Returns:
      the number of cp option values
    • getPersistence

      public static CPOptionValuePersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPOptionValuePersistence persistence)