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.ShoppingItemField;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="ShoppingItemFieldUtil.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       ShoppingItemFieldPersistence
35   * @see       ShoppingItemFieldPersistenceImpl
36   * @generated
37   */
38  public class ShoppingItemFieldUtil {
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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static ShoppingItemField remove(ShoppingItemField shoppingItemField)
66          throws SystemException {
67          return getPersistence().remove(shoppingItemField);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static ShoppingItemField update(
74          ShoppingItemField shoppingItemField, boolean merge)
75          throws SystemException {
76          return getPersistence().update(shoppingItemField, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
81          getPersistence().cacheResult(shoppingItemField);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> shoppingItemFields) {
86          getPersistence().cacheResult(shoppingItemFields);
87      }
88  
89      public static com.liferay.portlet.shopping.model.ShoppingItemField create(
90          long itemFieldId) {
91          return getPersistence().create(itemFieldId);
92      }
93  
94      public static com.liferay.portlet.shopping.model.ShoppingItemField remove(
95          long itemFieldId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.shopping.NoSuchItemFieldException {
98          return getPersistence().remove(itemFieldId);
99      }
100 
101     public static com.liferay.portlet.shopping.model.ShoppingItemField updateImpl(
102         com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(shoppingItemField, merge);
106     }
107 
108     public static com.liferay.portlet.shopping.model.ShoppingItemField findByPrimaryKey(
109         long itemFieldId)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.shopping.NoSuchItemFieldException {
112         return getPersistence().findByPrimaryKey(itemFieldId);
113     }
114 
115     public static com.liferay.portlet.shopping.model.ShoppingItemField fetchByPrimaryKey(
116         long itemFieldId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(itemFieldId);
119     }
120 
121     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
122         long itemId) throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByItemId(itemId);
124     }
125 
126     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
127         long itemId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByItemId(itemId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
133         long itemId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByItemId(itemId, start, end, orderByComparator);
138     }
139 
140     public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_First(
141         long itemId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.kernel.exception.SystemException,
144             com.liferay.portlet.shopping.NoSuchItemFieldException {
145         return getPersistence().findByItemId_First(itemId, orderByComparator);
146     }
147 
148     public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_Last(
149         long itemId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.shopping.NoSuchItemFieldException {
153         return getPersistence().findByItemId_Last(itemId, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
157         long itemFieldId, long itemId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.shopping.NoSuchItemFieldException {
161         return getPersistence()
162                    .findByItemId_PrevAndNext(itemFieldId, itemId,
163             orderByComparator);
164     }
165 
166     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll()
167         throws com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().findAll();
169     }
170 
171     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
172         int start, int end)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().findAll(start, end);
175     }
176 
177     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
178         int start, int end,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence().findAll(start, end, orderByComparator);
182     }
183 
184     public static void removeByItemId(long itemId)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         getPersistence().removeByItemId(itemId);
187     }
188 
189     public static void removeAll()
190         throws com.liferay.portal.kernel.exception.SystemException {
191         getPersistence().removeAll();
192     }
193 
194     public static int countByItemId(long itemId)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().countByItemId(itemId);
197     }
198 
199     public static int countAll()
200         throws com.liferay.portal.kernel.exception.SystemException {
201         return getPersistence().countAll();
202     }
203 
204     public static ShoppingItemFieldPersistence getPersistence() {
205         if (_persistence == null) {
206             _persistence = (ShoppingItemFieldPersistence)PortalBeanLocatorUtil.locate(ShoppingItemFieldPersistence.class.getName());
207         }
208 
209         return _persistence;
210     }
211 
212     public void setPersistence(ShoppingItemFieldPersistence persistence) {
213         _persistence = persistence;
214     }
215 
216     private static ShoppingItemFieldPersistence _persistence;
217 }