Interface CPMeasurementUnitPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CPMeasurementUnit>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPMeasurementUnit>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CPMeasurementUnit cpMeasurementUnit) Caches the cp measurement unit in the entity cache if it is enabled.void
cacheResult
(List<CPMeasurementUnit> cpMeasurementUnits) Caches the cp measurement units in the entity cache if it is enabled.int
countAll()
Returns the number of cp measurement units.int
countByC_K
(long companyId, String key) Returns the number of cp measurement units where companyId = ? and key = ?.int
countByC_P_T
(long companyId, boolean primary, int type) Returns the number of cp measurement units where companyId = ? and primary = ? and type = ?.int
countByC_T
(long companyId, int type) Returns the number of cp measurement units where companyId = ? and type = ?.int
countByCompanyId
(long companyId) Returns the number of cp measurement units where companyId = ?.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of cp measurement units where externalReferenceCode = ? and companyId = ?.int
countByUuid
(String uuid) Returns the number of cp measurement units where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of cp measurement units where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of cp measurement units where uuid = ? and groupId = ?.create
(long CPMeasurementUnitId) Creates a new cp measurement unit with the primary key.fetchByC_K
(long companyId, String key) Returns the cp measurement unit where companyId = ? and key = ? or returnsnull
if it could not be found.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.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 = ?.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 = ?.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 = ?.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 = ?.fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.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.fetchByPrimaryKey
(long CPMeasurementUnitId) Returns the cp measurement unit with the primary key or returnsnull
if it could not be found.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 = ?.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 = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ?.fetchByUUID_G
(String uuid, long groupId) Returns the cp measurement unit where uuid = ? and groupId = ? or returnsnull
if it could not be found.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.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ?.findAll()
Returns all the cp measurement units.findAll
(int start, int end) Returns a range of all the cp measurement units.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns an ordered range of all the cp measurement units.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.Returns the cp measurement unit where companyId = ? and key = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.findByC_P_T
(long companyId, boolean primary, int type) Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByC_T
(long companyId, int type) Returns all the cp measurement units where companyId = ? and type = ?.findByC_T
(long companyId, int type, int start, int end) Returns a range of all the cp measurement units where companyId = ? and type = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByCompanyId
(long companyId) Returns all the cp measurement units where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp measurement units where companyId = ?.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 = ?.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 = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where companyId = ?.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 = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the cp measurement unit where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.findByPrimaryKey
(long CPMeasurementUnitId) Returns the cp measurement unit with the primary key or throws aNoSuchCPMeasurementUnitException
if it could not be found.findByUuid
(String uuid) Returns all the cp measurement units where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the cp measurement units where uuid = ?.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 = ?.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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the cp measurement units where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp measurement units where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the first cp measurement unit in the ordered set where uuid = ?.findByUUID_G
(String uuid, long groupId) Returns the cp measurement unit where uuid = ? and groupId = ? or throws aNoSuchCPMeasurementUnitException
if it could not be found.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) Returns the last cp measurement unit in the ordered set where uuid = ?.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 = ?.remove
(long CPMeasurementUnitId) Removes the cp measurement unit with the primary key from the database.void
Removes all the cp measurement units from the database.removeByC_K
(long companyId, String key) Removes the cp measurement unit where companyId = ? and key = ? from the database.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.void
removeByC_T
(long companyId, int type) Removes all the cp measurement units where companyId = ? and type = ? from the database.void
removeByCompanyId
(long companyId) Removes all the cp measurement units where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the cp measurement unit where externalReferenceCode = ? and companyId = ? from the database.void
removeByUuid
(String uuid) Removes all the cp measurement units where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the cp measurement units where uuid = ? and companyId = ? from the database.removeByUUID_G
(String uuid, long groupId) Removes the cp measurement unit where uuid = ? and groupId = ? from the database.updateImpl
(CPMeasurementUnit cpMeasurementUnit) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
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
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
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
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 found
-
fetchByUuid_First
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
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 found
-
fetchByUuid_Last
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
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 found
-
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
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 found
-
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
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
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
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
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 found
-
fetchByUuid_C_First
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
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 found
-
fetchByUuid_C_Last
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
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 found
-
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
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
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
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 found
-
fetchByCompanyId_First
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
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 found
-
fetchByCompanyId_Last
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
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 found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the cp measurement units where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
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
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 found
-
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
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
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
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
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 found
-
fetchByC_T_First
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
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 found
-
fetchByC_T_Last
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
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 found
-
removeByC_T
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
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
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
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
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
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 found
-
fetchByC_P_T_First
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
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 found
-
fetchByC_P_T_Last
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
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 found
-
removeByC_P_T
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
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
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 found
-
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
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
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
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 found
-
updateImpl
-
findByPrimaryKey
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 found
-
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
List<CPMeasurementUnit> 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
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
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
void removeAll()Removes all the cp measurement units from the database. -
countAll
int countAll()Returns the number of cp measurement units.- Returns:
- the number of cp measurement units
-