Class CProductUtil
com.liferay.commerce.product.service.persistence.impl.CProductPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CProduct cProduct) Caches the c product in the entity cache if it is enabled.static voidcacheResult(List<CProduct> cProducts) Caches the c products in the entity cache if it is enabled.static voidstatic voidclearCache(CProduct cProduct) static intcountAll()Returns the number of c products.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of c products where externalReferenceCode = ? and companyId = ?.static intcountByGroupId(long groupId) Returns the number of c products where groupId = ?.static intcountByUuid(String uuid) Returns the number of c products where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of c products where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of c products where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CProductcreate(long CProductId) Creates a new c product with the primary key.static CProductfetchByERC_C(String externalReferenceCode, long companyId) Returns the c product where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CProductfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the c product where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CProductfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where groupId = ?.static CProductfetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the last c product in the ordered set where groupId = ?.static CProductfetchByPrimaryKey(long CProductId) Returns the c product with the primary key or returnsnullif it could not be found.static Map<Serializable,CProduct> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CProductfetchByUuid_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 = ?.static CProductfetchByUuid_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 = ?.static CProductfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where uuid = ?.static CProductfetchByUUID_G(String uuid, long groupId) Returns the c product where uuid = ? and groupId = ? or returnsnullif it could not be found.static CProductfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the c product where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static CProductfetchByUuid_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.static CProductfindByERC_C(String externalReferenceCode, long companyId) Returns the c product where externalReferenceCode = ? and companyId = ? or throws aNoSuchCProductExceptionif 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 = ?.static CProductfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where groupId = ?.static CProductfindByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the last c product in the ordered set where groupId = ?.static 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 = ?.static CProductfindByPrimaryKey(long CProductId) Returns the c product with the primary key or throws aNoSuchCProductExceptionif 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 = ?.static CProductfindByUuid_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 = ?.static CProductfindByUuid_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 = ?.static 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 = ?.static CProductfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the first c product in the ordered set where uuid = ?.static CProductfindByUUID_G(String uuid, long groupId) Returns the c product where uuid = ? and groupId = ? or throws aNoSuchCProductExceptionif it could not be found.static CProductfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) Returns the last c product in the ordered set where uuid = ?.static 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 = ?.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) static CProductPersistencestatic CProductremove(long CProductId) Removes the c product with the primary key from the database.static voidRemoves all the c products from the database.static CProductremoveByERC_C(String externalReferenceCode, long companyId) Removes the c product where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByGroupId(long groupId) Removes all the c products where groupId = ? from the database.static voidremoveByUuid(String uuid) Removes all the c products where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the c products where uuid = ? and companyId = ? from the database.static CProductremoveByUUID_G(String uuid, long groupId) Removes the c product where uuid = ? and groupId = ? from the database.static voidsetPersistence(CProductPersistence persistence) static CProductstatic CProductstatic CProductupdateImpl(CProduct cProduct)
-
Constructor Details
-
CProductUtil
public CProductUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CProduct> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CProduct> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CProduct> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CProduct update(CProduct cProduct, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 foundNoSuchCProductException
-
fetchByUuid_First
public static 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
nullif a matching c product could not be found
-
findByUuid_Last
public static 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 foundNoSuchCProductException
-
fetchByUuid_Last
public static 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
nullif a matching c product could not be found
-
findByUuid_PrevAndNext
public static 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 foundNoSuchCProductException
-
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 aNoSuchCProductExceptionif 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 foundNoSuchCProductException
-
fetchByUUID_G
Returns the c product where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching c product, or
nullif a matching c product could not be found
-
fetchByUUID_G
Returns the c product where uuid = ? and groupId = ? or returnsnullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 foundNoSuchCProductException
-
fetchByUuid_C_First
public static 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
nullif a matching c product could not be found
-
findByUuid_C_Last
public static 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 foundNoSuchCProductException
-
fetchByUuid_C_Last
public static 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
nullif a matching c product could not be found
-
findByUuid_C_PrevAndNext
public static 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 foundNoSuchCProductException
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 foundNoSuchCProductException
-
fetchByGroupId_First
public static 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
nullif a matching c product could not be found
-
findByGroupId_Last
public static 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 foundNoSuchCProductException
-
fetchByGroupId_Last
public static 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
nullif a matching c product could not be found
-
findByGroupId_PrevAndNext
public static 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 foundNoSuchCProductException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the c products where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static 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
public static CProduct findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCProductException Returns the c product where externalReferenceCode = ? and companyId = ? or throws aNoSuchCProductExceptionif 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 foundNoSuchCProductException
-
fetchByERC_C
Returns the c product where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching c product, or
nullif a matching c product could not be found
-
fetchByERC_C
public static CProduct fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the c product where externalReferenceCode = ? and companyId = ? or returnsnullif 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
nullif a matching c product could not be found
-
removeByERC_C
public static CProduct removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCProductException 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 foundNoSuchCProductException
-
updateImpl
-
findByPrimaryKey
Returns the c product with the primary key or throws aNoSuchCProductExceptionif 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 foundNoSuchCProductException
-
fetchByPrimaryKey
Returns the c product with the primary key or returnsnullif it could not be found.- Parameters:
CProductId- the primary key of the c product- Returns:
- the c product, or
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static void removeAll()Removes all the c products from the database. -
countAll
public static int countAll()Returns the number of c products.- Returns:
- the number of c products
-
getPersistence
-
setPersistence
-