001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.shopping.model.ShoppingItemPrice;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingItemPricePersistenceImpl
024     * @see       ShoppingItemPriceUtil
025     * @generated
026     */
027    public interface ShoppingItemPricePersistence extends BasePersistence<ShoppingItemPrice> {
028            public void cacheResult(
029                    com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> shoppingItemPrices);
033    
034            public com.liferay.portlet.shopping.model.ShoppingItemPrice create(
035                    long itemPriceId);
036    
037            public com.liferay.portlet.shopping.model.ShoppingItemPrice remove(
038                    long itemPriceId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.shopping.NoSuchItemPriceException;
041    
042            public com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl(
043                    com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey(
048                    long itemPriceId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.shopping.NoSuchItemPriceException;
051    
052            public com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey(
053                    long itemPriceId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
057                    long itemId) throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
060                    long itemId, int start, int end)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
064                    long itemId, int start, int end,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
069                    long itemId,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.kernel.exception.SystemException,
072                            com.liferay.portlet.shopping.NoSuchItemPriceException;
073    
074            public com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
075                    long itemId,
076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077                    throws com.liferay.portal.kernel.exception.SystemException,
078                            com.liferay.portlet.shopping.NoSuchItemPriceException;
079    
080            public com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
081                    long itemPriceId, long itemId,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException,
084                            com.liferay.portlet.shopping.NoSuchItemPriceException;
085    
086            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
090                    int start, int end)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
094                    int start, int end,
095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public void removeByItemId(long itemId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public void removeAll()
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public int countByItemId(long itemId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public int countAll()
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    }