1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.shopping.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
97              com.liferay.portlet.shopping.NoSuchItemFieldException {
98          return getPersistence().remove(itemFieldId);
99      }
100 
101     /**
102      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
103      */
104     public static com.liferay.portlet.shopping.model.ShoppingItemField update(
105         com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
106         throws com.liferay.portal.SystemException {
107         return getPersistence().update(shoppingItemField);
108     }
109 
110     public static com.liferay.portlet.shopping.model.ShoppingItemField updateImpl(
111         com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
112         boolean merge) throws com.liferay.portal.SystemException {
113         return getPersistence().updateImpl(shoppingItemField, merge);
114     }
115 
116     public static com.liferay.portlet.shopping.model.ShoppingItemField findByPrimaryKey(
117         long itemFieldId)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.shopping.NoSuchItemFieldException {
120         return getPersistence().findByPrimaryKey(itemFieldId);
121     }
122 
123     public static com.liferay.portlet.shopping.model.ShoppingItemField fetchByPrimaryKey(
124         long itemFieldId) throws com.liferay.portal.SystemException {
125         return getPersistence().fetchByPrimaryKey(itemFieldId);
126     }
127 
128     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
129         long itemId) throws com.liferay.portal.SystemException {
130         return getPersistence().findByItemId(itemId);
131     }
132 
133     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
134         long itemId, int start, int end)
135         throws com.liferay.portal.SystemException {
136         return getPersistence().findByItemId(itemId, start, end);
137     }
138 
139     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
140         long itemId, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByItemId(itemId, start, end, obc);
144     }
145 
146     public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_First(
147         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.shopping.NoSuchItemFieldException {
150         return getPersistence().findByItemId_First(itemId, obc);
151     }
152 
153     public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_Last(
154         long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.shopping.NoSuchItemFieldException {
157         return getPersistence().findByItemId_Last(itemId, obc);
158     }
159 
160     public static com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
161         long itemFieldId, long itemId,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.shopping.NoSuchItemFieldException {
165         return getPersistence()
166                    .findByItemId_PrevAndNext(itemFieldId, itemId, obc);
167     }
168 
169     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll()
170         throws com.liferay.portal.SystemException {
171         return getPersistence().findAll();
172     }
173 
174     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
175         int start, int end) throws com.liferay.portal.SystemException {
176         return getPersistence().findAll(start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
180         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().findAll(start, end, obc);
183     }
184 
185     public static void removeByItemId(long itemId)
186         throws com.liferay.portal.SystemException {
187         getPersistence().removeByItemId(itemId);
188     }
189 
190     public static void removeAll() throws com.liferay.portal.SystemException {
191         getPersistence().removeAll();
192     }
193 
194     public static int countByItemId(long itemId)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().countByItemId(itemId);
197     }
198 
199     public static int countAll() throws com.liferay.portal.SystemException {
200         return getPersistence().countAll();
201     }
202 
203     public static ShoppingItemFieldPersistence getPersistence() {
204         if (_persistence == null) {
205             _persistence = (ShoppingItemFieldPersistence)PortalBeanLocatorUtil.locate(ShoppingItemFieldPersistence.class.getName());
206         }
207 
208         return _persistence;
209     }
210 
211     public void setPersistence(ShoppingItemFieldPersistence persistence) {
212         _persistence = persistence;
213     }
214 
215     private static ShoppingItemFieldPersistence _persistence;
216 }