Interface CommerceOrderTypeRelPersistence

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

@ProviderType public interface CommerceOrderTypeRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderTypeRel>
The persistence interface for the commerce order type rel service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUuid

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

      List<CommerceOrderTypeRel> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce order type rels 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 CommerceOrderTypeRelModelImpl.

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

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

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

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

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

      CommerceOrderTypeRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the first commerce order type rel 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 type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByUuid_First

      CommerceOrderTypeRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns the first commerce order type rel 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 type rel, or null if a matching commerce order type rel could not be found
    • findByUuid_Last

      CommerceOrderTypeRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the last commerce order type rel 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 type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByUuid_Last

      CommerceOrderTypeRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns the last commerce order type rel 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 type rel, or null if a matching commerce order type rel could not be found
    • findByUuid_PrevAndNext

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      CommerceOrderTypeRel[] findByUuid_C_PrevAndNext(long commerceOrderTypeRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceOrderTypeRelId - the primary key of the current commerce order type rel
      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 type rel
      Throws:
      NoSuchOrderTypeRelException - if a commerce order type rel with the primary key could not be found
    • removeByUuid_C

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

      List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId)
      Returns all the commerce order type rels where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce order type rels
    • findByCommerceOrderTypeId

      List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end)
      Returns a range of all the commerce order type rels where commerceOrderTypeId = ?.

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

      Parameters:
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce order type rels
      end - the upper bound of the range of commerce order type rels (not inclusive)
      Returns:
      the range of matching commerce order type rels
    • findByCommerceOrderTypeId

      List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns an ordered range of all the commerce order type rels where commerceOrderTypeId = ?.

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

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

      List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order type rels where commerceOrderTypeId = ?.

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

      Parameters:
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce order type rels
      end - the upper bound of the range of commerce order type rels (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 type rels
    • findByCommerceOrderTypeId_First

      CommerceOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the first commerce order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByCommerceOrderTypeId_First

      CommerceOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns the first commerce order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order type rel, or null if a matching commerce order type rel could not be found
    • findByCommerceOrderTypeId_Last

      CommerceOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the last commerce order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByCommerceOrderTypeId_Last

      CommerceOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns the last commerce order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order type rel, or null if a matching commerce order type rel could not be found
    • findByCommerceOrderTypeId_PrevAndNext

      CommerceOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeRelId - the primary key of the current commerce order type rel
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a commerce order type rel with the primary key could not be found
    • removeByCommerceOrderTypeId

      void removeByCommerceOrderTypeId(long commerceOrderTypeId)
      Removes all the commerce order type rels where commerceOrderTypeId = ? from the database.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
    • countByCommerceOrderTypeId

      int countByCommerceOrderTypeId(long commerceOrderTypeId)
      Returns the number of commerce order type rels where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the number of matching commerce order type rels
    • findByC_C

      List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId)
      Returns all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce order type rels
    • findByC_C

      List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end)
      Returns a range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.

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

      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce order type rels
      end - the upper bound of the range of commerce order type rels (not inclusive)
      Returns:
      the range of matching commerce order type rels
    • findByC_C

      List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns an ordered range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.

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

      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce order type rels
      end - the upper bound of the range of commerce order type rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order type rels
    • findByC_C

      List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.

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

      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce order type rels
      end - the upper bound of the range of commerce order type rels (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 type rels
    • findByC_C_First

      CommerceOrderTypeRel findByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByC_C_First

      CommerceOrderTypeRel fetchByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order type rel, or null if a matching commerce order type rel could not be found
    • findByC_C_Last

      CommerceOrderTypeRel findByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByC_C_Last

      CommerceOrderTypeRel fetchByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
      Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order type rel, or null if a matching commerce order type rel could not be found
    • findByC_C_PrevAndNext

      CommerceOrderTypeRel[] findByC_C_PrevAndNext(long commerceOrderTypeRelId, long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
      Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeRelId - the primary key of the current commerce order type rel
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a commerce order type rel with the primary key could not be found
    • removeByC_C

      void removeByC_C(long classNameId, long commerceOrderTypeId)
      Removes all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ? from the database.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
    • countByC_C

      int countByC_C(long classNameId, long commerceOrderTypeId)
      Returns the number of commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the number of matching commerce order type rels
    • findByC_C_C

      CommerceOrderTypeRel findByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) throws NoSuchOrderTypeRelException
      Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or throws a NoSuchOrderTypeRelException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a matching commerce order type rel could not be found
    • fetchByC_C_C

      CommerceOrderTypeRel fetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId)
      Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce order type rel, or null if a matching commerce order type rel could not be found
    • fetchByC_C_C

      CommerceOrderTypeRel fetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId, boolean useFinderCache)
      Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceOrderTypeId - the commerce order type ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce order type rel, or null if a matching commerce order type rel could not be found
    • removeByC_C_C

      CommerceOrderTypeRel removeByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) throws NoSuchOrderTypeRelException
      Removes the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the commerce order type rel that was removed
      Throws:
      NoSuchOrderTypeRelException
    • countByC_C_C

      int countByC_C_C(long classNameId, long classPK, long commerceOrderTypeId)
      Returns the number of commerce order type rels where classNameId = ? and classPK = ? and commerceOrderTypeId = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the number of matching commerce order type rels
    • findByERC_C

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

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

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

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

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

      void cacheResult(CommerceOrderTypeRel commerceOrderTypeRel)
      Caches the commerce order type rel in the entity cache if it is enabled.
      Parameters:
      commerceOrderTypeRel - the commerce order type rel
    • cacheResult

      void cacheResult(List<CommerceOrderTypeRel> commerceOrderTypeRels)
      Caches the commerce order type rels in the entity cache if it is enabled.
      Parameters:
      commerceOrderTypeRels - the commerce order type rels
    • create

      CommerceOrderTypeRel create(long commerceOrderTypeRelId)
      Creates a new commerce order type rel with the primary key. Does not add the commerce order type rel to the database.
      Parameters:
      commerceOrderTypeRelId - the primary key for the new commerce order type rel
      Returns:
      the new commerce order type rel
    • remove

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

      CommerceOrderTypeRel updateImpl(CommerceOrderTypeRel commerceOrderTypeRel)
    • findByPrimaryKey

      CommerceOrderTypeRel findByPrimaryKey(long commerceOrderTypeRelId) throws NoSuchOrderTypeRelException
      Returns the commerce order type rel with the primary key or throws a NoSuchOrderTypeRelException if it could not be found.
      Parameters:
      commerceOrderTypeRelId - the primary key of the commerce order type rel
      Returns:
      the commerce order type rel
      Throws:
      NoSuchOrderTypeRelException - if a commerce order type rel with the primary key could not be found
    • fetchByPrimaryKey

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

      Returns all the commerce order type rels.
      Returns:
      the commerce order type rels
    • findAll

      List<CommerceOrderTypeRel> findAll(int start, int end)
      Returns a range of all the commerce order type rels.

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

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

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

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

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

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

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

      Parameters:
      start - the lower bound of the range of commerce order type rels
      end - the upper bound of the range of commerce order type rels (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 type rels
    • removeAll

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

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