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

    • cacheResult

      public static void cacheResult(List<CommerceTaxFixedRateAddressRel> commerceTaxFixedRateAddressRels)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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
    • 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
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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
    • 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
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.tax.engine.fixed.model.impl.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
    • getPersistence

      public static CommerceTaxFixedRateAddressRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceTaxFixedRateAddressRelPersistence persistence)