Interface CProductPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CProduct>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CProduct>

@ProviderType public interface CProductPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CProduct>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CProduct>
The persistence interface for the c product service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Caches the c product in the entity cache if it is enabled.
    void
    Caches the c products in the entity cache if it is enabled.
    int
    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
    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 returns null if it could not be found.
    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.
    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 returns null 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 returns null if it could not be found.
    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.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
    Returns the last c product in the ordered set where uuid = ?.
    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 a NoSuchCProductException 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 = ?.
    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 a NoSuchCProductException if it could not be found.
    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 = ?.
    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 a NoSuchCProductException 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 = ?.
    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
    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

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

      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

      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

      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

      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
    • 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 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

      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
    • 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 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

      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
    • removeByUuid

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

      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

      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
    • fetchByUUID_G

      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

      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

      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

      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

      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

      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

      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

      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

      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
    • 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 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

      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
    • 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 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

      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
    • removeByUuid_C

      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

      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

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

      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

      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

      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

      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
    • 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 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

      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
    • 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 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

      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
    • 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

      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
    • fetchByERC_C

      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

      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

      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

      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

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

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

      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

      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
    • updateImpl

      CProduct updateImpl(CProduct cProduct)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

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

      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

      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

      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

      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