java.lang.Object
com.liferay.commerce.product.service.persistence.CProductUtil

public class CProductUtil extends Object
The persistence utility for the c product service. This utility wraps 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Caches the c product in the entity cache if it is enabled.
    static void
    Caches the c products in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(CProduct cProduct)
     
    static int
    Returns the number of c products.
    static int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of c products where externalReferenceCode = ? and companyId = ?.
    static int
    countByGroupId(long groupId)
    Returns the number of c products where groupId = ?.
    static int
    Returns the number of c products where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of c products where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of c products where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static CProduct
    create(long CProductId)
    Creates a new c product with the primary key.
    static CProduct
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the c product where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    static CProduct
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the c product where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    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 = ?.
    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 = ?.
    static CProduct
    fetchByPrimaryKey(long CProductId)
    Returns the c product with the primary key or returns null if it could not be found.
     
    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 = ?.
    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 = ?.
    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 = ?.
    static CProduct
    fetchByUUID_G(String uuid, long groupId)
    Returns the c product where uuid = ? and groupId = ? or returns null if it could not be found.
    static CProduct
    fetchByUUID_G(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.
    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 = ?.
    static List<CProduct>
    Returns all the c products.
    static List<CProduct>
    findAll(int start, int end)
    Returns a range of all the c products.
    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.
    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.
    static CProduct
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the c product where externalReferenceCode = ? and companyId = ? or throws a NoSuchCProductException if it could not be found.
    static List<CProduct>
    findByGroupId(long groupId)
    Returns all the c products where groupId = ?.
    static List<CProduct>
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the c products where groupId = ?.
    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 = ?.
    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 = ?.
    static CProduct
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
    Returns the first c product in the ordered set where groupId = ?.
    static CProduct
    findByGroupId_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 CProduct
    findByPrimaryKey(long CProductId)
    Returns the c product with the primary key or throws a NoSuchCProductException if it could not be found.
    static List<CProduct>
    Returns all the c products where uuid = ?.
    static List<CProduct>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the c products where uuid = ?.
    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 = ?.
    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 = ?.
    static List<CProduct>
    findByUuid_C(String uuid, long companyId)
    Returns all the c products where uuid = ? and companyId = ?.
    static List<CProduct>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the c products where uuid = ? and companyId = ?.
    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 = ?.
    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 = ?.
    static CProduct
    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 = ?.
    static CProduct
    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 = ?.
    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 CProduct
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
    Returns the first c product in the ordered set where uuid = ?.
    static CProduct
    findByUUID_G(String uuid, long groupId)
    Returns the c product where uuid = ? and groupId = ? or throws a NoSuchCProductException if it could not be found.
    static CProduct
    findByUuid_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 = ?.
    static List<CProduct>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<CProduct>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<CProduct>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
     
     
    static CProduct
    remove(long CProductId)
    Removes the c product with the primary key from the database.
    static void
    Removes all the c products from the database.
    static CProduct
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the c product where externalReferenceCode = ? and companyId = ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the c products where groupId = ? from the database.
    static void
    Removes all the c products where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the c products where uuid = ? and companyId = ? from the database.
    static CProduct
    removeByUUID_G(String uuid, long groupId)
    Removes the c product where uuid = ? and groupId = ? from the database.
    static void
     
    static CProduct
    update(CProduct cProduct)
     
    static CProduct
    update(CProduct cProduct, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static CProduct
    updateImpl(CProduct cProduct)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CProductUtil

      public CProductUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CProduct cProduct)
      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

      public static Map<Serializable,CProduct> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      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

      public static CProduct update(CProduct cProduct)
      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

      public static List<CProduct> findByUuid(String uuid)
      Returns all the c products where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching c products
    • findByUuid

      public static List<CProduct> findByUuid(String uuid, int start, int end)
      Returns a range of all the c products where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of c products
      end - 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 - 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of c products
      end - the upper bound of the range of c products (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of c products
      end - 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 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c product, or null if 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c product, or null if 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 product
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next c product
      Throws:
      NoSuchCProductException - if a c product with the primary key could not be found
      NoSuchCProductException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the c products where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of c products where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching c products
    • findByUUID_G

      public static CProduct findByUUID_G(String uuid, long groupId) throws NoSuchCProductException
      Returns the c product where uuid = ? and groupId = ? or throws a NoSuchCProductException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • fetchByUUID_G

      public static CProduct fetchByUUID_G(String uuid, long groupId)
      Returns the c product where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching c product, or null if a matching c product could not be found
    • fetchByUUID_G

      public static CProduct fetchByUUID_G(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.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching c product, or null if a matching c product could not be found
    • removeByUUID_G

      public static CProduct removeByUUID_G(String uuid, long groupId) throws NoSuchCProductException
      Removes the c product where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the c product that was removed
      Throws:
      NoSuchCProductException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of c products where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching c products
    • findByUuid_C

      public static List<CProduct> findByUuid_C(String uuid, long companyId)
      Returns all the c products where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching c products
    • findByUuid_C

      public static List<CProduct> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the c products where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of c products
      end - 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 - 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of c products
      end - the upper bound of the range of c products (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of c products
      end - 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 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c product, or null if 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c product, or null if 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 product
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next c product
      Throws:
      NoSuchCProductException - if a c product with the primary key could not be found
      NoSuchCProductException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the c products where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of c products where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching c products
    • findByGroupId

      public static List<CProduct> findByGroupId(long groupId)
      Returns all the c products where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching c products
    • findByGroupId

      public static List<CProduct> findByGroupId(long groupId, int start, int end)
      Returns a range of all the c products where groupId = ?.

      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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of c products
      end - 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 - 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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of c products
      end - the upper bound of the range of c products (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of c products
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c product, or null if 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c product, or null if 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 product
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next c product
      Throws:
      NoSuchCProductException - if a c product with the primary key could not be found
      NoSuchCProductException
    • 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 a NoSuchCProductException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching c product
      Throws:
      NoSuchCProductException - if a matching c product could not be found
      NoSuchCProductException
    • fetchByERC_C

      public static CProduct fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the c product where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching c product, or null if 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching c product, or null if 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 code
      companyId - the company ID
      Returns:
      the c product that was removed
      Throws:
      NoSuchCProductException
    • countByERC_C

      public static int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of c products where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching c products
    • cacheResult

      public static void cacheResult(CProduct cProduct)
      Caches the c product in the entity cache if it is enabled.
      Parameters:
      cProduct - the c product
    • cacheResult

      public static void cacheResult(List<CProduct> cProducts)
      Caches the c products in the entity cache if it is enabled.
      Parameters:
      cProducts - the c products
    • create

      public static CProduct create(long CProductId)
      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

      public static CProduct remove(long CProductId) throws NoSuchCProductException
      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
      NoSuchCProductException
    • updateImpl

      public static CProduct updateImpl(CProduct cProduct)
    • findByPrimaryKey

      public static CProduct findByPrimaryKey(long CProductId) throws NoSuchCProductException
      Returns the c product with the primary key or throws a NoSuchCProductException 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
      NoSuchCProductException
    • fetchByPrimaryKey

      public static CProduct fetchByPrimaryKey(long CProductId)
      Returns the c product with the primary key or returns null 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

      public static List<CProduct> findAll()
      Returns all the c products.
      Returns:
      the c products
    • findAll

      public static List<CProduct> findAll(int start, int end)
      Returns a range of all the c products.

      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.

      Parameters:
      start - the lower bound of the range of c products
      end - 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 - 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.

      Parameters:
      start - the lower bound of the range of c products
      end - the upper bound of the range of c products (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      start - the lower bound of the range of c products
      end - 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 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

      public static CProductPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CProductPersistence persistence)