com.liferay.commerce.service.persistence.CommerceShippingMethodUtil Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.service.persistence;
import com.liferay.commerce.model.CommerceShippingMethod;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* The persistence utility for the commerce shipping method service. This utility wraps 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
*
*
* @author Alessio Antonio Rendina
* @see CommerceShippingMethodPersistence
* @generated
*/
public class CommerceShippingMethodUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel)
*/
public static void clearCache(
CommerceShippingMethod commerceShippingMethod) {
getPersistence().clearCache(commerceShippingMethod);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set)
*/
public static Map fetchByPrimaryKeys(
Set primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end) {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findWithDynamicQuery(
dynamicQuery, start, end, orderByComparator);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel)
*/
public static CommerceShippingMethod update(
CommerceShippingMethod commerceShippingMethod) {
return getPersistence().update(commerceShippingMethod);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static CommerceShippingMethod update(
CommerceShippingMethod commerceShippingMethod,
ServiceContext serviceContext) {
return getPersistence().update(commerceShippingMethod, serviceContext);
}
/**
* Returns all the commerce shipping methods where groupId = ?.
*
* @param groupId the group ID
* @return the matching commerce shipping methods
*/
public static List findByGroupId(long groupId) {
return getPersistence().findByGroupId(groupId);
}
/**
* Returns a range of all the commerce shipping methods where groupId = ?.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param groupId the group ID
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @return the range of matching commerce shipping methods
*/
public static List findByGroupId(
long groupId, int start, int end) {
return getPersistence().findByGroupId(groupId, start, end);
}
/**
* Returns an ordered range of all the commerce shipping methods where groupId = ?.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param groupId the group ID
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipping methods
*/
public static List findByGroupId(
long groupId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByGroupId(
groupId, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the commerce shipping methods where groupId = ?.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param groupId the group ID
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching commerce shipping methods
*/
public static List findByGroupId(
long groupId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByGroupId(
groupId, start, end, orderByComparator, useFinderCache);
}
/**
* Returns the first commerce shipping method in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipping method
* @throws NoSuchShippingMethodException if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod findByGroupId_First(
long groupId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByGroupId_First(groupId, orderByComparator);
}
/**
* Returns the first commerce shipping method in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipping method, or null
if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod fetchByGroupId_First(
long groupId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByGroupId_First(
groupId, orderByComparator);
}
/**
* Returns the last commerce shipping method in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipping method
* @throws NoSuchShippingMethodException if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod findByGroupId_Last(
long groupId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByGroupId_Last(groupId, orderByComparator);
}
/**
* Returns the last commerce shipping method in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipping method, or null
if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod fetchByGroupId_Last(
long groupId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
}
/**
* Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ?.
*
* @param commerceShippingMethodId the primary key of the current commerce shipping method
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipping method
* @throws NoSuchShippingMethodException if a commerce shipping method with the primary key could not be found
*/
public static CommerceShippingMethod[] findByGroupId_PrevAndNext(
long commerceShippingMethodId, long groupId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByGroupId_PrevAndNext(
commerceShippingMethodId, groupId, orderByComparator);
}
/**
* Removes all the commerce shipping methods where groupId = ? from the database.
*
* @param groupId the group ID
*/
public static void removeByGroupId(long groupId) {
getPersistence().removeByGroupId(groupId);
}
/**
* Returns the number of commerce shipping methods where groupId = ?.
*
* @param groupId the group ID
* @return the number of matching commerce shipping methods
*/
public static int countByGroupId(long groupId) {
return getPersistence().countByGroupId(groupId);
}
/**
* Returns all the commerce shipping methods where groupId = ? and active = ?.
*
* @param groupId the group ID
* @param active the active
* @return the matching commerce shipping methods
*/
public static List findByG_A(
long groupId, boolean active) {
return getPersistence().findByG_A(groupId, active);
}
/**
* Returns a range of all the commerce shipping methods where groupId = ? and active = ?.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param groupId the group ID
* @param active the active
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @return the range of matching commerce shipping methods
*/
public static List findByG_A(
long groupId, boolean active, int start, int end) {
return getPersistence().findByG_A(groupId, active, start, end);
}
/**
* Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param groupId the group ID
* @param active the active
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipping methods
*/
public static List findByG_A(
long groupId, boolean active, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByG_A(
groupId, active, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param groupId the group ID
* @param active the active
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching commerce shipping methods
*/
public static List findByG_A(
long groupId, boolean active, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByG_A(
groupId, active, start, end, orderByComparator, useFinderCache);
}
/**
* Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
*
* @param groupId the group ID
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipping method
* @throws NoSuchShippingMethodException if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod findByG_A_First(
long groupId, boolean active,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByG_A_First(
groupId, active, orderByComparator);
}
/**
* Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
*
* @param groupId the group ID
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipping method, or null
if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod fetchByG_A_First(
long groupId, boolean active,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_A_First(
groupId, active, orderByComparator);
}
/**
* Returns the last commerce shipping method in the ordered set where groupId = ? and active = ?.
*
* @param groupId the group ID
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipping method
* @throws NoSuchShippingMethodException if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod findByG_A_Last(
long groupId, boolean active,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByG_A_Last(
groupId, active, orderByComparator);
}
/**
* Returns the last commerce shipping method in the ordered set where groupId = ? and active = ?.
*
* @param groupId the group ID
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipping method, or null
if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod fetchByG_A_Last(
long groupId, boolean active,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_A_Last(
groupId, active, orderByComparator);
}
/**
* Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ? and active = ?.
*
* @param commerceShippingMethodId the primary key of the current commerce shipping method
* @param groupId the group ID
* @param active the active
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipping method
* @throws NoSuchShippingMethodException if a commerce shipping method with the primary key could not be found
*/
public static CommerceShippingMethod[] findByG_A_PrevAndNext(
long commerceShippingMethodId, long groupId, boolean active,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByG_A_PrevAndNext(
commerceShippingMethodId, groupId, active, orderByComparator);
}
/**
* Removes all the commerce shipping methods where groupId = ? and active = ? from the database.
*
* @param groupId the group ID
* @param active the active
*/
public static void removeByG_A(long groupId, boolean active) {
getPersistence().removeByG_A(groupId, active);
}
/**
* Returns the number of commerce shipping methods where groupId = ? and active = ?.
*
* @param groupId the group ID
* @param active the active
* @return the number of matching commerce shipping methods
*/
public static int countByG_A(long groupId, boolean active) {
return getPersistence().countByG_A(groupId, active);
}
/**
* Returns the commerce shipping method where groupId = ? and engineKey = ? or throws a NoSuchShippingMethodException
if it could not be found.
*
* @param groupId the group ID
* @param engineKey the engine key
* @return the matching commerce shipping method
* @throws NoSuchShippingMethodException if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod findByG_E(
long groupId, String engineKey)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByG_E(groupId, engineKey);
}
/**
* Returns the commerce shipping method where groupId = ? and engineKey = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param groupId the group ID
* @param engineKey the engine key
* @return the matching commerce shipping method, or null
if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod fetchByG_E(
long groupId, String engineKey) {
return getPersistence().fetchByG_E(groupId, engineKey);
}
/**
* Returns the commerce shipping method where groupId = ? and engineKey = ? or returns null
if it could not be found, optionally using the finder cache.
*
* @param groupId the group ID
* @param engineKey the engine key
* @param useFinderCache whether to use the finder cache
* @return the matching commerce shipping method, or null
if a matching commerce shipping method could not be found
*/
public static CommerceShippingMethod fetchByG_E(
long groupId, String engineKey, boolean useFinderCache) {
return getPersistence().fetchByG_E(groupId, engineKey, useFinderCache);
}
/**
* Removes the commerce shipping method where groupId = ? and engineKey = ? from the database.
*
* @param groupId the group ID
* @param engineKey the engine key
* @return the commerce shipping method that was removed
*/
public static CommerceShippingMethod removeByG_E(
long groupId, String engineKey)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().removeByG_E(groupId, engineKey);
}
/**
* Returns the number of commerce shipping methods where groupId = ? and engineKey = ?.
*
* @param groupId the group ID
* @param engineKey the engine key
* @return the number of matching commerce shipping methods
*/
public static int countByG_E(long groupId, String engineKey) {
return getPersistence().countByG_E(groupId, engineKey);
}
/**
* Caches the commerce shipping method in the entity cache if it is enabled.
*
* @param commerceShippingMethod the commerce shipping method
*/
public static void cacheResult(
CommerceShippingMethod commerceShippingMethod) {
getPersistence().cacheResult(commerceShippingMethod);
}
/**
* Caches the commerce shipping methods in the entity cache if it is enabled.
*
* @param commerceShippingMethods the commerce shipping methods
*/
public static void cacheResult(
List commerceShippingMethods) {
getPersistence().cacheResult(commerceShippingMethods);
}
/**
* Creates a new commerce shipping method with the primary key. Does not add the commerce shipping method to the database.
*
* @param commerceShippingMethodId the primary key for the new commerce shipping method
* @return the new commerce shipping method
*/
public static CommerceShippingMethod create(long commerceShippingMethodId) {
return getPersistence().create(commerceShippingMethodId);
}
/**
* Removes the commerce shipping method with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param commerceShippingMethodId the primary key of the commerce shipping method
* @return the commerce shipping method that was removed
* @throws NoSuchShippingMethodException if a commerce shipping method with the primary key could not be found
*/
public static CommerceShippingMethod remove(long commerceShippingMethodId)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().remove(commerceShippingMethodId);
}
public static CommerceShippingMethod updateImpl(
CommerceShippingMethod commerceShippingMethod) {
return getPersistence().updateImpl(commerceShippingMethod);
}
/**
* Returns the commerce shipping method with the primary key or throws a NoSuchShippingMethodException
if it could not be found.
*
* @param commerceShippingMethodId the primary key of the commerce shipping method
* @return the commerce shipping method
* @throws NoSuchShippingMethodException if a commerce shipping method with the primary key could not be found
*/
public static CommerceShippingMethod findByPrimaryKey(
long commerceShippingMethodId)
throws com.liferay.commerce.exception.NoSuchShippingMethodException {
return getPersistence().findByPrimaryKey(commerceShippingMethodId);
}
/**
* Returns the commerce shipping method with the primary key or returns null
if it could not be found.
*
* @param commerceShippingMethodId the primary key of the commerce shipping method
* @return the commerce shipping method, or null
if a commerce shipping method with the primary key could not be found
*/
public static CommerceShippingMethod fetchByPrimaryKey(
long commerceShippingMethodId) {
return getPersistence().fetchByPrimaryKey(commerceShippingMethodId);
}
/**
* Returns all the commerce shipping methods.
*
* @return the commerce shipping methods
*/
public static List findAll() {
return getPersistence().findAll();
}
/**
* Returns a range of all the commerce shipping methods.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @return the range of commerce shipping methods
*/
public static List findAll(int start, int end) {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the commerce shipping methods.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of commerce shipping methods
*/
public static List findAll(
int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Returns an ordered range of all the commerce shipping methods.
*
*
* 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 CommerceShippingMethodModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipping methods
* @param end the upper bound of the range of commerce shipping methods (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of commerce shipping methods
*/
public static List findAll(
int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the commerce shipping methods from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of commerce shipping methods.
*
* @return the number of commerce shipping methods
*/
public static int countAll() {
return getPersistence().countAll();
}
public static CommerceShippingMethodPersistence getPersistence() {
return _persistence;
}
public static void setPersistence(
CommerceShippingMethodPersistence persistence) {
_persistence = persistence;
}
private static volatile CommerceShippingMethodPersistence _persistence;
}