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 obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.imagegallery.NoSuchFolderException {
149 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.imagegallery.NoSuchFolderException {
157 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.imagegallery.NoSuchFolderException {
165 return getPersistence().findByUuid_PrevAndNext(folderId, uuid, obc);
166 }
167
168 public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
169 java.lang.String uuid, long groupId)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.imagegallery.NoSuchFolderException {
172 return getPersistence().findByUUID_G(uuid, groupId);
173 }
174
175 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
176 java.lang.String uuid, long groupId)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().fetchByUUID_G(uuid, groupId);
179 }
180
181 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
182 java.lang.String uuid, long groupId, boolean retrieveFromCache)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
185 }
186
187 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
188 long groupId) throws com.liferay.portal.SystemException {
189 return getPersistence().findByGroupId(groupId);
190 }
191
192 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
193 long groupId, int start, int end)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().findByGroupId(groupId, start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
199 long groupId, int start, int end,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().findByGroupId(groupId, start, end, obc);
203 }
204
205 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
206 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.imagegallery.NoSuchFolderException {
209 return getPersistence().findByGroupId_First(groupId, obc);
210 }
211
212 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
213 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.imagegallery.NoSuchFolderException {
216 return getPersistence().findByGroupId_Last(groupId, obc);
217 }
218
219 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
220 long folderId, long groupId,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.imagegallery.NoSuchFolderException {
224 return getPersistence().findByGroupId_PrevAndNext(folderId, groupId, obc);
225 }
226
227 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
228 long companyId) throws com.liferay.portal.SystemException {
229 return getPersistence().findByCompanyId(companyId);
230 }
231
232 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
233 long companyId, int start, int end)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().findByCompanyId(companyId, start, end);
236 }
237
238 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
239 long companyId, int start, int end,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().findByCompanyId(companyId, start, end, obc);
243 }
244
245 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
246 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.imagegallery.NoSuchFolderException {
249 return getPersistence().findByCompanyId_First(companyId, obc);
250 }
251
252 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
253 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
254 throws com.liferay.portal.SystemException,
255 com.liferay.portlet.imagegallery.NoSuchFolderException {
256 return getPersistence().findByCompanyId_Last(companyId, obc);
257 }
258
259 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
260 long folderId, long companyId,
261 com.liferay.portal.kernel.util.OrderByComparator obc)
262 throws com.liferay.portal.SystemException,
263 com.liferay.portlet.imagegallery.NoSuchFolderException {
264 return getPersistence()
265 .findByCompanyId_PrevAndNext(folderId, companyId, obc);
266 }
267
268 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
269 long groupId, long parentFolderId)
270 throws com.liferay.portal.SystemException {
271 return getPersistence().findByG_P(groupId, parentFolderId);
272 }
273
274 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
275 long groupId, long parentFolderId, int start, int end)
276 throws com.liferay.portal.SystemException {
277 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
278 }
279
280 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
281 long groupId, long parentFolderId, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException {
284 return getPersistence()
285 .findByG_P(groupId, parentFolderId, start, end, obc);
286 }
287
288 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
289 long groupId, long parentFolderId,
290 com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.SystemException,
292 com.liferay.portlet.imagegallery.NoSuchFolderException {
293 return getPersistence().findByG_P_First(groupId, parentFolderId, obc);
294 }
295
296 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
297 long groupId, long parentFolderId,
298 com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.SystemException,
300 com.liferay.portlet.imagegallery.NoSuchFolderException {
301 return getPersistence().findByG_P_Last(groupId, parentFolderId, obc);
302 }
303
304 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
305 long folderId, long groupId, long parentFolderId,
306 com.liferay.portal.kernel.util.OrderByComparator obc)
307 throws com.liferay.portal.SystemException,
308 com.liferay.portlet.imagegallery.NoSuchFolderException {
309 return getPersistence()
310 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, obc);
311 }
312
313 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
314 long groupId, long parentFolderId, java.lang.String name)
315 throws com.liferay.portal.SystemException,
316 com.liferay.portlet.imagegallery.NoSuchFolderException {
317 return getPersistence().findByG_P_N(groupId, parentFolderId, name);
318 }
319
320 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
321 long groupId, long parentFolderId, java.lang.String name)
322 throws com.liferay.portal.SystemException {
323 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
324 }
325
326 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
327 long groupId, long parentFolderId, java.lang.String name,
328 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
329 return getPersistence()
330 .fetchByG_P_N(groupId, parentFolderId, name,
331 retrieveFromCache);
332 }
333
334 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
335 throws com.liferay.portal.SystemException {
336 return getPersistence().findAll();
337 }
338
339 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
340 int start, int end) throws com.liferay.portal.SystemException {
341 return getPersistence().findAll(start, end);
342 }
343
344 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
345 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
346 throws com.liferay.portal.SystemException {
347 return getPersistence().findAll(start, end, obc);
348 }
349
350 public static void removeByUuid(java.lang.String uuid)
351 throws com.liferay.portal.SystemException {
352 getPersistence().removeByUuid(uuid);
353 }
354
355 public static void removeByUUID_G(java.lang.String uuid, long groupId)
356 throws com.liferay.portal.SystemException,
357 com.liferay.portlet.imagegallery.NoSuchFolderException {
358 getPersistence().removeByUUID_G(uuid, groupId);
359 }
360
361 public static void removeByGroupId(long groupId)
362 throws com.liferay.portal.SystemException {
363 getPersistence().removeByGroupId(groupId);
364 }
365
366 public static void removeByCompanyId(long companyId)
367 throws com.liferay.portal.SystemException {
368 getPersistence().removeByCompanyId(companyId);
369 }
370
371 public static void removeByG_P(long groupId, long parentFolderId)
372 throws com.liferay.portal.SystemException {
373 getPersistence().removeByG_P(groupId, parentFolderId);
374 }
375
376 public static void removeByG_P_N(long groupId, long parentFolderId,
377 java.lang.String name)
378 throws com.liferay.portal.SystemException,
379 com.liferay.portlet.imagegallery.NoSuchFolderException {
380 getPersistence().removeByG_P_N(groupId, parentFolderId, name);
381 }
382
383 public static void removeAll() throws com.liferay.portal.SystemException {
384 getPersistence().removeAll();
385 }
386
387 public static int countByUuid(java.lang.String uuid)
388 throws com.liferay.portal.SystemException {
389 return getPersistence().countByUuid(uuid);
390 }
391
392 public static int countByUUID_G(java.lang.String uuid, long groupId)
393 throws com.liferay.portal.SystemException {
394 return getPersistence().countByUUID_G(uuid, groupId);
395 }
396
397 public static int countByGroupId(long groupId)
398 throws com.liferay.portal.SystemException {
399 return getPersistence().countByGroupId(groupId);
400 }
401
402 public static int countByCompanyId(long companyId)
403 throws com.liferay.portal.SystemException {
404 return getPersistence().countByCompanyId(companyId);
405 }
406
407 public static int countByG_P(long groupId, long parentFolderId)
408 throws com.liferay.portal.SystemException {
409 return getPersistence().countByG_P(groupId, parentFolderId);
410 }
411
412 public static int countByG_P_N(long groupId, long parentFolderId,
413 java.lang.String name) throws com.liferay.portal.SystemException {
414 return getPersistence().countByG_P_N(groupId, parentFolderId, name);
415 }
416
417 public static int countAll() throws com.liferay.portal.SystemException {
418 return getPersistence().countAll();
419 }
420
421 public static IGFolderPersistence getPersistence() {
422 if (_persistence == null) {
423 _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
424 }
425
426 return _persistence;
427 }
428
429 public void setPersistence(IGFolderPersistence persistence) {
430 _persistence = persistence;
431 }
432
433 private static IGFolderPersistence _persistence;
434 }