Class CommerceCurrencyUtil

java.lang.Object
com.liferay.commerce.currency.service.persistence.CommerceCurrencyUtil

public class CommerceCurrencyUtil extends Object
The persistence utility for the commerce currency service. This utility wraps com.liferay.commerce.currency.service.persistence.impl.CommerceCurrencyPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(CommerceCurrency commerceCurrency)
    Caches the commerce currency in the entity cache if it is enabled.
    static void
    cacheResult(List<CommerceCurrency> commerceCurrencies)
    Caches the commerce currencies in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(CommerceCurrency commerceCurrency)
     
    static int
    Returns the number of commerce currencies.
    static int
    countByC_A(long companyId, boolean active)
    Returns the number of commerce currencies where companyId = ? and active = ?.
    static int
    countByC_C(long companyId, String code)
    Returns the number of commerce currencies where companyId = ? and code = ?.
    static int
    countByC_P(long companyId, boolean primary)
    Returns the number of commerce currencies where companyId = ? and primary = ?.
    static int
    countByC_P_A(long companyId, boolean primary, boolean active)
    Returns the number of commerce currencies where companyId = ? and primary = ? and active = ?.
    static int
    countByCompanyId(long companyId)
    Returns the number of commerce currencies where companyId = ?.
    static int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of commerce currencies where externalReferenceCode = ? and companyId = ?.
    static int
    Returns the number of commerce currencies where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of commerce currencies where uuid = ? and companyId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    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 = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
     
     
    remove(long commerceCurrencyId)
    Removes the commerce currency with the primary key from the database.
    static void
    Removes all the commerce currencies from the database.
    static 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.
    static void
    removeByC_P(long companyId, boolean primary)
    Removes all the commerce currencies where companyId = ? and primary = ? from the database.
    static void
    removeByC_P_A(long companyId, boolean primary, boolean active)
    Removes all the commerce currencies where companyId = ? and primary = ? and active = ? from the database.
    static 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.
    static void
    Removes all the commerce currencies where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the commerce currencies where uuid = ? and companyId = ? from the database.
    static void
     
    update(CommerceCurrency commerceCurrency)
     
    update(CommerceCurrency commerceCurrency, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(CommerceCurrency commerceCurrency)
     

    Methods inherited from class java.lang.Object

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

    • CommerceCurrencyUtil

      public CommerceCurrencyUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommerceCurrency commerceCurrency)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CommerceCurrency> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CommerceCurrency> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CommerceCurrency update(CommerceCurrency commerceCurrency)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CommerceCurrency update(CommerceCurrency commerceCurrency, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CommerceCurrency> findByUuid(String uuid)
      Returns all the commerce currencies where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce currencies
    • findByUuid

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByUuid_First

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByUuid_Last

      public static 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

      public static 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
      NoSuchCurrencyException
    • removeByUuid

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByUuid_C_First

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByUuid_C_Last

      public static 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

      public static 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
      NoSuchCurrencyException
    • removeByUuid_C

      public static 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

      public static 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

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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByCompanyId_First

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByCompanyId_Last

      public static 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

      public static 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
      NoSuchCurrencyException
    • removeByCompanyId

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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_C

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_P_First

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_P_Last

      public static 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

      public static 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
      NoSuchCurrencyException
    • removeByC_P

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_A_First

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_A_Last

      public static 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

      public static 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
      NoSuchCurrencyException
    • removeByC_A

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_P_A_First

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByC_P_A_Last

      public static 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

      public static 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
      NoSuchCurrencyException
    • removeByC_P_A

      public static 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

      public static 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

      public static 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
      NoSuchCurrencyException
    • fetchByERC_C

      public static 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

      public static 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

      public static 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

      public static 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

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

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

      public static 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

      public static 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
      NoSuchCurrencyException
    • updateImpl

      public static CommerceCurrency updateImpl(CommerceCurrency commerceCurrency)
    • findByPrimaryKey

      public static 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
      NoSuchCurrencyException
    • fetchByPrimaryKey

      public static 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

      public static List<CommerceCurrency> findAll()
      Returns all the commerce currencies.
      Returns:
      the commerce currencies
    • findAll

      public static 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

      public static 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

      public static 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

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

      public static int countAll()
      Returns the number of commerce currencies.
      Returns:
      the number of commerce currencies
    • getPersistence

      public static CommerceCurrencyPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceCurrencyPersistence persistence)