1
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
38 public class ShoppingItemFieldUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(ShoppingItemField shoppingItemField) {
50 getPersistence().clearCache(shoppingItemField);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<ShoppingItemField> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<ShoppingItemField> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static ShoppingItemField remove(ShoppingItemField shoppingItemField)
82 throws SystemException {
83 return getPersistence().remove(shoppingItemField);
84 }
85
86
89 public static ShoppingItemField update(
90 ShoppingItemField shoppingItemField, boolean merge)
91 throws SystemException {
92 return getPersistence().update(shoppingItemField, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
97 getPersistence().cacheResult(shoppingItemField);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> shoppingItemFields) {
102 getPersistence().cacheResult(shoppingItemFields);
103 }
104
105 public static com.liferay.portlet.shopping.model.ShoppingItemField create(
106 long itemFieldId) {
107 return getPersistence().create(itemFieldId);
108 }
109
110 public static com.liferay.portlet.shopping.model.ShoppingItemField remove(
111 long itemFieldId)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.shopping.NoSuchItemFieldException {
114 return getPersistence().remove(itemFieldId);
115 }
116
117 public static com.liferay.portlet.shopping.model.ShoppingItemField updateImpl(
118 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().updateImpl(shoppingItemField, merge);
122 }
123
124 public static com.liferay.portlet.shopping.model.ShoppingItemField findByPrimaryKey(
125 long itemFieldId)
126 throws com.liferay.portal.kernel.exception.SystemException,
127 com.liferay.portlet.shopping.NoSuchItemFieldException {
128 return getPersistence().findByPrimaryKey(itemFieldId);
129 }
130
131 public static com.liferay.portlet.shopping.model.ShoppingItemField fetchByPrimaryKey(
132 long itemFieldId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().fetchByPrimaryKey(itemFieldId);
135 }
136
137 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> 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.ShoppingItemField> 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.ShoppingItemField> 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.ShoppingItemField 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.NoSuchItemFieldException {
161 return getPersistence().findByItemId_First(itemId, orderByComparator);
162 }
163
164 public static com.liferay.portlet.shopping.model.ShoppingItemField 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.NoSuchItemFieldException {
169 return getPersistence().findByItemId_Last(itemId, orderByComparator);
170 }
171
172 public static com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
173 long itemFieldId, long itemId,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.kernel.exception.SystemException,
176 com.liferay.portlet.shopping.NoSuchItemFieldException {
177 return getPersistence()
178 .findByItemId_PrevAndNext(itemFieldId, itemId,
179 orderByComparator);
180 }
181
182 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> 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.ShoppingItemField> 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.ShoppingItemField> 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 ShoppingItemFieldPersistence getPersistence() {
221 if (_persistence == null) {
222 _persistence = (ShoppingItemFieldPersistence)PortalBeanLocatorUtil.locate(ShoppingItemFieldPersistence.class.getName());
223 }
224
225 return _persistence;
226 }
227
228 public void setPersistence(ShoppingItemFieldPersistence persistence) {
229 _persistence = persistence;
230 }
231
232 private static ShoppingItemFieldPersistence _persistence;
233 }