public class CPMeasurementUnitUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CPMeasurementUnitPersistenceImpl
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
CPMeasurementUnitPersistence
Constructor and Description |
---|
CPMeasurementUnitUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPMeasurementUnit cpMeasurementUnit)
Caches the cp measurement unit in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPMeasurementUnit> cpMeasurementUnits)
Caches the cp measurement units in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPMeasurementUnit cpMeasurementUnit) |
static int |
countAll()
Returns the number of cp measurement units.
|
static int |
countByC_K(long companyId,
java.lang.String key)
Returns the number of cp measurement units where companyId = ? and key = ?.
|
static int |
countByC_P_T(long companyId,
boolean primary,
int type)
Returns the number of cp measurement units where companyId = ? and primary = ? and type = ?.
|
static int |
countByC_T(long companyId,
int type)
Returns the number of cp measurement units where companyId = ? and type = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of cp measurement units where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp measurement units where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp measurement units where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp measurement units where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPMeasurementUnit |
create(long CPMeasurementUnitId)
Creates a new cp measurement unit with the primary key.
|
static CPMeasurementUnit |
fetchByC_K(long companyId,
java.lang.String key)
Returns the cp measurement unit where companyId = ? and key = ? or returns
null if it could not be found. |
static CPMeasurementUnit |
fetchByC_K(long companyId,
java.lang.String key,
boolean useFinderCache)
Returns the cp measurement unit where companyId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPMeasurementUnit |
fetchByC_P_T_First(long companyId,
boolean primary,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
|
static CPMeasurementUnit |
fetchByC_P_T_Last(long companyId,
boolean primary,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
|
static CPMeasurementUnit |
fetchByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.
|
static CPMeasurementUnit |
fetchByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.
|
static CPMeasurementUnit |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where companyId = ?.
|
static CPMeasurementUnit |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where companyId = ?.
|
static CPMeasurementUnit |
fetchByPrimaryKey(long CPMeasurementUnitId)
Returns the cp measurement unit with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPMeasurementUnit> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPMeasurementUnit |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
static CPMeasurementUnit |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
static CPMeasurementUnit |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ?.
|
static CPMeasurementUnit |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp measurement unit where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPMeasurementUnit |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp measurement unit where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPMeasurementUnit |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ?.
|
static java.util.List<CPMeasurementUnit> |
findAll()
Returns all the cp measurement units.
|
static java.util.List<CPMeasurementUnit> |
findAll(int start,
int end)
Returns a range of all the cp measurement units.
|
static java.util.List<CPMeasurementUnit> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units.
|
static java.util.List<CPMeasurementUnit> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units.
|
static CPMeasurementUnit |
findByC_K(long companyId,
java.lang.String key)
Returns the cp measurement unit where companyId = ? and key = ? or throws a
NoSuchCPMeasurementUnitException if it could not be found. |
static CPMeasurementUnit |
findByC_P_T_First(long companyId,
boolean primary,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
|
static CPMeasurementUnit |
findByC_P_T_Last(long companyId,
boolean primary,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
|
static CPMeasurementUnit[] |
findByC_P_T_PrevAndNext(long CPMeasurementUnitId,
long companyId,
boolean primary,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type)
Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type,
int start,
int end)
Returns a range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
static CPMeasurementUnit |
findByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.
|
static CPMeasurementUnit |
findByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.
|
static CPMeasurementUnit[] |
findByC_T_PrevAndNext(long CPMeasurementUnitId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type)
Returns all the cp measurement units where companyId = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the cp measurement units where companyId = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.
|
static java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.
|
static CPMeasurementUnit |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where companyId = ?.
|
static CPMeasurementUnit |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where companyId = ?.
|
static CPMeasurementUnit[] |
findByCompanyId_PrevAndNext(long CPMeasurementUnitId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId)
Returns all the cp measurement units where companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp measurement units where companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where companyId = ?.
|
static CPMeasurementUnit |
findByPrimaryKey(long CPMeasurementUnitId)
Returns the cp measurement unit with the primary key or throws a
NoSuchCPMeasurementUnitException if it could not be found. |
static CPMeasurementUnit |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
static CPMeasurementUnit |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
static CPMeasurementUnit[] |
findByUuid_C_PrevAndNext(long CPMeasurementUnitId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp measurement units where uuid = ? and companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp measurement units where uuid = ? and companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.
|
static CPMeasurementUnit |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ?.
|
static CPMeasurementUnit |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp measurement unit where uuid = ? and groupId = ? or throws a
NoSuchCPMeasurementUnitException if it could not be found. |
static CPMeasurementUnit |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ?.
|
static CPMeasurementUnit[] |
findByUuid_PrevAndNext(long CPMeasurementUnitId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid)
Returns all the cp measurement units where uuid = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp measurement units where uuid = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where uuid = ?.
|
static java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where uuid = ?.
|
static java.util.List<CPMeasurementUnit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPMeasurementUnit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPMeasurementUnit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) |
static CPMeasurementUnitPersistence |
getPersistence() |
static CPMeasurementUnit |
remove(long CPMeasurementUnitId)
Removes the cp measurement unit with the primary key from the database.
|
static void |
removeAll()
Removes all the cp measurement units from the database.
|
static CPMeasurementUnit |
removeByC_K(long companyId,
java.lang.String key)
Removes the cp measurement unit where companyId = ? and key = ? from the database.
|
static void |
removeByC_P_T(long companyId,
boolean primary,
int type)
Removes all the cp measurement units where companyId = ? and primary = ? and type = ? from the database.
|
static void |
removeByC_T(long companyId,
int type)
Removes all the cp measurement units where companyId = ? and type = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the cp measurement units where companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp measurement units where uuid = ? and companyId = ? from the database.
|
static CPMeasurementUnit |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp measurement unit where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp measurement units where uuid = ? from the database.
|
static CPMeasurementUnit |
update(CPMeasurementUnit cpMeasurementUnit) |
static CPMeasurementUnit |
update(CPMeasurementUnit cpMeasurementUnit,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPMeasurementUnit |
updateImpl(CPMeasurementUnit cpMeasurementUnit) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPMeasurementUnit cpMeasurementUnit)
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,CPMeasurementUnit> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPMeasurementUnit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPMeasurementUnit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPMeasurementUnit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPMeasurementUnit update(CPMeasurementUnit cpMeasurementUnit)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPMeasurementUnit update(CPMeasurementUnit cpMeasurementUnit, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)public static java.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPMeasurementUnit findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit[] findByUuid_PrevAndNext(long CPMeasurementUnitId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unituuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit 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 CPMeasurementUnit findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPMeasurementUnitException
NoSuchCPMeasurementUnitException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPMeasurementUnitException
uuid
- the uuidgroupId
- the group IDNoSuchCPMeasurementUnitException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)public static java.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPMeasurementUnit findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit[] findByUuid_C_PrevAndNext(long CPMeasurementUnitId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unituuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit 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<CPMeasurementUnit> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPMeasurementUnit> findByCompanyId(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 CPMeasurementUnitModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)public static java.util.List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPMeasurementUnit findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit[] findByCompanyId_PrevAndNext(long CPMeasurementUnitId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static CPMeasurementUnit findByC_K(long companyId, java.lang.String key) throws NoSuchCPMeasurementUnitException
NoSuchCPMeasurementUnitException
if it could not be found.companyId
- the company IDkey
- the keyNoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByC_K(long companyId, java.lang.String key)
null
if it could not be found. Uses the finder cache.companyId
- the company IDkey
- the keynull
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByC_K(long companyId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit removeByC_K(long companyId, java.lang.String key) throws NoSuchCPMeasurementUnitException
companyId
- the company IDkey
- the keyNoSuchCPMeasurementUnitException
public static int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static java.util.List<CPMeasurementUnit> findByC_T(long companyId, int type)
companyId
- the company IDtype
- the typepublic static java.util.List<CPMeasurementUnit> findByC_T(long companyId, int type, 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)public static java.util.List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPMeasurementUnit findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit[] findByC_T_PrevAndNext(long CPMeasurementUnitId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundpublic static void removeByC_T(long companyId, int type)
companyId
- the company IDtype
- the typepublic static int countByC_T(long companyId, int type)
companyId
- the company IDtype
- the typepublic static java.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type)
companyId
- the company IDprimary
- the primarytype
- the typepublic static java.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDprimary
- the primarytype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)public static java.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
companyId
- the company IDprimary
- the primarytype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDprimary
- the primarytype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPMeasurementUnit findByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit findByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit fetchByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundpublic static CPMeasurementUnit[] findByC_P_T_PrevAndNext(long CPMeasurementUnitId, long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundpublic static void removeByC_P_T(long companyId, boolean primary, int type)
companyId
- the company IDprimary
- the primarytype
- the typepublic static int countByC_P_T(long companyId, boolean primary, int type)
companyId
- the company IDprimary
- the primarytype
- the typepublic static void cacheResult(CPMeasurementUnit cpMeasurementUnit)
cpMeasurementUnit
- the cp measurement unitpublic static void cacheResult(java.util.List<CPMeasurementUnit> cpMeasurementUnits)
cpMeasurementUnits
- the cp measurement unitspublic static CPMeasurementUnit create(long CPMeasurementUnitId)
CPMeasurementUnitId
- the primary key for the new cp measurement unitpublic static CPMeasurementUnit remove(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the cp measurement unitNoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundpublic static CPMeasurementUnit updateImpl(CPMeasurementUnit cpMeasurementUnit)
public static CPMeasurementUnit findByPrimaryKey(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException
NoSuchCPMeasurementUnitException
if it could not be found.CPMeasurementUnitId
- the primary key of the cp measurement unitNoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundpublic static CPMeasurementUnit fetchByPrimaryKey(long CPMeasurementUnitId)
null
if it could not be found.CPMeasurementUnitId
- the primary key of the cp measurement unitnull
if a cp measurement unit with the primary key could not be foundpublic static java.util.List<CPMeasurementUnit> findAll()
public static java.util.List<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)public static java.util.List<CPMeasurementUnit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPMeasurementUnit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> 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 CPMeasurementUnitModelImpl
.
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPMeasurementUnitPersistence getPersistence()