Class CPInstanceUnitOfMeasureUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) Caches the cp instance unit of measure in the entity cache if it is enabled.static voidcacheResult(List<CPInstanceUnitOfMeasure> cpInstanceUnitOfMeasures) Caches the cp instance unit of measures in the entity cache if it is enabled.static voidstatic voidclearCache(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) static intcountAll()Returns the number of cp instance unit of measures.static intcountByC_A(long CPInstanceId, boolean active) Returns the number of cp instance unit of measures where CPInstanceId = ? and active = ?.static intcountByC_K(long CPInstanceId, String key) Returns the number of cp instance unit of measures where CPInstanceId = ? and key = ?.static intcountByC_K_S(long companyId, String key, String sku) Returns the number of cp instance unit of measures where companyId = ? and key = ? and sku = ?.static intcountByC_P(long CPInstanceId, boolean primary) Returns the number of cp instance unit of measures where CPInstanceId = ? and primary = ?.static intcountByC_S(long companyId, String sku) Returns the number of cp instance unit of measures where companyId = ? and sku = ?.static intcountByCPInstanceId(long CPInstanceId) Returns the number of cp instance unit of measures where CPInstanceId = ?.static intcountByUuid(String uuid) Returns the number of cp instance unit of measures where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of cp instance unit of measures where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPInstanceUnitOfMeasurecreate(long CPInstanceUnitOfMeasureId) Creates a new cp instance unit of measure with the primary key.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_K(long CPInstanceId, String key) Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returnsnullif it could not be found.static CPInstanceUnitOfMeasurefetchByC_K(long CPInstanceId, String key, boolean useFinderCache) Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByC_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 = ?.static CPInstanceUnitOfMeasurefetchByCPInstanceId_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 = ?.static CPInstanceUnitOfMeasurefetchByCPInstanceId_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 = ?.static CPInstanceUnitOfMeasurefetchByPrimaryKey(long CPInstanceUnitOfMeasureId) Returns the cp instance unit of measure with the primary key or returnsnullif it could not be found.static Map<Serializable,CPInstanceUnitOfMeasure> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CPInstanceUnitOfMeasurefetchByUuid_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 = ?.static CPInstanceUnitOfMeasurefetchByUuid_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 = ?.static CPInstanceUnitOfMeasurefetchByUuid_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 = ?.static CPInstanceUnitOfMeasurefetchByUuid_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 = ?.static List<CPInstanceUnitOfMeasure>findAll()Returns all the cp instance unit of measures.static List<CPInstanceUnitOfMeasure>findAll(int start, int end) Returns a range of all the cp instance unit of measures.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.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.static List<CPInstanceUnitOfMeasure>findByC_A(long CPInstanceId, boolean active) Returns all the cp instance unit of measures where CPInstanceId = ? and active = ?.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 = ?.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 = ?.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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasure[]findByC_A_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) 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 = ?.static CPInstanceUnitOfMeasureReturns the cp instance unit of measure where CPInstanceId = ? and key = ? or throws aNoSuchCPInstanceUnitOfMeasureExceptionif it could not be found.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 = ?.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 = ?.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 = ?.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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasure[]findByC_K_S_PrevAndNext(long CPInstanceUnitOfMeasureId, long companyId, String key, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) 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 = ?.static List<CPInstanceUnitOfMeasure>findByC_P(long CPInstanceId, boolean primary) Returns all the cp instance unit of measures where CPInstanceId = ? and primary = ?.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 = ?.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 = ?.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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasure[]findByC_P_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) 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 = ?.static List<CPInstanceUnitOfMeasure>Returns all the cp instance unit of measures where companyId = ? and sku = ?.static List<CPInstanceUnitOfMeasure>Returns a range of all the cp instance unit of measures where companyId = ? and sku = ?.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 = ?.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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasurefindByC_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 = ?.static CPInstanceUnitOfMeasure[]findByC_S_PrevAndNext(long CPInstanceUnitOfMeasureId, long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) 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 = ?.static List<CPInstanceUnitOfMeasure>findByCPInstanceId(long CPInstanceId) Returns all the cp instance unit of measures where CPInstanceId = ?.static List<CPInstanceUnitOfMeasure>findByCPInstanceId(long CPInstanceId, int start, int end) Returns a range of all the cp instance unit of measures where CPInstanceId = ?.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 = ?.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 = ?.static CPInstanceUnitOfMeasurefindByCPInstanceId_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 = ?.static CPInstanceUnitOfMeasurefindByCPInstanceId_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 = ?.static CPInstanceUnitOfMeasure[]findByCPInstanceId_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where CPInstanceId = ?.static CPInstanceUnitOfMeasurefindByPrimaryKey(long CPInstanceUnitOfMeasureId) Returns the cp instance unit of measure with the primary key or throws aNoSuchCPInstanceUnitOfMeasureExceptionif it could not be found.static List<CPInstanceUnitOfMeasure>findByUuid(String uuid) Returns all the cp instance unit of measures where uuid = ?.static List<CPInstanceUnitOfMeasure>findByUuid(String uuid, int start, int end) Returns a range of all the cp instance unit of measures where uuid = ?.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 = ?.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 = ?.static List<CPInstanceUnitOfMeasure>findByUuid_C(String uuid, long companyId) Returns all the cp instance unit of measures where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.static CPInstanceUnitOfMeasurefindByUuid_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 = ?.static CPInstanceUnitOfMeasurefindByUuid_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 = ?.static CPInstanceUnitOfMeasure[]findByUuid_C_PrevAndNext(long CPInstanceUnitOfMeasureId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) 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 = ?.static CPInstanceUnitOfMeasurefindByUuid_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 = ?.static CPInstanceUnitOfMeasurefindByUuid_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 = ?.static CPInstanceUnitOfMeasure[]findByUuid_PrevAndNext(long CPInstanceUnitOfMeasureId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) Returns the cp instance unit of measures before and after the current cp instance unit of measure in the ordered set where uuid = ?.static List<CPInstanceUnitOfMeasure>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPInstanceUnitOfMeasure>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPInstanceUnitOfMeasure>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) static CPInstanceUnitOfMeasureremove(long CPInstanceUnitOfMeasureId) Removes the cp instance unit of measure with the primary key from the database.static voidRemoves all the cp instance unit of measures from the database.static voidremoveByC_A(long CPInstanceId, boolean active) Removes all the cp instance unit of measures where CPInstanceId = ? and active = ? from the database.static CPInstanceUnitOfMeasureremoveByC_K(long CPInstanceId, String key) Removes the cp instance unit of measure where CPInstanceId = ? and key = ? from the database.static voidremoveByC_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.static voidremoveByC_P(long CPInstanceId, boolean primary) Removes all the cp instance unit of measures where CPInstanceId = ? and primary = ? from the database.static voidremoveByC_S(long companyId, String sku) Removes all the cp instance unit of measures where companyId = ? and sku = ? from the database.static voidremoveByCPInstanceId(long CPInstanceId) Removes all the cp instance unit of measures where CPInstanceId = ? from the database.static voidremoveByUuid(String uuid) Removes all the cp instance unit of measures where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the cp instance unit of measures where uuid = ? and companyId = ? from the database.static voidsetPersistence(CPInstanceUnitOfMeasurePersistence persistence) static CPInstanceUnitOfMeasureupdate(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) static CPInstanceUnitOfMeasureupdate(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPInstanceUnitOfMeasureupdateImpl(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
-
Constructor Details
-
CPInstanceUnitOfMeasureUtil
public CPInstanceUnitOfMeasureUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
Returns all the cp instance unit of measures where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp instance unit of measures
-
findByUuid
Returns a range of all the cp instance unit of measures where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measureuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
removeByUuid
Removes all the cp instance unit of measures where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
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
Returns all the cp instance unit of measures where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measureuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
removeByUuid_C
Removes all the cp instance unit of measures where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp instance unit of measures where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp instance unit of measures
-
findByCPInstanceId
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDstart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDstart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDstart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measureCPInstanceId- the cp instance IDorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
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
Returns all the cp instance unit of measures where companyId = ? and sku = ?.- Parameters:
companyId- the company IDsku- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
companyId- the company IDsku- the skustart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
companyId- the company IDsku- the skustart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
companyId- the company IDsku- the skustart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measurecompanyId- the company IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
removeByC_S
Removes all the cp instance unit of measures where companyId = ? and sku = ? from the database.- Parameters:
companyId- the company IDsku- the sku
-
countByC_S
Returns the number of cp instance unit of measures where companyId = ? and sku = ?.- Parameters:
companyId- the company IDsku- the sku- Returns:
- the number of matching cp instance unit of measures
-
findByC_A
Returns all the cp instance unit of measures where CPInstanceId = ? and active = ?.- Parameters:
CPInstanceId- the cp instance IDactive- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDactive- the activestart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDactive- the activestart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDactive- the activestart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measureCPInstanceId- the cp instance IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDactive- 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 IDactive- 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 aNoSuchCPInstanceUnitOfMeasureExceptionif it could not be found.- Parameters:
CPInstanceId- the cp instance IDkey- the key- Returns:
- the matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
fetchByC_K
Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
CPInstanceId- the cp instance IDkey- the key- Returns:
- the matching cp instance unit of measure, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
CPInstanceId- the cp instance IDkey- the keyuseFinderCache- whether to use the finder cache- Returns:
- the matching cp instance unit of measure, or
nullif 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 IDkey- the key- Returns:
- the cp instance unit of measure that was removed
- Throws:
NoSuchCPInstanceUnitOfMeasureException
-
countByC_K
Returns the number of cp instance unit of measures where CPInstanceId = ? and key = ?.- Parameters:
CPInstanceId- the cp instance IDkey- the key- Returns:
- the number of matching cp instance unit of measures
-
findByC_P
Returns all the cp instance unit of measures where CPInstanceId = ? and primary = ?.- Parameters:
CPInstanceId- the cp instance IDprimary- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDprimary- the primarystart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDprimary- the primarystart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
CPInstanceId- the cp instance IDprimary- the primarystart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDprimary- the primaryorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDprimary- the primaryorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 IDprimary- the primaryorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDprimary- the primaryorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measureCPInstanceId- the cp instance IDprimary- the primaryorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDprimary- 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 IDprimary- the primary- Returns:
- the number of matching cp instance unit of measures
-
findByC_K_S
Returns all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.- Parameters:
companyId- the company IDkey- the keysku- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
companyId- the company IDkey- the keysku- the skustart- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
companyId- the company IDkey- the keysku- the skustart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
companyId- the company IDkey- the keysku- the skustart- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDkey- the keysku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDkey- the keysku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance unit of measure, or
nullif 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 IDkey- the keysku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure
- Throws:
NoSuchCPInstanceUnitOfMeasureException- if a matching cp instance unit of measure could not be foundNoSuchCPInstanceUnitOfMeasureException
-
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 IDkey- the keysku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp instance unit of measure, or
nullif 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 measurecompanyId- the company IDkey- the keysku- the skuorderByComparator- the comparator to order the set by (optionallynull)- 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 foundNoSuchCPInstanceUnitOfMeasureException
-
removeByC_K_S
Removes all the cp instance unit of measures where companyId = ? and key = ? and sku = ? from the database.- Parameters:
companyId- the company IDkey- the keysku- the sku
-
countByC_K_S
Returns the number of cp instance unit of measures where companyId = ? and key = ? and sku = ?.- Parameters:
companyId- the company IDkey- the keysku- the sku- Returns:
- the number of matching cp instance unit of measures
-
cacheResult
Caches the cp instance unit of measure in the entity cache if it is enabled.- Parameters:
cpInstanceUnitOfMeasure- the cp instance unit of measure
-
cacheResult
Caches the cp instance unit of measures in the entity cache if it is enabled.- Parameters:
cpInstanceUnitOfMeasures- the cp instance unit of measures
-
create
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 foundNoSuchCPInstanceUnitOfMeasureException
-
updateImpl
-
findByPrimaryKey
public static CPInstanceUnitOfMeasure findByPrimaryKey(long CPInstanceUnitOfMeasureId) throws NoSuchCPInstanceUnitOfMeasureException Returns the cp instance unit of measure with the primary key or throws aNoSuchCPInstanceUnitOfMeasureExceptionif 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 foundNoSuchCPInstanceUnitOfMeasureException
-
fetchByPrimaryKey
Returns the cp instance unit of measure with the primary key or returnsnullif 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
nullif a cp instance unit of measure with the primary key could not be found
-
findAll
Returns all the cp instance unit of measures.- Returns:
- the cp instance unit of measures
-
findAll
Returns a range of all the cp instance unit of measures.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
start- the lower bound of the range of cp instance unit of measuresend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
start- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPInstanceUnitOfMeasureModelImpl.- Parameters:
start- the lower bound of the range of cp instance unit of measuresend- the upper bound of the range of cp instance unit of measures (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-