public class CPTaxCategoryUtil
extends java.lang.Object
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
CPTaxCategoryPersistence
Constructor and Description |
---|
CPTaxCategoryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPTaxCategory cpTaxCategory)
Caches the cp tax category in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPTaxCategory> cpTaxCategories)
Caches the cp tax categories in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPTaxCategory cpTaxCategory) |
static int |
countAll()
Returns the number of cp tax categories.
|
static int |
countByCompanyId(long companyId)
Returns the number of cp tax categories where companyId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of cp tax categories where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp tax categories where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp tax categories where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPTaxCategory |
create(long CPTaxCategoryId)
Creates a new cp tax category with the primary key.
|
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 = ?.
|
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 = ?.
|
static CPTaxCategory |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the cp tax category where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CPTaxCategory |
fetchByERC_C(java.lang.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. |
static CPTaxCategory |
fetchByPrimaryKey(long CPTaxCategoryId)
Returns the cp tax category with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPTaxCategory> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPTaxCategory |
fetchByUuid_C_First(java.lang.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 = ?.
|
static CPTaxCategory |
fetchByUuid_C_Last(java.lang.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 = ?.
|
static CPTaxCategory |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the first cp tax category in the ordered set where uuid = ?.
|
static CPTaxCategory |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the last cp tax category in the ordered set where uuid = ?.
|
static java.util.List<CPTaxCategory> |
findAll()
Returns all the cp tax categories.
|
static java.util.List<CPTaxCategory> |
findAll(int start,
int end)
Returns a range of all the cp tax categories.
|
static java.util.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.
|
static java.util.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.
|
static CPTaxCategory |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the first cp tax category in the ordered set where companyId = ?.
|
static CPTaxCategory |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the last cp tax category in the ordered set where companyId = ?.
|
static CPTaxCategory[] |
findByCompanyId_PrevAndNext(long CPTaxCategoryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the cp tax categories before and after the current cp tax category in the ordered set where companyId = ?.
|
static java.util.List<CPTaxCategory> |
findByCompanyId(long companyId)
Returns all the cp tax categories where companyId = ?.
|
static java.util.List<CPTaxCategory> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp tax categories where companyId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CPTaxCategory |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the cp tax category where externalReferenceCode = ? and companyId = ? or throws a
NoSuchCPTaxCategoryException if it could not be found. |
static CPTaxCategory |
findByPrimaryKey(long CPTaxCategoryId)
Returns the cp tax category with the primary key or throws a
NoSuchCPTaxCategoryException if it could not be found. |
static CPTaxCategory |
findByUuid_C_First(java.lang.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 = ?.
|
static CPTaxCategory |
findByUuid_C_Last(java.lang.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 = ?.
|
static CPTaxCategory[] |
findByUuid_C_PrevAndNext(long CPTaxCategoryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the cp tax categories before and after the current cp tax category in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp tax categories where uuid = ? and companyId = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp tax categories where uuid = ? and companyId = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid_C(java.lang.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 = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid_C(java.lang.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 = ?.
|
static CPTaxCategory |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the first cp tax category in the ordered set where uuid = ?.
|
static CPTaxCategory |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the last cp tax category in the ordered set where uuid = ?.
|
static CPTaxCategory[] |
findByUuid_PrevAndNext(long CPTaxCategoryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
Returns the cp tax categories before and after the current cp tax category in the ordered set where uuid = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid(java.lang.String uuid)
Returns all the cp tax categories where uuid = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp tax categories where uuid = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<CPTaxCategory> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<CPTaxCategory> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPTaxCategory> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPTaxCategory> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) |
static CPTaxCategoryPersistence |
getPersistence() |
static CPTaxCategory |
remove(long CPTaxCategoryId)
Removes the cp tax category with the primary key from the database.
|
static void |
removeAll()
Removes all the cp tax categories from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the cp tax categories where companyId = ? from the database.
|
static CPTaxCategory |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the cp tax category where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp tax categories where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp tax categories where uuid = ? from the database.
|
static void |
setPersistence(CPTaxCategoryPersistence persistence) |
static CPTaxCategory |
update(CPTaxCategory cpTaxCategory) |
static CPTaxCategory |
update(CPTaxCategory cpTaxCategory,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPTaxCategory |
updateImpl(CPTaxCategory cpTaxCategory) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPTaxCategory cpTaxCategory)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CPTaxCategory> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPTaxCategory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPTaxCategory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPTaxCategory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPTaxCategory update(CPTaxCategory cpTaxCategory)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPTaxCategory update(CPTaxCategory cpTaxCategory, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPTaxCategory> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPTaxCategory> findByUuid(java.lang.String uuid, int start, int end)
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
.
uuid
- the uuidstart
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)public static java.util.List<CPTaxCategory> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
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
.
uuid
- the uuidstart
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPTaxCategory> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator, boolean useFinderCache)
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
.
uuid
- the uuidstart
- the lower bound of the range of cp tax categoriesend
- 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 cachepublic static CPTaxCategory findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp tax category could not be foundpublic static CPTaxCategory findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp tax category could not be foundpublic static CPTaxCategory[] findByUuid_PrevAndNext(long CPTaxCategoryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
CPTaxCategoryId
- the primary key of the current cp tax categoryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPTaxCategory> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPTaxCategory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
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
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)public static java.util.List<CPTaxCategory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
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
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPTaxCategory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator, boolean useFinderCache)
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
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp tax categoriesend
- 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 cachepublic static CPTaxCategory findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp tax category could not be foundpublic static CPTaxCategory findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp tax category could not be foundpublic static CPTaxCategory[] findByUuid_C_PrevAndNext(long CPTaxCategoryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
CPTaxCategoryId
- the primary key of the current cp tax categoryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPTaxCategory> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPTaxCategory> findByCompanyId(long companyId, int start, int end)
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
.
companyId
- the company IDstart
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)public static java.util.List<CPTaxCategory> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
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
.
companyId
- the company IDstart
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPTaxCategory> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator, boolean useFinderCache)
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
.
companyId
- the company IDstart
- the lower bound of the range of cp tax categoriesend
- 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 cachepublic static CPTaxCategory findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp tax category could not be foundpublic static CPTaxCategory findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp tax category could not be foundpublic static CPTaxCategory[] findByCompanyId_PrevAndNext(long CPTaxCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) throws NoSuchCPTaxCategoryException
CPTaxCategoryId
- the primary key of the current cp tax categorycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static CPTaxCategory findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchCPTaxCategoryException
NoSuchCPTaxCategoryException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchCPTaxCategoryException
- if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching cp tax category could not be foundpublic static CPTaxCategory fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching cp tax category could not be foundpublic static CPTaxCategory removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchCPTaxCategoryException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchCPTaxCategoryException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(CPTaxCategory cpTaxCategory)
cpTaxCategory
- the cp tax categorypublic static void cacheResult(java.util.List<CPTaxCategory> cpTaxCategories)
cpTaxCategories
- the cp tax categoriespublic static CPTaxCategory create(long CPTaxCategoryId)
CPTaxCategoryId
- the primary key for the new cp tax categorypublic static CPTaxCategory remove(long CPTaxCategoryId) throws NoSuchCPTaxCategoryException
CPTaxCategoryId
- the primary key of the cp tax categoryNoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be foundpublic static CPTaxCategory updateImpl(CPTaxCategory cpTaxCategory)
public static CPTaxCategory findByPrimaryKey(long CPTaxCategoryId) throws NoSuchCPTaxCategoryException
NoSuchCPTaxCategoryException
if it could not be found.CPTaxCategoryId
- the primary key of the cp tax categoryNoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be foundpublic static CPTaxCategory fetchByPrimaryKey(long CPTaxCategoryId)
null
if it could not be found.CPTaxCategoryId
- the primary key of the cp tax categorynull
if a cp tax category with the primary key could not be foundpublic static java.util.List<CPTaxCategory> findAll()
public static java.util.List<CPTaxCategory> findAll(int start, int end)
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
.
start
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)public static java.util.List<CPTaxCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator)
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
.
start
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPTaxCategory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator, boolean useFinderCache)
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
.
start
- the lower bound of the range of cp tax categoriesend
- 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 cachepublic static void removeAll()
public static int countAll()
public static CPTaxCategoryPersistence getPersistence()
public static void setPersistence(CPTaxCategoryPersistence persistence)