Interface CommerceTaxFixedRatePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceTaxFixedRate>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceTaxFixedRate commerceTaxFixedRate) Caches the commerce tax fixed rate in the entity cache if it is enabled.void
cacheResult
(List<CommerceTaxFixedRate> commerceTaxFixedRates) Caches the commerce tax fixed rates in the entity cache if it is enabled.int
countAll()
Returns the number of commerce tax fixed rates.int
countByC_C
(long CPTaxCategoryId, long commerceTaxMethodId) Returns the number of commerce tax fixed rates where CPTaxCategoryId = ? and commerceTaxMethodId = ?.int
countByCommerceTaxMethodId
(long commerceTaxMethodId) Returns the number of commerce tax fixed rates where commerceTaxMethodId = ?.int
countByCPTaxCategoryId
(long CPTaxCategoryId) Returns the number of commerce tax fixed rates where CPTaxCategoryId = ?.create
(long commerceTaxFixedRateId) Creates a new commerce tax fixed rate with the primary key.fetchByC_C
(long CPTaxCategoryId, long commerceTaxMethodId) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnull
if it could not be found.fetchByC_C
(long CPTaxCategoryId, long commerceTaxMethodId, boolean useFinderCache) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCommerceTaxMethodId_First
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.fetchByCommerceTaxMethodId_Last
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.fetchByCPTaxCategoryId_First
(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.fetchByCPTaxCategoryId_Last
(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.fetchByPrimaryKey
(long commerceTaxFixedRateId) Returns the commerce tax fixed rate with the primary key or returnsnull
if it could not be found.findAll()
Returns all the commerce tax fixed rates.findAll
(int start, int end) Returns a range of all the commerce tax fixed rates.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns an ordered range of all the commerce tax fixed rates.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax fixed rates.findByC_C
(long CPTaxCategoryId, long commerceTaxMethodId) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or throws aNoSuchTaxFixedRateException
if it could not be found.findByCommerceTaxMethodId
(long commerceTaxMethodId) Returns all the commerce tax fixed rates where commerceTaxMethodId = ?.findByCommerceTaxMethodId
(long commerceTaxMethodId, int start, int end) Returns a range of all the commerce tax fixed rates where commerceTaxMethodId = ?.findByCommerceTaxMethodId
(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns an ordered range of all the commerce tax fixed rates where commerceTaxMethodId = ?.findByCommerceTaxMethodId
(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax fixed rates where commerceTaxMethodId = ?.findByCommerceTaxMethodId_First
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.findByCommerceTaxMethodId_Last
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.findByCommerceTaxMethodId_PrevAndNext
(long commerceTaxFixedRateId, long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the commerce tax fixed rates before and after the current commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.findByCPTaxCategoryId
(long CPTaxCategoryId) Returns all the commerce tax fixed rates where CPTaxCategoryId = ?.findByCPTaxCategoryId
(long CPTaxCategoryId, int start, int end) Returns a range of all the commerce tax fixed rates where CPTaxCategoryId = ?.findByCPTaxCategoryId
(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns an ordered range of all the commerce tax fixed rates where CPTaxCategoryId = ?.findByCPTaxCategoryId
(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax fixed rates where CPTaxCategoryId = ?.findByCPTaxCategoryId_First
(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.findByCPTaxCategoryId_Last
(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.findByCPTaxCategoryId_PrevAndNext
(long commerceTaxFixedRateId, long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the commerce tax fixed rates before and after the current commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.findByPrimaryKey
(long commerceTaxFixedRateId) Returns the commerce tax fixed rate with the primary key or throws aNoSuchTaxFixedRateException
if it could not be found.remove
(long commerceTaxFixedRateId) Removes the commerce tax fixed rate with the primary key from the database.void
Removes all the commerce tax fixed rates from the database.removeByC_C
(long CPTaxCategoryId, long commerceTaxMethodId) Removes the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? from the database.void
removeByCommerceTaxMethodId
(long commerceTaxMethodId) Removes all the commerce tax fixed rates where commerceTaxMethodId = ? from the database.void
removeByCPTaxCategoryId
(long CPTaxCategoryId) Removes all the commerce tax fixed rates where CPTaxCategoryId = ? from the database.updateImpl
(CommerceTaxFixedRate commerceTaxFixedRate) 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
-
Method Details
-
findByCPTaxCategoryId
Returns all the commerce tax fixed rates where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category ID- Returns:
- the matching commerce tax fixed rates
-
findByCPTaxCategoryId
Returns a range of all the commerce tax fixed rates where CPTaxCategoryId = ?.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
CPTaxCategoryId
- the cp tax category IDstart
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)- Returns:
- the range of matching commerce tax fixed rates
-
findByCPTaxCategoryId
List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns an ordered range of all the commerce tax fixed rates where CPTaxCategoryId = ?.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
CPTaxCategoryId
- the cp tax category IDstart
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tax fixed rates
-
findByCPTaxCategoryId
List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax fixed rates where CPTaxCategoryId = ?.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
CPTaxCategoryId
- the cp tax category IDstart
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce tax fixed rates
-
findByCPTaxCategoryId_First
CommerceTaxFixedRate findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be found
-
fetchByCPTaxCategoryId_First
CommerceTaxFixedRate fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax fixed rate, or
null
if a matching commerce tax fixed rate could not be found
-
findByCPTaxCategoryId_Last
CommerceTaxFixedRate findByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be found
-
fetchByCPTaxCategoryId_Last
CommerceTaxFixedRate fetchByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax fixed rate, or
null
if a matching commerce tax fixed rate could not be found
-
findByCPTaxCategoryId_PrevAndNext
CommerceTaxFixedRate[] findByCPTaxCategoryId_PrevAndNext(long commerceTaxFixedRateId, long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException Returns the commerce tax fixed rates before and after the current commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.- Parameters:
commerceTaxFixedRateId
- the primary key of the current commerce tax fixed rateCPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be found
-
removeByCPTaxCategoryId
void removeByCPTaxCategoryId(long CPTaxCategoryId) Removes all the commerce tax fixed rates where CPTaxCategoryId = ? from the database.- Parameters:
CPTaxCategoryId
- the cp tax category ID
-
countByCPTaxCategoryId
int countByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of commerce tax fixed rates where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category ID- Returns:
- the number of matching commerce tax fixed rates
-
findByCommerceTaxMethodId
Returns all the commerce tax fixed rates where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method ID- Returns:
- the matching commerce tax fixed rates
-
findByCommerceTaxMethodId
Returns a range of all the commerce tax fixed rates where commerceTaxMethodId = ?.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
commerceTaxMethodId
- the commerce tax method IDstart
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)- Returns:
- the range of matching commerce tax fixed rates
-
findByCommerceTaxMethodId
List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns an ordered range of all the commerce tax fixed rates where commerceTaxMethodId = ?.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
commerceTaxMethodId
- the commerce tax method IDstart
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tax fixed rates
-
findByCommerceTaxMethodId
List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax fixed rates where commerceTaxMethodId = ?.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
commerceTaxMethodId
- the commerce tax method IDstart
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce tax fixed rates
-
findByCommerceTaxMethodId_First
CommerceTaxFixedRate findByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException Returns the first commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be found
-
fetchByCommerceTaxMethodId_First
CommerceTaxFixedRate fetchByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax fixed rate, or
null
if a matching commerce tax fixed rate could not be found
-
findByCommerceTaxMethodId_Last
CommerceTaxFixedRate findByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException Returns the last commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be found
-
fetchByCommerceTaxMethodId_Last
CommerceTaxFixedRate fetchByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax fixed rate, or
null
if a matching commerce tax fixed rate could not be found
-
findByCommerceTaxMethodId_PrevAndNext
CommerceTaxFixedRate[] findByCommerceTaxMethodId_PrevAndNext(long commerceTaxFixedRateId, long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException Returns the commerce tax fixed rates before and after the current commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxFixedRateId
- the primary key of the current commerce tax fixed ratecommerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be found
-
removeByCommerceTaxMethodId
void removeByCommerceTaxMethodId(long commerceTaxMethodId) Removes all the commerce tax fixed rates where commerceTaxMethodId = ? from the database.- Parameters:
commerceTaxMethodId
- the commerce tax method ID
-
countByCommerceTaxMethodId
int countByCommerceTaxMethodId(long commerceTaxMethodId) Returns the number of commerce tax fixed rates where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method ID- Returns:
- the number of matching commerce tax fixed rates
-
findByC_C
CommerceTaxFixedRate findByC_C(long CPTaxCategoryId, long commerceTaxMethodId) throws NoSuchTaxFixedRateException Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or throws aNoSuchTaxFixedRateException
if it could not be found.- Parameters:
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method ID- Returns:
- the matching commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be found
-
fetchByC_C
Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method ID- Returns:
- the matching commerce tax fixed rate, or
null
if a matching commerce tax fixed rate could not be found
-
fetchByC_C
CommerceTaxFixedRate fetchByC_C(long CPTaxCategoryId, long commerceTaxMethodId, boolean useFinderCache) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce tax fixed rate, or
null
if a matching commerce tax fixed rate could not be found
-
removeByC_C
CommerceTaxFixedRate removeByC_C(long CPTaxCategoryId, long commerceTaxMethodId) throws NoSuchTaxFixedRateException Removes the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? from the database.- Parameters:
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method ID- Returns:
- the commerce tax fixed rate that was removed
- Throws:
NoSuchTaxFixedRateException
-
countByC_C
int countByC_C(long CPTaxCategoryId, long commerceTaxMethodId) Returns the number of commerce tax fixed rates where CPTaxCategoryId = ? and commerceTaxMethodId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method ID- Returns:
- the number of matching commerce tax fixed rates
-
cacheResult
Caches the commerce tax fixed rate in the entity cache if it is enabled.- Parameters:
commerceTaxFixedRate
- the commerce tax fixed rate
-
cacheResult
Caches the commerce tax fixed rates in the entity cache if it is enabled.- Parameters:
commerceTaxFixedRates
- the commerce tax fixed rates
-
create
Creates a new commerce tax fixed rate with the primary key. Does not add the commerce tax fixed rate to the database.- Parameters:
commerceTaxFixedRateId
- the primary key for the new commerce tax fixed rate- Returns:
- the new commerce tax fixed rate
-
remove
Removes the commerce tax fixed rate with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceTaxFixedRateId
- the primary key of the commerce tax fixed rate- Returns:
- the commerce tax fixed rate that was removed
- Throws:
NoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
CommerceTaxFixedRate findByPrimaryKey(long commerceTaxFixedRateId) throws NoSuchTaxFixedRateException Returns the commerce tax fixed rate with the primary key or throws aNoSuchTaxFixedRateException
if it could not be found.- Parameters:
commerceTaxFixedRateId
- the primary key of the commerce tax fixed rate- Returns:
- the commerce tax fixed rate
- Throws:
NoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce tax fixed rate with the primary key or returnsnull
if it could not be found.- Parameters:
commerceTaxFixedRateId
- the primary key of the commerce tax fixed rate- Returns:
- the commerce tax fixed rate, or
null
if a commerce tax fixed rate with the primary key could not be found
-
findAll
List<CommerceTaxFixedRate> findAll()Returns all the commerce tax fixed rates.- Returns:
- the commerce tax fixed rates
-
findAll
Returns a range of all the commerce tax fixed rates.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)- Returns:
- the range of commerce tax fixed rates
-
findAll
List<CommerceTaxFixedRate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns an ordered range of all the commerce tax fixed rates.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce tax fixed rates
-
findAll
List<CommerceTaxFixedRate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax fixed rates.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 fromCommerceTaxFixedRateModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tax fixed ratesend
- the upper bound of the range of commerce tax fixed rates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce tax fixed rates
-
removeAll
void removeAll()Removes all the commerce tax fixed rates from the database. -
countAll
int countAll()Returns the number of commerce tax fixed rates.- Returns:
- the number of commerce tax fixed rates
-