Interface CProductPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CProduct>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CProduct>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CProduct cProduct) Caches the c product in the entity cache if it is enabled.void
cacheResult
(List<CProduct> cProducts) Caches the c products in the entity cache if it is enabled.int
countAll()
Returns the number of c products.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of c products where externalReferenceCode = ? and companyId = ?.int
countByGroupId
(long groupId) Returns the number of c products where groupId = ?.int
countByUuid
(String uuid) Returns the number of c products where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of c products where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of c products where uuid = ? and groupId = ?.create
(long CProductId) Creates a new c product with the primary key.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the c product where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the c product where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the last c product in the ordered set where groupId = ?.fetchByPrimaryKey
(long CProductId) Returns the c product 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<CProduct> orderByComparator) Returns the first c product in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(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 = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where uuid = ?.fetchByUUID_G
(String uuid, long groupId) Returns the c product where uuid = ? and groupId = ? or returnsnull
if it could not be found.fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the c product 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<CProduct> orderByComparator) Returns the last c product in the ordered set where uuid = ?.findAll()
Returns all the c products.findAll
(int start, int end) Returns a range of all the c products.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns an ordered range of all the c products.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator, boolean useFinderCache) Returns an ordered range of all the c products.findByERC_C
(String externalReferenceCode, long companyId) Returns the c product where externalReferenceCode = ? and companyId = ? or throws aNoSuchCProductException
if it could not be found.findByGroupId
(long groupId) Returns all the c products where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the c products where groupId = ?.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 = ?.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 = ?.findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where groupId = ?.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 = ?.findByPrimaryKey
(long CProductId) Returns the c product with the primary key or throws aNoSuchCProductException
if it could not be found.findByUuid
(String uuid) Returns all the c products where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the c products where uuid = ?.findByUuid
(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 = ?.findByUuid
(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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the c products where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the c products where uuid = ? and companyId = ?.findByUuid_C
(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 = ?.findByUuid_C
(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 = ?.findByUuid_C_First
(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 = ?.findByUuid_C_Last
(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, 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 = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where uuid = ?.findByUUID_G
(String uuid, long groupId) Returns the c product where uuid = ? and groupId = ? or throws aNoSuchCProductException
if it could not be found.findByUuid_Last
(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, 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 = ?.remove
(long CProductId) Removes the c product with the primary key from the database.void
Removes all the c products from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the c product where externalReferenceCode = ? and companyId = ? from the database.void
removeByGroupId
(long groupId) Removes all the c products where groupId = ? from the database.void
removeByUuid
(String uuid) Removes all the c products where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the c products where uuid = ? and companyId = ? from the database.removeByUUID_G
(String uuid, long groupId) Removes the c product where uuid = ? and groupId = ? from the database.updateImpl
(CProduct cProduct) 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 c products where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching c products
-
findByUuid
Returns a range of all the c products 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 fromCProductModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)- Returns:
- the range of matching c products
-
findByUuid
List<CProduct> findByUuid(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 = ?.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching c products
-
findByUuid
List<CProduct> findByUuid(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 = ?.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching c products
-
findByUuid_First
CProduct findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the first c product in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByUuid_First
CProduct fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching c product, or
null
if a matching c product could not be found
-
findByUuid_Last
CProduct findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the last c product in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByUuid_Last
CProduct fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the last c product in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching c product, or
null
if a matching c product could not be found
-
findByUuid_PrevAndNext
CProduct[] findByUuid_PrevAndNext(long CProductId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the c products before and after the current c product in the ordered set where uuid = ?.- Parameters:
CProductId
- the primary key of the current c productuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next c product
- Throws:
NoSuchCProductException
- if a c product with the primary key could not be found
-
removeByUuid
Removes all the c products where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of c products where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching c products
-
findByUUID_G
Returns the c product where uuid = ? and groupId = ? or throws aNoSuchCProductException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByUUID_G
Returns the c product 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 c product, or
null
if a matching c product could not be found
-
fetchByUUID_G
Returns the c product 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 c product, or
null
if a matching c product could not be found
-
removeByUUID_G
Removes the c product where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the c product that was removed
- Throws:
NoSuchCProductException
-
countByUUID_G
Returns the number of c products where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching c products
-
findByUuid_C
Returns all the c products where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching c products
-
findByUuid_C
Returns a range of all the c products 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 fromCProductModelImpl
.- Parameters:
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)- Returns:
- the range of matching c products
-
findByUuid_C
List<CProduct> findByUuid_C(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 = ?.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching c products
-
findByUuid_C
List<CProduct> findByUuid_C(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 = ?.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching c products
-
findByUuid_C_First
CProduct findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the first c product 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 c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByUuid_C_First
CProduct fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching c product, or
null
if a matching c product could not be found
-
findByUuid_C_Last
CProduct findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the last c product 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 c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByUuid_C_Last
CProduct fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching c product, or
null
if a matching c product could not be found
-
findByUuid_C_PrevAndNext
CProduct[] findByUuid_C_PrevAndNext(long CProductId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the c products before and after the current c product in the ordered set where uuid = ? and companyId = ?.- Parameters:
CProductId
- the primary key of the current c productuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next c product
- Throws:
NoSuchCProductException
- if a c product with the primary key could not be found
-
removeByUuid_C
Removes all the c products where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of c products where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching c products
-
findByGroupId
Returns all the c products where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching c products
-
findByGroupId
Returns a range of all the c products where groupId = ?.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 fromCProductModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)- Returns:
- the range of matching c products
-
findByGroupId
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 = ?.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching c products
-
findByGroupId
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 = ?.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching c products
-
findByGroupId_First
CProduct findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the first c product in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByGroupId_First
CProduct fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching c product, or
null
if a matching c product could not be found
-
findByGroupId_Last
CProduct findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the last c product in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByGroupId_Last
CProduct fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the last c product in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching c product, or
null
if a matching c product could not be found
-
findByGroupId_PrevAndNext
CProduct[] findByGroupId_PrevAndNext(long CProductId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) throws NoSuchCProductException Returns the c products before and after the current c product in the ordered set where groupId = ?.- Parameters:
CProductId
- the primary key of the current c productgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next c product
- Throws:
NoSuchCProductException
- if a c product with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the c products where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of c products where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching c products
-
findByERC_C
Returns the c product where externalReferenceCode = ? and companyId = ? or throws aNoSuchCProductException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching c product
- Throws:
NoSuchCProductException
- if a matching c product could not be found
-
fetchByERC_C
Returns the c product 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 c product, or
null
if a matching c product could not be found
-
fetchByERC_C
Returns the c product 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 c product, or
null
if a matching c product could not be found
-
removeByERC_C
Removes the c product where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the c product that was removed
- Throws:
NoSuchCProductException
-
countByERC_C
Returns the number of c products where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching c products
-
cacheResult
Caches the c product in the entity cache if it is enabled.- Parameters:
cProduct
- the c product
-
cacheResult
Caches the c products in the entity cache if it is enabled.- Parameters:
cProducts
- the c products
-
create
Creates a new c product with the primary key. Does not add the c product to the database.- Parameters:
CProductId
- the primary key for the new c product- Returns:
- the new c product
-
remove
Removes the c product with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CProductId
- the primary key of the c product- Returns:
- the c product that was removed
- Throws:
NoSuchCProductException
- if a c product with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the c product with the primary key or throws aNoSuchCProductException
if it could not be found.- Parameters:
CProductId
- the primary key of the c product- Returns:
- the c product
- Throws:
NoSuchCProductException
- if a c product with the primary key could not be found
-
fetchByPrimaryKey
Returns the c product with the primary key or returnsnull
if it could not be found.- Parameters:
CProductId
- the primary key of the c product- Returns:
- the c product, or
null
if a c product with the primary key could not be found
-
findAll
Returns all the c products.- Returns:
- the c products
-
findAll
Returns a range of all the c products.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 fromCProductModelImpl
.- Parameters:
start
- the lower bound of the range of c productsend
- the upper bound of the range of c products (not inclusive)- Returns:
- the range of c products
-
findAll
List<CProduct> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns an ordered range of all the c products.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of c products
-
findAll
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.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 fromCProductModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of c products
-
removeAll
void removeAll()Removes all the c products from the database. -
countAll
int countAll()Returns the number of c products.- Returns:
- the number of c products
-