Class CPTaxCategoryUtil

java.lang.Object
com.liferay.commerce.product.service.persistence.CPTaxCategoryUtil

public class CPTaxCategoryUtil extends Object
The persistence utility for the cp tax category service. This utility wraps com.liferay.commerce.product.service.persistence.impl.CPTaxCategoryPersistenceImpl 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

    • CPTaxCategoryUtil

      public CPTaxCategoryUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

      public static List<CPTaxCategory> findByUuid(String uuid)
      Returns all the cp tax categories where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp tax categories
    • findByUuid

      public static List<CPTaxCategory> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp tax categories 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 CPTaxCategoryModelImpl.

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

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

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

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

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

      public static CPTaxCategory findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
      Returns the first cp tax category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp tax category
      Throws:
      NoSuchCPTaxCategoryException - if a matching cp tax category could not be found
      NoSuchCPTaxCategoryException
    • fetchByUuid_First

      public static CPTaxCategory fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
      Returns the first cp tax category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp tax category, or null if a matching cp tax category could not be found
    • findByUuid_Last

      public static CPTaxCategory findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
      Returns the last cp tax category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp tax category
      Throws:
      NoSuchCPTaxCategoryException - if a matching cp tax category could not be found
      NoSuchCPTaxCategoryException
    • fetchByUuid_Last

      public static CPTaxCategory fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
      Returns the last cp tax category in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp tax category, or null if a matching cp tax category could not be found
    • findByUuid_PrevAndNext

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

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

      public static int countByUuid(String uuid)
      Returns the number of cp tax categories where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp tax categories
    • findByUuid_C

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

      public static List<CPTaxCategory> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp tax categories 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 CPTaxCategoryModelImpl.

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

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

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

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

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

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

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

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

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

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

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

      public static List<CPTaxCategory> findByCompanyId(long companyId)
      Returns all the cp tax categories where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp tax categories
    • findByCompanyId

      public static List<CPTaxCategory> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp tax categories where companyId = ?.

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

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

      public static List<CPTaxCategory> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
      Returns an ordered range of all the cp tax categories where companyId = ?.

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

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

      public static List<CPTaxCategory> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp tax categories where companyId = ?.

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

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

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

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

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

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

      public static CPTaxCategory[] findByCompanyId_PrevAndNext(long CPTaxCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
      Returns the cp tax categories before and after the current cp tax category in the ordered set where companyId = ?.
      Parameters:
      CPTaxCategoryId - the primary key of the current cp tax category
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp tax category
      Throws:
      NoSuchCPTaxCategoryException - if a cp tax category with the primary key could not be found
      NoSuchCPTaxCategoryException
    • removeByCompanyId

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

      public static int countByCompanyId(long companyId)
      Returns the number of cp tax categories where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp tax categories
    • findByERC_C

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

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

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

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

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

      public static void cacheResult(CPTaxCategory cpTaxCategory)
      Caches the cp tax category in the entity cache if it is enabled.
      Parameters:
      cpTaxCategory - the cp tax category
    • cacheResult

      public static void cacheResult(List<CPTaxCategory> cpTaxCategories)
      Caches the cp tax categories in the entity cache if it is enabled.
      Parameters:
      cpTaxCategories - the cp tax categories
    • create

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

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

      public static CPTaxCategory updateImpl(CPTaxCategory cpTaxCategory)
    • findByPrimaryKey

      public static CPTaxCategory findByPrimaryKey(long CPTaxCategoryId) throws NoSuchCPTaxCategoryException
      Returns the cp tax category with the primary key or throws a NoSuchCPTaxCategoryException if it could not be found.
      Parameters:
      CPTaxCategoryId - the primary key of the cp tax category
      Returns:
      the cp tax category
      Throws:
      NoSuchCPTaxCategoryException - if a cp tax category with the primary key could not be found
      NoSuchCPTaxCategoryException
    • fetchByPrimaryKey

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

      public static List<CPTaxCategory> findAll()
      Returns all the cp tax categories.
      Returns:
      the cp tax categories
    • findAll

      public static List<CPTaxCategory> findAll(int start, int end)
      Returns a range of all the cp tax categories.

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

      Parameters:
      start - the lower bound of the range of cp tax categories
      end - the upper bound of the range of cp tax categories (not inclusive)
      Returns:
      the range of cp tax categories
    • findAll

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

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

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

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

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

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

      public static void removeAll()
      Removes all the cp tax categories from the database.
    • countAll

      public static int countAll()
      Returns the number of cp tax categories.
      Returns:
      the number of cp tax categories
    • getPersistence

      public static CPTaxCategoryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPTaxCategoryPersistence persistence)