@ProviderType public interface CPMeasurementUnitPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPMeasurementUnit>
Caching information and settings can be found in portal.properties
CPMeasurementUnitUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CPMeasurementUnit cpMeasurementUnit)
Caches the cp measurement unit in the entity cache if it is enabled.
|
void |
cacheResult(java.util.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,
java.lang.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 |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp measurement units where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp measurement units where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of cp measurement units where uuid = ?.
|
CPMeasurementUnit |
create(long CPMeasurementUnitId)
Creates a new cp measurement unit with the primary key.
|
CPMeasurementUnit |
fetchByC_K(long companyId,
java.lang.String key)
Returns the cp measurement unit where companyId = ? and key = ? or returns
null if it could not be found. |
CPMeasurementUnit |
fetchByC_K(long companyId,
java.lang.String key,
boolean useFinderCache)
Returns the cp measurement unit where companyId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CPMeasurementUnit |
fetchByPrimaryKey(long CPMeasurementUnitId)
Returns the cp measurement unit with the primary key or returns
null if it could not be found. |
CPMeasurementUnit |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
CPMeasurementUnit |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
CPMeasurementUnit |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ?.
|
CPMeasurementUnit |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp measurement unit where uuid = ? and groupId = ? or returns
null if it could not be found. |
CPMeasurementUnit |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp measurement unit where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
CPMeasurementUnit |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ?.
|
java.util.List<CPMeasurementUnit> |
findAll()
Returns all the cp measurement units.
|
java.util.List<CPMeasurementUnit> |
findAll(int start,
int end)
Returns a range of all the cp measurement units.
|
java.util.List<CPMeasurementUnit> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units.
|
java.util.List<CPMeasurementUnit> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units.
|
CPMeasurementUnit |
findByC_K(long companyId,
java.lang.String key)
Returns the cp measurement unit where companyId = ? and key = ? or throws a
NoSuchCPMeasurementUnitException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type)
Returns all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type,
int start,
int end)
Returns a range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_P_T(long companyId,
boolean primary,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where companyId = ? and primary = ? and type = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type)
Returns all the cp measurement units where companyId = ? and type = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the cp measurement units where companyId = ? and type = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.
|
java.util.List<CPMeasurementUnit> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where companyId = ? and type = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId)
Returns all the cp measurement units where companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp measurement units where companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where companyId = ?.
|
CPMeasurementUnit |
findByPrimaryKey(long CPMeasurementUnitId)
Returns the cp measurement unit with the primary key or throws a
NoSuchCPMeasurementUnitException if it could not be found. |
CPMeasurementUnit |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
CPMeasurementUnit |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
CPMeasurementUnit[] |
findByUuid_C_PrevAndNext(long CPMeasurementUnitId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp measurement units where uuid = ? and companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp measurement units where uuid = ? and companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where uuid = ? and companyId = ?.
|
CPMeasurementUnit |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the first cp measurement unit in the ordered set where uuid = ?.
|
CPMeasurementUnit |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp measurement unit where uuid = ? and groupId = ? or throws a
NoSuchCPMeasurementUnitException if it could not be found. |
CPMeasurementUnit |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the last cp measurement unit in the ordered set where uuid = ?.
|
CPMeasurementUnit[] |
findByUuid_PrevAndNext(long CPMeasurementUnitId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid)
Returns all the cp measurement units where uuid = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp measurement units where uuid = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Returns an ordered range of all the cp measurement units where uuid = ?.
|
java.util.List<CPMeasurementUnit> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp measurement units where uuid = ?.
|
CPMeasurementUnit |
remove(long CPMeasurementUnitId)
Removes the cp measurement unit with the primary key from the database.
|
void |
removeAll()
Removes all the cp measurement units from the database.
|
CPMeasurementUnit |
removeByC_K(long companyId,
java.lang.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.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp measurement units where uuid = ? and companyId = ? from the database.
|
CPMeasurementUnit |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp measurement unit where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the cp measurement units where uuid = ? from the database.
|
CPMeasurementUnit |
updateImpl(CPMeasurementUnit cpMeasurementUnit) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)java.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPMeasurementUnit> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPMeasurementUnit findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit[] findByUuid_PrevAndNext(long CPMeasurementUnitId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unituuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidCPMeasurementUnit findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPMeasurementUnitException
NoSuchCPMeasurementUnitException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching cp measurement unit could not be foundCPMeasurementUnit removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPMeasurementUnitException
uuid
- the uuidgroupId
- the group IDNoSuchCPMeasurementUnitException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)java.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPMeasurementUnit> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPMeasurementUnit findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit[] findByUuid_C_PrevAndNext(long CPMeasurementUnitId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unituuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPMeasurementUnit> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)java.util.List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPMeasurementUnit> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPMeasurementUnit findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit[] findByCompanyId_PrevAndNext(long CPMeasurementUnitId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDCPMeasurementUnit findByC_K(long companyId, java.lang.String key) throws NoSuchCPMeasurementUnitException
NoSuchCPMeasurementUnitException
if it could not be found.companyId
- the company IDkey
- the keyNoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByC_K(long companyId, java.lang.String key)
null
if it could not be found. Uses the finder cache.companyId
- the company IDkey
- the keynull
if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByC_K(long companyId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching cp measurement unit could not be foundCPMeasurementUnit removeByC_K(long companyId, java.lang.String key) throws NoSuchCPMeasurementUnitException
companyId
- the company IDkey
- the keyNoSuchCPMeasurementUnitException
int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keyjava.util.List<CPMeasurementUnit> findByC_T(long companyId, int type)
companyId
- the company IDtype
- the typejava.util.List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)java.util.List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPMeasurementUnit> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPMeasurementUnit findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit[] findByC_T_PrevAndNext(long CPMeasurementUnitId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundvoid removeByC_T(long companyId, int type)
companyId
- the company IDtype
- the typeint countByC_T(long companyId, int type)
companyId
- the company IDtype
- the typejava.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type)
companyId
- the company IDprimary
- the primarytype
- the typejava.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDprimary
- the primarytype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)java.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDprimary
- the primarytype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPMeasurementUnit> findByC_P_T(long companyId, boolean primary, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
companyId
- the company IDprimary
- the primarytype
- the typestart
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPMeasurementUnit findByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByC_P_T_First(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit findByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a matching cp measurement unit could not be foundCPMeasurementUnit fetchByC_P_T_Last(long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
companyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp measurement unit could not be foundCPMeasurementUnit[] findByC_P_T_PrevAndNext(long CPMeasurementUnitId, long companyId, boolean primary, int type, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the current cp measurement unitcompanyId
- the company IDprimary
- the primarytype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundvoid removeByC_P_T(long companyId, boolean primary, int type)
companyId
- the company IDprimary
- the primarytype
- the typeint countByC_P_T(long companyId, boolean primary, int type)
companyId
- the company IDprimary
- the primarytype
- the typevoid cacheResult(CPMeasurementUnit cpMeasurementUnit)
cpMeasurementUnit
- the cp measurement unitvoid cacheResult(java.util.List<CPMeasurementUnit> cpMeasurementUnits)
cpMeasurementUnits
- the cp measurement unitsCPMeasurementUnit create(long CPMeasurementUnitId)
CPMeasurementUnitId
- the primary key for the new cp measurement unitCPMeasurementUnit remove(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException
CPMeasurementUnitId
- the primary key of the cp measurement unitNoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundCPMeasurementUnit updateImpl(CPMeasurementUnit cpMeasurementUnit)
CPMeasurementUnit findByPrimaryKey(long CPMeasurementUnitId) throws NoSuchCPMeasurementUnitException
NoSuchCPMeasurementUnitException
if it could not be found.CPMeasurementUnitId
- the primary key of the cp measurement unitNoSuchCPMeasurementUnitException
- if a cp measurement unit with the primary key could not be foundCPMeasurementUnit fetchByPrimaryKey(long CPMeasurementUnitId)
null
if it could not be found.CPMeasurementUnitId
- the primary key of the cp measurement unitnull
if a cp measurement unit with the primary key could not be foundjava.util.List<CPMeasurementUnit> findAll()
java.util.List<CPMeasurementUnit> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)java.util.List<CPMeasurementUnit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPMeasurementUnit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPMeasurementUnitModelImpl
.
start
- the lower bound of the range of cp measurement unitsend
- the upper bound of the range of cp measurement units (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()