public class CPInstanceUnitOfMeasureUtil
extends java.lang.Object
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
CPInstanceUnitOfMeasurePersistence
Constructor and Description |
---|
CPInstanceUnitOfMeasureUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Caches the cp instance unit of measure in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPInstanceUnitOfMeasure> cpInstanceUnitOfMeasures)
Caches the cp instance unit of measures in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) |
static int |
countAll()
Returns the number of cp instance unit of measures.
|
static int |
countByC_A(long CPInstanceId,
boolean active)
Returns the number of cp instance unit of measures where CPInstanceId = ? and active = ?.
|
static int |
countByC_K_S(long companyId,
java.lang.String key,
java.lang.String sku)
Returns the number of cp instance unit of measures where companyId = ? and key = ? and sku = ?.
|
static int |
countByC_K(long CPInstanceId,
java.lang.String key)
Returns the number of cp instance unit of measures where CPInstanceId = ? and key = ?.
|
static int |
countByC_P(long CPInstanceId,
boolean primary)
Returns the number of cp instance unit of measures where CPInstanceId = ? and primary = ?.
|
static int |
countByC_S(long companyId,
java.lang.String sku)
Returns the number of cp instance unit of measures where companyId = ? and sku = ?.
|
static int |
countByCPInstanceId(long CPInstanceId)
Returns the number of cp instance unit of measures where CPInstanceId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp instance unit of measures where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp instance unit of measures where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPInstanceUnitOfMeasure |
create(long CPInstanceUnitOfMeasureId)
Creates a new cp instance unit of measure with the primary key.
|
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 = ?.
|
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 = ?.
|
static CPInstanceUnitOfMeasure |
fetchByC_K_S_First(long companyId,
java.lang.String key,
java.lang.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 CPInstanceUnitOfMeasure |
fetchByC_K_S_Last(long companyId,
java.lang.String key,
java.lang.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 |
fetchByC_K(long CPInstanceId,
java.lang.String key)
Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returns
null if it could not be found. |
static CPInstanceUnitOfMeasure |
fetchByC_K(long CPInstanceId,
java.lang.String key,
boolean useFinderCache)
Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
static CPInstanceUnitOfMeasure |
fetchByC_S_First(long companyId,
java.lang.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 CPInstanceUnitOfMeasure |
fetchByC_S_Last(long companyId,
java.lang.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 |
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 = ?.
|
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 = ?.
|
static CPInstanceUnitOfMeasure |
fetchByPrimaryKey(long CPInstanceUnitOfMeasureId)
Returns the cp instance unit of measure with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPInstanceUnitOfMeasure> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPInstanceUnitOfMeasure |
fetchByUuid_C_First(java.lang.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 CPInstanceUnitOfMeasure |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.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 CPInstanceUnitOfMeasure |
fetchByUuid_Last(java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findAll()
Returns all the cp instance unit of measures.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findAll(int start,
int end)
Returns a range of all the cp instance unit of measures.
|
static java.util.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 java.util.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 CPInstanceUnitOfMeasure |
findByC_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 CPInstanceUnitOfMeasure |
findByC_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 java.util.List<CPInstanceUnitOfMeasure> |
findByC_A(long CPInstanceId,
boolean active)
Returns all the cp instance unit of measures where CPInstanceId = ? and active = ?.
|
static java.util.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 java.util.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 java.util.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 CPInstanceUnitOfMeasure |
findByC_K_S_First(long companyId,
java.lang.String key,
java.lang.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 CPInstanceUnitOfMeasure |
findByC_K_S_Last(long companyId,
java.lang.String key,
java.lang.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,
java.lang.String key,
java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByC_K_S(long companyId,
java.lang.String key,
java.lang.String sku)
Returns all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByC_K_S(long companyId,
java.lang.String key,
java.lang.String sku,
int start,
int end)
Returns a range of all the cp instance unit of measures where companyId = ? and key = ? and sku = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByC_K_S(long companyId,
java.lang.String key,
java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByC_K_S(long companyId,
java.lang.String key,
java.lang.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 CPInstanceUnitOfMeasure |
findByC_K(long CPInstanceId,
java.lang.String key)
Returns the cp instance unit of measure where CPInstanceId = ? and key = ? or throws a
NoSuchCPInstanceUnitOfMeasureException if it could not be found. |
static CPInstanceUnitOfMeasure |
findByC_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 CPInstanceUnitOfMeasure |
findByC_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 java.util.List<CPInstanceUnitOfMeasure> |
findByC_P(long CPInstanceId,
boolean primary)
Returns all the cp instance unit of measures where CPInstanceId = ? and primary = ?.
|
static java.util.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 java.util.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 java.util.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 CPInstanceUnitOfMeasure |
findByC_S_First(long companyId,
java.lang.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 CPInstanceUnitOfMeasure |
findByC_S_Last(long companyId,
java.lang.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,
java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByC_S(long companyId,
java.lang.String sku)
Returns all the cp instance unit of measures where companyId = ? and sku = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end)
Returns a range of all the cp instance unit of measures where companyId = ? and sku = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByC_S(long companyId,
java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByC_S(long companyId,
java.lang.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 CPInstanceUnitOfMeasure |
findByCPInstanceId_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 CPInstanceUnitOfMeasure |
findByCPInstanceId_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 java.util.List<CPInstanceUnitOfMeasure> |
findByCPInstanceId(long CPInstanceId)
Returns all the cp instance unit of measures where CPInstanceId = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByCPInstanceId(long CPInstanceId,
int start,
int end)
Returns a range of all the cp instance unit of measures where CPInstanceId = ?.
|
static java.util.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 java.util.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 CPInstanceUnitOfMeasure |
findByPrimaryKey(long CPInstanceUnitOfMeasureId)
Returns the cp instance unit of measure with the primary key or throws a
NoSuchCPInstanceUnitOfMeasureException if it could not be found. |
static CPInstanceUnitOfMeasure |
findByUuid_C_First(java.lang.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 CPInstanceUnitOfMeasure |
findByUuid_C_Last(java.lang.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,
java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp instance unit of measures where uuid = ? and companyId = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp instance unit of measures where uuid = ? and companyId = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByUuid_C(java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByUuid_C(java.lang.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 CPInstanceUnitOfMeasure |
findByUuid_First(java.lang.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 CPInstanceUnitOfMeasure |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByUuid(java.lang.String uuid)
Returns all the cp instance unit of measures where uuid = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp instance unit of measures where uuid = ?.
|
static java.util.List<CPInstanceUnitOfMeasure> |
findByUuid(java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findByUuid(java.lang.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 java.util.List<CPInstanceUnitOfMeasure> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPInstanceUnitOfMeasure> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPInstanceUnitOfMeasure> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) |
static CPInstanceUnitOfMeasurePersistence |
getPersistence() |
static CPInstanceUnitOfMeasure |
remove(long CPInstanceUnitOfMeasureId)
Removes the cp instance unit of measure with the primary key from the database.
|
static void |
removeAll()
Removes all the cp instance unit of measures from the database.
|
static void |
removeByC_A(long CPInstanceId,
boolean active)
Removes all the cp instance unit of measures where CPInstanceId = ? and active = ? from the database.
|
static void |
removeByC_K_S(long companyId,
java.lang.String key,
java.lang.String sku)
Removes all the cp instance unit of measures where companyId = ? and key = ? and sku = ? from the database.
|
static CPInstanceUnitOfMeasure |
removeByC_K(long CPInstanceId,
java.lang.String key)
Removes the cp instance unit of measure where CPInstanceId = ? and key = ? from the database.
|
static void |
removeByC_P(long CPInstanceId,
boolean primary)
Removes all the cp instance unit of measures where CPInstanceId = ? and primary = ? from the database.
|
static void |
removeByC_S(long companyId,
java.lang.String sku)
Removes all the cp instance unit of measures where companyId = ? and sku = ? from the database.
|
static void |
removeByCPInstanceId(long CPInstanceId)
Removes all the cp instance unit of measures where CPInstanceId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp instance unit of measures where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp instance unit of measures where uuid = ? from the database.
|
static void |
setPersistence(CPInstanceUnitOfMeasurePersistence persistence) |
static CPInstanceUnitOfMeasure |
update(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) |
static CPInstanceUnitOfMeasure |
update(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPInstanceUnitOfMeasure |
updateImpl(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CPInstanceUnitOfMeasure> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPInstanceUnitOfMeasure> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPInstanceUnitOfMeasure> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPInstanceUnitOfMeasure> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPInstanceUnitOfMeasure update(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPInstanceUnitOfMeasure update(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPInstanceUnitOfMeasure> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPInstanceUnitOfMeasure> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByUuid_PrevAndNext(long CPInstanceUnitOfMeasureId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceUnitOfMeasureId
- the primary key of the current cp instance unit of measureuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPInstanceUnitOfMeasure> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPInstanceUnitOfMeasure> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByUuid_C_PrevAndNext(long CPInstanceUnitOfMeasureId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceUnitOfMeasureId
- the primary key of the current cp instance unit of measureuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDpublic static java.util.List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
CPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByCPInstanceId_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceUnitOfMeasureId
- the primary key of the current cp instance unit of measureCPInstanceId
- the cp instance IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDpublic static int countByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDpublic static java.util.List<CPInstanceUnitOfMeasure> findByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CPInstanceUnitOfMeasure> findByC_S(long companyId, java.lang.String sku, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByC_S_PrevAndNext(long CPInstanceUnitOfMeasureId, long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceUnitOfMeasureId
- the primary key of the current cp instance unit of measurecompanyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static int countByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active)
CPInstanceId
- the cp instance IDactive
- the activepublic static java.util.List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByC_A_First(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_A_First(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
CPInstanceId
- the cp instance IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByC_A_Last(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_A_Last(long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
CPInstanceId
- the cp instance IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByC_A_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
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 (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByC_A(long CPInstanceId, boolean active)
CPInstanceId
- the cp instance IDactive
- the activepublic static int countByC_A(long CPInstanceId, boolean active)
CPInstanceId
- the cp instance IDactive
- the activepublic static CPInstanceUnitOfMeasure findByC_K(long CPInstanceId, java.lang.String key) throws NoSuchCPInstanceUnitOfMeasureException
NoSuchCPInstanceUnitOfMeasureException
if it could not be found.CPInstanceId
- the cp instance IDkey
- the keyNoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_K(long CPInstanceId, java.lang.String key)
null
if it could not be found. Uses the finder cache.CPInstanceId
- the cp instance IDkey
- the keynull
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_K(long CPInstanceId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPInstanceId
- the cp instance IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure removeByC_K(long CPInstanceId, java.lang.String key) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDkey
- the keyNoSuchCPInstanceUnitOfMeasureException
public static int countByC_K(long CPInstanceId, java.lang.String key)
CPInstanceId
- the cp instance IDkey
- the keypublic static java.util.List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary)
CPInstanceId
- the cp instance IDprimary
- the primarypublic static java.util.List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByC_P_First(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_P_First(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
CPInstanceId
- the cp instance IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByC_P_Last(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_P_Last(long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
CPInstanceId
- the cp instance IDprimary
- the primaryorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByC_P_PrevAndNext(long CPInstanceUnitOfMeasureId, long CPInstanceId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
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 (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByC_P(long CPInstanceId, boolean primary)
CPInstanceId
- the cp instance IDprimary
- the primarypublic static int countByC_P(long CPInstanceId, boolean primary)
CPInstanceId
- the cp instance IDprimary
- the primarypublic static java.util.List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, java.lang.String key, java.lang.String sku)
companyId
- the company IDkey
- the keysku
- the skupublic static java.util.List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, java.lang.String key, java.lang.String sku, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, java.lang.String key, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, java.lang.String key, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstanceUnitOfMeasure findByC_K_S_First(long companyId, java.lang.String key, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
companyId
- the company IDkey
- the keysku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_K_S_First(long companyId, java.lang.String key, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
companyId
- the company IDkey
- the keysku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure findByC_K_S_Last(long companyId, java.lang.String key, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
companyId
- the company IDkey
- the keysku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure fetchByC_K_S_Last(long companyId, java.lang.String key, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
companyId
- the company IDkey
- the keysku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance unit of measure could not be foundpublic static CPInstanceUnitOfMeasure[] findByC_K_S_PrevAndNext(long CPInstanceUnitOfMeasureId, long companyId, java.lang.String key, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator) throws NoSuchCPInstanceUnitOfMeasureException
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 (optionally null
)NoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static void removeByC_K_S(long companyId, java.lang.String key, java.lang.String sku)
companyId
- the company IDkey
- the keysku
- the skupublic static int countByC_K_S(long companyId, java.lang.String key, java.lang.String sku)
companyId
- the company IDkey
- the keysku
- the skupublic static void cacheResult(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
cpInstanceUnitOfMeasure
- the cp instance unit of measurepublic static void cacheResult(java.util.List<CPInstanceUnitOfMeasure> cpInstanceUnitOfMeasures)
cpInstanceUnitOfMeasures
- the cp instance unit of measurespublic static CPInstanceUnitOfMeasure create(long CPInstanceUnitOfMeasureId)
CPInstanceUnitOfMeasureId
- the primary key for the new cp instance unit of measurepublic static CPInstanceUnitOfMeasure remove(long CPInstanceUnitOfMeasureId) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceUnitOfMeasureId
- the primary key of the cp instance unit of measureNoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static CPInstanceUnitOfMeasure updateImpl(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
public static CPInstanceUnitOfMeasure findByPrimaryKey(long CPInstanceUnitOfMeasureId) throws NoSuchCPInstanceUnitOfMeasureException
NoSuchCPInstanceUnitOfMeasureException
if it could not be found.CPInstanceUnitOfMeasureId
- the primary key of the cp instance unit of measureNoSuchCPInstanceUnitOfMeasureException
- if a cp instance unit of measure with the primary key could not be foundpublic static CPInstanceUnitOfMeasure fetchByPrimaryKey(long CPInstanceUnitOfMeasureId)
null
if it could not be found.CPInstanceUnitOfMeasureId
- the primary key of the cp instance unit of measurenull
if a cp instance unit of measure with the primary key could not be foundpublic static java.util.List<CPInstanceUnitOfMeasure> findAll()
public static java.util.List<CPInstanceUnitOfMeasure> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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)public static java.util.List<CPInstanceUnitOfMeasure> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)public static java.util.List<CPInstanceUnitOfMeasure> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceUnitOfMeasureModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPInstanceUnitOfMeasurePersistence getPersistence()
public static void setPersistence(CPInstanceUnitOfMeasurePersistence persistence)