Class CommerceTaxMethodUtil
com.liferay.commerce.tax.service.persistence.impl.CommerceTaxMethodPersistenceImpl 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(CommerceTaxMethod commerceTaxMethod) Caches the commerce tax method in the entity cache if it is enabled.static voidcacheResult(List<CommerceTaxMethod> commerceTaxMethods) Caches the commerce tax methods in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceTaxMethod commerceTaxMethod) static intcountAll()Returns the number of commerce tax methods.static intcountByG_A(long groupId, boolean active) Returns the number of commerce tax methods where groupId = ? and active = ?.static intcountByG_E(long groupId, String engineKey) Returns the number of commerce tax methods where groupId = ? and engineKey = ?.static intcountByGroupId(long groupId) Returns the number of commerce tax methods where groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceTaxMethodcreate(long commerceTaxMethodId) Creates a new commerce tax method with the primary key.static CommerceTaxMethodfetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the first commerce tax method in the ordered set where groupId = ? and active = ?.static CommerceTaxMethodfetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the last commerce tax method in the ordered set where groupId = ? and active = ?.static CommerceTaxMethodfetchByG_E(long groupId, String engineKey) Returns the commerce tax method where groupId = ? and engineKey = ? or returnsnullif it could not be found.static CommerceTaxMethodfetchByG_E(long groupId, String engineKey, boolean useFinderCache) Returns the commerce tax method where groupId = ? and engineKey = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceTaxMethodfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the first commerce tax method in the ordered set where groupId = ?.static CommerceTaxMethodfetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the last commerce tax method in the ordered set where groupId = ?.static CommerceTaxMethodfetchByPrimaryKey(long commerceTaxMethodId) Returns the commerce tax method with the primary key or returnsnullif it could not be found.static Map<Serializable, CommerceTaxMethod> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CommerceTaxMethod> findAll()Returns all the commerce tax methods.static List<CommerceTaxMethod> findAll(int start, int end) Returns a range of all the commerce tax methods.static List<CommerceTaxMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns an ordered range of all the commerce tax methods.static List<CommerceTaxMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax methods.static List<CommerceTaxMethod> findByG_A(long groupId, boolean active) Returns all the commerce tax methods where groupId = ? and active = ?.static List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce tax methods where groupId = ? and active = ?.static List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns an ordered range of all the commerce tax methods where groupId = ? and active = ?.static List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax methods where groupId = ? and active = ?.static CommerceTaxMethodfindByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the first commerce tax method in the ordered set where groupId = ? and active = ?.static CommerceTaxMethodfindByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the last commerce tax method in the ordered set where groupId = ? and active = ?.static CommerceTaxMethod[]findByG_A_PrevAndNext(long commerceTaxMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = ? and active = ?.static CommerceTaxMethodReturns the commerce tax method where groupId = ? and engineKey = ? or throws aNoSuchTaxMethodExceptionif it could not be found.static List<CommerceTaxMethod> findByGroupId(long groupId) Returns all the commerce tax methods where groupId = ?.static List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end) Returns a range of all the commerce tax methods where groupId = ?.static List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns an ordered range of all the commerce tax methods where groupId = ?.static List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax methods where groupId = ?.static CommerceTaxMethodfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the first commerce tax method in the ordered set where groupId = ?.static CommerceTaxMethodfindByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the last commerce tax method in the ordered set where groupId = ?.static CommerceTaxMethod[]findByGroupId_PrevAndNext(long commerceTaxMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = ?.static CommerceTaxMethodfindByPrimaryKey(long commerceTaxMethodId) Returns the commerce tax method with the primary key or throws aNoSuchTaxMethodExceptionif it could not be found.static List<CommerceTaxMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceTaxMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceTaxMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) static CommerceTaxMethodPersistencestatic CommerceTaxMethodremove(long commerceTaxMethodId) Removes the commerce tax method with the primary key from the database.static voidRemoves all the commerce tax methods from the database.static voidremoveByG_A(long groupId, boolean active) Removes all the commerce tax methods where groupId = ? and active = ? from the database.static CommerceTaxMethodremoveByG_E(long groupId, String engineKey) Removes the commerce tax method where groupId = ? and engineKey = ? from the database.static voidremoveByGroupId(long groupId) Removes all the commerce tax methods where groupId = ? from the database.static voidsetPersistence(CommerceTaxMethodPersistence persistence) static CommerceTaxMethodupdate(CommerceTaxMethod commerceTaxMethod) static CommerceTaxMethodupdate(CommerceTaxMethod commerceTaxMethod, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceTaxMethodupdateImpl(CommerceTaxMethod commerceTaxMethod)
-
Constructor Details
-
CommerceTaxMethodUtil
public CommerceTaxMethodUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<CommerceTaxMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CommerceTaxMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CommerceTaxMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CommerceTaxMethod update(CommerceTaxMethod commerceTaxMethod, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByGroupId
Returns all the commerce tax methods where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching commerce tax methods
-
findByGroupId
Returns a range of all the commerce tax methods where groupId = ?.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 fromCommerceTaxMethodModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (not inclusive)- Returns:
- the range of matching commerce tax methods
-
findByGroupId
public static List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns an ordered range of all the commerce tax methods where groupId = ?.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 fromCommerceTaxMethodModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce tax methods
-
findByGroupId
public static List<CommerceTaxMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax methods where groupId = ?.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 fromCommerceTaxMethodModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (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 methods
-
findByGroupId_First
public static CommerceTaxMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException Returns the first commerce tax method in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce tax method
-
fetchByGroupId_First
public static CommerceTaxMethod fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the first commerce tax method in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce tax method, or
nullif a matching commerce tax method could not be found
-
findByGroupId_Last
public static CommerceTaxMethod findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException Returns the last commerce tax method in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce tax method
-
fetchByGroupId_Last
public static CommerceTaxMethod fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the last commerce tax method in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce tax method, or
nullif a matching commerce tax method could not be found
-
findByGroupId_PrevAndNext
public static CommerceTaxMethod[] findByGroupId_PrevAndNext(long commerceTaxMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = ?.- Parameters:
commerceTaxMethodId- the primary key of the current commerce tax methodgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce tax method
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the commerce tax methods where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of commerce tax methods where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching commerce tax methods
-
findByG_E
public static CommerceTaxMethod findByG_E(long groupId, String engineKey) throws NoSuchTaxMethodException Returns the commerce tax method where groupId = ? and engineKey = ? or throws aNoSuchTaxMethodExceptionif it could not be found.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the matching commerce tax method
-
fetchByG_E
Returns the commerce tax method where groupId = ? and engineKey = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the matching commerce tax method, or
nullif a matching commerce tax method could not be found
-
fetchByG_E
Returns the commerce tax method where groupId = ? and engineKey = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDengineKey- the engine keyuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce tax method, or
nullif a matching commerce tax method could not be found
-
removeByG_E
public static CommerceTaxMethod removeByG_E(long groupId, String engineKey) throws NoSuchTaxMethodException Removes the commerce tax method where groupId = ? and engineKey = ? from the database.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the commerce tax method that was removed
- Throws:
NoSuchTaxMethodException
-
countByG_E
Returns the number of commerce tax methods where groupId = ? and engineKey = ?.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the number of matching commerce tax methods
-
findByG_A
Returns all the commerce tax methods where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the matching commerce tax methods
-
findByG_A
Returns a range of all the commerce tax methods where groupId = ? and active = ?.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 fromCommerceTaxMethodModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (not inclusive)- Returns:
- the range of matching commerce tax methods
-
findByG_A
public static List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns an ordered range of all the commerce tax methods where groupId = ? and active = ?.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 fromCommerceTaxMethodModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce tax methods
-
findByG_A
public static List<CommerceTaxMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax methods where groupId = ? and active = ?.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 fromCommerceTaxMethodModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (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 methods
-
findByG_A_First
public static CommerceTaxMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException Returns the first commerce tax method in the ordered set where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce tax method
-
fetchByG_A_First
public static CommerceTaxMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the first commerce tax method in the ordered set where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce tax method, or
nullif a matching commerce tax method could not be found
-
findByG_A_Last
public static CommerceTaxMethod findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException Returns the last commerce tax method in the ordered set where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce tax method
-
fetchByG_A_Last
public static CommerceTaxMethod fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns the last commerce tax method in the ordered set where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching commerce tax method, or
nullif a matching commerce tax method could not be found
-
findByG_A_PrevAndNext
public static CommerceTaxMethod[] findByG_A_PrevAndNext(long commerceTaxMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) throws NoSuchTaxMethodException Returns the commerce tax methods before and after the current commerce tax method in the ordered set where groupId = ? and active = ?.- Parameters:
commerceTaxMethodId- the primary key of the current commerce tax methodgroupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce tax method
-
removeByG_A
public static void removeByG_A(long groupId, boolean active) Removes all the commerce tax methods where groupId = ? and active = ? from the database.- Parameters:
groupId- the group IDactive- the active
-
countByG_A
public static int countByG_A(long groupId, boolean active) Returns the number of commerce tax methods where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the number of matching commerce tax methods
-
cacheResult
Caches the commerce tax method in the entity cache if it is enabled.- Parameters:
commerceTaxMethod- the commerce tax method
-
cacheResult
Caches the commerce tax methods in the entity cache if it is enabled.- Parameters:
commerceTaxMethods- the commerce tax methods
-
create
Creates a new commerce tax method with the primary key. Does not add the commerce tax method to the database.- Parameters:
commerceTaxMethodId- the primary key for the new commerce tax method- Returns:
- the new commerce tax method
-
remove
Removes the commerce tax method with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceTaxMethodId- the primary key of the commerce tax method- Returns:
- the commerce tax method that was removed
-
updateImpl
-
findByPrimaryKey
public static CommerceTaxMethod findByPrimaryKey(long commerceTaxMethodId) throws NoSuchTaxMethodException Returns the commerce tax method with the primary key or throws aNoSuchTaxMethodExceptionif it could not be found.- Parameters:
commerceTaxMethodId- the primary key of the commerce tax method- Returns:
- the commerce tax method
-
fetchByPrimaryKey
Returns the commerce tax method with the primary key or returnsnullif it could not be found.- Parameters:
commerceTaxMethodId- the primary key of the commerce tax method- Returns:
- the commerce tax method, or
nullif a commerce tax method with the primary key could not be found
-
findAll
Returns all the commerce tax methods.- Returns:
- the commerce tax methods
-
findAll
Returns a range of all the commerce tax methods.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 fromCommerceTaxMethodModelImpl.- Parameters:
start- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (not inclusive)- Returns:
- the range of commerce tax methods
-
findAll
public static List<CommerceTaxMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator) Returns an ordered range of all the commerce tax methods.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 fromCommerceTaxMethodModelImpl.- Parameters:
start- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce tax methods
-
findAll
public static List<CommerceTaxMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax methods.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 fromCommerceTaxMethodModelImpl.- Parameters:
start- the lower bound of the range of commerce tax methodsend- the upper bound of the range of commerce tax methods (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 methods
-
removeAll
public static void removeAll()Removes all the commerce tax methods from the database. -
countAll
public static int countAll()Returns the number of commerce tax methods.- Returns:
- the number of commerce tax methods
-
getPersistence
-
setPersistence
-