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