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