Interface CPMeasurementUnitPersistence

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

@ProviderType public interface CPMeasurementUnitPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPMeasurementUnit>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit>
The persistence interface for the cp measurement unit service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CPMeasurementUnit cpMeasurementUnit)
    Caches the cp measurement unit in the entity cache if it is enabled.
    void
    cacheResult(List<CPMeasurementUnit> cpMeasurementUnits)
    Caches the cp measurement units in the entity cache if it is enabled.
    int
    Returns the number of cp measurement units.
    int
    countByC_K(long companyId, String key)
    Returns the number of cp measurement units where companyId = ? and key = ?.
    int
    countByC_P_T(long companyId, boolean primary, int type)
    Returns the number of cp measurement units where companyId = ? and primary = ? and type = ?.
    int
    countByC_T(long companyId, int type)
    Returns the number of cp measurement units where companyId = ? and type = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of cp measurement units where companyId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of cp measurement units where externalReferenceCode = ? and companyId = ?.
    int
    Returns the number of cp measurement units where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of cp measurement units where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of cp measurement units where uuid = ? and groupId = ?.
    create(long CPMeasurementUnitId)
    Creates a new cp measurement unit with the primary key.
    fetchByC_K(long companyId, String key)
    Returns the cp measurement unit where companyId = ? and key = ? or returns null if it could not be found.
    fetchByC_K(long companyId, String key, boolean useFinderCache)
    Returns the cp measurement unit where companyId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
    fetchByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
    fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.
    fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where companyId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long CPMeasurementUnitId)
    Returns the cp measurement unit with the primary key or returns null if it could not be found.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the cp measurement unit where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the cp measurement unit where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where uuid = ?.
    Returns all the cp measurement units.
    findAll(int start, int end)
    Returns a range of all the cp measurement units.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns an ordered range of all the cp measurement units.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp measurement units.
    findByC_K(long companyId, String key)
    Returns the cp measurement unit where companyId = ? and key = ? or throws a NoSuchCPMeasurementUnitException if it could not be found.
    findByC_P_T(long companyId, boolean primary, int type)
    Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.
    findByC_P_T(long companyId, boolean primary, int type, int start, int end)
    Returns a range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
    findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
    findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
    findByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
    findByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
    findByC_P_T_PrevAndNext(long CPMeasurementUnitId, long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
    findByC_T(long companyId, int type)
    Returns all the cp measurement units where companyId = ? and type = ?.
    findByC_T(long companyId, int type, int start, int end)
    Returns a range of all the cp measurement units where companyId = ? and type = ?.
    findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.
    findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.
    findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.
    findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.
    findByC_T_PrevAndNext(long CPMeasurementUnitId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and type = ?.
    findByCompanyId(long companyId)
    Returns all the cp measurement units where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp measurement units where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns an ordered range of all the cp measurement units where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp measurement units where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long CPMeasurementUnitId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPMeasurementUnitException if it could not be found.
    findByPrimaryKey(long CPMeasurementUnitId)
    Returns the cp measurement unit with the primary key or throws a NoSuchCPMeasurementUnitException if it could not be found.
    Returns all the cp measurement units where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the cp measurement units where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns an ordered range of all the cp measurement units where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp measurement units where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the cp measurement units where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp measurement units where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long CPMeasurementUnitId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the first cp measurement unit in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the cp measurement unit where uuid = ? and groupId = ? or throws a NoSuchCPMeasurementUnitException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the last cp measurement unit in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long CPMeasurementUnitId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
    Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ?.
    remove(long CPMeasurementUnitId)
    Removes the cp measurement unit with the primary key from the database.
    void
    Removes all the cp measurement units from the database.
    removeByC_K(long companyId, String key)
    Removes the cp measurement unit where companyId = ? and key = ? from the database.
    void
    removeByC_P_T(long companyId, boolean primary, int type)
    Removes all the cp measurement units where companyId = ? and primary = ? and type = ? from the database.
    void
    removeByC_T(long companyId, int type)
    Removes all the cp measurement units where companyId = ? and type = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the cp measurement units where companyId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the cp measurement unit where externalReferenceCode = ? and companyId = ? from the database.
    void
    Removes all the cp measurement units where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the cp measurement units where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the cp measurement unit where uuid = ? and groupId = ? from the database.
    updateImpl(CPMeasurementUnit cpMeasurementUnit)
     

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

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

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

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

    • findByUuid

      List<CPMeasurementUnit> findByUuid(String uuid)
      Returns all the cp measurement units where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp measurement units
    • findByUuid

      List<CPMeasurementUnit> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp measurement units 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 CPMeasurementUnitModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      CPMeasurementUnit removeByUUID_G(String uuid, long groupId) throws NoSuchCPMeasurementUnitException
      Removes the cp measurement unit where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the cp measurement unit that was removed
      Throws:
      NoSuchCPMeasurementUnitException
    • countByUUID_G

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

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

      List<CPMeasurementUnit> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp measurement units 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 CPMeasurementUnitModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

      List<CPMeasurementUnit> findByCompanyId(long companyId)
      Returns all the cp measurement units where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp measurement units
    • findByCompanyId

      List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp measurement units 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 CPMeasurementUnitModelImpl.

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

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

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

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

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

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

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

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

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

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

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

      int countByCompanyId(long companyId)
      Returns the number of cp measurement units where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp measurement units
    • findByC_K

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

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

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

      CPMeasurementUnit removeByC_K(long companyId, String key) throws NoSuchCPMeasurementUnitException
      Removes the cp measurement unit where companyId = ? and key = ? from the database.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the cp measurement unit that was removed
      Throws:
      NoSuchCPMeasurementUnitException
    • countByC_K

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

      List<CPMeasurementUnit> findByC_T(long companyId, int type)
      Returns all the cp measurement units where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      Returns:
      the matching cp measurement units
    • findByC_T

      List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end)
      Returns a range of all the cp measurement units where companyId = ? and type = ?.

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

      Parameters:
      companyId - the company ID
      type - the type
      start - the lower bound of the range of cp measurement units
      end - the upper bound of the range of cp measurement units (not inclusive)
      Returns:
      the range of matching cp measurement units
    • findByC_T

      List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.

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

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

      List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.

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

      Parameters:
      companyId - the company ID
      type - the type
      start - the lower bound of the range of cp measurement units
      end - the upper bound of the range of cp measurement units (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 measurement units
    • findByC_T_First

      CPMeasurementUnit findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
      Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a matching cp measurement unit could not be found
    • fetchByC_T_First

      CPMeasurementUnit fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp measurement unit, or null if a matching cp measurement unit could not be found
    • findByC_T_Last

      CPMeasurementUnit findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
      Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a matching cp measurement unit could not be found
    • fetchByC_T_Last

      CPMeasurementUnit fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp measurement unit, or null if a matching cp measurement unit could not be found
    • findByC_T_PrevAndNext

      CPMeasurementUnit[] findByC_T_PrevAndNext(long CPMeasurementUnitId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
      Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and type = ?.
      Parameters:
      CPMeasurementUnitId - the primary key of the current cp measurement unit
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a cp measurement unit with the primary key could not be found
    • removeByC_T

      void removeByC_T(long companyId, int type)
      Removes all the cp measurement units where companyId = ? and type = ? from the database.
      Parameters:
      companyId - the company ID
      type - the type
    • countByC_T

      int countByC_T(long companyId, int type)
      Returns the number of cp measurement units where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      Returns:
      the number of matching cp measurement units
    • findByC_P_T

      List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type)
      Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      Returns:
      the matching cp measurement units
    • findByC_P_T

      List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end)
      Returns a range of all the cp measurement units where companyId = ? and primary = ? and type = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      start - the lower bound of the range of cp measurement units
      end - the upper bound of the range of cp measurement units (not inclusive)
      Returns:
      the range of matching cp measurement units
    • findByC_P_T

      List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      start - the lower bound of the range of cp measurement units
      end - the upper bound of the range of cp measurement units (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp measurement units
    • findByC_P_T

      List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      start - the lower bound of the range of cp measurement units
      end - the upper bound of the range of cp measurement units (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 measurement units
    • findByC_P_T_First

      CPMeasurementUnit findByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
      Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a matching cp measurement unit could not be found
    • fetchByC_P_T_First

      CPMeasurementUnit fetchByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp measurement unit, or null if a matching cp measurement unit could not be found
    • findByC_P_T_Last

      CPMeasurementUnit findByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
      Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a matching cp measurement unit could not be found
    • fetchByC_P_T_Last

      CPMeasurementUnit fetchByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp measurement unit, or null if a matching cp measurement unit could not be found
    • findByC_P_T_PrevAndNext

      CPMeasurementUnit[] findByC_P_T_PrevAndNext(long CPMeasurementUnitId, long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
      Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
      Parameters:
      CPMeasurementUnitId - the primary key of the current cp measurement unit
      companyId - the company ID
      primary - the primary
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a cp measurement unit with the primary key could not be found
    • removeByC_P_T

      void removeByC_P_T(long companyId, boolean primary, int type)
      Removes all the cp measurement units where companyId = ? and primary = ? and type = ? from the database.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
    • countByC_P_T

      int countByC_P_T(long companyId, boolean primary, int type)
      Returns the number of cp measurement units where companyId = ? and primary = ? and type = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      type - the type
      Returns:
      the number of matching cp measurement units
    • findByERC_C

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

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

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

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

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

      void cacheResult(CPMeasurementUnit cpMeasurementUnit)
      Caches the cp measurement unit in the entity cache if it is enabled.
      Parameters:
      cpMeasurementUnit - the cp measurement unit
    • cacheResult

      void cacheResult(List<CPMeasurementUnit> cpMeasurementUnits)
      Caches the cp measurement units in the entity cache if it is enabled.
      Parameters:
      cpMeasurementUnits - the cp measurement units
    • create

      CPMeasurementUnit create(long CPMeasurementUnitId)
      Creates a new cp measurement unit with the primary key. Does not add the cp measurement unit to the database.
      Parameters:
      CPMeasurementUnitId - the primary key for the new cp measurement unit
      Returns:
      the new cp measurement unit
    • remove

      CPMeasurementUnit remove(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException
      Removes the cp measurement unit with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      CPMeasurementUnitId - the primary key of the cp measurement unit
      Returns:
      the cp measurement unit that was removed
      Throws:
      NoSuchCPMeasurementUnitException - if a cp measurement unit with the primary key could not be found
    • updateImpl

      CPMeasurementUnit updateImpl(CPMeasurementUnit cpMeasurementUnit)
    • findByPrimaryKey

      CPMeasurementUnit findByPrimaryKey(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException
      Returns the cp measurement unit with the primary key or throws a NoSuchCPMeasurementUnitException if it could not be found.
      Parameters:
      CPMeasurementUnitId - the primary key of the cp measurement unit
      Returns:
      the cp measurement unit
      Throws:
      NoSuchCPMeasurementUnitException - if a cp measurement unit with the primary key could not be found
    • fetchByPrimaryKey

      CPMeasurementUnit fetchByPrimaryKey(long CPMeasurementUnitId)
      Returns the cp measurement unit with the primary key or returns null if it could not be found.
      Parameters:
      CPMeasurementUnitId - the primary key of the cp measurement unit
      Returns:
      the cp measurement unit, or null if a cp measurement unit with the primary key could not be found
    • findAll

      Returns all the cp measurement units.
      Returns:
      the cp measurement units
    • findAll

      List<CPMeasurementUnit> findAll(int start, int end)
      Returns a range of all the cp measurement units.

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

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

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

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

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

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

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

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

      void removeAll()
      Removes all the cp measurement units from the database.
    • countAll

      int countAll()
      Returns the number of cp measurement units.
      Returns:
      the number of cp measurement units