Interface CommerceCurrencyPersistence

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

@ProviderType public interface CommerceCurrencyPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceCurrency>
The persistence interface for the commerce currency service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CommerceCurrency commerceCurrency)
    Caches the commerce currency in the entity cache if it is enabled.
    void
    cacheResult(List<CommerceCurrency> commerceCurrencies)
    Caches the commerce currencies in the entity cache if it is enabled.
    int
    Returns the number of commerce currencies.
    int
    countByC_A(long companyId, boolean active)
    Returns the number of commerce currencies where companyId = ? and active = ?.
    int
    countByC_C(long companyId, String code)
    Returns the number of commerce currencies where companyId = ? and code = ?.
    int
    countByC_P(long companyId, boolean primary)
    Returns the number of commerce currencies where companyId = ? and primary = ?.
    int
    countByC_P_A(long companyId, boolean primary, boolean active)
    Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of commerce currencies where companyId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of commerce currencies where externalReferenceCode = ? and companyId = ?.
    int
    Returns the number of commerce currencies where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of commerce currencies where uuid = ? and companyId = ?.
    create(long commerceCurrencyId)
    Creates a new commerce currency with the primary key.
    fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ? and active = ?.
    fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ? and active = ?.
    fetchByC_C(long companyId, String code)
    Returns the commerce currency where companyId = ? and code = ? or returns null if it could not be found.
    fetchByC_C(long companyId, String code, boolean useFinderCache)
    Returns the commerce currency where companyId = ? and code = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
    fetchByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
    fetchByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.
    fetchByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the commerce currency where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long commerceCurrencyId)
    Returns the commerce currency 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<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where uuid = ?.
    Returns all the commerce currencies.
    findAll(int start, int end)
    Returns a range of all the commerce currencies.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies.
    findByC_A(long companyId, boolean active)
    Returns all the commerce currencies where companyId = ? and active = ?.
    findByC_A(long companyId, boolean active, int start, int end)
    Returns a range of all the commerce currencies where companyId = ? and active = ?.
    findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.
    findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.
    findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ? and active = ?.
    findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ? and active = ?.
    findByC_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and active = ?.
    findByC_C(long companyId, String code)
    Returns the commerce currency where companyId = ? and code = ? or throws a NoSuchCurrencyException if it could not be found.
    findByC_P(long companyId, boolean primary)
    Returns all the commerce currencies where companyId = ? and primary = ?.
    findByC_P(long companyId, boolean primary, int start, int end)
    Returns a range of all the commerce currencies where companyId = ? and primary = ?.
    findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.
    findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.
    findByC_P_A(long companyId, boolean primary, boolean active)
    Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.
    findByC_P_A(long companyId, boolean primary, boolean active, int start, int end)
    Returns a range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
    findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
    findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.
    findByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
    findByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
    findByC_P_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
    findByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.
    findByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.
    findByC_P_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ?.
    findByCompanyId(long companyId)
    Returns all the commerce currencies where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the commerce currencies where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long commerceCurrencyId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce currency where externalReferenceCode = ? and companyId = ? or throws a NoSuchCurrencyException if it could not be found.
    findByPrimaryKey(long commerceCurrencyId)
    Returns the commerce currency with the primary key or throws a NoSuchCurrencyException if it could not be found.
    Returns all the commerce currencies where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the commerce currencies where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the commerce currencies where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the commerce currencies where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns an ordered range of all the commerce currencies where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce currencies where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long commerceCurrencyId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the first commerce currency in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the last commerce currency in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long commerceCurrencyId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
    Returns the commerce currencies before and after the current commerce currency in the ordered set where uuid = ?.
    remove(long commerceCurrencyId)
    Removes the commerce currency with the primary key from the database.
    void
    Removes all the commerce currencies from the database.
    void
    removeByC_A(long companyId, boolean active)
    Removes all the commerce currencies where companyId = ? and active = ? from the database.
    removeByC_C(long companyId, String code)
    Removes the commerce currency where companyId = ? and code = ? from the database.
    void
    removeByC_P(long companyId, boolean primary)
    Removes all the commerce currencies where companyId = ? and primary = ? from the database.
    void
    removeByC_P_A(long companyId, boolean primary, boolean active)
    Removes all the commerce currencies where companyId = ? and primary = ? and active = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the commerce currencies where companyId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the commerce currency where externalReferenceCode = ? and companyId = ? from the database.
    void
    Removes all the commerce currencies where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the commerce currencies where uuid = ? and companyId = ? from the database.
    updateImpl(CommerceCurrency commerceCurrency)
     

    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<CommerceCurrency> findByUuid(String uuid)
      Returns all the commerce currencies where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce currencies
    • findByUuid

      List<CommerceCurrency> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce currencies 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 CommerceCurrencyModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      List<CommerceCurrency> findByCompanyId(long companyId)
      Returns all the commerce currencies where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching commerce currencies
    • findByCompanyId

      List<CommerceCurrency> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the commerce currencies where 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 CommerceCurrencyModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (not inclusive)
      Returns:
      the range of matching commerce currencies
    • findByCompanyId

      List<CommerceCurrency> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns an ordered range of all the commerce currencies where 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 CommerceCurrencyModelImpl.

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

      List<CommerceCurrency> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce currencies where 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 CommerceCurrencyModelImpl.

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

      CommerceCurrency findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the first commerce currency in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByCompanyId_First

      CommerceCurrency fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the first commerce currency in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency, or null if a matching commerce currency could not be found
    • findByCompanyId_Last

      CommerceCurrency findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the last commerce currency in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByCompanyId_Last

      CommerceCurrency fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the last commerce currency in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency, or null if a matching commerce currency could not be found
    • findByCompanyId_PrevAndNext

      CommerceCurrency[] findByCompanyId_PrevAndNext(long commerceCurrencyId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ?.
      Parameters:
      commerceCurrencyId - the primary key of the current commerce currency
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce currency
      Throws:
      NoSuchCurrencyException - if a commerce currency with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the commerce currencies where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of commerce currencies where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching commerce currencies
    • findByC_C

      CommerceCurrency findByC_C(long companyId, String code) throws NoSuchCurrencyException
      Returns the commerce currency where companyId = ? and code = ? or throws a NoSuchCurrencyException if it could not be found.
      Parameters:
      companyId - the company ID
      code - the code
      Returns:
      the matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_C

      CommerceCurrency fetchByC_C(long companyId, String code)
      Returns the commerce currency where companyId = ? and code = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      code - the code
      Returns:
      the matching commerce currency, or null if a matching commerce currency could not be found
    • fetchByC_C

      CommerceCurrency fetchByC_C(long companyId, String code, boolean useFinderCache)
      Returns the commerce currency where companyId = ? and code = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      code - the code
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce currency, or null if a matching commerce currency could not be found
    • removeByC_C

      CommerceCurrency removeByC_C(long companyId, String code) throws NoSuchCurrencyException
      Removes the commerce currency where companyId = ? and code = ? from the database.
      Parameters:
      companyId - the company ID
      code - the code
      Returns:
      the commerce currency that was removed
      Throws:
      NoSuchCurrencyException
    • countByC_C

      int countByC_C(long companyId, String code)
      Returns the number of commerce currencies where companyId = ? and code = ?.
      Parameters:
      companyId - the company ID
      code - the code
      Returns:
      the number of matching commerce currencies
    • findByC_P

      List<CommerceCurrency> findByC_P(long companyId, boolean primary)
      Returns all the commerce currencies where companyId = ? and primary = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      Returns:
      the matching commerce currencies
    • findByC_P

      List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end)
      Returns a range of all the commerce currencies where companyId = ? and primary = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (not inclusive)
      Returns:
      the range of matching commerce currencies
    • findByC_P

      List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.

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

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

      List<CommerceCurrency> findByC_P(long companyId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce currencies where companyId = ? and primary = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (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 currencies
    • findByC_P_First

      CommerceCurrency findByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_P_First

      CommerceCurrency fetchByC_P_First(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the first commerce currency in the ordered set where companyId = ? and primary = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency, or null if a matching commerce currency could not be found
    • findByC_P_Last

      CommerceCurrency findByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_P_Last

      CommerceCurrency fetchByC_P_Last(long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the last commerce currency in the ordered set where companyId = ? and primary = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency, or null if a matching commerce currency could not be found
    • findByC_P_PrevAndNext

      CommerceCurrency[] findByC_P_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ?.
      Parameters:
      commerceCurrencyId - the primary key of the current commerce currency
      companyId - the company ID
      primary - the primary
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce currency
      Throws:
      NoSuchCurrencyException - if a commerce currency with the primary key could not be found
    • removeByC_P

      void removeByC_P(long companyId, boolean primary)
      Removes all the commerce currencies where companyId = ? and primary = ? from the database.
      Parameters:
      companyId - the company ID
      primary - the primary
    • countByC_P

      int countByC_P(long companyId, boolean primary)
      Returns the number of commerce currencies where companyId = ? and primary = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      Returns:
      the number of matching commerce currencies
    • findByC_A

      List<CommerceCurrency> findByC_A(long companyId, boolean active)
      Returns all the commerce currencies where companyId = ? and active = ?.
      Parameters:
      companyId - the company ID
      active - the active
      Returns:
      the matching commerce currencies
    • findByC_A

      List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end)
      Returns a range of all the commerce currencies where companyId = ? and active = ?.

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

      Parameters:
      companyId - the company ID
      active - the active
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (not inclusive)
      Returns:
      the range of matching commerce currencies
    • findByC_A

      List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.

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

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

      List<CommerceCurrency> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce currencies where companyId = ? and active = ?.

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

      Parameters:
      companyId - the company ID
      active - the active
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (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 currencies
    • findByC_A_First

      CommerceCurrency findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the first commerce currency in the ordered set where companyId = ? and active = ?.
      Parameters:
      companyId - the company ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_A_First

      CommerceCurrency fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the first commerce currency in the ordered set where companyId = ? and active = ?.
      Parameters:
      companyId - the company ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency, or null if a matching commerce currency could not be found
    • findByC_A_Last

      CommerceCurrency findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the last commerce currency in the ordered set where companyId = ? and active = ?.
      Parameters:
      companyId - the company ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_A_Last

      CommerceCurrency fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the last commerce currency in the ordered set where companyId = ? and active = ?.
      Parameters:
      companyId - the company ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency, or null if a matching commerce currency could not be found
    • findByC_A_PrevAndNext

      CommerceCurrency[] findByC_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and active = ?.
      Parameters:
      commerceCurrencyId - the primary key of the current commerce currency
      companyId - the company ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce currency
      Throws:
      NoSuchCurrencyException - if a commerce currency with the primary key could not be found
    • removeByC_A

      void removeByC_A(long companyId, boolean active)
      Removes all the commerce currencies where companyId = ? and active = ? from the database.
      Parameters:
      companyId - the company ID
      active - the active
    • countByC_A

      int countByC_A(long companyId, boolean active)
      Returns the number of commerce currencies where companyId = ? and active = ?.
      Parameters:
      companyId - the company ID
      active - the active
      Returns:
      the number of matching commerce currencies
    • findByC_P_A

      List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active)
      Returns all the commerce currencies where companyId = ? and primary = ? and active = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      Returns:
      the matching commerce currencies
    • findByC_P_A

      List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end)
      Returns a range of all the commerce currencies where companyId = ? and primary = ? and active = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (not inclusive)
      Returns:
      the range of matching commerce currencies
    • findByC_P_A

      List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.

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

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

      List<CommerceCurrency> findByC_P_A(long companyId, boolean primary, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce currencies where companyId = ? and primary = ? and active = ?.

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

      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      start - the lower bound of the range of commerce currencies
      end - the upper bound of the range of commerce currencies (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 currencies
    • findByC_P_A_First

      CommerceCurrency findByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_P_A_First

      CommerceCurrency fetchByC_P_A_First(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the first commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce currency, or null if a matching commerce currency could not be found
    • findByC_P_A_Last

      CommerceCurrency findByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency
      Throws:
      NoSuchCurrencyException - if a matching commerce currency could not be found
    • fetchByC_P_A_Last

      CommerceCurrency fetchByC_P_A_Last(long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      Returns the last commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce currency, or null if a matching commerce currency could not be found
    • findByC_P_A_PrevAndNext

      CommerceCurrency[] findByC_P_A_PrevAndNext(long commerceCurrencyId, long companyId, boolean primary, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws NoSuchCurrencyException
      Returns the commerce currencies before and after the current commerce currency in the ordered set where companyId = ? and primary = ? and active = ?.
      Parameters:
      commerceCurrencyId - the primary key of the current commerce currency
      companyId - the company ID
      primary - the primary
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce currency
      Throws:
      NoSuchCurrencyException - if a commerce currency with the primary key could not be found
    • removeByC_P_A

      void removeByC_P_A(long companyId, boolean primary, boolean active)
      Removes all the commerce currencies where companyId = ? and primary = ? and active = ? from the database.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
    • countByC_P_A

      int countByC_P_A(long companyId, boolean primary, boolean active)
      Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.
      Parameters:
      companyId - the company ID
      primary - the primary
      active - the active
      Returns:
      the number of matching commerce currencies
    • findByERC_C

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

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

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

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

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

      void cacheResult(CommerceCurrency commerceCurrency)
      Caches the commerce currency in the entity cache if it is enabled.
      Parameters:
      commerceCurrency - the commerce currency
    • cacheResult

      void cacheResult(List<CommerceCurrency> commerceCurrencies)
      Caches the commerce currencies in the entity cache if it is enabled.
      Parameters:
      commerceCurrencies - the commerce currencies
    • create

      CommerceCurrency create(long commerceCurrencyId)
      Creates a new commerce currency with the primary key. Does not add the commerce currency to the database.
      Parameters:
      commerceCurrencyId - the primary key for the new commerce currency
      Returns:
      the new commerce currency
    • remove

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

      CommerceCurrency updateImpl(CommerceCurrency commerceCurrency)
    • findByPrimaryKey

      CommerceCurrency findByPrimaryKey(long commerceCurrencyId) throws NoSuchCurrencyException
      Returns the commerce currency with the primary key or throws a NoSuchCurrencyException if it could not be found.
      Parameters:
      commerceCurrencyId - the primary key of the commerce currency
      Returns:
      the commerce currency
      Throws:
      NoSuchCurrencyException - if a commerce currency with the primary key could not be found
    • fetchByPrimaryKey

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

      Returns all the commerce currencies.
      Returns:
      the commerce currencies
    • findAll

      List<CommerceCurrency> findAll(int start, int end)
      Returns a range of all the commerce currencies.

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

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

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

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

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

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

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

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

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

      int countAll()
      Returns the number of commerce currencies.
      Returns:
      the number of commerce currencies