1
14
15 package com.liferay.portal.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 import com.liferay.portal.model.PortletItem;
21
22 import java.util.List;
23
24
37 public class PortletItemUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57 int start, int end) throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59 }
60
61
64 public static PortletItem remove(PortletItem portletItem)
65 throws SystemException {
66 return getPersistence().remove(portletItem);
67 }
68
69
72 public static PortletItem update(PortletItem portletItem, boolean merge)
73 throws SystemException {
74 return getPersistence().update(portletItem, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portal.model.PortletItem portletItem) {
79 getPersistence().cacheResult(portletItem);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portal.model.PortletItem> portletItems) {
84 getPersistence().cacheResult(portletItems);
85 }
86
87 public static com.liferay.portal.model.PortletItem create(
88 long portletItemId) {
89 return getPersistence().create(portletItemId);
90 }
91
92 public static com.liferay.portal.model.PortletItem remove(
93 long portletItemId)
94 throws com.liferay.portal.NoSuchPortletItemException,
95 com.liferay.portal.kernel.exception.SystemException {
96 return getPersistence().remove(portletItemId);
97 }
98
99 public static com.liferay.portal.model.PortletItem updateImpl(
100 com.liferay.portal.model.PortletItem portletItem, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getPersistence().updateImpl(portletItem, merge);
103 }
104
105 public static com.liferay.portal.model.PortletItem findByPrimaryKey(
106 long portletItemId)
107 throws com.liferay.portal.NoSuchPortletItemException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getPersistence().findByPrimaryKey(portletItemId);
110 }
111
112 public static com.liferay.portal.model.PortletItem fetchByPrimaryKey(
113 long portletItemId)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getPersistence().fetchByPrimaryKey(portletItemId);
116 }
117
118 public static java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
119 long groupId, long classNameId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().findByG_C(groupId, classNameId);
122 }
123
124 public static java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
125 long groupId, long classNameId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().findByG_C(groupId, classNameId, start, end);
128 }
129
130 public static java.util.List<com.liferay.portal.model.PortletItem> findByG_C(
131 long groupId, long classNameId, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByG_C(groupId, classNameId, start, end, obc);
135 }
136
137 public static com.liferay.portal.model.PortletItem findByG_C_First(
138 long groupId, long classNameId,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.NoSuchPortletItemException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getPersistence().findByG_C_First(groupId, classNameId, obc);
143 }
144
145 public static com.liferay.portal.model.PortletItem findByG_C_Last(
146 long groupId, long classNameId,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.NoSuchPortletItemException,
149 com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByG_C_Last(groupId, classNameId, obc);
151 }
152
153 public static com.liferay.portal.model.PortletItem[] findByG_C_PrevAndNext(
154 long portletItemId, long groupId, long classNameId,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.NoSuchPortletItemException,
157 com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence()
159 .findByG_C_PrevAndNext(portletItemId, groupId, classNameId,
160 obc);
161 }
162
163 public static java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
164 long groupId, java.lang.String portletId, long classNameId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByG_P_C(groupId, portletId, classNameId);
167 }
168
169 public static java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
170 long groupId, java.lang.String portletId, long classNameId, int start,
171 int end) throws com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence()
173 .findByG_P_C(groupId, portletId, classNameId, start, end);
174 }
175
176 public static java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C(
177 long groupId, java.lang.String portletId, long classNameId, int start,
178 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence()
181 .findByG_P_C(groupId, portletId, classNameId, start, end, obc);
182 }
183
184 public static com.liferay.portal.model.PortletItem findByG_P_C_First(
185 long groupId, java.lang.String portletId, long classNameId,
186 com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.NoSuchPortletItemException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence()
190 .findByG_P_C_First(groupId, portletId, classNameId, obc);
191 }
192
193 public static com.liferay.portal.model.PortletItem findByG_P_C_Last(
194 long groupId, java.lang.String portletId, long classNameId,
195 com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.NoSuchPortletItemException,
197 com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence()
199 .findByG_P_C_Last(groupId, portletId, classNameId, obc);
200 }
201
202 public static com.liferay.portal.model.PortletItem[] findByG_P_C_PrevAndNext(
203 long portletItemId, long groupId, java.lang.String portletId,
204 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.NoSuchPortletItemException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence()
208 .findByG_P_C_PrevAndNext(portletItemId, groupId, portletId,
209 classNameId, obc);
210 }
211
212 public static com.liferay.portal.model.PortletItem findByG_N_P_C(
213 long groupId, java.lang.String name, java.lang.String portletId,
214 long classNameId)
215 throws com.liferay.portal.NoSuchPortletItemException,
216 com.liferay.portal.kernel.exception.SystemException {
217 return getPersistence()
218 .findByG_N_P_C(groupId, name, portletId, classNameId);
219 }
220
221 public static com.liferay.portal.model.PortletItem fetchByG_N_P_C(
222 long groupId, java.lang.String name, java.lang.String portletId,
223 long classNameId)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence()
226 .fetchByG_N_P_C(groupId, name, portletId, classNameId);
227 }
228
229 public static com.liferay.portal.model.PortletItem fetchByG_N_P_C(
230 long groupId, java.lang.String name, java.lang.String portletId,
231 long classNameId, boolean retrieveFromCache)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence()
234 .fetchByG_N_P_C(groupId, name, portletId, classNameId,
235 retrieveFromCache);
236 }
237
238 public static java.util.List<com.liferay.portal.model.PortletItem> findAll()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().findAll();
241 }
242
243 public static java.util.List<com.liferay.portal.model.PortletItem> findAll(
244 int start, int end)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().findAll(start, end);
247 }
248
249 public static java.util.List<com.liferay.portal.model.PortletItem> findAll(
250 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().findAll(start, end, obc);
253 }
254
255 public static void removeByG_C(long groupId, long classNameId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getPersistence().removeByG_C(groupId, classNameId);
258 }
259
260 public static void removeByG_P_C(long groupId, java.lang.String portletId,
261 long classNameId)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 getPersistence().removeByG_P_C(groupId, portletId, classNameId);
264 }
265
266 public static void removeByG_N_P_C(long groupId, java.lang.String name,
267 java.lang.String portletId, long classNameId)
268 throws com.liferay.portal.NoSuchPortletItemException,
269 com.liferay.portal.kernel.exception.SystemException {
270 getPersistence().removeByG_N_P_C(groupId, name, portletId, classNameId);
271 }
272
273 public static void removeAll()
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getPersistence().removeAll();
276 }
277
278 public static int countByG_C(long groupId, long classNameId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().countByG_C(groupId, classNameId);
281 }
282
283 public static int countByG_P_C(long groupId, java.lang.String portletId,
284 long classNameId)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().countByG_P_C(groupId, portletId, classNameId);
287 }
288
289 public static int countByG_N_P_C(long groupId, java.lang.String name,
290 java.lang.String portletId, long classNameId)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence()
293 .countByG_N_P_C(groupId, name, portletId, classNameId);
294 }
295
296 public static int countAll()
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence().countAll();
299 }
300
301 public static PortletItemPersistence getPersistence() {
302 if (_persistence == null) {
303 _persistence = (PortletItemPersistence)PortalBeanLocatorUtil.locate(PortletItemPersistence.class.getName());
304 }
305
306 return _persistence;
307 }
308
309 public void setPersistence(PortletItemPersistence persistence) {
310 _persistence = persistence;
311 }
312
313 private static PortletItemPersistence _persistence;
314 }