Class CPMeasurementUnitUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CPMeasurementUnit cpMeasurementUnit) Caches the cp measurement unit in the entity cache if it is enabled.static void
cacheResult
(List<CPMeasurementUnit> cpMeasurementUnits) Caches the cp measurement units in the entity cache if it is enabled.static void
static void
clearCache
(CPMeasurementUnit cpMeasurementUnit) static int
countAll()
Returns the number of cp measurement units.static int
countByC_K
(long companyId, 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
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of cp measurement units where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of cp measurement units where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of cp measurement units where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of cp measurement units where uuid = ? and groupId = ?.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, String key) Returns the cp measurement unit where companyId = ? and key = ? or returnsnull
if it could not be found.static CPMeasurementUnit
fetchByC_K
(long companyId, String key, boolean useFinderCache) Returns the cp measurement unit where companyId = ? and key = ? or returnsnull
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
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CPMeasurementUnit
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPMeasurementUnit
fetchByPrimaryKey
(long CPMeasurementUnitId) Returns the cp measurement unit with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CPMeasurementUnit> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CPMeasurementUnit
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.static CPMeasurementUnit
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.static CPMeasurementUnit
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ?.static CPMeasurementUnit
fetchByUUID_G
(String uuid, long groupId) Returns the cp measurement unit where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CPMeasurementUnit
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the cp measurement unit where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPMeasurementUnit
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ?.static List<CPMeasurementUnit>
findAll()
Returns all the cp measurement units.static List<CPMeasurementUnit>
findAll
(int start, int end) Returns a range of all the cp measurement units.static 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 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
Returns the cp measurement unit where companyId = ? and key = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.static List<CPMeasurementUnit>
findByC_P_T
(long companyId, boolean primary, int type) Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.static 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 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 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_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 List<CPMeasurementUnit>
findByC_T
(long companyId, int type) Returns all the cp measurement units where companyId = ? and type = ?.static 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 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 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
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 List<CPMeasurementUnit>
findByCompanyId
(long companyId) Returns all the cp measurement units where companyId = ?.static List<CPMeasurementUnit>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp measurement units where companyId = ?.static 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 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
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 CPMeasurementUnit
findByERC_C
(String externalReferenceCode, long companyId) Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.static CPMeasurementUnit
findByPrimaryKey
(long CPMeasurementUnitId) Returns the cp measurement unit with the primary key or throws aNoSuchCPMeasurementUnitException
if it could not be found.static List<CPMeasurementUnit>
findByUuid
(String uuid) Returns all the cp measurement units where uuid = ?.static List<CPMeasurementUnit>
findByUuid
(String uuid, int start, int end) Returns a range of all the cp measurement units where uuid = ?.static List<CPMeasurementUnit>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where uuid = ?.static List<CPMeasurementUnit>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where uuid = ?.static List<CPMeasurementUnit>
findByUuid_C
(String uuid, long companyId) Returns all the cp measurement units where uuid = ? and companyId = ?.static List<CPMeasurementUnit>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp measurement units where uuid = ? and companyId = ?.static List<CPMeasurementUnit>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.static List<CPMeasurementUnit>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.static CPMeasurementUnit
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.static CPMeasurementUnit
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.static CPMeasurementUnit[]
findByUuid_C_PrevAndNext
(long CPMeasurementUnitId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ? and companyId = ?.static CPMeasurementUnit
findByUuid_First
(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
(String uuid, long groupId) Returns the cp measurement unit where uuid = ? and groupId = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.static CPMeasurementUnit
findByUuid_Last
(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, 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 List<CPMeasurementUnit>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPMeasurementUnit>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static CPMeasurementUnit
remove
(long CPMeasurementUnitId) Removes the cp measurement unit with the primary key from the database.static void
Removes all the cp measurement units from the database.static CPMeasurementUnit
removeByC_K
(long companyId, 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 CPMeasurementUnit
removeByERC_C
(String externalReferenceCode, long companyId) Removes the cp measurement unit where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the cp measurement units where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the cp measurement units where uuid = ? and companyId = ? from the database.static CPMeasurementUnit
removeByUUID_G
(String uuid, long groupId) Removes the cp measurement unit where uuid = ? and groupId = ? from the database.static void
setPersistence
(CPMeasurementUnitPersistence persistence) static CPMeasurementUnit
update
(CPMeasurementUnit cpMeasurementUnit) static CPMeasurementUnit
update
(CPMeasurementUnit cpMeasurementUnit, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPMeasurementUnit
updateImpl
(CPMeasurementUnit cpMeasurementUnit)
-
Constructor Details
-
CPMeasurementUnitUtil
public CPMeasurementUnitUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPMeasurementUnit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPMeasurementUnit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPMeasurementUnit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPMeasurementUnit update(CPMeasurementUnit cpMeasurementUnit, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the cp measurement units where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp measurement units
-
findByUuid
Returns a range of all the cp measurement units where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp measurement units
-
findByUuid
public static List<CPMeasurementUnit> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp measurement units
-
findByUuid
public static List<CPMeasurementUnit> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp measurement units
-
findByUuid_First
public static CPMeasurementUnit findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the first cp measurement unit in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByUuid_First
public static CPMeasurementUnit fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByUuid_Last
public static CPMeasurementUnit findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the last cp measurement unit in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByUuid_Last
public static CPMeasurementUnit fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByUuid_PrevAndNext
public static CPMeasurementUnit[] findByUuid_PrevAndNext(long CPMeasurementUnitId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ?.- Parameters:
CPMeasurementUnitId
- the primary key of the current cp measurement unituuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
removeByUuid
Removes all the cp measurement units where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp measurement units where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp measurement units
-
findByUUID_G
public static CPMeasurementUnit findByUUID_G(String uuid, long groupId) throws NoSuchCPMeasurementUnitException Returns the cp measurement unit where uuid = ? and groupId = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByUUID_G
Returns the cp measurement unit where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
fetchByUUID_G
Returns the cp measurement unit where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
removeByUUID_G
public static CPMeasurementUnit removeByUUID_G(String uuid, long groupId) throws NoSuchCPMeasurementUnitException Removes the cp measurement unit where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the cp measurement unit that was removed
- Throws:
NoSuchCPMeasurementUnitException
-
countByUUID_G
Returns the number of cp measurement units where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching cp measurement units
-
findByUuid_C
Returns all the cp measurement units where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp measurement units
-
findByUuid_C
Returns a range of all the cp measurement units where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp measurement units
-
findByUuid_C
public static List<CPMeasurementUnit> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp measurement units
-
findByUuid_C
public static List<CPMeasurementUnit> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp measurement units
-
findByUuid_C_First
public static CPMeasurementUnit findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByUuid_C_First
public static CPMeasurementUnit fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByUuid_C_Last
public static CPMeasurementUnit findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByUuid_C_Last
public static CPMeasurementUnit fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByUuid_C_PrevAndNext
public static CPMeasurementUnit[] findByUuid_C_PrevAndNext(long CPMeasurementUnitId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPMeasurementUnitId
- the primary key of the current cp measurement unituuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
removeByUuid_C
Removes all the cp measurement units where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp measurement units where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp measurement units
-
findByCompanyId
Returns all the cp measurement units where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp measurement units
-
findByCompanyId
Returns a range of all the cp measurement units where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp measurement units
-
findByCompanyId
public static List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp measurement units
-
findByCompanyId
public static List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp measurement units
-
findByCompanyId_First
public static CPMeasurementUnit findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the first cp measurement unit in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByCompanyId_First
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByCompanyId_Last
public static CPMeasurementUnit findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the last cp measurement unit in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByCompanyId_Last
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByCompanyId_PrevAndNext
public static CPMeasurementUnit[] findByCompanyId_PrevAndNext(long CPMeasurementUnitId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ?.- Parameters:
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp measurement units where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp measurement units where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp measurement units
-
findByC_K
public static CPMeasurementUnit findByC_K(long companyId, String key) throws NoSuchCPMeasurementUnitException Returns the cp measurement unit where companyId = ? and key = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByC_K
Returns the cp measurement unit where companyId = ? and key = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
fetchByC_K
Returns the cp measurement unit where companyId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDkey
- the keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
removeByC_K
public static CPMeasurementUnit removeByC_K(long companyId, String key) throws NoSuchCPMeasurementUnitException Removes the cp measurement unit where companyId = ? and key = ? from the database.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the cp measurement unit that was removed
- Throws:
NoSuchCPMeasurementUnitException
-
countByC_K
Returns the number of cp measurement units where companyId = ? and key = ?.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the number of matching cp measurement units
-
findByC_T
Returns all the cp measurement units where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the type- Returns:
- the matching cp measurement units
-
findByC_T
Returns a range of all the cp measurement units where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp measurement units
-
findByC_T
public static List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp measurement units
-
findByC_T
public static List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp measurement units
-
findByC_T_First
public static CPMeasurementUnit findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the first cp measurement unit in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByC_T_First
public 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 = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByC_T_Last
public static CPMeasurementUnit findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the last cp measurement unit in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByC_T_Last
public 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 = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByC_T_PrevAndNext
public static CPMeasurementUnit[] findByC_T_PrevAndNext(long CPMeasurementUnitId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and type = ?.- Parameters:
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
removeByC_T
public static void removeByC_T(long companyId, int type) Removes all the cp measurement units where companyId = ? and type = ? from the database.- Parameters:
companyId
- the company IDtype
- the type
-
countByC_T
public static int countByC_T(long companyId, int type) Returns the number of cp measurement units where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the type- Returns:
- the number of matching cp measurement units
-
findByC_P_T
Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the type- Returns:
- the matching cp measurement units
-
findByC_P_T
public static List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end) Returns a range of all the cp measurement units where companyId = ? and primary = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp measurement units
-
findByC_P_T
public static List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp measurement units
-
findByC_P_T
public static List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp measurement units
-
findByC_P_T_First
public static CPMeasurementUnit findByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the first cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByC_P_T_First
public 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 = ?.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByC_P_T_Last
public static CPMeasurementUnit findByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the last cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByC_P_T_Last
public 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 = ?.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
findByC_P_T_PrevAndNext
public static CPMeasurementUnit[] findByC_P_T_PrevAndNext(long CPMeasurementUnitId, long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException Returns the cp measurement units before and after the current cp measurement unit in the ordered set where companyId = ? and primary = ? and type = ?.- Parameters:
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
removeByC_P_T
public 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.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the type
-
countByC_P_T
public static int countByC_P_T(long companyId, boolean primary, int type) Returns the number of cp measurement units where companyId = ? and primary = ? and type = ?.- Parameters:
companyId
- the company IDprimary
- the primarytype
- the type- Returns:
- the number of matching cp measurement units
-
findByERC_C
public static CPMeasurementUnit findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPMeasurementUnitException Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundNoSuchCPMeasurementUnitException
-
fetchByERC_C
Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
fetchByERC_C
public static CPMeasurementUnit fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp measurement unit, or
null
if a matching cp measurement unit could not be found
-
removeByERC_C
public static CPMeasurementUnit removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPMeasurementUnitException Removes the cp measurement unit where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the cp measurement unit that was removed
- Throws:
NoSuchCPMeasurementUnitException
-
countByERC_C
Returns the number of cp measurement units where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching cp measurement units
-
cacheResult
Caches the cp measurement unit in the entity cache if it is enabled.- Parameters:
cpMeasurementUnit
- the cp measurement unit
-
cacheResult
Caches the cp measurement units in the entity cache if it is enabled.- Parameters:
cpMeasurementUnits
- the cp measurement units
-
create
Creates a new cp measurement unit with the primary key. Does not add the cp measurement unit to the database.- Parameters:
CPMeasurementUnitId
- the primary key for the new cp measurement unit- Returns:
- the new cp measurement unit
-
remove
public static CPMeasurementUnit remove(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException Removes the cp measurement unit with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPMeasurementUnitId
- the primary key of the cp measurement unit- Returns:
- the cp measurement unit that was removed
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
updateImpl
-
findByPrimaryKey
public static CPMeasurementUnit findByPrimaryKey(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException Returns the cp measurement unit with the primary key or throws aNoSuchCPMeasurementUnitException
if it could not be found.- Parameters:
CPMeasurementUnitId
- the primary key of the cp measurement unit- Returns:
- the cp measurement unit
- Throws:
NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundNoSuchCPMeasurementUnitException
-
fetchByPrimaryKey
Returns the cp measurement unit with the primary key or returnsnull
if it could not be found.- Parameters:
CPMeasurementUnitId
- the primary key of the cp measurement unit- Returns:
- the cp measurement unit, or
null
if a cp measurement unit with the primary key could not be found
-
findAll
Returns all the cp measurement units.- Returns:
- the cp measurement units
-
findAll
Returns a range of all the cp measurement units.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)- Returns:
- the range of cp measurement units
-
findAll
public static List<CPMeasurementUnit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of cp measurement units
-
findAll
public static List<CPMeasurementUnit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp measurement units.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPMeasurementUnitModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp measurement units
-
removeAll
public static void removeAll()Removes all the cp measurement units from the database. -
countAll
public static int countAll()Returns the number of cp measurement units.- Returns:
- the number of cp measurement units
-
getPersistence
-
setPersistence
-