1
14
15 package com.liferay.portlet.imagegallery.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.imagegallery.model.IGFolder;
22
23 import java.util.List;
24
25
38 public class IGFolderUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
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
65 public static IGFolder remove(IGFolder igFolder) throws SystemException {
66 return getPersistence().remove(igFolder);
67 }
68
69
72 public static IGFolder update(IGFolder igFolder, boolean merge)
73 throws SystemException {
74 return getPersistence().update(igFolder, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portlet.imagegallery.model.IGFolder igFolder) {
79 getPersistence().cacheResult(igFolder);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders) {
84 getPersistence().cacheResult(igFolders);
85 }
86
87 public static com.liferay.portlet.imagegallery.model.IGFolder create(
88 long folderId) {
89 return getPersistence().create(folderId);
90 }
91
92 public static com.liferay.portlet.imagegallery.model.IGFolder remove(
93 long folderId)
94 throws com.liferay.portal.SystemException,
95 com.liferay.portlet.imagegallery.NoSuchFolderException {
96 return getPersistence().remove(folderId);
97 }
98
99
102 public static com.liferay.portlet.imagegallery.model.IGFolder update(
103 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().update(igFolder);
106 }
107
108 public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
109 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().updateImpl(igFolder, merge);
112 }
113
114 public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
115 long folderId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.imagegallery.NoSuchFolderException {
118 return getPersistence().findByPrimaryKey(folderId);
119 }
120
121 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
122 long folderId) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByPrimaryKey(folderId);
124 }
125
126 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
127 java.lang.String uuid) throws com.liferay.portal.SystemException {
128 return getPersistence().findByUuid(uuid);
129 }
130
131 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
132 java.lang.String uuid, int start, int end)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findByUuid(uuid, start, end);
135 }
136
137 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
138 java.lang.String uuid, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
142 }
143
144 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
145 java.lang.String uuid,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.imagegallery.NoSuchFolderException {
149 return getPersistence().findByUuid_First(uuid, orderByComparator);
150 }
151
152 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
153 java.lang.String uuid,
154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.imagegallery.NoSuchFolderException {
157 return getPersistence().findByUuid_Last(uuid, orderByComparator);
158 }
159
160 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
161 long folderId, java.lang.String uuid,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.imagegallery.NoSuchFolderException {
165 return getPersistence()
166 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
170 java.lang.String uuid, long groupId)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.imagegallery.NoSuchFolderException {
173 return getPersistence().findByUUID_G(uuid, groupId);
174 }
175
176 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
177 java.lang.String uuid, long groupId)
178 throws com.liferay.portal.SystemException {
179 return getPersistence().fetchByUUID_G(uuid, groupId);
180 }
181
182 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
183 java.lang.String uuid, long groupId, boolean retrieveFromCache)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186 }
187
188 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
189 long groupId) throws com.liferay.portal.SystemException {
190 return getPersistence().findByGroupId(groupId);
191 }
192
193 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
194 long groupId, int start, int end)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findByGroupId(groupId, start, end);
197 }
198
199 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
200 long groupId, int start, int end,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.SystemException {
203 return getPersistence()
204 .findByGroupId(groupId, start, end, orderByComparator);
205 }
206
207 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
208 long groupId,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.imagegallery.NoSuchFolderException {
212 return getPersistence().findByGroupId_First(groupId, orderByComparator);
213 }
214
215 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
216 long groupId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.SystemException,
219 com.liferay.portlet.imagegallery.NoSuchFolderException {
220 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
221 }
222
223 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
224 long folderId, long groupId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portlet.imagegallery.NoSuchFolderException {
228 return getPersistence()
229 .findByGroupId_PrevAndNext(folderId, groupId,
230 orderByComparator);
231 }
232
233 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
234 long companyId) throws com.liferay.portal.SystemException {
235 return getPersistence().findByCompanyId(companyId);
236 }
237
238 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
239 long companyId, int start, int end)
240 throws com.liferay.portal.SystemException {
241 return getPersistence().findByCompanyId(companyId, start, end);
242 }
243
244 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
245 long companyId, int start, int end,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.SystemException {
248 return getPersistence()
249 .findByCompanyId(companyId, start, end, orderByComparator);
250 }
251
252 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
253 long companyId,
254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.imagegallery.NoSuchFolderException {
257 return getPersistence()
258 .findByCompanyId_First(companyId, orderByComparator);
259 }
260
261 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
262 long companyId,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portlet.imagegallery.NoSuchFolderException {
266 return getPersistence()
267 .findByCompanyId_Last(companyId, orderByComparator);
268 }
269
270 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
271 long folderId, long companyId,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portlet.imagegallery.NoSuchFolderException {
275 return getPersistence()
276 .findByCompanyId_PrevAndNext(folderId, companyId,
277 orderByComparator);
278 }
279
280 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
281 long groupId, long parentFolderId)
282 throws com.liferay.portal.SystemException {
283 return getPersistence().findByG_P(groupId, parentFolderId);
284 }
285
286 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
287 long groupId, long parentFolderId, int start, int end)
288 throws com.liferay.portal.SystemException {
289 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
290 }
291
292 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
293 long groupId, long parentFolderId, int start, int end,
294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295 throws com.liferay.portal.SystemException {
296 return getPersistence()
297 .findByG_P(groupId, parentFolderId, start, end,
298 orderByComparator);
299 }
300
301 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
302 long groupId, long parentFolderId,
303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304 throws com.liferay.portal.SystemException,
305 com.liferay.portlet.imagegallery.NoSuchFolderException {
306 return getPersistence()
307 .findByG_P_First(groupId, parentFolderId, orderByComparator);
308 }
309
310 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
311 long groupId, long parentFolderId,
312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313 throws com.liferay.portal.SystemException,
314 com.liferay.portlet.imagegallery.NoSuchFolderException {
315 return getPersistence()
316 .findByG_P_Last(groupId, parentFolderId, orderByComparator);
317 }
318
319 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
320 long folderId, long groupId, long parentFolderId,
321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322 throws com.liferay.portal.SystemException,
323 com.liferay.portlet.imagegallery.NoSuchFolderException {
324 return getPersistence()
325 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
326 orderByComparator);
327 }
328
329 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
330 long groupId, long parentFolderId, java.lang.String name)
331 throws com.liferay.portal.SystemException,
332 com.liferay.portlet.imagegallery.NoSuchFolderException {
333 return getPersistence().findByG_P_N(groupId, parentFolderId, name);
334 }
335
336 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
337 long groupId, long parentFolderId, java.lang.String name)
338 throws com.liferay.portal.SystemException {
339 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
340 }
341
342 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
343 long groupId, long parentFolderId, java.lang.String name,
344 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
345 return getPersistence()
346 .fetchByG_P_N(groupId, parentFolderId, name,
347 retrieveFromCache);
348 }
349
350 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
351 throws com.liferay.portal.SystemException {
352 return getPersistence().findAll();
353 }
354
355 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
356 int start, int end) throws com.liferay.portal.SystemException {
357 return getPersistence().findAll(start, end);
358 }
359
360 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
361 int start, int end,
362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363 throws com.liferay.portal.SystemException {
364 return getPersistence().findAll(start, end, orderByComparator);
365 }
366
367 public static void removeByUuid(java.lang.String uuid)
368 throws com.liferay.portal.SystemException {
369 getPersistence().removeByUuid(uuid);
370 }
371
372 public static void removeByUUID_G(java.lang.String uuid, long groupId)
373 throws com.liferay.portal.SystemException,
374 com.liferay.portlet.imagegallery.NoSuchFolderException {
375 getPersistence().removeByUUID_G(uuid, groupId);
376 }
377
378 public static void removeByGroupId(long groupId)
379 throws com.liferay.portal.SystemException {
380 getPersistence().removeByGroupId(groupId);
381 }
382
383 public static void removeByCompanyId(long companyId)
384 throws com.liferay.portal.SystemException {
385 getPersistence().removeByCompanyId(companyId);
386 }
387
388 public static void removeByG_P(long groupId, long parentFolderId)
389 throws com.liferay.portal.SystemException {
390 getPersistence().removeByG_P(groupId, parentFolderId);
391 }
392
393 public static void removeByG_P_N(long groupId, long parentFolderId,
394 java.lang.String name)
395 throws com.liferay.portal.SystemException,
396 com.liferay.portlet.imagegallery.NoSuchFolderException {
397 getPersistence().removeByG_P_N(groupId, parentFolderId, name);
398 }
399
400 public static void removeAll() throws com.liferay.portal.SystemException {
401 getPersistence().removeAll();
402 }
403
404 public static int countByUuid(java.lang.String uuid)
405 throws com.liferay.portal.SystemException {
406 return getPersistence().countByUuid(uuid);
407 }
408
409 public static int countByUUID_G(java.lang.String uuid, long groupId)
410 throws com.liferay.portal.SystemException {
411 return getPersistence().countByUUID_G(uuid, groupId);
412 }
413
414 public static int countByGroupId(long groupId)
415 throws com.liferay.portal.SystemException {
416 return getPersistence().countByGroupId(groupId);
417 }
418
419 public static int countByCompanyId(long companyId)
420 throws com.liferay.portal.SystemException {
421 return getPersistence().countByCompanyId(companyId);
422 }
423
424 public static int countByG_P(long groupId, long parentFolderId)
425 throws com.liferay.portal.SystemException {
426 return getPersistence().countByG_P(groupId, parentFolderId);
427 }
428
429 public static int countByG_P_N(long groupId, long parentFolderId,
430 java.lang.String name) throws com.liferay.portal.SystemException {
431 return getPersistence().countByG_P_N(groupId, parentFolderId, name);
432 }
433
434 public static int countAll() throws com.liferay.portal.SystemException {
435 return getPersistence().countAll();
436 }
437
438 public static IGFolderPersistence getPersistence() {
439 if (_persistence == null) {
440 _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
441 }
442
443 return _persistence;
444 }
445
446 public void setPersistence(IGFolderPersistence persistence) {
447 _persistence = persistence;
448 }
449
450 private static IGFolderPersistence _persistence;
451 }