Class CommerceTaxFixedRateAddressRelUtil

java.lang.Object
com.liferay.commerce.tax.engine.fixed.service.persistence.CommerceTaxFixedRateAddressRelUtil

public class CommerceTaxFixedRateAddressRelUtil extends Object
The persistence utility for the commerce tax fixed rate address rel service. This utility wraps com.liferay.commerce.tax.engine.fixed.service.persistence.impl.CommerceTaxFixedRateAddressRelPersistenceImpl 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 Details

    • CommerceTaxFixedRateAddressRelUtil

      public CommerceTaxFixedRateAddressRelUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel)
      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,CommerceTaxFixedRateAddressRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static CommerceTaxFixedRateAddressRel update(CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceTaxMethodId

      public static List<CommerceTaxFixedRateAddressRel> findByCommerceTaxMethodId(long commerceTaxMethodId)
      Returns all the commerce tax fixed rate address rels where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      Returns:
      the matching commerce tax fixed rate address rels
    • findByCommerceTaxMethodId

      public static List<CommerceTaxFixedRateAddressRel> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end)
      Returns a range of all the commerce tax fixed rate address rels where commerceTaxMethodId = ?.

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

      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      Returns:
      the range of matching commerce tax fixed rate address rels
    • findByCommerceTaxMethodId

      public static List<CommerceTaxFixedRateAddressRel> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns an ordered range of all the commerce tax fixed rate address rels where commerceTaxMethodId = ?.

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

      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce tax fixed rate address rels
    • findByCommerceTaxMethodId

      public static List<CommerceTaxFixedRateAddressRel> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax fixed rate address rels where commerceTaxMethodId = ?.

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

      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce tax fixed rate address rels
    • findByCommerceTaxMethodId_First

      public static CommerceTaxFixedRateAddressRel findByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the first commerce tax fixed rate address rel in the ordered set where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a matching commerce tax fixed rate address rel could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByCommerceTaxMethodId_First

      public static CommerceTaxFixedRateAddressRel fetchByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns the first commerce tax fixed rate address rel in the ordered set where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce tax fixed rate address rel, or null if a matching commerce tax fixed rate address rel could not be found
    • findByCommerceTaxMethodId_Last

      public static CommerceTaxFixedRateAddressRel findByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the last commerce tax fixed rate address rel in the ordered set where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a matching commerce tax fixed rate address rel could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByCommerceTaxMethodId_Last

      public static CommerceTaxFixedRateAddressRel fetchByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns the last commerce tax fixed rate address rel in the ordered set where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce tax fixed rate address rel, or null if a matching commerce tax fixed rate address rel could not be found
    • findByCommerceTaxMethodId_PrevAndNext

      public static CommerceTaxFixedRateAddressRel[] findByCommerceTaxMethodId_PrevAndNext(long commerceTaxFixedRateAddressRelId, long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the commerce tax fixed rate address rels before and after the current commerce tax fixed rate address rel in the ordered set where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key of the current commerce tax fixed rate address rel
      commerceTaxMethodId - the commerce tax method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a commerce tax fixed rate address rel with the primary key could not be found
      NoSuchTaxFixedRateAddressRelException
    • removeByCommerceTaxMethodId

      public static void removeByCommerceTaxMethodId(long commerceTaxMethodId)
      Removes all the commerce tax fixed rate address rels where commerceTaxMethodId = ? from the database.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
    • countByCommerceTaxMethodId

      public static int countByCommerceTaxMethodId(long commerceTaxMethodId)
      Returns the number of commerce tax fixed rate address rels where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      Returns:
      the number of matching commerce tax fixed rate address rels
    • findByCPTaxCategoryId

      public static List<CommerceTaxFixedRateAddressRel> findByCPTaxCategoryId(long CPTaxCategoryId)
      Returns all the commerce tax fixed rate address rels where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the matching commerce tax fixed rate address rels
    • findByCPTaxCategoryId

      public static List<CommerceTaxFixedRateAddressRel> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end)
      Returns a range of all the commerce tax fixed rate address rels where CPTaxCategoryId = ?.

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

      Parameters:
      CPTaxCategoryId - the cp tax category ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      Returns:
      the range of matching commerce tax fixed rate address rels
    • findByCPTaxCategoryId

      public static List<CommerceTaxFixedRateAddressRel> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns an ordered range of all the commerce tax fixed rate address rels where CPTaxCategoryId = ?.

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

      Parameters:
      CPTaxCategoryId - the cp tax category ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce tax fixed rate address rels
    • findByCPTaxCategoryId

      public static List<CommerceTaxFixedRateAddressRel> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax fixed rate address rels where CPTaxCategoryId = ?.

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

      Parameters:
      CPTaxCategoryId - the cp tax category ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce tax fixed rate address rels
    • findByCPTaxCategoryId_First

      public static CommerceTaxFixedRateAddressRel findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the first commerce tax fixed rate address rel in the ordered set where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a matching commerce tax fixed rate address rel could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByCPTaxCategoryId_First

      public static CommerceTaxFixedRateAddressRel fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns the first commerce tax fixed rate address rel in the ordered set where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce tax fixed rate address rel, or null if a matching commerce tax fixed rate address rel could not be found
    • findByCPTaxCategoryId_Last

      public static CommerceTaxFixedRateAddressRel findByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the last commerce tax fixed rate address rel in the ordered set where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a matching commerce tax fixed rate address rel could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByCPTaxCategoryId_Last

      public static CommerceTaxFixedRateAddressRel fetchByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns the last commerce tax fixed rate address rel in the ordered set where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce tax fixed rate address rel, or null if a matching commerce tax fixed rate address rel could not be found
    • findByCPTaxCategoryId_PrevAndNext

      public static CommerceTaxFixedRateAddressRel[] findByCPTaxCategoryId_PrevAndNext(long commerceTaxFixedRateAddressRelId, long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the commerce tax fixed rate address rels before and after the current commerce tax fixed rate address rel in the ordered set where CPTaxCategoryId = ?.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key of the current commerce tax fixed rate address rel
      CPTaxCategoryId - the cp tax category ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a commerce tax fixed rate address rel with the primary key could not be found
      NoSuchTaxFixedRateAddressRelException
    • removeByCPTaxCategoryId

      public static void removeByCPTaxCategoryId(long CPTaxCategoryId)
      Removes all the commerce tax fixed rate address rels where CPTaxCategoryId = ? from the database.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
    • countByCPTaxCategoryId

      public static int countByCPTaxCategoryId(long CPTaxCategoryId)
      Returns the number of commerce tax fixed rate address rels where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the number of matching commerce tax fixed rate address rels
    • findByCountryId

      public static List<CommerceTaxFixedRateAddressRel> findByCountryId(long countryId)
      Returns all the commerce tax fixed rate address rels where countryId = ?.
      Parameters:
      countryId - the country ID
      Returns:
      the matching commerce tax fixed rate address rels
    • findByCountryId

      public static List<CommerceTaxFixedRateAddressRel> findByCountryId(long countryId, int start, int end)
      Returns a range of all the commerce tax fixed rate address rels where countryId = ?.

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

      Parameters:
      countryId - the country ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      Returns:
      the range of matching commerce tax fixed rate address rels
    • findByCountryId

      public static List<CommerceTaxFixedRateAddressRel> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns an ordered range of all the commerce tax fixed rate address rels where countryId = ?.

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

      Parameters:
      countryId - the country ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce tax fixed rate address rels
    • findByCountryId

      public static List<CommerceTaxFixedRateAddressRel> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax fixed rate address rels where countryId = ?.

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

      Parameters:
      countryId - the country ID
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce tax fixed rate address rels
    • findByCountryId_First

      public static CommerceTaxFixedRateAddressRel findByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the first commerce tax fixed rate address rel in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a matching commerce tax fixed rate address rel could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByCountryId_First

      public static CommerceTaxFixedRateAddressRel fetchByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns the first commerce tax fixed rate address rel in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce tax fixed rate address rel, or null if a matching commerce tax fixed rate address rel could not be found
    • findByCountryId_Last

      public static CommerceTaxFixedRateAddressRel findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the last commerce tax fixed rate address rel in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a matching commerce tax fixed rate address rel could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByCountryId_Last

      public static CommerceTaxFixedRateAddressRel fetchByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns the last commerce tax fixed rate address rel in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce tax fixed rate address rel, or null if a matching commerce tax fixed rate address rel could not be found
    • findByCountryId_PrevAndNext

      public static CommerceTaxFixedRateAddressRel[] findByCountryId_PrevAndNext(long commerceTaxFixedRateAddressRelId, long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator) throws NoSuchTaxFixedRateAddressRelException
      Returns the commerce tax fixed rate address rels before and after the current commerce tax fixed rate address rel in the ordered set where countryId = ?.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key of the current commerce tax fixed rate address rel
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a commerce tax fixed rate address rel with the primary key could not be found
      NoSuchTaxFixedRateAddressRelException
    • removeByCountryId

      public static void removeByCountryId(long countryId)
      Removes all the commerce tax fixed rate address rels where countryId = ? from the database.
      Parameters:
      countryId - the country ID
    • countByCountryId

      public static int countByCountryId(long countryId)
      Returns the number of commerce tax fixed rate address rels where countryId = ?.
      Parameters:
      countryId - the country ID
      Returns:
      the number of matching commerce tax fixed rate address rels
    • cacheResult

      public static void cacheResult(CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel)
      Caches the commerce tax fixed rate address rel in the entity cache if it is enabled.
      Parameters:
      commerceTaxFixedRateAddressRel - the commerce tax fixed rate address rel
    • cacheResult

      public static void cacheResult(List<CommerceTaxFixedRateAddressRel> commerceTaxFixedRateAddressRels)
      Caches the commerce tax fixed rate address rels in the entity cache if it is enabled.
      Parameters:
      commerceTaxFixedRateAddressRels - the commerce tax fixed rate address rels
    • create

      public static CommerceTaxFixedRateAddressRel create(long commerceTaxFixedRateAddressRelId)
      Creates a new commerce tax fixed rate address rel with the primary key. Does not add the commerce tax fixed rate address rel to the database.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key for the new commerce tax fixed rate address rel
      Returns:
      the new commerce tax fixed rate address rel
    • remove

      public static CommerceTaxFixedRateAddressRel remove(long commerceTaxFixedRateAddressRelId) throws NoSuchTaxFixedRateAddressRelException
      Removes the commerce tax fixed rate address rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key of the commerce tax fixed rate address rel
      Returns:
      the commerce tax fixed rate address rel that was removed
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a commerce tax fixed rate address rel with the primary key could not be found
      NoSuchTaxFixedRateAddressRelException
    • updateImpl

      public static CommerceTaxFixedRateAddressRel updateImpl(CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel)
    • findByPrimaryKey

      public static CommerceTaxFixedRateAddressRel findByPrimaryKey(long commerceTaxFixedRateAddressRelId) throws NoSuchTaxFixedRateAddressRelException
      Returns the commerce tax fixed rate address rel with the primary key or throws a NoSuchTaxFixedRateAddressRelException if it could not be found.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key of the commerce tax fixed rate address rel
      Returns:
      the commerce tax fixed rate address rel
      Throws:
      NoSuchTaxFixedRateAddressRelException - if a commerce tax fixed rate address rel with the primary key could not be found
      NoSuchTaxFixedRateAddressRelException
    • fetchByPrimaryKey

      public static CommerceTaxFixedRateAddressRel fetchByPrimaryKey(long commerceTaxFixedRateAddressRelId)
      Returns the commerce tax fixed rate address rel with the primary key or returns null if it could not be found.
      Parameters:
      commerceTaxFixedRateAddressRelId - the primary key of the commerce tax fixed rate address rel
      Returns:
      the commerce tax fixed rate address rel, or null if a commerce tax fixed rate address rel with the primary key could not be found
    • findAll

      public static List<CommerceTaxFixedRateAddressRel> findAll()
      Returns all the commerce tax fixed rate address rels.
      Returns:
      the commerce tax fixed rate address rels
    • findAll

      public static List<CommerceTaxFixedRateAddressRel> findAll(int start, int end)
      Returns a range of all the commerce tax fixed rate address rels.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateAddressRelModelImpl.

      Parameters:
      start - the lower bound of the range of commerce tax fixed rate address rels
      end - the upper bound of the range of commerce tax fixed rate address rels (not inclusive)
      Returns:
      the range of commerce tax fixed rate address rels
    • findAll

      public static List<CommerceTaxFixedRateAddressRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator)
      Returns an ordered range of all the commerce tax fixed rate address rels.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateAddressRelModelImpl.

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

      public static List<CommerceTaxFixedRateAddressRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRateAddressRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax fixed rate address rels.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateAddressRelModelImpl.

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

      public static void removeAll()
      Removes all the commerce tax fixed rate address rels from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce tax fixed rate address rels.
      Returns:
      the number of commerce tax fixed rate address rels
    • getPersistence

      public static CommerceTaxFixedRateAddressRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceTaxFixedRateAddressRelPersistence persistence)