Class CommerceShippingMethodUtil
com.liferay.commerce.service.persistence.impl.CommerceShippingMethodPersistenceImpl 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(CommerceShippingMethod commerceShippingMethod) Caches the commerce shipping method in the entity cache if it is enabled.static voidcacheResult(List<CommerceShippingMethod> commerceShippingMethods) Caches the commerce shipping methods in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceShippingMethod commerceShippingMethod) static intcountAll()Returns the number of commerce shipping methods.static intcountByG_A(long groupId, boolean active) Returns the number of commerce shipping methods where groupId = ? and active = ?.static intcountByG_E(long groupId, String engineKey) Returns the number of commerce shipping methods where groupId = ? and engineKey = ?.static intcountByGroupId(long groupId) Returns the number of commerce shipping methods where groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceShippingMethodcreate(long commerceShippingMethodId) Creates a new commerce shipping method with the primary key.static CommerceShippingMethodfetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.static CommerceShippingMethodfetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the last commerce shipping method in the ordered set where groupId = ? and active = ?.static CommerceShippingMethodfetchByG_E(long groupId, String engineKey) Returns the commerce shipping method where groupId = ? and engineKey = ? or returnsnullif it could not be found.static CommerceShippingMethodfetchByG_E(long groupId, String engineKey, boolean useFinderCache) Returns the commerce shipping method where groupId = ? and engineKey = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceShippingMethodfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the first commerce shipping method in the ordered set where groupId = ?.static CommerceShippingMethodfetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the last commerce shipping method in the ordered set where groupId = ?.static CommerceShippingMethodfetchByPrimaryKey(long commerceShippingMethodId) Returns the commerce shipping method with the primary key or returnsnullif it could not be found.static Map<Serializable,CommerceShippingMethod> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CommerceShippingMethod>findAll()Returns all the commerce shipping methods.static List<CommerceShippingMethod>findAll(int start, int end) Returns a range of all the commerce shipping methods.static List<CommerceShippingMethod>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns an ordered range of all the commerce shipping methods.static List<CommerceShippingMethod>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping methods.static List<CommerceShippingMethod>findByG_A(long groupId, boolean active) Returns all the commerce shipping methods where groupId = ? and active = ?.static List<CommerceShippingMethod>findByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce shipping methods where groupId = ? and active = ?.static List<CommerceShippingMethod>findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.static List<CommerceShippingMethod>findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.static CommerceShippingMethodfindByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.static CommerceShippingMethodfindByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the last commerce shipping method in the ordered set where groupId = ? and active = ?.static CommerceShippingMethod[]findByG_A_PrevAndNext(long commerceShippingMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ? and active = ?.static CommerceShippingMethodReturns the commerce shipping method where groupId = ? and engineKey = ? or throws aNoSuchShippingMethodExceptionif it could not be found.static List<CommerceShippingMethod>findByGroupId(long groupId) Returns all the commerce shipping methods where groupId = ?.static List<CommerceShippingMethod>findByGroupId(long groupId, int start, int end) Returns a range of all the commerce shipping methods where groupId = ?.static List<CommerceShippingMethod>findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns an ordered range of all the commerce shipping methods where groupId = ?.static List<CommerceShippingMethod>findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping methods where groupId = ?.static CommerceShippingMethodfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the first commerce shipping method in the ordered set where groupId = ?.static CommerceShippingMethodfindByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the last commerce shipping method in the ordered set where groupId = ?.static CommerceShippingMethod[]findByGroupId_PrevAndNext(long commerceShippingMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ?.static CommerceShippingMethodfindByPrimaryKey(long commerceShippingMethodId) Returns the commerce shipping method with the primary key or throws aNoSuchShippingMethodExceptionif it could not be found.static List<CommerceShippingMethod>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceShippingMethod>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceShippingMethod>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) static CommerceShippingMethodremove(long commerceShippingMethodId) Removes the commerce shipping method with the primary key from the database.static voidRemoves all the commerce shipping methods from the database.static voidremoveByG_A(long groupId, boolean active) Removes all the commerce shipping methods where groupId = ? and active = ? from the database.static CommerceShippingMethodremoveByG_E(long groupId, String engineKey) Removes the commerce shipping method where groupId = ? and engineKey = ? from the database.static voidremoveByGroupId(long groupId) Removes all the commerce shipping methods where groupId = ? from the database.static voidsetPersistence(CommerceShippingMethodPersistence persistence) static CommerceShippingMethodupdate(CommerceShippingMethod commerceShippingMethod) static CommerceShippingMethodupdate(CommerceShippingMethod commerceShippingMethod, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceShippingMethodupdateImpl(CommerceShippingMethod commerceShippingMethod)
-
Constructor Details
-
CommerceShippingMethodUtil
public CommerceShippingMethodUtil()
-
-
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,CommerceShippingMethod> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceShippingMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceShippingMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceShippingMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceShippingMethod update(CommerceShippingMethod commerceShippingMethod, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByGroupId
Returns all the commerce shipping methods where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching commerce shipping methods
-
findByGroupId
Returns a range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping methods (not inclusive)- Returns:
- the range of matching commerce shipping methods
-
findByGroupId
public static List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns an ordered range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce shipping methods
-
findByGroupId
public static List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping 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 shipping methods
-
findByGroupId_First
public static CommerceShippingMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException Returns the first commerce shipping 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 shipping method
- Throws:
NoSuchShippingMethodException- if a matching commerce shipping method could not be foundNoSuchShippingMethodException
-
fetchByGroupId_First
public static CommerceShippingMethod fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the first commerce shipping 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 shipping method, or
nullif a matching commerce shipping method could not be found
-
findByGroupId_Last
public static CommerceShippingMethod findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException Returns the last commerce shipping 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 shipping method
- Throws:
NoSuchShippingMethodException- if a matching commerce shipping method could not be foundNoSuchShippingMethodException
-
fetchByGroupId_Last
public static CommerceShippingMethod fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the last commerce shipping 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 shipping method, or
nullif a matching commerce shipping method could not be found
-
findByGroupId_PrevAndNext
public static CommerceShippingMethod[] findByGroupId_PrevAndNext(long commerceShippingMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ?.- Parameters:
commerceShippingMethodId- the primary key of the current commerce shipping methodgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce shipping method
- Throws:
NoSuchShippingMethodException- if a commerce shipping method with the primary key could not be foundNoSuchShippingMethodException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the commerce shipping methods where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of commerce shipping methods where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching commerce shipping methods
-
findByG_A
Returns all the commerce shipping methods where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the matching commerce shipping methods
-
findByG_A
public static List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping methods (not inclusive)- Returns:
- the range of matching commerce shipping methods
-
findByG_A
public static List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns an ordered range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce shipping methods
-
findByG_A
public static List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping 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 shipping methods
-
findByG_A_First
public static CommerceShippingMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException Returns the first commerce shipping 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 shipping method
- Throws:
NoSuchShippingMethodException- if a matching commerce shipping method could not be foundNoSuchShippingMethodException
-
fetchByG_A_First
public static CommerceShippingMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the first commerce shipping 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 shipping method, or
nullif a matching commerce shipping method could not be found
-
findByG_A_Last
public static CommerceShippingMethod findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException Returns the last commerce shipping 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 shipping method
- Throws:
NoSuchShippingMethodException- if a matching commerce shipping method could not be foundNoSuchShippingMethodException
-
fetchByG_A_Last
public static CommerceShippingMethod fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns the last commerce shipping 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 shipping method, or
nullif a matching commerce shipping method could not be found
-
findByG_A_PrevAndNext
public static CommerceShippingMethod[] findByG_A_PrevAndNext(long commerceShippingMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ? and active = ?.- Parameters:
commerceShippingMethodId- the primary key of the current commerce shipping methodgroupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next commerce shipping method
- Throws:
NoSuchShippingMethodException- if a commerce shipping method with the primary key could not be foundNoSuchShippingMethodException
-
removeByG_A
public static void removeByG_A(long groupId, boolean active) Removes all the commerce shipping 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 shipping methods where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the number of matching commerce shipping methods
-
findByG_E
public static CommerceShippingMethod findByG_E(long groupId, String engineKey) throws NoSuchShippingMethodException Returns the commerce shipping method where groupId = ? and engineKey = ? or throws aNoSuchShippingMethodExceptionif it could not be found.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the matching commerce shipping method
- Throws:
NoSuchShippingMethodException- if a matching commerce shipping method could not be foundNoSuchShippingMethodException
-
fetchByG_E
Returns the commerce shipping 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 shipping method, or
nullif a matching commerce shipping method could not be found
-
fetchByG_E
public static CommerceShippingMethod fetchByG_E(long groupId, String engineKey, boolean useFinderCache) Returns the commerce shipping 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 shipping method, or
nullif a matching commerce shipping method could not be found
-
removeByG_E
public static CommerceShippingMethod removeByG_E(long groupId, String engineKey) throws NoSuchShippingMethodException Removes the commerce shipping method where groupId = ? and engineKey = ? from the database.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the commerce shipping method that was removed
- Throws:
NoSuchShippingMethodException
-
countByG_E
Returns the number of commerce shipping methods where groupId = ? and engineKey = ?.- Parameters:
groupId- the group IDengineKey- the engine key- Returns:
- the number of matching commerce shipping methods
-
cacheResult
Caches the commerce shipping method in the entity cache if it is enabled.- Parameters:
commerceShippingMethod- the commerce shipping method
-
cacheResult
Caches the commerce shipping methods in the entity cache if it is enabled.- Parameters:
commerceShippingMethods- the commerce shipping methods
-
create
Creates a new commerce shipping method with the primary key. Does not add the commerce shipping method to the database.- Parameters:
commerceShippingMethodId- the primary key for the new commerce shipping method- Returns:
- the new commerce shipping method
-
remove
public static CommerceShippingMethod remove(long commerceShippingMethodId) throws NoSuchShippingMethodException Removes the commerce shipping method with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceShippingMethodId- the primary key of the commerce shipping method- Returns:
- the commerce shipping method that was removed
- Throws:
NoSuchShippingMethodException- if a commerce shipping method with the primary key could not be foundNoSuchShippingMethodException
-
updateImpl
-
findByPrimaryKey
public static CommerceShippingMethod findByPrimaryKey(long commerceShippingMethodId) throws NoSuchShippingMethodException Returns the commerce shipping method with the primary key or throws aNoSuchShippingMethodExceptionif it could not be found.- Parameters:
commerceShippingMethodId- the primary key of the commerce shipping method- Returns:
- the commerce shipping method
- Throws:
NoSuchShippingMethodException- if a commerce shipping method with the primary key could not be foundNoSuchShippingMethodException
-
fetchByPrimaryKey
Returns the commerce shipping method with the primary key or returnsnullif it could not be found.- Parameters:
commerceShippingMethodId- the primary key of the commerce shipping method- Returns:
- the commerce shipping method, or
nullif a commerce shipping method with the primary key could not be found
-
findAll
Returns all the commerce shipping methods.- Returns:
- the commerce shipping methods
-
findAll
Returns a range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
start- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping methods (not inclusive)- Returns:
- the range of commerce shipping methods
-
findAll
public static List<CommerceShippingMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) Returns an ordered range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
start- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce shipping methods
-
findAll
public static List<CommerceShippingMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipping 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 fromCommerceShippingMethodModelImpl.- Parameters:
start- the lower bound of the range of commerce shipping methodsend- the upper bound of the range of commerce shipping 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 shipping methods
-
removeAll
public static void removeAll()Removes all the commerce shipping methods from the database. -
countAll
public static int countAll()Returns the number of commerce shipping methods.- Returns:
- the number of commerce shipping methods
-
getPersistence
-
setPersistence
-