1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public class ShoppingItemFieldUtil {
32 public static void cacheResult(
33 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
34 getPersistence().cacheResult(shoppingItemField);
35 }
36
37 public static void cacheResult(
38 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> shoppingItemFields) {
39 getPersistence().cacheResult(shoppingItemFields);
40 }
41
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46 public static com.liferay.portlet.shopping.model.ShoppingItemField create(
47 long itemFieldId) {
48 return getPersistence().create(itemFieldId);
49 }
50
51 public static com.liferay.portlet.shopping.model.ShoppingItemField remove(
52 long itemFieldId)
53 throws com.liferay.portal.SystemException,
54 com.liferay.portlet.shopping.NoSuchItemFieldException {
55 return getPersistence().remove(itemFieldId);
56 }
57
58 public static com.liferay.portlet.shopping.model.ShoppingItemField remove(
59 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
60 throws com.liferay.portal.SystemException {
61 return getPersistence().remove(shoppingItemField);
62 }
63
64
67 public static com.liferay.portlet.shopping.model.ShoppingItemField update(
68 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(shoppingItemField);
71 }
72
73
86 public static com.liferay.portlet.shopping.model.ShoppingItemField update(
87 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
88 boolean merge) throws com.liferay.portal.SystemException {
89 return getPersistence().update(shoppingItemField, merge);
90 }
91
92 public static com.liferay.portlet.shopping.model.ShoppingItemField updateImpl(
93 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField,
94 boolean merge) throws com.liferay.portal.SystemException {
95 return getPersistence().updateImpl(shoppingItemField, merge);
96 }
97
98 public static com.liferay.portlet.shopping.model.ShoppingItemField findByPrimaryKey(
99 long itemFieldId)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.shopping.NoSuchItemFieldException {
102 return getPersistence().findByPrimaryKey(itemFieldId);
103 }
104
105 public static com.liferay.portlet.shopping.model.ShoppingItemField fetchByPrimaryKey(
106 long itemFieldId) throws com.liferay.portal.SystemException {
107 return getPersistence().fetchByPrimaryKey(itemFieldId);
108 }
109
110 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
111 long itemId) throws com.liferay.portal.SystemException {
112 return getPersistence().findByItemId(itemId);
113 }
114
115 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
116 long itemId, int start, int end)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findByItemId(itemId, start, end);
119 }
120
121 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findByItemId(
122 long itemId, int start, int end,
123 com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByItemId(itemId, start, end, obc);
126 }
127
128 public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_First(
129 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.shopping.NoSuchItemFieldException {
132 return getPersistence().findByItemId_First(itemId, obc);
133 }
134
135 public static com.liferay.portlet.shopping.model.ShoppingItemField findByItemId_Last(
136 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.shopping.NoSuchItemFieldException {
139 return getPersistence().findByItemId_Last(itemId, obc);
140 }
141
142 public static com.liferay.portlet.shopping.model.ShoppingItemField[] findByItemId_PrevAndNext(
143 long itemFieldId, long itemId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.shopping.NoSuchItemFieldException {
147 return getPersistence()
148 .findByItemId_PrevAndNext(itemFieldId, itemId, obc);
149 }
150
151 public static java.util.List<Object> findWithDynamicQuery(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.SystemException {
154 return getPersistence().findWithDynamicQuery(dynamicQuery);
155 }
156
157 public static java.util.List<Object> findWithDynamicQuery(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159 int end) throws com.liferay.portal.SystemException {
160 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
161 }
162
163 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll()
164 throws com.liferay.portal.SystemException {
165 return getPersistence().findAll();
166 }
167
168 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> findAll(
169 int start, int end) throws com.liferay.portal.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.SystemException {
176 return getPersistence().findAll(start, end, obc);
177 }
178
179 public static void removeByItemId(long itemId)
180 throws com.liferay.portal.SystemException {
181 getPersistence().removeByItemId(itemId);
182 }
183
184 public static void removeAll() throws com.liferay.portal.SystemException {
185 getPersistence().removeAll();
186 }
187
188 public static int countByItemId(long itemId)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().countByItemId(itemId);
191 }
192
193 public static int countAll() throws com.liferay.portal.SystemException {
194 return getPersistence().countAll();
195 }
196
197 public static ShoppingItemFieldPersistence getPersistence() {
198 return _persistence;
199 }
200
201 public void setPersistence(ShoppingItemFieldPersistence persistence) {
202 _persistence = persistence;
203 }
204
205 private static ShoppingItemFieldPersistence _persistence;
206 }