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

com.liferay.commerce.service.persistence.CommerceAddressRestrictionPersistence 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.exception.NoSuchAddressRestrictionException;
import com.liferay.commerce.model.CommerceAddressRestriction;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The persistence interface for the commerce address restriction service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Alessio Antonio Rendina * @see CommerceAddressRestrictionUtil * @generated */ @ProviderType public interface CommerceAddressRestrictionPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link CommerceAddressRestrictionUtil} to access the commerce address restriction persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the commerce address restrictions where countryId = ?. * * @param countryId the country ID * @return the matching commerce address restrictions */ public java.util.List findByCountryId( long 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 java.util.List findByCountryId( long countryId, int start, int 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 java.util.List findByCountryId( long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator 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 java.util.List findByCountryId( long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean 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 CommerceAddressRestriction findByCountryId_First( long countryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchAddressRestrictionException; /** * 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 CommerceAddressRestriction fetchByCountryId_First( long countryId, com.liferay.portal.kernel.util.OrderByComparator 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 CommerceAddressRestriction findByCountryId_Last( long countryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchAddressRestrictionException; /** * 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 CommerceAddressRestriction fetchByCountryId_Last( long countryId, com.liferay.portal.kernel.util.OrderByComparator 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 CommerceAddressRestriction[] findByCountryId_PrevAndNext( long commerceAddressRestrictionId, long countryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchAddressRestrictionException; /** * Removes all the commerce address restrictions where countryId = ? from the database. * * @param countryId the country ID */ public void removeByCountryId(long countryId); /** * Returns the number of commerce address restrictions where countryId = ?. * * @param countryId the country ID * @return the number of matching commerce address restrictions */ public int countByCountryId(long 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 java.util.List findByC_C( long classNameId, long 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 java.util.List findByC_C( long classNameId, long classPK, int start, int 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 java.util.List findByC_C( long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator 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 java.util.List findByC_C( long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean 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 CommerceAddressRestriction findByC_C_First( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchAddressRestrictionException; /** * 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 CommerceAddressRestriction fetchByC_C_First( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator 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 CommerceAddressRestriction findByC_C_Last( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchAddressRestrictionException; /** * 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 CommerceAddressRestriction fetchByC_C_Last( long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator 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 CommerceAddressRestriction[] findByC_C_PrevAndNext( long commerceAddressRestrictionId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchAddressRestrictionException; /** * 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 void removeByC_C(long classNameId, long 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 int countByC_C(long classNameId, long 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 CommerceAddressRestriction findByC_C_C( long classNameId, long classPK, long countryId) throws NoSuchAddressRestrictionException; /** * 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 CommerceAddressRestriction fetchByC_C_C( long classNameId, long classPK, long 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 CommerceAddressRestriction fetchByC_C_C( long classNameId, long classPK, long countryId, boolean 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 CommerceAddressRestriction removeByC_C_C( long classNameId, long classPK, long countryId) throws NoSuchAddressRestrictionException; /** * 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 int countByC_C_C(long classNameId, long classPK, long countryId); /** * Caches the commerce address restriction in the entity cache if it is enabled. * * @param commerceAddressRestriction the commerce address restriction */ public void cacheResult( CommerceAddressRestriction commerceAddressRestriction); /** * Caches the commerce address restrictions in the entity cache if it is enabled. * * @param commerceAddressRestrictions the commerce address restrictions */ public void cacheResult( java.util.List 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 CommerceAddressRestriction create(long 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 CommerceAddressRestriction remove(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException; public CommerceAddressRestriction updateImpl( CommerceAddressRestriction 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 CommerceAddressRestriction findByPrimaryKey( long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException; /** * 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 CommerceAddressRestriction fetchByPrimaryKey( long commerceAddressRestrictionId); /** * Returns all the commerce address restrictions. * * @return the commerce address restrictions */ public java.util.List 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 java.util.List findAll( int start, int 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 java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator 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 java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the commerce address restrictions from the database. */ public void removeAll(); /** * Returns the number of commerce address restrictions. * * @return the number of commerce address restrictions */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy