public class CommerceTaxFixedRateUtil
extends java.lang.Object
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
CommerceTaxFixedRatePersistence
Constructor and Description |
---|
CommerceTaxFixedRateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceTaxFixedRate commerceTaxFixedRate)
Caches the commerce tax fixed rate in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceTaxFixedRate> commerceTaxFixedRates)
Caches the commerce tax fixed rates in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceTaxFixedRate commerceTaxFixedRate) |
static int |
countAll()
Returns the number of commerce tax fixed rates.
|
static int |
countByC_C(long CPTaxCategoryId,
long commerceTaxMethodId)
Returns the number of commerce tax fixed rates where CPTaxCategoryId = ? and commerceTaxMethodId = ?.
|
static int |
countByCommerceTaxMethodId(long commerceTaxMethodId)
Returns the number of commerce tax fixed rates where commerceTaxMethodId = ?.
|
static int |
countByCPTaxCategoryId(long CPTaxCategoryId)
Returns the number of commerce tax fixed rates where CPTaxCategoryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceTaxFixedRate |
create(long commerceTaxFixedRateId)
Creates a new commerce tax fixed rate with the primary key.
|
static CommerceTaxFixedRate |
fetchByC_C(long CPTaxCategoryId,
long commerceTaxMethodId)
Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returns
null if it could not be found. |
static CommerceTaxFixedRate |
fetchByC_C(long CPTaxCategoryId,
long commerceTaxMethodId,
boolean useFinderCache)
Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceTaxFixedRate |
fetchByPrimaryKey(long commerceTaxFixedRateId)
Returns the commerce tax fixed rate with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceTaxFixedRate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceTaxFixedRate> |
findAll()
Returns all the commerce tax fixed rates.
|
static java.util.List<CommerceTaxFixedRate> |
findAll(int start,
int end)
Returns a range of all the commerce tax fixed rates.
|
static java.util.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 java.util.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 CommerceTaxFixedRate |
findByC_C(long CPTaxCategoryId,
long commerceTaxMethodId)
Returns the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? or throws a
NoSuchTaxFixedRateException if it could not be found. |
static CommerceTaxFixedRate |
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 = ?.
|
static CommerceTaxFixedRate |
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 = ?.
|
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 java.util.List<CommerceTaxFixedRate> |
findByCommerceTaxMethodId(long commerceTaxMethodId)
Returns all the commerce tax fixed rates where commerceTaxMethodId = ?.
|
static java.util.List<CommerceTaxFixedRate> |
findByCommerceTaxMethodId(long commerceTaxMethodId,
int start,
int end)
Returns a range of all the commerce tax fixed rates where commerceTaxMethodId = ?.
|
static java.util.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 java.util.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 CommerceTaxFixedRate |
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 = ?.
|
static CommerceTaxFixedRate |
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 = ?.
|
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 java.util.List<CommerceTaxFixedRate> |
findByCPTaxCategoryId(long CPTaxCategoryId)
Returns all the commerce tax fixed rates where CPTaxCategoryId = ?.
|
static java.util.List<CommerceTaxFixedRate> |
findByCPTaxCategoryId(long CPTaxCategoryId,
int start,
int end)
Returns a range of all the commerce tax fixed rates where CPTaxCategoryId = ?.
|
static java.util.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 java.util.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 CommerceTaxFixedRate |
findByPrimaryKey(long commerceTaxFixedRateId)
Returns the commerce tax fixed rate with the primary key or throws a
NoSuchTaxFixedRateException if it could not be found. |
static java.util.List<CommerceTaxFixedRate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceTaxFixedRate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceTaxFixedRate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) |
static CommerceTaxFixedRatePersistence |
getPersistence() |
static CommerceTaxFixedRate |
remove(long commerceTaxFixedRateId)
Removes the commerce tax fixed rate with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce tax fixed rates from the database.
|
static CommerceTaxFixedRate |
removeByC_C(long CPTaxCategoryId,
long commerceTaxMethodId)
Removes the commerce tax fixed rate where CPTaxCategoryId = ? and commerceTaxMethodId = ? from the database.
|
static void |
removeByCommerceTaxMethodId(long commerceTaxMethodId)
Removes all the commerce tax fixed rates where commerceTaxMethodId = ? from the database.
|
static void |
removeByCPTaxCategoryId(long CPTaxCategoryId)
Removes all the commerce tax fixed rates where CPTaxCategoryId = ? from the database.
|
static void |
setPersistence(CommerceTaxFixedRatePersistence persistence) |
static CommerceTaxFixedRate |
update(CommerceTaxFixedRate commerceTaxFixedRate) |
static CommerceTaxFixedRate |
update(CommerceTaxFixedRate commerceTaxFixedRate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceTaxFixedRate |
updateImpl(CommerceTaxFixedRate commerceTaxFixedRate) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceTaxFixedRate commerceTaxFixedRate)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceTaxFixedRate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceTaxFixedRate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceTaxFixedRate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceTaxFixedRate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceTaxFixedRate update(CommerceTaxFixedRate commerceTaxFixedRate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceTaxFixedRate update(CommerceTaxFixedRate commerceTaxFixedRate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId)
CPTaxCategoryId
- the cp tax category IDpublic static java.util.List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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)public static java.util.List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTaxFixedRate> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTaxFixedRate findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate findByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate fetchByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate[] findByCPTaxCategoryId_PrevAndNext(long commerceTaxFixedRateId, long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException
commerceTaxFixedRateId
- the primary key of the current commerce tax fixed rateCPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be foundpublic static void removeByCPTaxCategoryId(long CPTaxCategoryId)
CPTaxCategoryId
- the cp tax category IDpublic static int countByCPTaxCategoryId(long CPTaxCategoryId)
CPTaxCategoryId
- the cp tax category IDpublic static java.util.List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId)
commerceTaxMethodId
- the commerce tax method IDpublic static java.util.List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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)public static java.util.List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTaxFixedRate> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTaxFixedRate findByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate fetchByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate findByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate fetchByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate[] findByCommerceTaxMethodId_PrevAndNext(long commerceTaxFixedRateId, long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator) throws NoSuchTaxFixedRateException
commerceTaxFixedRateId
- the primary key of the current commerce tax fixed ratecommerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be foundpublic static void removeByCommerceTaxMethodId(long commerceTaxMethodId)
commerceTaxMethodId
- the commerce tax method IDpublic static int countByCommerceTaxMethodId(long commerceTaxMethodId)
commerceTaxMethodId
- the commerce tax method IDpublic static CommerceTaxFixedRate findByC_C(long CPTaxCategoryId, long commerceTaxMethodId) throws NoSuchTaxFixedRateException
NoSuchTaxFixedRateException
if it could not be found.CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method IDNoSuchTaxFixedRateException
- if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate fetchByC_C(long CPTaxCategoryId, long commerceTaxMethodId)
null
if it could not be found. Uses the finder cache.CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method IDnull
if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate fetchByC_C(long CPTaxCategoryId, long commerceTaxMethodId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce tax fixed rate could not be foundpublic static CommerceTaxFixedRate removeByC_C(long CPTaxCategoryId, long commerceTaxMethodId) throws NoSuchTaxFixedRateException
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method IDNoSuchTaxFixedRateException
public static int countByC_C(long CPTaxCategoryId, long commerceTaxMethodId)
CPTaxCategoryId
- the cp tax category IDcommerceTaxMethodId
- the commerce tax method IDpublic static void cacheResult(CommerceTaxFixedRate commerceTaxFixedRate)
commerceTaxFixedRate
- the commerce tax fixed ratepublic static void cacheResult(java.util.List<CommerceTaxFixedRate> commerceTaxFixedRates)
commerceTaxFixedRates
- the commerce tax fixed ratespublic static CommerceTaxFixedRate create(long commerceTaxFixedRateId)
commerceTaxFixedRateId
- the primary key for the new commerce tax fixed ratepublic static CommerceTaxFixedRate remove(long commerceTaxFixedRateId) throws NoSuchTaxFixedRateException
commerceTaxFixedRateId
- the primary key of the commerce tax fixed rateNoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be foundpublic static CommerceTaxFixedRate updateImpl(CommerceTaxFixedRate commerceTaxFixedRate)
public static CommerceTaxFixedRate findByPrimaryKey(long commerceTaxFixedRateId) throws NoSuchTaxFixedRateException
NoSuchTaxFixedRateException
if it could not be found.commerceTaxFixedRateId
- the primary key of the commerce tax fixed rateNoSuchTaxFixedRateException
- if a commerce tax fixed rate with the primary key could not be foundpublic static CommerceTaxFixedRate fetchByPrimaryKey(long commerceTaxFixedRateId)
null
if it could not be found.commerceTaxFixedRateId
- the primary key of the commerce tax fixed ratenull
if a commerce tax fixed rate with the primary key could not be foundpublic static java.util.List<CommerceTaxFixedRate> findAll()
public static java.util.List<CommerceTaxFixedRate> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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)public static java.util.List<CommerceTaxFixedRate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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 (optionally null
)public static java.util.List<CommerceTaxFixedRate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxFixedRate> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTaxFixedRateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceTaxFixedRatePersistence getPersistence()
public static void setPersistence(CommerceTaxFixedRatePersistence persistence)