Interface CPTaxCategoryPersistence
- All Superinterfaces:
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
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CPTaxCategory cpTaxCategory) Caches the cp tax category in the entity cache if it is enabled.void
cacheResult
(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
(String externalReferenceCode, long companyId) Returns the number of cp tax categories where externalReferenceCode = ? and companyId = ?.int
countByUuid
(String uuid) Returns the number of cp tax categories where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of cp tax categories where uuid = ? and companyId = ?.create
(long CPTaxCategoryId) Creates a new cp tax category with the primary key.fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the first cp tax category in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the last cp tax category in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the cp tax category where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp tax category where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long CPTaxCategoryId) Returns the cp tax category with the primary key or returnsnull
if it could not be found.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 = ?.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 = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the first cp tax category in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the last cp tax category in the ordered set where uuid = ?.findAll()
Returns all the cp tax categories.findAll
(int start, int end) Returns a range of all the cp tax categories.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns an ordered range of all the cp tax categories.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.findByCompanyId
(long companyId) Returns all the cp tax categories where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp tax categories where companyId = ?.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 = ?.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 = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the first cp tax category in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the last cp tax category in the ordered set where companyId = ?.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 = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the cp tax category where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPTaxCategoryException
if it could not be found.findByPrimaryKey
(long CPTaxCategoryId) Returns the cp tax category with the primary key or throws aNoSuchCPTaxCategoryException
if it could not be found.findByUuid
(String uuid) Returns all the cp tax categories where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the cp tax categories where uuid = ?.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 = ?.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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the cp tax categories where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp tax categories where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_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 = ?.findByUuid_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 = ?.findByUuid_C_PrevAndNext
(long CPTaxCategoryId, 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 = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the first cp tax category in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPTaxCategory> orderByComparator) Returns the last cp tax category in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long CPTaxCategoryId, 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 = ?.remove
(long CPTaxCategoryId) Removes the cp tax category with the primary key from the database.void
Removes all the cp tax categories from the database.void
removeByCompanyId
(long companyId) Removes all the cp tax categories where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the cp tax category where externalReferenceCode = ? and companyId = ? from the database.void
removeByUuid
(String uuid) Removes all the cp tax categories where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the cp tax categories where uuid = ? and companyId = ? from the database.updateImpl
(CPTaxCategory cpTaxCategory) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
Returns all the cp tax categories where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp tax categories
-
findByUuid
Returns a range of all the cp tax categories where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp tax categories
-
findByUuid
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp tax categories
-
findByUuid
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp tax categories
-
findByUuid_First
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByUuid_First
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp tax category, or
null
if a matching cp tax category could not be found
-
findByUuid_Last
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByUuid_Last
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp tax category, or
null
if a matching cp tax category could not be found
-
findByUuid_PrevAndNext
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 categoryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be found
-
removeByUuid
Removes all the cp tax categories where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp tax categories where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp tax categories
-
findByUuid_C
Returns all the cp tax categories where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp tax categories
-
findByUuid_C
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp tax categories
-
findByUuid_C
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp tax categories
-
findByUuid_C
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp tax categories
-
findByUuid_C_First
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByUuid_C_First
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp tax category, or
null
if a matching cp tax category could not be found
-
findByUuid_C_Last
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByUuid_C_Last
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp tax category, or
null
if a matching cp tax category could not be found
-
findByUuid_C_PrevAndNext
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 categoryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be found
-
removeByUuid_C
Removes all the cp tax categories where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp tax categories where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp tax categories
-
findByCompanyId
Returns all the cp tax categories where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp tax categories
-
findByCompanyId
Returns a range of all the cp tax categories where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp tax categories
-
findByCompanyId
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp tax categories
-
findByCompanyId
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp tax categories
-
findByCompanyId_First
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByCompanyId_First
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp tax category, or
null
if a matching cp tax category could not be found
-
findByCompanyId_Last
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByCompanyId_Last
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp tax category, or
null
if a matching cp tax category could not be found
-
findByCompanyId_PrevAndNext
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 categorycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a cp tax category with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the cp tax categories where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
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
CPTaxCategory findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPTaxCategoryException Returns the cp tax category where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPTaxCategoryException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp tax category
- Throws:
NoSuchCPTaxCategoryException
- if a matching cp tax category could not be found
-
fetchByERC_C
Returns the cp tax category where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp tax category, or
null
if a matching cp tax category could not be found
-
fetchByERC_C
Returns the cp tax category where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- 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
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 codecompanyId
- the company ID- Returns:
- the cp tax category that was removed
- Throws:
NoSuchCPTaxCategoryException
-
countByERC_C
Returns the number of cp tax categories where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching cp tax categories
-
cacheResult
Caches the cp tax category in the entity cache if it is enabled.- Parameters:
cpTaxCategory
- the cp tax category
-
cacheResult
Caches the cp tax categories in the entity cache if it is enabled.- Parameters:
cpTaxCategories
- the cp tax categories
-
create
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
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
-
updateImpl
-
findByPrimaryKey
Returns the cp tax category with the primary key or throws aNoSuchCPTaxCategoryException
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
-
fetchByPrimaryKey
Returns the cp tax category with the primary key or returnsnull
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
List<CPTaxCategory> findAll()Returns all the cp tax categories.- Returns:
- the cp tax categories
-
findAll
Returns a range of all the cp tax categories.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
start
- the lower bound of the range of cp tax categoriesend
- the upper bound of the range of cp tax categories (not inclusive)- Returns:
- the range of cp tax categories
-
findAll
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of cp tax categories
-
findAll
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPTaxCategoryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp tax categories
-
removeAll
void removeAll()Removes all the cp tax categories from the database. -
countAll
int countAll()Returns the number of cp tax categories.- Returns:
- the number of cp tax categories
-