Class CommerceTaxCategoryMappingUtil

java.lang.Object
com.liferay.commerce.tax.service.persistence.CommerceTaxCategoryMappingUtil

public class CommerceTaxCategoryMappingUtil extends Object
The persistence utility for the commerce tax category mapping service. This utility wraps com.liferay.commerce.tax.service.persistence.impl.CommerceTaxCategoryMappingPersistenceImpl 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

    • CommerceTaxCategoryMappingUtil

      public CommerceTaxCategoryMappingUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

      public static List<CommerceTaxCategoryMapping> findByUuid(String uuid)
      Returns all the commerce tax category mappings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce tax category mappings
    • findByUuid

      public static List<CommerceTaxCategoryMapping> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static List<CommerceTaxCategoryMapping> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator)
      Returns an ordered range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static List<CommerceTaxCategoryMapping> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static CommerceTaxCategoryMapping findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException
      Returns the first commerce tax category mapping 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 tax category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByUuid_First

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

      public static CommerceTaxCategoryMapping findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException
      Returns the last commerce tax category mapping 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 tax category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByUuid_Last

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

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

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

      public static int countByUuid(String uuid)
      Returns the number of commerce tax category mappings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce tax category mappings
    • findByUUID_G

      public static CommerceTaxCategoryMapping findByUUID_G(String uuid, long groupId) throws NoSuchTaxCategoryMappingException
      Returns the commerce tax category mapping where uuid = ? and groupId = ? or throws a NoSuchTaxCategoryMappingException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce tax category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByUUID_G

      public static CommerceTaxCategoryMapping fetchByUUID_G(String uuid, long groupId)
      Returns the commerce tax category mapping where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce tax category mapping, or null if a matching commerce tax category mapping could not be found
    • fetchByUUID_G

      public static CommerceTaxCategoryMapping fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the commerce tax category mapping where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce tax category mapping, or null if a matching commerce tax category mapping could not be found
    • removeByUUID_G

      public static CommerceTaxCategoryMapping removeByUUID_G(String uuid, long groupId) throws NoSuchTaxCategoryMappingException
      Removes the commerce tax category mapping where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the commerce tax category mapping that was removed
      Throws:
      NoSuchTaxCategoryMappingException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of commerce tax category mappings where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching commerce tax category mappings
    • findByUuid_C

      public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId)
      Returns all the commerce tax category mappings where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce tax category mappings
    • findByUuid_C

      public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator)
      Returns an ordered range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

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

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

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

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

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

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

      public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId)
      Returns all the commerce tax category mappings where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      Returns:
      the matching commerce tax category mappings
    • findByCommerceTaxMethodId

      public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end)
      Returns a range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator)
      Returns an ordered range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

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

      public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax category mappings 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 CommerceTaxCategoryMappingModelImpl.

      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      start - the lower bound of the range of commerce tax category mappings
      end - the upper bound of the range of commerce tax category mappings (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 category mappings
    • findByCommerceTaxMethodId_First

      public static CommerceTaxCategoryMapping findByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException
      Returns the first commerce tax category mapping 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 category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByCommerceTaxMethodId_First

      public static CommerceTaxCategoryMapping fetchByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator)
      Returns the first commerce tax category mapping 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 category mapping, or null if a matching commerce tax category mapping could not be found
    • findByCommerceTaxMethodId_Last

      public static CommerceTaxCategoryMapping findByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException
      Returns the last commerce tax category mapping 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 category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByCommerceTaxMethodId_Last

      public static CommerceTaxCategoryMapping fetchByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator)
      Returns the last commerce tax category mapping 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 category mapping, or null if a matching commerce tax category mapping could not be found
    • findByCommerceTaxMethodId_PrevAndNext

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

      public static void removeByCommerceTaxMethodId(long commerceTaxMethodId)
      Removes all the commerce tax category mappings 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 category mappings where commerceTaxMethodId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      Returns:
      the number of matching commerce tax category mappings
    • findByC_C

      public static CommerceTaxCategoryMapping findByC_C(long commerceTaxMethodId, long CPTaxCategoryId) throws NoSuchTaxCategoryMappingException
      Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or throws a NoSuchTaxCategoryMappingException if it could not be found.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the matching commerce tax category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByC_C

      public static CommerceTaxCategoryMapping fetchByC_C(long commerceTaxMethodId, long CPTaxCategoryId)
      Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the matching commerce tax category mapping, or null if a matching commerce tax category mapping could not be found
    • fetchByC_C

      public static CommerceTaxCategoryMapping fetchByC_C(long commerceTaxMethodId, long CPTaxCategoryId, boolean useFinderCache)
      Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      CPTaxCategoryId - the cp tax category ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce tax category mapping, or null if a matching commerce tax category mapping could not be found
    • removeByC_C

      public static CommerceTaxCategoryMapping removeByC_C(long commerceTaxMethodId, long CPTaxCategoryId) throws NoSuchTaxCategoryMappingException
      Removes the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? from the database.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the commerce tax category mapping that was removed
      Throws:
      NoSuchTaxCategoryMappingException
    • countByC_C

      public static int countByC_C(long commerceTaxMethodId, long CPTaxCategoryId)
      Returns the number of commerce tax category mappings where commerceTaxMethodId = ? and CPTaxCategoryId = ?.
      Parameters:
      commerceTaxMethodId - the commerce tax method ID
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the number of matching commerce tax category mappings
    • findByERC_C

      public static CommerceTaxCategoryMapping findByERC_C(String externalReferenceCode, long companyId) throws NoSuchTaxCategoryMappingException
      Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or throws a NoSuchTaxCategoryMappingException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce tax category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a matching commerce tax category mapping could not be found
      NoSuchTaxCategoryMappingException
    • fetchByERC_C

      public static CommerceTaxCategoryMapping fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the commerce tax category mapping 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 tax category mapping, or null if a matching commerce tax category mapping could not be found
    • fetchByERC_C

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

      public static CommerceTaxCategoryMapping removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchTaxCategoryMappingException
      Removes the commerce tax category mapping where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the commerce tax category mapping that was removed
      Throws:
      NoSuchTaxCategoryMappingException
    • countByERC_C

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

      public static void cacheResult(CommerceTaxCategoryMapping commerceTaxCategoryMapping)
      Caches the commerce tax category mapping in the entity cache if it is enabled.
      Parameters:
      commerceTaxCategoryMapping - the commerce tax category mapping
    • cacheResult

      public static void cacheResult(List<CommerceTaxCategoryMapping> commerceTaxCategoryMappings)
      Caches the commerce tax category mappings in the entity cache if it is enabled.
      Parameters:
      commerceTaxCategoryMappings - the commerce tax category mappings
    • create

      public static CommerceTaxCategoryMapping create(long commerceTaxCategoryMappingId)
      Creates a new commerce tax category mapping with the primary key. Does not add the commerce tax category mapping to the database.
      Parameters:
      commerceTaxCategoryMappingId - the primary key for the new commerce tax category mapping
      Returns:
      the new commerce tax category mapping
    • remove

      public static CommerceTaxCategoryMapping remove(long commerceTaxCategoryMappingId) throws NoSuchTaxCategoryMappingException
      Removes the commerce tax category mapping with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceTaxCategoryMappingId - the primary key of the commerce tax category mapping
      Returns:
      the commerce tax category mapping that was removed
      Throws:
      NoSuchTaxCategoryMappingException - if a commerce tax category mapping with the primary key could not be found
      NoSuchTaxCategoryMappingException
    • updateImpl

      public static CommerceTaxCategoryMapping updateImpl(CommerceTaxCategoryMapping commerceTaxCategoryMapping)
    • findByPrimaryKey

      public static CommerceTaxCategoryMapping findByPrimaryKey(long commerceTaxCategoryMappingId) throws NoSuchTaxCategoryMappingException
      Returns the commerce tax category mapping with the primary key or throws a NoSuchTaxCategoryMappingException if it could not be found.
      Parameters:
      commerceTaxCategoryMappingId - the primary key of the commerce tax category mapping
      Returns:
      the commerce tax category mapping
      Throws:
      NoSuchTaxCategoryMappingException - if a commerce tax category mapping with the primary key could not be found
      NoSuchTaxCategoryMappingException
    • fetchByPrimaryKey

      public static CommerceTaxCategoryMapping fetchByPrimaryKey(long commerceTaxCategoryMappingId)
      Returns the commerce tax category mapping with the primary key or returns null if it could not be found.
      Parameters:
      commerceTaxCategoryMappingId - the primary key of the commerce tax category mapping
      Returns:
      the commerce tax category mapping, or null if a commerce tax category mapping with the primary key could not be found
    • findAll

      public static List<CommerceTaxCategoryMapping> findAll()
      Returns all the commerce tax category mappings.
      Returns:
      the commerce tax category mappings
    • findAll

      public static List<CommerceTaxCategoryMapping> findAll(int start, int end)
      Returns a range of all the commerce tax category mappings.

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

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

      public static List<CommerceTaxCategoryMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator)
      Returns an ordered range of all the commerce tax category mappings.

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

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

      public static List<CommerceTaxCategoryMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce tax category mappings.

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

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

      public static void removeAll()
      Removes all the commerce tax category mappings from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce tax category mappings.
      Returns:
      the number of commerce tax category mappings
    • getPersistence

      public static CommerceTaxCategoryMappingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceTaxCategoryMappingPersistence persistence)