All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.commerce.service.persistence.CommerceAddressRestrictionUtil Maven / Gradle / Ivy

There is a newer version: 87.0.0
Show newest version
/**
 * 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.CommerceAddressRestriction;
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 address restriction service. This utility wraps com.liferay.commerce.service.persistence.impl.CommerceAddressRestrictionPersistenceImpl 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 CommerceAddressRestrictionPersistence * @generated */ public class CommerceAddressRestrictionUtil { /* * 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( CommerceAddressRestriction commerceAddressRestriction) { getPersistence().clearCache(commerceAddressRestriction); } /** * @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 CommerceAddressRestriction update( CommerceAddressRestriction commerceAddressRestriction) { return getPersistence().update(commerceAddressRestriction); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static CommerceAddressRestriction update( CommerceAddressRestriction commerceAddressRestriction, ServiceContext serviceContext) { return getPersistence().update( commerceAddressRestriction, serviceContext); } /** * Returns all the commerce address restrictions where countryId = ?. * * @param countryId the country ID * @return the matching commerce address restrictions */ public static List findByCountryId( long countryId) { return getPersistence().findByCountryId(countryId); } /** * Returns a range of all the commerce address restrictions where countryId = ?. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param countryId the country ID * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (not inclusive) * @return the range of matching commerce address restrictions */ public static List findByCountryId( long countryId, int start, int end) { return getPersistence().findByCountryId(countryId, start, end); } /** * Returns an ordered range of all the commerce address restrictions where countryId = ?. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param countryId the country ID * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce address restrictions */ public static List findByCountryId( long countryId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByCountryId( countryId, start, end, orderByComparator); } /** * Returns an ordered range of all the commerce address restrictions where countryId = ?. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param countryId the country ID * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (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 address restrictions */ public static List findByCountryId( long countryId, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByCountryId( countryId, start, end, orderByComparator, useFinderCache); } /** * Returns the first commerce address restriction in the ordered set where countryId = ?. * * @param countryId the country ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce address restriction * @throws NoSuchAddressRestrictionException if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction findByCountryId_First( long countryId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByCountryId_First( countryId, orderByComparator); } /** * Returns the first commerce address restriction in the ordered set where countryId = ?. * * @param countryId the country ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce address restriction, or null if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction fetchByCountryId_First( long countryId, OrderByComparator orderByComparator) { return getPersistence().fetchByCountryId_First( countryId, orderByComparator); } /** * Returns the last commerce address restriction in the ordered set where countryId = ?. * * @param countryId the country ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce address restriction * @throws NoSuchAddressRestrictionException if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction findByCountryId_Last( long countryId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByCountryId_Last( countryId, orderByComparator); } /** * Returns the last commerce address restriction in the ordered set where countryId = ?. * * @param countryId the country ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce address restriction, or null if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction fetchByCountryId_Last( long countryId, OrderByComparator orderByComparator) { return getPersistence().fetchByCountryId_Last( countryId, orderByComparator); } /** * Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where countryId = ?. * * @param commerceAddressRestrictionId the primary key of the current commerce address restriction * @param countryId the country ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce address restriction * @throws NoSuchAddressRestrictionException if a commerce address restriction with the primary key could not be found */ public static CommerceAddressRestriction[] findByCountryId_PrevAndNext( long commerceAddressRestrictionId, long countryId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByCountryId_PrevAndNext( commerceAddressRestrictionId, countryId, orderByComparator); } /** * Removes all the commerce address restrictions where countryId = ? from the database. * * @param countryId the country ID */ public static void removeByCountryId(long countryId) { getPersistence().removeByCountryId(countryId); } /** * Returns the number of commerce address restrictions where countryId = ?. * * @param countryId the country ID * @return the number of matching commerce address restrictions */ public static int countByCountryId(long countryId) { return getPersistence().countByCountryId(countryId); } /** * Returns all the commerce address restrictions where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the matching commerce address restrictions */ public static List findByC_C( long classNameId, long classPK) { return getPersistence().findByC_C(classNameId, classPK); } /** * Returns a range of all the commerce address restrictions where classNameId = ? and classPK = ?. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (not inclusive) * @return the range of matching commerce address restrictions */ public static List findByC_C( long classNameId, long classPK, int start, int end) { return getPersistence().findByC_C(classNameId, classPK, start, end); } /** * Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce address restrictions */ public static List findByC_C( long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByC_C( classNameId, classPK, start, end, orderByComparator); } /** * Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (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 address restrictions */ public static List findByC_C( long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByC_C( classNameId, classPK, start, end, orderByComparator, useFinderCache); } /** * Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce address restriction * @throws NoSuchAddressRestrictionException if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction findByC_C_First( long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByC_C_First( classNameId, classPK, orderByComparator); } /** * Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce address restriction, or null if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction fetchByC_C_First( long classNameId, long classPK, OrderByComparator orderByComparator) { return getPersistence().fetchByC_C_First( classNameId, classPK, orderByComparator); } /** * Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce address restriction * @throws NoSuchAddressRestrictionException if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction findByC_C_Last( long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByC_C_Last( classNameId, classPK, orderByComparator); } /** * Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce address restriction, or null if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction fetchByC_C_Last( long classNameId, long classPK, OrderByComparator orderByComparator) { return getPersistence().fetchByC_C_Last( classNameId, classPK, orderByComparator); } /** * Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where classNameId = ? and classPK = ?. * * @param commerceAddressRestrictionId the primary key of the current commerce address restriction * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce address restriction * @throws NoSuchAddressRestrictionException if a commerce address restriction with the primary key could not be found */ public static CommerceAddressRestriction[] findByC_C_PrevAndNext( long commerceAddressRestrictionId, long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByC_C_PrevAndNext( commerceAddressRestrictionId, classNameId, classPK, orderByComparator); } /** * Removes all the commerce address restrictions where classNameId = ? and classPK = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk */ public static void removeByC_C(long classNameId, long classPK) { getPersistence().removeByC_C(classNameId, classPK); } /** * Returns the number of commerce address restrictions where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching commerce address restrictions */ public static int countByC_C(long classNameId, long classPK) { return getPersistence().countByC_C(classNameId, classPK); } /** * Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or throws a NoSuchAddressRestrictionException if it could not be found. * * @param classNameId the class name ID * @param classPK the class pk * @param countryId the country ID * @return the matching commerce address restriction * @throws NoSuchAddressRestrictionException if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction findByC_C_C( long classNameId, long classPK, long countryId) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByC_C_C(classNameId, classPK, countryId); } /** * Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returns null if it could not be found. Uses the finder cache. * * @param classNameId the class name ID * @param classPK the class pk * @param countryId the country ID * @return the matching commerce address restriction, or null if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction fetchByC_C_C( long classNameId, long classPK, long countryId) { return getPersistence().fetchByC_C_C(classNameId, classPK, countryId); } /** * Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returns null if it could not be found, optionally using the finder cache. * * @param classNameId the class name ID * @param classPK the class pk * @param countryId the country ID * @param useFinderCache whether to use the finder cache * @return the matching commerce address restriction, or null if a matching commerce address restriction could not be found */ public static CommerceAddressRestriction fetchByC_C_C( long classNameId, long classPK, long countryId, boolean useFinderCache) { return getPersistence().fetchByC_C_C( classNameId, classPK, countryId, useFinderCache); } /** * Removes the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk * @param countryId the country ID * @return the commerce address restriction that was removed */ public static CommerceAddressRestriction removeByC_C_C( long classNameId, long classPK, long countryId) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().removeByC_C_C(classNameId, classPK, countryId); } /** * Returns the number of commerce address restrictions where classNameId = ? and classPK = ? and countryId = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param countryId the country ID * @return the number of matching commerce address restrictions */ public static int countByC_C_C( long classNameId, long classPK, long countryId) { return getPersistence().countByC_C_C(classNameId, classPK, countryId); } /** * Caches the commerce address restriction in the entity cache if it is enabled. * * @param commerceAddressRestriction the commerce address restriction */ public static void cacheResult( CommerceAddressRestriction commerceAddressRestriction) { getPersistence().cacheResult(commerceAddressRestriction); } /** * Caches the commerce address restrictions in the entity cache if it is enabled. * * @param commerceAddressRestrictions the commerce address restrictions */ public static void cacheResult( List commerceAddressRestrictions) { getPersistence().cacheResult(commerceAddressRestrictions); } /** * Creates a new commerce address restriction with the primary key. Does not add the commerce address restriction to the database. * * @param commerceAddressRestrictionId the primary key for the new commerce address restriction * @return the new commerce address restriction */ public static CommerceAddressRestriction create( long commerceAddressRestrictionId) { return getPersistence().create(commerceAddressRestrictionId); } /** * Removes the commerce address restriction with the primary key from the database. Also notifies the appropriate model listeners. * * @param commerceAddressRestrictionId the primary key of the commerce address restriction * @return the commerce address restriction that was removed * @throws NoSuchAddressRestrictionException if a commerce address restriction with the primary key could not be found */ public static CommerceAddressRestriction remove( long commerceAddressRestrictionId) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().remove(commerceAddressRestrictionId); } public static CommerceAddressRestriction updateImpl( CommerceAddressRestriction commerceAddressRestriction) { return getPersistence().updateImpl(commerceAddressRestriction); } /** * Returns the commerce address restriction with the primary key or throws a NoSuchAddressRestrictionException if it could not be found. * * @param commerceAddressRestrictionId the primary key of the commerce address restriction * @return the commerce address restriction * @throws NoSuchAddressRestrictionException if a commerce address restriction with the primary key could not be found */ public static CommerceAddressRestriction findByPrimaryKey( long commerceAddressRestrictionId) throws com.liferay.commerce.exception. NoSuchAddressRestrictionException { return getPersistence().findByPrimaryKey(commerceAddressRestrictionId); } /** * Returns the commerce address restriction with the primary key or returns null if it could not be found. * * @param commerceAddressRestrictionId the primary key of the commerce address restriction * @return the commerce address restriction, or null if a commerce address restriction with the primary key could not be found */ public static CommerceAddressRestriction fetchByPrimaryKey( long commerceAddressRestrictionId) { return getPersistence().fetchByPrimaryKey(commerceAddressRestrictionId); } /** * Returns all the commerce address restrictions. * * @return the commerce address restrictions */ public static List findAll() { return getPersistence().findAll(); } /** * Returns a range of all the commerce address restrictions. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (not inclusive) * @return the range of commerce address restrictions */ public static List findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the commerce address restrictions. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of commerce address restrictions */ public static List findAll( int start, int end, OrderByComparator orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the commerce address restrictions. * *

* 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 CommerceAddressRestrictionModelImpl. *

* * @param start the lower bound of the range of commerce address restrictions * @param end the upper bound of the range of commerce address restrictions (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 address restrictions */ public static List findAll( int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findAll( start, end, orderByComparator, useFinderCache); } /** * Removes all the commerce address restrictions from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of commerce address restrictions. * * @return the number of commerce address restrictions */ public static int countAll() { return getPersistence().countAll(); } public static CommerceAddressRestrictionPersistence getPersistence() { return _persistence; } public static void setPersistence( CommerceAddressRestrictionPersistence persistence) { _persistence = persistence; } private static volatile CommerceAddressRestrictionPersistence _persistence; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy