@ProviderType public interface CPTaxCategoryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPTaxCategory>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPTaxCategory>
Caching information and settings can be found in portal.properties
CPTaxCategoryUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CPTaxCategory cpTaxCategory)
Caches the cp tax category in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CPTaxCategory> cpTaxCategories)
Caches the cp tax categories in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of cp tax categories.
|
int |
countByCompanyId(long companyId)
Returns the number of cp tax categories where companyId = ?.
|
int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of cp tax categories where externalReferenceCode = ? and companyId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp tax categories where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of cp tax categories where uuid = ?.
|
CPTaxCategory |
create(long CPTaxCategoryId)
Creates a new cp tax category with the primary key.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
CPTaxCategory |
fetchByPrimaryKey(long CPTaxCategoryId)
Returns the cp tax category with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPTaxCategory> |
findAll()
Returns all the cp tax categories.
|
java.util.List<CPTaxCategory> |
findAll(int start,
int end)
Returns a range of all the cp tax categories.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPTaxCategory> |
findByCompanyId(long companyId)
Returns all the cp tax categories where companyId = ?.
|
java.util.List<CPTaxCategory> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp tax categories where companyId = ?.
|
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 = ?.
|
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 = ?.
|
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. |
CPTaxCategory |
findByPrimaryKey(long CPTaxCategoryId)
Returns the cp tax category with the primary key or throws a
NoSuchCPTaxCategoryException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPTaxCategory> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp tax categories where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPTaxCategory> |
findByUuid(java.lang.String uuid)
Returns all the cp tax categories where uuid = ?.
|
java.util.List<CPTaxCategory> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp tax categories where uuid = ?.
|
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 = ?.
|
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 = ?.
|
CPTaxCategory |
remove(long CPTaxCategoryId)
Removes the cp tax category with the primary key from the database.
|
void |
removeAll()
Removes all the cp tax categories from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the cp tax categories where companyId = ? from the database.
|
CPTaxCategory |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the cp tax category where externalReferenceCode = ? and companyId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp tax categories where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the cp tax categories where uuid = ? from the database.
|
CPTaxCategory |
updateImpl(CPTaxCategory cpTaxCategory) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CPTaxCategory> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPTaxCategory> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPTaxCategory> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory[] 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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory 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 foundCPTaxCategory removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchCPTaxCategoryException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchCPTaxCategoryException
int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDvoid cacheResult(CPTaxCategory cpTaxCategory)
cpTaxCategory
- the cp tax categoryvoid cacheResult(java.util.List<CPTaxCategory> cpTaxCategories)
cpTaxCategories
- the cp tax categoriesCPTaxCategory create(long CPTaxCategoryId)
CPTaxCategoryId
- the primary key for the new cp tax categoryCPTaxCategory 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 foundCPTaxCategory updateImpl(CPTaxCategory cpTaxCategory)
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 foundCPTaxCategory 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 foundjava.util.List<CPTaxCategory> findAll()
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)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
)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 cachevoid removeAll()
int countAll()