Class CPInstanceUnitOfMeasureUtil

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

public class CPInstanceUnitOfMeasureUtil extends Object
The persistence utility for the cp instance unit of measure service. This utility wraps com.liferay.commerce.product.service.persistence.impl.CPInstanceUnitOfMeasurePersistenceImpl 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

    • CPInstanceUnitOfMeasureUtil

      public CPInstanceUnitOfMeasureUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
      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,CPInstanceUnitOfMeasure> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

      public static List<CPInstanceUnitOfMeasure> findByUuid(String uuid)
      Returns all the cp instance unit of measures where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp instance unit of measures
    • findByUuid

      public static List<CPInstanceUnitOfMeasure> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp instance unit of measures 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 CPInstanceUnitOfMeasureModelImpl.

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

      public static List<CPInstanceUnitOfMeasure> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures 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 CPInstanceUnitOfMeasureModelImpl.

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

      public static List<CPInstanceUnitOfMeasure> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures 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 CPInstanceUnitOfMeasureModelImpl.

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

      public static CPInstanceUnitOfMeasure findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure 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 instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByUuid_First

      public static CPInstanceUnitOfMeasure fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure 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 instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByUuid_Last

      public static CPInstanceUnitOfMeasure findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure 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 instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByUuid_Last

      public static CPInstanceUnitOfMeasure fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure 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 instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByUuid_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByUuid_PrevAndNext(long CPInstanceUnitOfMeasureId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where uuid = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the cp instance unit of measures where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of cp instance unit of measures where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp instance unit of measures
    • findByUuid_C

      public static List<CPInstanceUnitOfMeasure> findByUuid_C(String uuid, long companyId)
      Returns all the cp instance unit of measures where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching cp instance unit of measures
    • findByUuid_C

      public static List<CPInstanceUnitOfMeasure> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp instance unit of measures 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 CPInstanceUnitOfMeasureModelImpl.

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

      public static List<CPInstanceUnitOfMeasure> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures 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 CPInstanceUnitOfMeasureModelImpl.

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

      public static List<CPInstanceUnitOfMeasure> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures 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 CPInstanceUnitOfMeasureModelImpl.

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

      public static CPInstanceUnitOfMeasure findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure 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 instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByUuid_C_First

      public static CPInstanceUnitOfMeasure fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure 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 instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByUuid_C_Last

      public static CPInstanceUnitOfMeasure findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure 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 instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByUuid_C_Last

      public static CPInstanceUnitOfMeasure fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure 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 instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByUuid_C_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByUuid_C_PrevAndNext(long CPInstanceUnitOfMeasureId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the cp instance unit of measures 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 instance unit of measures where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cp instance unit of measures
    • findByCPInstanceId

      public static List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId)
      Returns all the cp instance unit of measures where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      Returns:
      the matching cp instance unit of measures
    • findByCPInstanceId

      public static List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId, int start, int end)
      Returns a range of all the cp instance unit of measures where CPInstanceId = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of matching cp instance unit of measures
    • findByCPInstanceId

      public static List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures where CPInstanceId = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instance unit of measures
    • findByCPInstanceId

      public static List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures where CPInstanceId = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (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 instance unit of measures
    • findByCPInstanceId_First

      public static CPInstanceUnitOfMeasure findByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByCPInstanceId_First

      public static CPInstanceUnitOfMeasure fetchByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByCPInstanceId_Last

      public static CPInstanceUnitOfMeasure findByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByCPInstanceId_Last

      public static CPInstanceUnitOfMeasure fetchByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByCPInstanceId_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByCPInstanceId_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByCPInstanceId

      public static void removeByCPInstanceId(long CPInstanceId)
      Removes all the cp instance unit of measures where CPInstanceId = ? from the database.
      Parameters:
      CPInstanceId - the cp instance ID
    • countByCPInstanceId

      public static int countByCPInstanceId(long CPInstanceId)
      Returns the number of cp instance unit of measures where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      Returns:
      the number of matching cp instance unit of measures
    • findByC_S

      public static List<CPInstanceUnitOfMeasure> findByC_S(long companyId, String sku)
      Returns all the cp instance unit of measures where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      Returns:
      the matching cp instance unit of measures
    • findByC_S

      public static List<CPInstanceUnitOfMeasure> findByC_S(long companyId, String sku, int start, int end)
      Returns a range of all the cp instance unit of measures where companyId = ? and sku = ?.

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

      Parameters:
      companyId - the company ID
      sku - the sku
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of matching cp instance unit of measures
    • findByC_S

      public static List<CPInstanceUnitOfMeasure> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures where companyId = ? and sku = ?.

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

      Parameters:
      companyId - the company ID
      sku - the sku
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instance unit of measures
    • findByC_S

      public static List<CPInstanceUnitOfMeasure> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures where companyId = ? and sku = ?.

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

      Parameters:
      companyId - the company ID
      sku - the sku
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (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 instance unit of measures
    • findByC_S_First

      public static CPInstanceUnitOfMeasure findByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure in the ordered set where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_S_First

      public static CPInstanceUnitOfMeasure fetchByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure in the ordered set where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_S_Last

      public static CPInstanceUnitOfMeasure findByC_S_Last(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure in the ordered set where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_S_Last

      public static CPInstanceUnitOfMeasure fetchByC_S_Last(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure in the ordered set where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_S_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByC_S_PrevAndNext(long CPInstanceUnitOfMeasureId, long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where companyId = ? and sku = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByC_S

      public static void removeByC_S(long companyId, String sku)
      Removes all the cp instance unit of measures where companyId = ? and sku = ? from the database.
      Parameters:
      companyId - the company ID
      sku - the sku
    • countByC_S

      public static int countByC_S(long companyId, String sku)
      Returns the number of cp instance unit of measures where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      Returns:
      the number of matching cp instance unit of measures
    • findByC_A

      public static List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active)
      Returns all the cp instance unit of measures where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      Returns:
      the matching cp instance unit of measures
    • findByC_A

      public static List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active, int start, int end)
      Returns a range of all the cp instance unit of measures where CPInstanceId = ? and active = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of matching cp instance unit of measures
    • findByC_A

      public static List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures where CPInstanceId = ? and active = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instance unit of measures
    • findByC_A

      public static List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures where CPInstanceId = ? and active = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (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 instance unit of measures
    • findByC_A_First

      public static CPInstanceUnitOfMeasure findByC_A_First(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure in the ordered set where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_A_First

      public static CPInstanceUnitOfMeasure fetchByC_A_First(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure in the ordered set where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_A_Last

      public static CPInstanceUnitOfMeasure findByC_A_Last(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure in the ordered set where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_A_Last

      public static CPInstanceUnitOfMeasure fetchByC_A_Last(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure in the ordered set where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_A_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByC_A_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      CPInstanceId - the cp instance ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByC_A

      public static void removeByC_A(long CPInstanceId, boolean active)
      Removes all the cp instance unit of measures where CPInstanceId = ? and active = ? from the database.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
    • countByC_A

      public static int countByC_A(long CPInstanceId, boolean active)
      Returns the number of cp instance unit of measures where CPInstanceId = ? and active = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      active - the active
      Returns:
      the number of matching cp instance unit of measures
    • findByC_K

      public static CPInstanceUnitOfMeasure findByC_K(long CPInstanceId, String key) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or throws a NoSuchCPInstanceUnitOfMeasureException if it could not be found.
      Parameters:
      CPInstanceId - the cp instance ID
      key - the key
      Returns:
      the matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_K

      public static CPInstanceUnitOfMeasure fetchByC_K(long CPInstanceId, String key)
      Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPInstanceId - the cp instance ID
      key - the key
      Returns:
      the matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • fetchByC_K

      public static CPInstanceUnitOfMeasure fetchByC_K(long CPInstanceId, String key, boolean useFinderCache)
      Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPInstanceId - the cp instance ID
      key - the key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • removeByC_K

      public static CPInstanceUnitOfMeasure removeByC_K(long CPInstanceId, String key) throws NoSuchCPInstanceUnitOfMeasureException
      Removes the cp instance unit of measure where CPInstanceId = ? and key = ? from the database.
      Parameters:
      CPInstanceId - the cp instance ID
      key - the key
      Returns:
      the cp instance unit of measure that was removed
      Throws:
      NoSuchCPInstanceUnitOfMeasureException
    • countByC_K

      public static int countByC_K(long CPInstanceId, String key)
      Returns the number of cp instance unit of measures where CPInstanceId = ? and key = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      key - the key
      Returns:
      the number of matching cp instance unit of measures
    • findByC_P

      public static List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary)
      Returns all the cp instance unit of measures where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      Returns:
      the matching cp instance unit of measures
    • findByC_P

      public static List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary, int start, int end)
      Returns a range of all the cp instance unit of measures where CPInstanceId = ? and primary = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of matching cp instance unit of measures
    • findByC_P

      public static List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures where CPInstanceId = ? and primary = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instance unit of measures
    • findByC_P

      public static List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures where CPInstanceId = ? and primary = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (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 instance unit of measures
    • findByC_P_First

      public static CPInstanceUnitOfMeasure findByC_P_First(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure in the ordered set where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_P_First

      public static CPInstanceUnitOfMeasure fetchByC_P_First(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure in the ordered set where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_P_Last

      public static CPInstanceUnitOfMeasure findByC_P_Last(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure in the ordered set where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_P_Last

      public static CPInstanceUnitOfMeasure fetchByC_P_Last(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure in the ordered set where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_P_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByC_P_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      CPInstanceId - the cp instance ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByC_P

      public static void removeByC_P(long CPInstanceId, boolean primary)
      Removes all the cp instance unit of measures where CPInstanceId = ? and primary = ? from the database.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
    • countByC_P

      public static int countByC_P(long CPInstanceId, boolean primary)
      Returns the number of cp instance unit of measures where CPInstanceId = ? and primary = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      primary - the primary
      Returns:
      the number of matching cp instance unit of measures
    • findByC_K_S

      public static List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, String key, String sku)
      Returns all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      Returns:
      the matching cp instance unit of measures
    • findByC_K_S

      public static List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, String key, String sku, int start, int end)
      Returns a range of all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.

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

      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of matching cp instance unit of measures
    • findByC_K_S

      public static List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, String key, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.

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

      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instance unit of measures
    • findByC_K_S

      public static List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, String key, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.

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

      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (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 instance unit of measures
    • findByC_K_S_First

      public static CPInstanceUnitOfMeasure findByC_K_S_First(long companyId, String key, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the first cp instance unit of measure in the ordered set where companyId = ? and key = ? and sku = ?.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_K_S_First

      public static CPInstanceUnitOfMeasure fetchByC_K_S_First(long companyId, String key, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the first cp instance unit of measure in the ordered set where companyId = ? and key = ? and sku = ?.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_K_S_Last

      public static CPInstanceUnitOfMeasure findByC_K_S_Last(long companyId, String key, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the last cp instance unit of measure in the ordered set where companyId = ? and key = ? and sku = ?.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a matching cp instance unit of measure could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByC_K_S_Last

      public static CPInstanceUnitOfMeasure fetchByC_K_S_Last(long companyId, String key, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns the last cp instance unit of measure in the ordered set where companyId = ? and key = ? and sku = ?.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • findByC_K_S_PrevAndNext

      public static CPInstanceUnitOfMeasure[] findByC_K_S_PrevAndNext(long CPInstanceUnitOfMeasureId, long companyId, String key, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where companyId = ? and key = ? and sku = ?.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the current cp instance unit of measure
      companyId - the company ID
      key - the key
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • removeByC_K_S

      public static void removeByC_K_S(long companyId, String key, String sku)
      Removes all the cp instance unit of measures where companyId = ? and key = ? and sku = ? from the database.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
    • countByC_K_S

      public static int countByC_K_S(long companyId, String key, String sku)
      Returns the number of cp instance unit of measures where companyId = ? and key = ? and sku = ?.
      Parameters:
      companyId - the company ID
      key - the key
      sku - the sku
      Returns:
      the number of matching cp instance unit of measures
    • cacheResult

      public static void cacheResult(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
      Caches the cp instance unit of measure in the entity cache if it is enabled.
      Parameters:
      cpInstanceUnitOfMeasure - the cp instance unit of measure
    • cacheResult

      public static void cacheResult(List<CPInstanceUnitOfMeasure> cpInstanceUnitOfMeasures)
      Caches the cp instance unit of measures in the entity cache if it is enabled.
      Parameters:
      cpInstanceUnitOfMeasures - the cp instance unit of measures
    • create

      public static CPInstanceUnitOfMeasure create(long CPInstanceUnitOfMeasureId)
      Creates a new cp instance unit of measure with the primary key. Does not add the cp instance unit of measure to the database.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key for the new cp instance unit of measure
      Returns:
      the new cp instance unit of measure
    • remove

      public static CPInstanceUnitOfMeasure remove(long CPInstanceUnitOfMeasureId) throws NoSuchCPInstanceUnitOfMeasureException
      Removes the cp instance unit of measure with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the cp instance unit of measure
      Returns:
      the cp instance unit of measure that was removed
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • updateImpl

      public static CPInstanceUnitOfMeasure updateImpl(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
    • findByPrimaryKey

      public static CPInstanceUnitOfMeasure findByPrimaryKey(long CPInstanceUnitOfMeasureId) throws NoSuchCPInstanceUnitOfMeasureException
      Returns the cp instance unit of measure with the primary key or throws a NoSuchCPInstanceUnitOfMeasureException if it could not be found.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the cp instance unit of measure
      Returns:
      the cp instance unit of measure
      Throws:
      NoSuchCPInstanceUnitOfMeasureException - if a cp instance unit of measure with the primary key could not be found
      NoSuchCPInstanceUnitOfMeasureException
    • fetchByPrimaryKey

      public static CPInstanceUnitOfMeasure fetchByPrimaryKey(long CPInstanceUnitOfMeasureId)
      Returns the cp instance unit of measure with the primary key or returns null if it could not be found.
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the cp instance unit of measure
      Returns:
      the cp instance unit of measure, or null if a cp instance unit of measure with the primary key could not be found
    • findAll

      public static List<CPInstanceUnitOfMeasure> findAll()
      Returns all the cp instance unit of measures.
      Returns:
      the cp instance unit of measures
    • findAll

      public static List<CPInstanceUnitOfMeasure> findAll(int start, int end)
      Returns a range of all the cp instance unit of measures.

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

      Parameters:
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of cp instance unit of measures
    • findAll

      public static List<CPInstanceUnitOfMeasure> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Returns an ordered range of all the cp instance unit of measures.

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

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

      public static List<CPInstanceUnitOfMeasure> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance unit of measures.

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

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

      public static void removeAll()
      Removes all the cp instance unit of measures from the database.
    • countAll

      public static int countAll()
      Returns the number of cp instance unit of measures.
      Returns:
      the number of cp instance unit of measures
    • getPersistence

      public static CPInstanceUnitOfMeasurePersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPInstanceUnitOfMeasurePersistence persistence)