/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.shopping.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.osgi.util.ServiceTrackerFactory; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.service.ServiceContext; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.shopping.model.ShoppingItem; import org.osgi.util.tracker.ServiceTracker; import java.util.List; /** * The persistence utility for the shopping item service. This utility wraps {@link com.liferay.shopping.service.persistence.impl.ShoppingItemPersistenceImpl} 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. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see ShoppingItemPersistence * @see com.liferay.shopping.service.persistence.impl.ShoppingItemPersistenceImpl * @generated */ @ProviderType public class ShoppingItemUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> 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(ShoppingItem shoppingItem) { getPersistence().clearCache(shoppingItem); } /** * @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#findWithDynamicQuery(DynamicQuery) */ public static List<ShoppingItem> findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<ShoppingItem> 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<ShoppingItem> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ShoppingItem> 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 ShoppingItem update(ShoppingItem shoppingItem) { return getPersistence().update(shoppingItem); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static ShoppingItem update(ShoppingItem shoppingItem, ServiceContext serviceContext) { return getPersistence().update(shoppingItem, serviceContext); } /** * Returns the shopping item where smallImageId = ? or throws a {@link NoSuchItemException} if it could not be found. * * @param smallImageId the small image ID * @return the matching shopping item * @throws NoSuchItemException if a matching shopping item could not be found */ public static ShoppingItem findBySmallImageId(long smallImageId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().findBySmallImageId(smallImageId); } /** * Returns the shopping item where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param smallImageId the small image ID * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchBySmallImageId(long smallImageId) { return getPersistence().fetchBySmallImageId(smallImageId); } /** * Returns the shopping item where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param smallImageId the small image ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchBySmallImageId(long smallImageId, boolean retrieveFromCache) { return getPersistence() .fetchBySmallImageId(smallImageId, retrieveFromCache); } /** * Removes the shopping item where smallImageId = ? from the database. * * @param smallImageId the small image ID * @return the shopping item that was removed */ public static ShoppingItem removeBySmallImageId(long smallImageId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().removeBySmallImageId(smallImageId); } /** * Returns the number of shopping items where smallImageId = ?. * * @param smallImageId the small image ID * @return the number of matching shopping items */ public static int countBySmallImageId(long smallImageId) { return getPersistence().countBySmallImageId(smallImageId); } /** * Returns the shopping item where mediumImageId = ? or throws a {@link NoSuchItemException} if it could not be found. * * @param mediumImageId the medium image ID * @return the matching shopping item * @throws NoSuchItemException if a matching shopping item could not be found */ public static ShoppingItem findByMediumImageId(long mediumImageId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().findByMediumImageId(mediumImageId); } /** * Returns the shopping item where mediumImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param mediumImageId the medium image ID * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByMediumImageId(long mediumImageId) { return getPersistence().fetchByMediumImageId(mediumImageId); } /** * Returns the shopping item where mediumImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param mediumImageId the medium image ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByMediumImageId(long mediumImageId, boolean retrieveFromCache) { return getPersistence() .fetchByMediumImageId(mediumImageId, retrieveFromCache); } /** * Removes the shopping item where mediumImageId = ? from the database. * * @param mediumImageId the medium image ID * @return the shopping item that was removed */ public static ShoppingItem removeByMediumImageId(long mediumImageId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().removeByMediumImageId(mediumImageId); } /** * Returns the number of shopping items where mediumImageId = ?. * * @param mediumImageId the medium image ID * @return the number of matching shopping items */ public static int countByMediumImageId(long mediumImageId) { return getPersistence().countByMediumImageId(mediumImageId); } /** * Returns the shopping item where largeImageId = ? or throws a {@link NoSuchItemException} if it could not be found. * * @param largeImageId the large image ID * @return the matching shopping item * @throws NoSuchItemException if a matching shopping item could not be found */ public static ShoppingItem findByLargeImageId(long largeImageId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().findByLargeImageId(largeImageId); } /** * Returns the shopping item where largeImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param largeImageId the large image ID * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByLargeImageId(long largeImageId) { return getPersistence().fetchByLargeImageId(largeImageId); } /** * Returns the shopping item where largeImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param largeImageId the large image ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByLargeImageId(long largeImageId, boolean retrieveFromCache) { return getPersistence() .fetchByLargeImageId(largeImageId, retrieveFromCache); } /** * Removes the shopping item where largeImageId = ? from the database. * * @param largeImageId the large image ID * @return the shopping item that was removed */ public static ShoppingItem removeByLargeImageId(long largeImageId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().removeByLargeImageId(largeImageId); } /** * Returns the number of shopping items where largeImageId = ?. * * @param largeImageId the large image ID * @return the number of matching shopping items */ public static int countByLargeImageId(long largeImageId) { return getPersistence().countByLargeImageId(largeImageId); } /** * Returns all the shopping items where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the matching shopping items */ public static List<ShoppingItem> findByG_C(long groupId, long categoryId) { return getPersistence().findByG_C(groupId, categoryId); } /** * Returns a range of all the shopping items where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @return the range of matching shopping items */ public static List<ShoppingItem> findByG_C(long groupId, long categoryId, int start, int end) { return getPersistence().findByG_C(groupId, categoryId, start, end); } /** * Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching shopping items */ public static List<ShoppingItem> findByG_C(long groupId, long categoryId, int start, int end, OrderByComparator<ShoppingItem> orderByComparator) { return getPersistence() .findByG_C(groupId, categoryId, start, end, orderByComparator); } /** * Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching shopping items */ public static List<ShoppingItem> findByG_C(long groupId, long categoryId, int start, int end, OrderByComparator<ShoppingItem> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByG_C(groupId, categoryId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching shopping item * @throws NoSuchItemException if a matching shopping item could not be found */ public static ShoppingItem findByG_C_First(long groupId, long categoryId, OrderByComparator<ShoppingItem> orderByComparator) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence() .findByG_C_First(groupId, categoryId, orderByComparator); } /** * Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByG_C_First(long groupId, long categoryId, OrderByComparator<ShoppingItem> orderByComparator) { return getPersistence() .fetchByG_C_First(groupId, categoryId, orderByComparator); } /** * Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching shopping item * @throws NoSuchItemException if a matching shopping item could not be found */ public static ShoppingItem findByG_C_Last(long groupId, long categoryId, OrderByComparator<ShoppingItem> orderByComparator) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence() .findByG_C_Last(groupId, categoryId, orderByComparator); } /** * Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByG_C_Last(long groupId, long categoryId, OrderByComparator<ShoppingItem> orderByComparator) { return getPersistence() .fetchByG_C_Last(groupId, categoryId, orderByComparator); } /** * Returns the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?. * * @param itemId the primary key of the current shopping item * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next shopping item * @throws NoSuchItemException if a shopping item with the primary key could not be found */ public static ShoppingItem[] findByG_C_PrevAndNext(long itemId, long groupId, long categoryId, OrderByComparator<ShoppingItem> orderByComparator) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence() .findByG_C_PrevAndNext(itemId, groupId, categoryId, orderByComparator); } /** * Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the matching shopping items that the user has permission to view */ public static List<ShoppingItem> filterFindByG_C(long groupId, long categoryId) { return getPersistence().filterFindByG_C(groupId, categoryId); } /** * Returns a range of all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @return the range of matching shopping items that the user has permission to view */ public static List<ShoppingItem> filterFindByG_C(long groupId, long categoryId, int start, int end) { return getPersistence().filterFindByG_C(groupId, categoryId, start, end); } /** * Returns an ordered range of all the shopping items that the user has permissions to view where groupId = ? and categoryId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param categoryId the category ID * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching shopping items that the user has permission to view */ public static List<ShoppingItem> filterFindByG_C(long groupId, long categoryId, int start, int end, OrderByComparator<ShoppingItem> orderByComparator) { return getPersistence() .filterFindByG_C(groupId, categoryId, start, end, orderByComparator); } /** * Returns the shopping items before and after the current shopping item in the ordered set of shopping items that the user has permission to view where groupId = ? and categoryId = ?. * * @param itemId the primary key of the current shopping item * @param groupId the group ID * @param categoryId the category ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next shopping item * @throws NoSuchItemException if a shopping item with the primary key could not be found */ public static ShoppingItem[] filterFindByG_C_PrevAndNext(long itemId, long groupId, long categoryId, OrderByComparator<ShoppingItem> orderByComparator) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence() .filterFindByG_C_PrevAndNext(itemId, groupId, categoryId, orderByComparator); } /** * Removes all the shopping items where groupId = ? and categoryId = ? from the database. * * @param groupId the group ID * @param categoryId the category ID */ public static void removeByG_C(long groupId, long categoryId) { getPersistence().removeByG_C(groupId, categoryId); } /** * Returns the number of shopping items where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the number of matching shopping items */ public static int countByG_C(long groupId, long categoryId) { return getPersistence().countByG_C(groupId, categoryId); } /** * Returns the number of shopping items that the user has permission to view where groupId = ? and categoryId = ?. * * @param groupId the group ID * @param categoryId the category ID * @return the number of matching shopping items that the user has permission to view */ public static int filterCountByG_C(long groupId, long categoryId) { return getPersistence().filterCountByG_C(groupId, categoryId); } /** * Returns the shopping item where companyId = ? and sku = ? or throws a {@link NoSuchItemException} if it could not be found. * * @param companyId the company ID * @param sku the sku * @return the matching shopping item * @throws NoSuchItemException if a matching shopping item could not be found */ public static ShoppingItem findByC_S(long companyId, java.lang.String sku) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().findByC_S(companyId, sku); } /** * Returns the shopping item where companyId = ? and sku = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param sku the sku * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByC_S(long companyId, java.lang.String sku) { return getPersistence().fetchByC_S(companyId, sku); } /** * Returns the shopping item where companyId = ? and sku = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param sku the sku * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching shopping item, or <code>null</code> if a matching shopping item could not be found */ public static ShoppingItem fetchByC_S(long companyId, java.lang.String sku, boolean retrieveFromCache) { return getPersistence().fetchByC_S(companyId, sku, retrieveFromCache); } /** * Removes the shopping item where companyId = ? and sku = ? from the database. * * @param companyId the company ID * @param sku the sku * @return the shopping item that was removed */ public static ShoppingItem removeByC_S(long companyId, java.lang.String sku) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().removeByC_S(companyId, sku); } /** * Returns the number of shopping items where companyId = ? and sku = ?. * * @param companyId the company ID * @param sku the sku * @return the number of matching shopping items */ public static int countByC_S(long companyId, java.lang.String sku) { return getPersistence().countByC_S(companyId, sku); } /** * Caches the shopping item in the entity cache if it is enabled. * * @param shoppingItem the shopping item */ public static void cacheResult(ShoppingItem shoppingItem) { getPersistence().cacheResult(shoppingItem); } /** * Caches the shopping items in the entity cache if it is enabled. * * @param shoppingItems the shopping items */ public static void cacheResult(List<ShoppingItem> shoppingItems) { getPersistence().cacheResult(shoppingItems); } /** * Creates a new shopping item with the primary key. Does not add the shopping item to the database. * * @param itemId the primary key for the new shopping item * @return the new shopping item */ public static ShoppingItem create(long itemId) { return getPersistence().create(itemId); } /** * Removes the shopping item with the primary key from the database. Also notifies the appropriate model listeners. * * @param itemId the primary key of the shopping item * @return the shopping item that was removed * @throws NoSuchItemException if a shopping item with the primary key could not be found */ public static ShoppingItem remove(long itemId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().remove(itemId); } public static ShoppingItem updateImpl(ShoppingItem shoppingItem) { return getPersistence().updateImpl(shoppingItem); } /** * Returns the shopping item with the primary key or throws a {@link NoSuchItemException} if it could not be found. * * @param itemId the primary key of the shopping item * @return the shopping item * @throws NoSuchItemException if a shopping item with the primary key could not be found */ public static ShoppingItem findByPrimaryKey(long itemId) throws com.liferay.shopping.exception.NoSuchItemException { return getPersistence().findByPrimaryKey(itemId); } /** * Returns the shopping item with the primary key or returns <code>null</code> if it could not be found. * * @param itemId the primary key of the shopping item * @return the shopping item, or <code>null</code> if a shopping item with the primary key could not be found */ public static ShoppingItem fetchByPrimaryKey(long itemId) { return getPersistence().fetchByPrimaryKey(itemId); } public static java.util.Map<java.io.Serializable, ShoppingItem> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * Returns all the shopping items. * * @return the shopping items */ public static List<ShoppingItem> findAll() { return getPersistence().findAll(); } /** * Returns a range of all the shopping items. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @return the range of shopping items */ public static List<ShoppingItem> findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the shopping items. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of shopping items */ public static List<ShoppingItem> findAll(int start, int end, OrderByComparator<ShoppingItem> orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the shopping items. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ShoppingItemModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of shopping items * @param end the upper bound of the range of shopping items (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of shopping items */ public static List<ShoppingItem> findAll(int start, int end, OrderByComparator<ShoppingItem> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findAll(start, end, orderByComparator, retrieveFromCache); } /** * Removes all the shopping items from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of shopping items. * * @return the number of shopping items */ public static int countAll() { return getPersistence().countAll(); } public static java.util.Set<java.lang.String> getBadColumnNames() { return getPersistence().getBadColumnNames(); } public static ShoppingItemPersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker<ShoppingItemPersistence, ShoppingItemPersistence> _serviceTracker = ServiceTrackerFactory.open(ShoppingItemPersistence.class); }