1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.shopping.model.ShoppingItemPrice;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="ShoppingItemPriceUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       ShoppingItemPricePersistence
35   * @see       ShoppingItemPricePersistenceImpl
36   * @generated
37   */
38  public class ShoppingItemPriceUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(ShoppingItemPrice)
48       */
49      public static void clearCache(ShoppingItemPrice shoppingItemPrice) {
50          getPersistence().clearCache(shoppingItemPrice);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<ShoppingItemPrice> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<ShoppingItemPrice> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static ShoppingItemPrice remove(ShoppingItemPrice shoppingItemPrice)
82          throws SystemException {
83          return getPersistence().remove(shoppingItemPrice);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static ShoppingItemPrice update(
90          ShoppingItemPrice shoppingItemPrice, boolean merge)
91          throws SystemException {
92          return getPersistence().update(shoppingItemPrice, merge);
93      }
94  
95      public static void cacheResult(
96          com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) {
97          getPersistence().cacheResult(shoppingItemPrice);
98      }
99  
100     public static void cacheResult(
101         java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> shoppingItemPrices) {
102         getPersistence().cacheResult(shoppingItemPrices);
103     }
104 
105     public static com.liferay.portlet.shopping.model.ShoppingItemPrice create(
106         long itemPriceId) {
107         return getPersistence().create(itemPriceId);
108     }
109 
110     public static com.liferay.portlet.shopping.model.ShoppingItemPrice remove(
111         long itemPriceId)
112         throws com.liferay.portal.kernel.exception.SystemException,
113             com.liferay.portlet.shopping.NoSuchItemPriceException {
114         return getPersistence().remove(itemPriceId);
115     }
116 
117     public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl(
118         com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
119         boolean merge)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().updateImpl(shoppingItemPrice, merge);
122     }
123 
124     public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey(
125         long itemPriceId)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.shopping.NoSuchItemPriceException {
128         return getPersistence().findByPrimaryKey(itemPriceId);
129     }
130 
131     public static com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey(
132         long itemPriceId)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence().fetchByPrimaryKey(itemPriceId);
135     }
136 
137     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
138         long itemId) throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByItemId(itemId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
143         long itemId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByItemId(itemId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
149         long itemId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByItemId(itemId, start, end, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
157         long itemId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.shopping.NoSuchItemPriceException {
161         return getPersistence().findByItemId_First(itemId, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
165         long itemId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.shopping.NoSuchItemPriceException {
169         return getPersistence().findByItemId_Last(itemId, orderByComparator);
170     }
171 
172     public static com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
173         long itemPriceId, long itemId,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.shopping.NoSuchItemPriceException {
177         return getPersistence()
178                    .findByItemId_PrevAndNext(itemPriceId, itemId,
179             orderByComparator);
180     }
181 
182     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getPersistence().findAll();
185     }
186 
187     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
188         int start, int end)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().findAll(start, end);
191     }
192 
193     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
194         int start, int end,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().findAll(start, end, orderByComparator);
198     }
199 
200     public static void removeByItemId(long itemId)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         getPersistence().removeByItemId(itemId);
203     }
204 
205     public static void removeAll()
206         throws com.liferay.portal.kernel.exception.SystemException {
207         getPersistence().removeAll();
208     }
209 
210     public static int countByItemId(long itemId)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getPersistence().countByItemId(itemId);
213     }
214 
215     public static int countAll()
216         throws com.liferay.portal.kernel.exception.SystemException {
217         return getPersistence().countAll();
218     }
219 
220     public static ShoppingItemPricePersistence getPersistence() {
221         if (_persistence == null) {
222             _persistence = (ShoppingItemPricePersistence)PortalBeanLocatorUtil.locate(ShoppingItemPricePersistence.class.getName());
223         }
224 
225         return _persistence;
226     }
227 
228     public void setPersistence(ShoppingItemPricePersistence persistence) {
229         _persistence = persistence;
230     }
231 
232     private static ShoppingItemPricePersistence _persistence;
233 }