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 obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByItemId(itemId, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_First(
140         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.shopping.NoSuchItemFieldException {
143         return getPersistence().findByItemId_First(itemId, obc);
144     }
145 
146     public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_Last(
147         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.shopping.NoSuchItemFieldException {
150         return getPersistence().findByItemId_Last(itemId, obc);
151     }
152 
153     public static com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
154         long itemFieldId, long itemId,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.shopping.NoSuchItemFieldException {
158         return getPersistence()
159                    .findByItemId_PrevAndNext(itemFieldId, itemId, obc);
160     }
161 
162     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll()
163         throws com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence().findAll();
165     }
166 
167     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
168         int start, int end)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().findAll(start, end);
171     }
172 
173     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
174         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         return getPersistence().findAll(start, end, obc);
177     }
178 
179     public static void removeByItemId(long itemId)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         getPersistence().removeByItemId(itemId);
182     }
183 
184     public static void removeAll()
185         throws com.liferay.portal.kernel.exception.SystemException {
186         getPersistence().removeAll();
187     }
188 
189     public static int countByItemId(long itemId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().countByItemId(itemId);
192     }
193 
194     public static int countAll()
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().countAll();
197     }
198 
199     public static ShoppingItemFieldPersistence getPersistence() {
200         if (_persistence == null) {
201             _persistence = (ShoppingItemFieldPersistence)PortalBeanLocatorUtil.locate(ShoppingItemFieldPersistence.class.getName());
202         }
203 
204         return _persistence;
205     }
206 
207     public void setPersistence(ShoppingItemFieldPersistence persistence) {
208         _persistence = persistence;
209     }
210 
211     private static ShoppingItemFieldPersistence _persistence;
212 }