Interface CommerceOrderNotePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderNote>

@ProviderType public interface CommerceOrderNotePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderNote>
The persistence interface for the commerce order note service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CommerceOrderNote commerceOrderNote)
    Caches the commerce order note in the entity cache if it is enabled.
    void
    cacheResult(List<CommerceOrderNote> commerceOrderNotes)
    Caches the commerce order notes in the entity cache if it is enabled.
    int
    Returns the number of commerce order notes.
    int
    countByC_R(long commerceOrderId, boolean restricted)
    Returns the number of commerce order notes where commerceOrderId = ? and restricted = ?.
    int
    countByCommerceOrderId(long commerceOrderId)
    Returns the number of commerce order notes where commerceOrderId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of commerce order notes where externalReferenceCode = ? and companyId = ?.
    int
    Returns the number of commerce order notes where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of commerce order notes where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of commerce order notes where uuid = ? and groupId = ?.
    create(long commerceOrderNoteId)
    Creates a new commerce order note with the primary key.
    fetchByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
    fetchByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
    fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where commerceOrderId = ?.
    fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where commerceOrderId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long commerceOrderNoteId)
    Returns the commerce order note 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<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the commerce order note where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the commerce order note 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<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where uuid = ?.
    Returns all the commerce order notes.
    findAll(int start, int end)
    Returns a range of all the commerce order notes.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns an ordered range of all the commerce order notes.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce order notes.
    findByC_R(long commerceOrderId, boolean restricted)
    Returns all the commerce order notes where commerceOrderId = ? and restricted = ?.
    findByC_R(long commerceOrderId, boolean restricted, int start, int end)
    Returns a range of all the commerce order notes where commerceOrderId = ? and restricted = ?.
    findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns an ordered range of all the commerce order notes where commerceOrderId = ? and restricted = ?.
    findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce order notes where commerceOrderId = ? and restricted = ?.
    findByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
    findByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
    findByC_R_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
    findByCommerceOrderId(long commerceOrderId)
    Returns all the commerce order notes where commerceOrderId = ?.
    findByCommerceOrderId(long commerceOrderId, int start, int end)
    Returns a range of all the commerce order notes where commerceOrderId = ?.
    findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns an ordered range of all the commerce order notes where commerceOrderId = ?.
    findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce order notes where commerceOrderId = ?.
    findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where commerceOrderId = ?.
    findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where commerceOrderId = ?.
    findByCommerceOrderId_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce order note where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrderNoteException if it could not be found.
    findByPrimaryKey(long commerceOrderNoteId)
    Returns the commerce order note with the primary key or throws a NoSuchOrderNoteException if it could not be found.
    Returns all the commerce order notes where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the commerce order notes where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns an ordered range of all the commerce order notes where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce order notes where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the commerce order notes where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the commerce order notes where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns an ordered range of all the commerce order notes where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce order notes where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long commerceOrderNoteId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the first commerce order note in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the commerce order note where uuid = ? and groupId = ? or throws a NoSuchOrderNoteException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the last commerce order note in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long commerceOrderNoteId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
    Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ?.
    remove(long commerceOrderNoteId)
    Removes the commerce order note with the primary key from the database.
    void
    Removes all the commerce order notes from the database.
    void
    removeByC_R(long commerceOrderId, boolean restricted)
    Removes all the commerce order notes where commerceOrderId = ? and restricted = ? from the database.
    void
    removeByCommerceOrderId(long commerceOrderId)
    Removes all the commerce order notes where commerceOrderId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the commerce order note where externalReferenceCode = ? and companyId = ? from the database.
    void
    Removes all the commerce order notes where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the commerce order notes where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the commerce order note where uuid = ? and groupId = ? from the database.
    updateImpl(CommerceOrderNote commerceOrderNote)
     

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

    • findByUuid

      List<CommerceOrderNote> findByUuid(String uuid)
      Returns all the commerce order notes where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce order notes
    • findByUuid

      List<CommerceOrderNote> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce order notes 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 CommerceOrderNoteModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      Returns:
      the range of matching commerce order notes
    • findByUuid

      List<CommerceOrderNote> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns an ordered range of all the commerce order notes 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 CommerceOrderNoteModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order notes
    • findByUuid

      List<CommerceOrderNote> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order notes 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 CommerceOrderNoteModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (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 commerce order notes
    • findByUuid_First

      CommerceOrderNote findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the first commerce order note in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByUuid_First

      CommerceOrderNote fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the first commerce order note in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order note, or null if a matching commerce order note could not be found
    • findByUuid_Last

      CommerceOrderNote findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the last commerce order note in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByUuid_Last

      CommerceOrderNote fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the last commerce order note in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order note, or null if a matching commerce order note could not be found
    • findByUuid_PrevAndNext

      CommerceOrderNote[] findByUuid_PrevAndNext(long commerceOrderNoteId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ?.
      Parameters:
      commerceOrderNoteId - the primary key of the current commerce order note
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order note
      Throws:
      NoSuchOrderNoteException - if a commerce order note with the primary key could not be found
    • removeByUuid

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

      int countByUuid(String uuid)
      Returns the number of commerce order notes where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce order notes
    • findByUUID_G

      CommerceOrderNote findByUUID_G(String uuid, long groupId) throws NoSuchOrderNoteException
      Returns the commerce order note where uuid = ? and groupId = ? or throws a NoSuchOrderNoteException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByUUID_G

      CommerceOrderNote fetchByUUID_G(String uuid, long groupId)
      Returns the commerce order note 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 commerce order note, or null if a matching commerce order note could not be found
    • fetchByUUID_G

      CommerceOrderNote fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the commerce order note 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 commerce order note, or null if a matching commerce order note could not be found
    • removeByUUID_G

      CommerceOrderNote removeByUUID_G(String uuid, long groupId) throws NoSuchOrderNoteException
      Removes the commerce order note where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the commerce order note that was removed
      Throws:
      NoSuchOrderNoteException
    • countByUUID_G

      int countByUUID_G(String uuid, long groupId)
      Returns the number of commerce order notes where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching commerce order notes
    • findByUuid_C

      List<CommerceOrderNote> findByUuid_C(String uuid, long companyId)
      Returns all the commerce order notes where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce order notes
    • findByUuid_C

      List<CommerceOrderNote> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce order notes 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 CommerceOrderNoteModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      Returns:
      the range of matching commerce order notes
    • findByUuid_C

      List<CommerceOrderNote> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns an ordered range of all the commerce order notes 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 CommerceOrderNoteModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order notes
    • findByUuid_C

      List<CommerceOrderNote> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order notes 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 CommerceOrderNoteModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (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 commerce order notes
    • findByUuid_C_First

      CommerceOrderNote findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the first commerce order note 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 commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByUuid_C_First

      CommerceOrderNote fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the first commerce order note 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 commerce order note, or null if a matching commerce order note could not be found
    • findByUuid_C_Last

      CommerceOrderNote findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the last commerce order note 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 commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByUuid_C_Last

      CommerceOrderNote fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the last commerce order note 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 commerce order note, or null if a matching commerce order note could not be found
    • findByUuid_C_PrevAndNext

      CommerceOrderNote[] findByUuid_C_PrevAndNext(long commerceOrderNoteId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceOrderNoteId - the primary key of the current commerce order note
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order note
      Throws:
      NoSuchOrderNoteException - if a commerce order note with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce order notes 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 commerce order notes where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce order notes
    • findByCommerceOrderId

      List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId)
      Returns all the commerce order notes where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the matching commerce order notes
    • findByCommerceOrderId

      List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, int start, int end)
      Returns a range of all the commerce order notes where commerceOrderId = ?.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      Returns:
      the range of matching commerce order notes
    • findByCommerceOrderId

      List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns an ordered range of all the commerce order notes where commerceOrderId = ?.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order notes
    • findByCommerceOrderId

      List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order notes where commerceOrderId = ?.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (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 commerce order notes
    • findByCommerceOrderId_First

      CommerceOrderNote findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the first commerce order note in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByCommerceOrderId_First

      CommerceOrderNote fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the first commerce order note in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order note, or null if a matching commerce order note could not be found
    • findByCommerceOrderId_Last

      CommerceOrderNote findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the last commerce order note in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByCommerceOrderId_Last

      CommerceOrderNote fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the last commerce order note in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order note, or null if a matching commerce order note could not be found
    • findByCommerceOrderId_PrevAndNext

      CommerceOrderNote[] findByCommerceOrderId_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderNoteId - the primary key of the current commerce order note
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order note
      Throws:
      NoSuchOrderNoteException - if a commerce order note with the primary key could not be found
    • removeByCommerceOrderId

      void removeByCommerceOrderId(long commerceOrderId)
      Removes all the commerce order notes where commerceOrderId = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
    • countByCommerceOrderId

      int countByCommerceOrderId(long commerceOrderId)
      Returns the number of commerce order notes where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the number of matching commerce order notes
    • findByC_R

      List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted)
      Returns all the commerce order notes where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      Returns:
      the matching commerce order notes
    • findByC_R

      List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted, int start, int end)
      Returns a range of all the commerce order notes where commerceOrderId = ? and restricted = ?.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      Returns:
      the range of matching commerce order notes
    • findByC_R

      List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns an ordered range of all the commerce order notes where commerceOrderId = ? and restricted = ?.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order notes
    • findByC_R

      List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order notes where commerceOrderId = ? and restricted = ?.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (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 commerce order notes
    • findByC_R_First

      CommerceOrderNote findByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByC_R_First

      CommerceOrderNote fetchByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order note, or null if a matching commerce order note could not be found
    • findByC_R_Last

      CommerceOrderNote findByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByC_R_Last

      CommerceOrderNote fetchByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order note, or null if a matching commerce order note could not be found
    • findByC_R_PrevAndNext

      CommerceOrderNote[] findByC_R_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
      Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderNoteId - the primary key of the current commerce order note
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order note
      Throws:
      NoSuchOrderNoteException - if a commerce order note with the primary key could not be found
    • removeByC_R

      void removeByC_R(long commerceOrderId, boolean restricted)
      Removes all the commerce order notes where commerceOrderId = ? and restricted = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
    • countByC_R

      int countByC_R(long commerceOrderId, boolean restricted)
      Returns the number of commerce order notes where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      Returns:
      the number of matching commerce order notes
    • findByERC_C

      CommerceOrderNote findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderNoteException
      Returns the commerce order note where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrderNoteException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce order note
      Throws:
      NoSuchOrderNoteException - if a matching commerce order note could not be found
    • fetchByERC_C

      CommerceOrderNote fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the commerce order note 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 commerce order note, or null if a matching commerce order note could not be found
    • fetchByERC_C

      CommerceOrderNote fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the commerce order note 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 commerce order note, or null if a matching commerce order note could not be found
    • removeByERC_C

      CommerceOrderNote removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderNoteException
      Removes the commerce order note where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the commerce order note that was removed
      Throws:
      NoSuchOrderNoteException
    • countByERC_C

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

      void cacheResult(CommerceOrderNote commerceOrderNote)
      Caches the commerce order note in the entity cache if it is enabled.
      Parameters:
      commerceOrderNote - the commerce order note
    • cacheResult

      void cacheResult(List<CommerceOrderNote> commerceOrderNotes)
      Caches the commerce order notes in the entity cache if it is enabled.
      Parameters:
      commerceOrderNotes - the commerce order notes
    • create

      CommerceOrderNote create(long commerceOrderNoteId)
      Creates a new commerce order note with the primary key. Does not add the commerce order note to the database.
      Parameters:
      commerceOrderNoteId - the primary key for the new commerce order note
      Returns:
      the new commerce order note
    • remove

      CommerceOrderNote remove(long commerceOrderNoteId) throws NoSuchOrderNoteException
      Removes the commerce order note with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceOrderNoteId - the primary key of the commerce order note
      Returns:
      the commerce order note that was removed
      Throws:
      NoSuchOrderNoteException - if a commerce order note with the primary key could not be found
    • updateImpl

      CommerceOrderNote updateImpl(CommerceOrderNote commerceOrderNote)
    • findByPrimaryKey

      CommerceOrderNote findByPrimaryKey(long commerceOrderNoteId) throws NoSuchOrderNoteException
      Returns the commerce order note with the primary key or throws a NoSuchOrderNoteException if it could not be found.
      Parameters:
      commerceOrderNoteId - the primary key of the commerce order note
      Returns:
      the commerce order note
      Throws:
      NoSuchOrderNoteException - if a commerce order note with the primary key could not be found
    • fetchByPrimaryKey

      CommerceOrderNote fetchByPrimaryKey(long commerceOrderNoteId)
      Returns the commerce order note with the primary key or returns null if it could not be found.
      Parameters:
      commerceOrderNoteId - the primary key of the commerce order note
      Returns:
      the commerce order note, or null if a commerce order note with the primary key could not be found
    • findAll

      Returns all the commerce order notes.
      Returns:
      the commerce order notes
    • findAll

      List<CommerceOrderNote> findAll(int start, int end)
      Returns a range of all the commerce order notes.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      Returns:
      the range of commerce order notes
    • findAll

      List<CommerceOrderNote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
      Returns an ordered range of all the commerce order notes.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce order notes
    • findAll

      List<CommerceOrderNote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order notes.

      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 CommerceOrderNoteModelImpl.

      Parameters:
      start - the lower bound of the range of commerce order notes
      end - the upper bound of the range of commerce order notes (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of commerce order notes
    • removeAll

      void removeAll()
      Removes all the commerce order notes from the database.
    • countAll

      int countAll()
      Returns the number of commerce order notes.
      Returns:
      the number of commerce order notes