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

com.liferay.commerce.service.persistence.CPDefinitionInventoryPersistence 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.NoSuchCPDefinitionInventoryException;
import com.liferay.commerce.model.CPDefinitionInventory;
import com.liferay.portal.kernel.service.persistence.BasePersistence;
import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The persistence interface for the cp definition inventory service.
 *
 * 

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

* * @author Alessio Antonio Rendina * @see CPDefinitionInventoryUtil * @generated */ @ProviderType public interface CPDefinitionInventoryPersistence extends BasePersistence, CTPersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link CPDefinitionInventoryUtil} to access the cp definition inventory persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the cp definition inventories where uuid = ?. * * @param uuid the uuid * @return the matching cp definition inventories */ public java.util.List findByUuid(String uuid); /** * Returns a range of all the cp definition inventories where uuid = ?. * *

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

* * @param uuid the uuid * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (not inclusive) * @return the range of matching cp definition inventories */ public java.util.List findByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the cp definition inventories where uuid = ?. * *

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

* * @param uuid the uuid * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching cp definition inventories */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the cp definition inventories where uuid = ?. * *

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

* * @param uuid the uuid * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (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 cp definition inventories */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first cp definition inventory in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found */ public CPDefinitionInventory findByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchCPDefinitionInventoryException; /** * Returns the first cp definition inventory in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last cp definition inventory in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found */ public CPDefinitionInventory findByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchCPDefinitionInventoryException; /** * Returns the last cp definition inventory in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the cp definition inventories before and after the current cp definition inventory in the ordered set where uuid = ?. * * @param CPDefinitionInventoryId the primary key of the current cp definition inventory * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a cp definition inventory with the primary key could not be found */ public CPDefinitionInventory[] findByUuid_PrevAndNext( long CPDefinitionInventoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchCPDefinitionInventoryException; /** * Removes all the cp definition inventories where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of cp definition inventories where uuid = ?. * * @param uuid the uuid * @return the number of matching cp definition inventories */ public int countByUuid(String uuid); /** * Returns the cp definition inventory where uuid = ? and groupId = ? or throws a NoSuchCPDefinitionInventoryException if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found */ public CPDefinitionInventory findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionInventoryException; /** * Returns the cp definition inventory where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByUUID_G(String uuid, long groupId); /** * Returns the cp definition inventory where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param useFinderCache whether to use the finder cache * @return the matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByUUID_G( String uuid, long groupId, boolean useFinderCache); /** * Removes the cp definition inventory where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the cp definition inventory that was removed */ public CPDefinitionInventory removeByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionInventoryException; /** * Returns the number of cp definition inventories where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching cp definition inventories */ public int countByUUID_G(String uuid, long groupId); /** * Returns all the cp definition inventories where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching cp definition inventories */ public java.util.List findByUuid_C( String uuid, long companyId); /** * Returns a range of all the cp definition inventories where uuid = ? and companyId = ?. * *

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

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (not inclusive) * @return the range of matching cp definition inventories */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the cp definition inventories where uuid = ? and companyId = ?. * *

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

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching cp definition inventories */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the cp definition inventories where uuid = ? and companyId = ?. * *

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

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (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 cp definition inventories */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first cp definition inventory in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found */ public CPDefinitionInventory findByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchCPDefinitionInventoryException; /** * Returns the first cp definition inventory in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last cp definition inventory in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found */ public CPDefinitionInventory findByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchCPDefinitionInventoryException; /** * Returns the last cp definition inventory in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the cp definition inventories before and after the current cp definition inventory in the ordered set where uuid = ? and companyId = ?. * * @param CPDefinitionInventoryId the primary key of the current cp definition inventory * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a cp definition inventory with the primary key could not be found */ public CPDefinitionInventory[] findByUuid_C_PrevAndNext( long CPDefinitionInventoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchCPDefinitionInventoryException; /** * Removes all the cp definition inventories where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(String uuid, long companyId); /** * Returns the number of cp definition inventories where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching cp definition inventories */ public int countByUuid_C(String uuid, long companyId); /** * Returns the cp definition inventory where CPDefinitionId = ? or throws a NoSuchCPDefinitionInventoryException if it could not be found. * * @param CPDefinitionId the cp definition ID * @return the matching cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found */ public CPDefinitionInventory findByCPDefinitionId(long CPDefinitionId) throws NoSuchCPDefinitionInventoryException; /** * Returns the cp definition inventory where CPDefinitionId = ? or returns null if it could not be found. Uses the finder cache. * * @param CPDefinitionId the cp definition ID * @return the matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByCPDefinitionId(long CPDefinitionId); /** * Returns the cp definition inventory where CPDefinitionId = ? or returns null if it could not be found, optionally using the finder cache. * * @param CPDefinitionId the cp definition ID * @param useFinderCache whether to use the finder cache * @return the matching cp definition inventory, or null if a matching cp definition inventory could not be found */ public CPDefinitionInventory fetchByCPDefinitionId( long CPDefinitionId, boolean useFinderCache); /** * Removes the cp definition inventory where CPDefinitionId = ? from the database. * * @param CPDefinitionId the cp definition ID * @return the cp definition inventory that was removed */ public CPDefinitionInventory removeByCPDefinitionId(long CPDefinitionId) throws NoSuchCPDefinitionInventoryException; /** * Returns the number of cp definition inventories where CPDefinitionId = ?. * * @param CPDefinitionId the cp definition ID * @return the number of matching cp definition inventories */ public int countByCPDefinitionId(long CPDefinitionId); /** * Caches the cp definition inventory in the entity cache if it is enabled. * * @param cpDefinitionInventory the cp definition inventory */ public void cacheResult(CPDefinitionInventory cpDefinitionInventory); /** * Caches the cp definition inventories in the entity cache if it is enabled. * * @param cpDefinitionInventories the cp definition inventories */ public void cacheResult( java.util.List cpDefinitionInventories); /** * Creates a new cp definition inventory with the primary key. Does not add the cp definition inventory to the database. * * @param CPDefinitionInventoryId the primary key for the new cp definition inventory * @return the new cp definition inventory */ public CPDefinitionInventory create(long CPDefinitionInventoryId); /** * Removes the cp definition inventory with the primary key from the database. Also notifies the appropriate model listeners. * * @param CPDefinitionInventoryId the primary key of the cp definition inventory * @return the cp definition inventory that was removed * @throws NoSuchCPDefinitionInventoryException if a cp definition inventory with the primary key could not be found */ public CPDefinitionInventory remove(long CPDefinitionInventoryId) throws NoSuchCPDefinitionInventoryException; public CPDefinitionInventory updateImpl( CPDefinitionInventory cpDefinitionInventory); /** * Returns the cp definition inventory with the primary key or throws a NoSuchCPDefinitionInventoryException if it could not be found. * * @param CPDefinitionInventoryId the primary key of the cp definition inventory * @return the cp definition inventory * @throws NoSuchCPDefinitionInventoryException if a cp definition inventory with the primary key could not be found */ public CPDefinitionInventory findByPrimaryKey(long CPDefinitionInventoryId) throws NoSuchCPDefinitionInventoryException; /** * Returns the cp definition inventory with the primary key or returns null if it could not be found. * * @param CPDefinitionInventoryId the primary key of the cp definition inventory * @return the cp definition inventory, or null if a cp definition inventory with the primary key could not be found */ public CPDefinitionInventory fetchByPrimaryKey( long CPDefinitionInventoryId); /** * Returns all the cp definition inventories. * * @return the cp definition inventories */ public java.util.List findAll(); /** * Returns a range of all the cp definition inventories. * *

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

* * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (not inclusive) * @return the range of cp definition inventories */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the cp definition inventories. * *

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

* * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of cp definition inventories */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the cp definition inventories. * *

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

* * @param start the lower bound of the range of cp definition inventories * @param end the upper bound of the range of cp definition inventories (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 cp definition inventories */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the cp definition inventories from the database. */ public void removeAll(); /** * Returns the number of cp definition inventories. * * @return the number of cp definition inventories */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy