Class CommerceTaxFixedRateUtil
com.liferay.commerce.tax.engine.fixed.service.persistence.impl.CommerceTaxFixedRatePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CommerceTaxFixedRate commerceTaxFixedRate) Caches the commerce tax fixed rate in the entity cache if it is enabled.static voidcacheResult(List<CommerceTaxFixedRate> commerceTaxFixedRates) Caches the commerce tax fixed rates in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceTaxFixedRate commerceTaxFixedRate) static intcountAll()Returns the number of commerce tax fixed rates.static intcountByC_C(long CPTaxCategoryId, long commerceTaxMethodId) Returns the number of commerce tax fixed rates where CPTaxCategoryId = ? and commerceTaxMethodId = ?.static intcountByCommerceTaxMethodId(long commerceTaxMethodId) Returns the number of commerce tax fixed rates where commerceTaxMethodId = ?.static intcountByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of commerce tax fixed rates where CPTaxCategoryId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceTaxFixedRatecreate(long commerceTaxFixedRateId) Creates a new commerce tax fixed rate with the primary key.static CommerceTaxFixedRatefetchByC_C(long CPTaxCategoryId, long commerceTaxMethodId) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnullif it could not be found.static CommerceTaxFixedRatefetchByC_C(long CPTaxCategoryId, long commerceTaxMethodId, boolean useFinderCache) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceTaxFixedRatefetchByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.static CommerceTaxFixedRatefetchByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.static CommerceTaxFixedRatefetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.static CommerceTaxFixedRatefetchByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.static CommerceTaxFixedRatefetchByPrimaryKey(long commerceTaxFixedRateId) Returns the commerce tax fixed rate with the primary key or returnsnullif it could not be found.static Map<Serializable,CommerceTaxFixedRate> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CommerceTaxFixedRate>findAll()Returns all the commerce tax fixed rates.static List<CommerceTaxFixedRate>findAll(int start, int end) Returns a range of all the commerce tax fixed rates.static 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.static 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.static CommerceTaxFixedRatefindByC_C(long CPTaxCategoryId, long commerceTaxMethodId) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or throws aNoSuchTaxFixedRateExceptionif it could not be found.static List<CommerceTaxFixedRate>findByCommerceTaxMethodId(long commerceTaxMethodId) Returns all the commerce tax fixed rates where commerceTaxMethodId = ?.static List<CommerceTaxFixedRate>findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end) Returns a range of all the commerce tax fixed rates where commerceTaxMethodId = ?.static 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 = ?.static 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 = ?.static CommerceTaxFixedRatefindByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.static CommerceTaxFixedRatefindByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where commerceTaxMethodId = ?.static CommerceTaxFixedRate[]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 = ?.static List<CommerceTaxFixedRate>findByCPTaxCategoryId(long CPTaxCategoryId) Returns all the commerce tax fixed rates where CPTaxCategoryId = ?.static List<CommerceTaxFixedRate>findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end) Returns a range of all the commerce tax fixed rates where CPTaxCategoryId = ?.static 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 = ?.static 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 = ?.static CommerceTaxFixedRatefindByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.static CommerceTaxFixedRatefindByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = ?.static CommerceTaxFixedRate[]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 = ?.static CommerceTaxFixedRatefindByPrimaryKey(long commerceTaxFixedRateId) Returns the commerce tax fixed rate with the primary key or throws aNoSuchTaxFixedRateExceptionif it could not be found.static List<CommerceTaxFixedRate>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceTaxFixedRate>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceTaxFixedRate>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) static CommerceTaxFixedRateremove(long commerceTaxFixedRateId) Removes the commerce tax fixed rate with the primary key from the database.static voidRemoves all the commerce tax fixed rates from the database.static CommerceTaxFixedRateremoveByC_C(long CPTaxCategoryId, long commerceTaxMethodId) Removes the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? from the database.static voidremoveByCommerceTaxMethodId(long commerceTaxMethodId) Removes all the commerce tax fixed rates where commerceTaxMethodId = ? from the database.static voidremoveByCPTaxCategoryId(long CPTaxCategoryId) Removes all the commerce tax fixed rates where CPTaxCategoryId = ? from the database.static voidsetPersistence(CommerceTaxFixedRatePersistence persistence) static CommerceTaxFixedRateupdate(CommerceTaxFixedRate commerceTaxFixedRate) static CommerceTaxFixedRateupdate(CommerceTaxFixedRate commerceTaxFixedRate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceTaxFixedRateupdateImpl(CommerceTaxFixedRate commerceTaxFixedRate)
-
Constructor Details
-
CommerceTaxFixedRateUtil
public CommerceTaxFixedRateUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceTaxFixedRate> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceTaxFixedRate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceTaxFixedRate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceTaxFixedRate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceTaxFixedRate update(CommerceTaxFixedRate commerceTaxFixedRate, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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
public static List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end) Returns a range of all the commerce tax fixed rates where CPTaxCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 foundNoSuchTaxFixedRateException
-
fetchByCPTaxCategoryId_First
public static 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
nullif a matching commerce tax fixed rate could not be found
-
findByCPTaxCategoryId_Last
public static 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 foundNoSuchTaxFixedRateException
-
fetchByCPTaxCategoryId_Last
public static 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
nullif a matching commerce tax fixed rate could not be found
-
findByCPTaxCategoryId_PrevAndNext
public static 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 foundNoSuchTaxFixedRateException
-
removeByCPTaxCategoryId
public static void removeByCPTaxCategoryId(long CPTaxCategoryId) Removes all the commerce tax fixed rates where CPTaxCategoryId = ? from the database.- Parameters:
CPTaxCategoryId- the cp tax category ID
-
countByCPTaxCategoryId
public static 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
public static List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end) Returns a range of all the commerce tax fixed rates where commerceTaxMethodId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 foundNoSuchTaxFixedRateException
-
fetchByCommerceTaxMethodId_First
public static 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
nullif a matching commerce tax fixed rate could not be found
-
findByCommerceTaxMethodId_Last
public static 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 foundNoSuchTaxFixedRateException
-
fetchByCommerceTaxMethodId_Last
public static 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
nullif a matching commerce tax fixed rate could not be found
-
findByCommerceTaxMethodId_PrevAndNext
public static 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 foundNoSuchTaxFixedRateException
-
removeByCommerceTaxMethodId
public static void removeByCommerceTaxMethodId(long commerceTaxMethodId) Removes all the commerce tax fixed rates where commerceTaxMethodId = ? from the database.- Parameters:
commerceTaxMethodId- the commerce tax method ID
-
countByCommerceTaxMethodId
public static 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
public static CommerceTaxFixedRate findByC_C(long CPTaxCategoryId, long commerceTaxMethodId) throws NoSuchTaxFixedRateException Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or throws aNoSuchTaxFixedRateExceptionif 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 foundNoSuchTaxFixedRateException
-
fetchByC_C
Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnullif 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
nullif a matching commerce tax fixed rate could not be found
-
fetchByC_C
public static CommerceTaxFixedRate fetchByC_C(long CPTaxCategoryId, long commerceTaxMethodId, boolean useFinderCache) Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returnsnullif 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
nullif a matching commerce tax fixed rate could not be found
-
removeByC_C
public static 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
public static 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
public static CommerceTaxFixedRate remove(long commerceTaxFixedRateId) throws NoSuchTaxFixedRateException 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 foundNoSuchTaxFixedRateException
-
updateImpl
-
findByPrimaryKey
public static CommerceTaxFixedRate findByPrimaryKey(long commerceTaxFixedRateId) throws NoSuchTaxFixedRateException Returns the commerce tax fixed rate with the primary key or throws aNoSuchTaxFixedRateExceptionif 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 foundNoSuchTaxFixedRateException
-
fetchByPrimaryKey
Returns the commerce tax fixed rate with the primary key or returnsnullif it could not be found.- Parameters:
commerceTaxFixedRateId- the primary key of the commerce tax fixed rate- Returns:
- the commerce tax fixed rate, or
nullif a commerce tax fixed rate with the primary key could not be found
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
public static void removeAll()Removes all the commerce tax fixed rates from the database. -
countAll
public static int countAll()Returns the number of commerce tax fixed rates.- Returns:
- the number of commerce tax fixed rates
-
getPersistence
-
setPersistence
-