@ProviderType public interface CProductPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CProduct>
Caching information and settings can be found in portal.properties
CProductUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CProduct cProduct)
Caches the c product in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CProduct> cProducts)
Caches the c products in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of c products.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of c products where companyId = ? and externalReferenceCode = ?.
|
int |
countByGroupId(long groupId)
Returns the number of c products where groupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of c products where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of c products where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of c products where uuid = ?.
|
CProduct |
create(long CProductId)
Creates a new c product with the primary key.
|
CProduct |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the c product where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
CProduct |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the c product where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
CProduct |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the first c product in the ordered set where groupId = ?.
|
CProduct |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the last c product in the ordered set where groupId = ?.
|
CProduct |
fetchByPrimaryKey(long CProductId)
Returns the c product with the primary key or returns
null if it could not be found. |
CProduct |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the first c product in the ordered set where uuid = ? and companyId = ?.
|
CProduct |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the last c product in the ordered set where uuid = ? and companyId = ?.
|
CProduct |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the first c product in the ordered set where uuid = ?.
|
CProduct |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the c product where uuid = ? and groupId = ? or returns
null if it could not be found. |
CProduct |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the c product where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
CProduct |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the last c product in the ordered set where uuid = ?.
|
java.util.List<CProduct> |
findAll()
Returns all the c products.
|
java.util.List<CProduct> |
findAll(int start,
int end)
Returns a range of all the c products.
|
java.util.List<CProduct> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns an ordered range of all the c products.
|
java.util.List<CProduct> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the c products.
|
CProduct |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the c product where companyId = ? and externalReferenceCode = ? or throws a
NoSuchCProductException if it could not be found. |
CProduct |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the first c product in the ordered set where groupId = ?.
|
CProduct |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the last c product in the ordered set where groupId = ?.
|
CProduct[] |
findByGroupId_PrevAndNext(long CProductId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the c products before and after the current c product in the ordered set where groupId = ?.
|
java.util.List<CProduct> |
findByGroupId(long groupId)
Returns all the c products where groupId = ?.
|
java.util.List<CProduct> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the c products where groupId = ?.
|
java.util.List<CProduct> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns an ordered range of all the c products where groupId = ?.
|
java.util.List<CProduct> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the c products where groupId = ?.
|
CProduct |
findByPrimaryKey(long CProductId)
Returns the c product with the primary key or throws a
NoSuchCProductException if it could not be found. |
CProduct |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the first c product in the ordered set where uuid = ? and companyId = ?.
|
CProduct |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the last c product in the ordered set where uuid = ? and companyId = ?.
|
CProduct[] |
findByUuid_C_PrevAndNext(long CProductId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the c products before and after the current c product in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<CProduct> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the c products where uuid = ? and companyId = ?.
|
java.util.List<CProduct> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the c products where uuid = ? and companyId = ?.
|
java.util.List<CProduct> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns an ordered range of all the c products where uuid = ? and companyId = ?.
|
java.util.List<CProduct> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the c products where uuid = ? and companyId = ?.
|
CProduct |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the first c product in the ordered set where uuid = ?.
|
CProduct |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the c product where uuid = ? and groupId = ? or throws a
NoSuchCProductException if it could not be found. |
CProduct |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the last c product in the ordered set where uuid = ?.
|
CProduct[] |
findByUuid_PrevAndNext(long CProductId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns the c products before and after the current c product in the ordered set where uuid = ?.
|
java.util.List<CProduct> |
findByUuid(java.lang.String uuid)
Returns all the c products where uuid = ?.
|
java.util.List<CProduct> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the c products where uuid = ?.
|
java.util.List<CProduct> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
Returns an ordered range of all the c products where uuid = ?.
|
java.util.List<CProduct> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the c products where uuid = ?.
|
CProduct |
remove(long CProductId)
Removes the c product with the primary key from the database.
|
void |
removeAll()
Removes all the c products from the database.
|
CProduct |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the c product where companyId = ? and externalReferenceCode = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the c products where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the c products where uuid = ? and companyId = ? from the database.
|
CProduct |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the c product where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the c products where uuid = ? from the database.
|
CProduct |
updateImpl(CProduct cProduct) |
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<CProduct> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CProduct> 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 CProductModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)java.util.List<CProduct> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CProduct> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCProduct findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a matching c product could not be foundCProduct fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c product could not be foundCProduct findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a matching c product could not be foundCProduct fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c product could not be foundCProduct[] findByUuid_PrevAndNext(long CProductId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
CProductId
- the primary key of the current c productuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a c product with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidCProduct findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCProductException
NoSuchCProductException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCProductException
- if a matching c product could not be foundCProduct 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 c product could not be foundCProduct 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 c product could not be foundCProduct removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCProductException
uuid
- the uuidgroupId
- the group IDNoSuchCProductException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<CProduct> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CProduct> 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 CProductModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)java.util.List<CProduct> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CProduct> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCProduct findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a matching c product could not be foundCProduct fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c product could not be foundCProduct findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a matching c product could not be foundCProduct fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c product could not be foundCProduct[] findByUuid_C_PrevAndNext(long CProductId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
CProductId
- the primary key of the current c productuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a c product 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<CProduct> findByGroupId(long groupId)
groupId
- the group IDjava.util.List<CProduct> findByGroupId(long groupId, 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 CProductModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)java.util.List<CProduct> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CProduct> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCProduct findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a matching c product could not be foundCProduct fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c product could not be foundCProduct findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a matching c product could not be foundCProduct fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c product could not be foundCProduct[] findByGroupId_PrevAndNext(long CProductId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException
CProductId
- the primary key of the current c productgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCProductException
- if a c product with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDCProduct findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCProductException
NoSuchCProductException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCProductException
- if a matching c product could not be foundCProduct fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching c product could not be foundCProduct fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching c product could not be foundCProduct removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCProductException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCProductException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CProduct cProduct)
cProduct
- the c productvoid cacheResult(java.util.List<CProduct> cProducts)
cProducts
- the c productsCProduct create(long CProductId)
CProductId
- the primary key for the new c productCProduct remove(long CProductId) throws NoSuchCProductException
CProductId
- the primary key of the c productNoSuchCProductException
- if a c product with the primary key could not be foundCProduct findByPrimaryKey(long CProductId) throws NoSuchCProductException
NoSuchCProductException
if it could not be found.CProductId
- the primary key of the c productNoSuchCProductException
- if a c product with the primary key could not be foundCProduct fetchByPrimaryKey(long CProductId)
null
if it could not be found.CProductId
- the primary key of the c productnull
if a c product with the primary key could not be foundjava.util.List<CProduct> findAll()
java.util.List<CProduct> 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 CProductModelImpl
.
start
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)java.util.List<CProduct> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
start
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CProduct> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> 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 CProductModelImpl
.
start
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()