@ProviderType public interface CPInstanceUnitOfMeasurePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPInstanceUnitOfMeasure>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstanceUnitOfMeasure>
Caching information and settings can be found in portal.properties
CPInstanceUnitOfMeasureUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
Caches the cp instance unit of measure in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CPInstanceUnitOfMeasure> cpInstanceUnitOfMeasures)
Caches the cp instance unit of measures in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of cp instance unit of measures.
|
int |
countByC_A(long CPInstanceId,
boolean active)
Returns the number of cp instance unit of measures where CPInstanceId = ? and active = ?.
|
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 = ?.
|
int |
countByC_K(long CPInstanceId,
java.lang.String key)
Returns the number of cp instance unit of measures where CPInstanceId = ? and key = ?.
|
int |
countByC_P(long CPInstanceId,
boolean primary)
Returns the number of cp instance unit of measures where CPInstanceId = ? and primary = ?.
|
int |
countByC_S(long companyId,
java.lang.String sku)
Returns the number of cp instance unit of measures where companyId = ? and sku = ?.
|
int |
countByCPInstanceId(long CPInstanceId)
Returns the number of cp instance unit of measures where CPInstanceId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp instance unit of measures where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of cp instance unit of measures where uuid = ?.
|
CPInstanceUnitOfMeasure |
create(long CPInstanceUnitOfMeasureId)
Creates a new cp instance unit of measure with the primary key.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CPInstanceUnitOfMeasure |
fetchByPrimaryKey(long CPInstanceUnitOfMeasureId)
Returns the cp instance unit of measure with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findAll()
Returns all the cp instance unit of measures.
|
java.util.List<CPInstanceUnitOfMeasure> |
findAll(int start,
int end)
Returns a range of all the cp instance unit of measures.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByC_A(long CPInstanceId,
boolean active)
Returns all the cp instance unit of measures where CPInstanceId = ? and active = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByC_P(long CPInstanceId,
boolean primary)
Returns all the cp instance unit of measures where CPInstanceId = ? and primary = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByC_S(long companyId,
java.lang.String sku)
Returns all the cp instance unit of measures where companyId = ? and sku = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByCPInstanceId(long CPInstanceId)
Returns all the cp instance unit of measures where CPInstanceId = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByCPInstanceId(long CPInstanceId,
int start,
int end)
Returns a range of all the cp instance unit of measures where CPInstanceId = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp instance unit of measures where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPInstanceUnitOfMeasure> |
findByUuid(java.lang.String uuid)
Returns all the cp instance unit of measures where uuid = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CPInstanceUnitOfMeasure |
remove(long CPInstanceUnitOfMeasureId)
Removes the cp instance unit of measure with the primary key from the database.
|
void |
removeAll()
Removes all the cp instance unit of measures from the database.
|
void |
removeByC_A(long CPInstanceId,
boolean active)
Removes all the cp instance unit of measures where CPInstanceId = ? and active = ? from the database.
|
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.
|
CPInstanceUnitOfMeasure |
removeByC_K(long CPInstanceId,
java.lang.String key)
Removes the cp instance unit of measure where CPInstanceId = ? and key = ? from the database.
|
void |
removeByC_P(long CPInstanceId,
boolean primary)
Removes all the cp instance unit of measures where CPInstanceId = ? and primary = ? from the database.
|
void |
removeByC_S(long companyId,
java.lang.String sku)
Removes all the cp instance unit of measures where companyId = ? and sku = ? from the database.
|
void |
removeByCPInstanceId(long CPInstanceId)
Removes all the cp instance unit of measures where CPInstanceId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp instance unit of measures where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the cp instance unit of measures where uuid = ? from the database.
|
CPInstanceUnitOfMeasure |
updateImpl(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CPInstanceUnitOfMeasure> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPInstanceUnitOfMeasure> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPInstanceUnitOfMeasure> findByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDjava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDint countByCPInstanceId(long CPInstanceId)
CPInstanceId
- the cp instance IDjava.util.List<CPInstanceUnitOfMeasure> findByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skujava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skuint countByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skujava.util.List<CPInstanceUnitOfMeasure> findByC_A(long CPInstanceId, boolean active)
CPInstanceId
- the cp instance IDactive
- the activejava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByC_A(long CPInstanceId, boolean active)
CPInstanceId
- the cp instance IDactive
- the activeint countByC_A(long CPInstanceId, boolean active)
CPInstanceId
- the cp instance IDactive
- the activeCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure removeByC_K(long CPInstanceId, java.lang.String key) throws NoSuchCPInstanceUnitOfMeasureException
CPInstanceId
- the cp instance IDkey
- the keyNoSuchCPInstanceUnitOfMeasureException
int countByC_K(long CPInstanceId, java.lang.String key)
CPInstanceId
- the cp instance IDkey
- the keyjava.util.List<CPInstanceUnitOfMeasure> findByC_P(long CPInstanceId, boolean primary)
CPInstanceId
- the cp instance IDprimary
- the primaryjava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByC_P(long CPInstanceId, boolean primary)
CPInstanceId
- the cp instance IDprimary
- the primaryint countByC_P(long CPInstanceId, boolean primary)
CPInstanceId
- the cp instance IDprimary
- the primaryjava.util.List<CPInstanceUnitOfMeasure> findByC_K_S(long companyId, java.lang.String key, java.lang.String sku)
companyId
- the company IDkey
- the keysku
- the skujava.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)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
)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 cacheCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure[] 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 foundvoid removeByC_K_S(long companyId, java.lang.String key, java.lang.String sku)
companyId
- the company IDkey
- the keysku
- the skuint countByC_K_S(long companyId, java.lang.String key, java.lang.String sku)
companyId
- the company IDkey
- the keysku
- the skuvoid cacheResult(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
cpInstanceUnitOfMeasure
- the cp instance unit of measurevoid cacheResult(java.util.List<CPInstanceUnitOfMeasure> cpInstanceUnitOfMeasures)
cpInstanceUnitOfMeasures
- the cp instance unit of measuresCPInstanceUnitOfMeasure create(long CPInstanceUnitOfMeasureId)
CPInstanceUnitOfMeasureId
- the primary key for the new cp instance unit of measureCPInstanceUnitOfMeasure 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 foundCPInstanceUnitOfMeasure updateImpl(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
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 foundCPInstanceUnitOfMeasure 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 foundjava.util.List<CPInstanceUnitOfMeasure> findAll()
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)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
)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 cachevoid removeAll()
int countAll()