001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.documentlibrary.service.persistence;
022:
023: /**
024: * <a href="DLFolderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class DLFolderUtil {
030: public static com.liferay.portlet.documentlibrary.model.DLFolder create(
031: long folderId) {
032: return getPersistence().create(folderId);
033: }
034:
035: public static com.liferay.portlet.documentlibrary.model.DLFolder remove(
036: long folderId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.documentlibrary.NoSuchFolderException {
038: return getPersistence().remove(folderId);
039: }
040:
041: public static com.liferay.portlet.documentlibrary.model.DLFolder remove(
042: com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(dlFolder);
045: }
046:
047: public static com.liferay.portlet.documentlibrary.model.DLFolder update(
048: com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(dlFolder);
051: }
052:
053: public static com.liferay.portlet.documentlibrary.model.DLFolder update(
054: com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(dlFolder, merge);
057: }
058:
059: public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
060: com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(dlFolder, merge);
063: }
064:
065: public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
066: long folderId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.documentlibrary.NoSuchFolderException {
068: return getPersistence().findByPrimaryKey(folderId);
069: }
070:
071: public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
072: long folderId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(folderId);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.documentlibrary.NoSuchFolderException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.documentlibrary.NoSuchFolderException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
111: long folderId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.documentlibrary.NoSuchFolderException {
115: return getPersistence().findByUuid_PrevAndNext(folderId, uuid,
116: obc);
117: }
118:
119: public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
120: java.lang.String uuid, long groupId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.documentlibrary.NoSuchFolderException {
123: return getPersistence().findByUUID_G(uuid, groupId);
124: }
125:
126: public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
127: java.lang.String uuid, long groupId)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().fetchByUUID_G(uuid, groupId);
130: }
131:
132: public static java.util.List findByGroupId(long groupId)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByGroupId(groupId);
135: }
136:
137: public static java.util.List findByGroupId(long groupId, int begin,
138: int end) throws com.liferay.portal.SystemException {
139: return getPersistence().findByGroupId(groupId, begin, end);
140: }
141:
142: public static java.util.List findByGroupId(long groupId, int begin,
143: int end,
144: com.liferay.portal.kernel.util.OrderByComparator obc)
145: throws com.liferay.portal.SystemException {
146: return getPersistence().findByGroupId(groupId, begin, end, obc);
147: }
148:
149: public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
150: long groupId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.documentlibrary.NoSuchFolderException {
154: return getPersistence().findByGroupId_First(groupId, obc);
155: }
156:
157: public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
158: long groupId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.documentlibrary.NoSuchFolderException {
162: return getPersistence().findByGroupId_Last(groupId, obc);
163: }
164:
165: public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
166: long folderId, long groupId,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.documentlibrary.NoSuchFolderException {
170: return getPersistence().findByGroupId_PrevAndNext(folderId,
171: groupId, obc);
172: }
173:
174: public static java.util.List findByCompanyId(long companyId)
175: throws com.liferay.portal.SystemException {
176: return getPersistence().findByCompanyId(companyId);
177: }
178:
179: public static java.util.List findByCompanyId(long companyId,
180: int begin, int end)
181: throws com.liferay.portal.SystemException {
182: return getPersistence().findByCompanyId(companyId, begin, end);
183: }
184:
185: public static java.util.List findByCompanyId(long companyId,
186: int begin, int end,
187: com.liferay.portal.kernel.util.OrderByComparator obc)
188: throws com.liferay.portal.SystemException {
189: return getPersistence().findByCompanyId(companyId, begin, end,
190: obc);
191: }
192:
193: public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
194: long companyId,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portlet.documentlibrary.NoSuchFolderException {
198: return getPersistence().findByCompanyId_First(companyId, obc);
199: }
200:
201: public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
202: long companyId,
203: com.liferay.portal.kernel.util.OrderByComparator obc)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portlet.documentlibrary.NoSuchFolderException {
206: return getPersistence().findByCompanyId_Last(companyId, obc);
207: }
208:
209: public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
210: long folderId, long companyId,
211: com.liferay.portal.kernel.util.OrderByComparator obc)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.documentlibrary.NoSuchFolderException {
214: return getPersistence().findByCompanyId_PrevAndNext(folderId,
215: companyId, obc);
216: }
217:
218: public static java.util.List findByG_P(long groupId,
219: long parentFolderId)
220: throws com.liferay.portal.SystemException {
221: return getPersistence().findByG_P(groupId, parentFolderId);
222: }
223:
224: public static java.util.List findByG_P(long groupId,
225: long parentFolderId, int begin, int end)
226: throws com.liferay.portal.SystemException {
227: return getPersistence().findByG_P(groupId, parentFolderId,
228: begin, end);
229: }
230:
231: public static java.util.List findByG_P(long groupId,
232: long parentFolderId, int begin, int end,
233: com.liferay.portal.kernel.util.OrderByComparator obc)
234: throws com.liferay.portal.SystemException {
235: return getPersistence().findByG_P(groupId, parentFolderId,
236: begin, end, obc);
237: }
238:
239: public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
240: long groupId, long parentFolderId,
241: com.liferay.portal.kernel.util.OrderByComparator obc)
242: throws com.liferay.portal.SystemException,
243: com.liferay.portlet.documentlibrary.NoSuchFolderException {
244: return getPersistence().findByG_P_First(groupId,
245: parentFolderId, obc);
246: }
247:
248: public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
249: long groupId, long parentFolderId,
250: com.liferay.portal.kernel.util.OrderByComparator obc)
251: throws com.liferay.portal.SystemException,
252: com.liferay.portlet.documentlibrary.NoSuchFolderException {
253: return getPersistence().findByG_P_Last(groupId, parentFolderId,
254: obc);
255: }
256:
257: public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
258: long folderId, long groupId, long parentFolderId,
259: com.liferay.portal.kernel.util.OrderByComparator obc)
260: throws com.liferay.portal.SystemException,
261: com.liferay.portlet.documentlibrary.NoSuchFolderException {
262: return getPersistence().findByG_P_PrevAndNext(folderId,
263: groupId, parentFolderId, obc);
264: }
265:
266: public static java.util.List findByP_N(long parentFolderId,
267: java.lang.String name)
268: throws com.liferay.portal.SystemException {
269: return getPersistence().findByP_N(parentFolderId, name);
270: }
271:
272: public static java.util.List findByP_N(long parentFolderId,
273: java.lang.String name, int begin, int end)
274: throws com.liferay.portal.SystemException {
275: return getPersistence().findByP_N(parentFolderId, name, begin,
276: end);
277: }
278:
279: public static java.util.List findByP_N(long parentFolderId,
280: java.lang.String name, int begin, int end,
281: com.liferay.portal.kernel.util.OrderByComparator obc)
282: throws com.liferay.portal.SystemException {
283: return getPersistence().findByP_N(parentFolderId, name, begin,
284: end, obc);
285: }
286:
287: public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
288: long parentFolderId, java.lang.String name,
289: com.liferay.portal.kernel.util.OrderByComparator obc)
290: throws com.liferay.portal.SystemException,
291: com.liferay.portlet.documentlibrary.NoSuchFolderException {
292: return getPersistence().findByP_N_First(parentFolderId, name,
293: obc);
294: }
295:
296: public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
297: long parentFolderId, java.lang.String name,
298: com.liferay.portal.kernel.util.OrderByComparator obc)
299: throws com.liferay.portal.SystemException,
300: com.liferay.portlet.documentlibrary.NoSuchFolderException {
301: return getPersistence().findByP_N_Last(parentFolderId, name,
302: obc);
303: }
304:
305: public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
306: long folderId, long parentFolderId, java.lang.String name,
307: com.liferay.portal.kernel.util.OrderByComparator obc)
308: throws com.liferay.portal.SystemException,
309: com.liferay.portlet.documentlibrary.NoSuchFolderException {
310: return getPersistence().findByP_N_PrevAndNext(folderId,
311: parentFolderId, name, obc);
312: }
313:
314: public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
315: long groupId, long parentFolderId, java.lang.String name)
316: throws com.liferay.portal.SystemException,
317: com.liferay.portlet.documentlibrary.NoSuchFolderException {
318: return getPersistence().findByG_P_N(groupId, parentFolderId,
319: name);
320: }
321:
322: public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
323: long groupId, long parentFolderId, java.lang.String name)
324: throws com.liferay.portal.SystemException {
325: return getPersistence().fetchByG_P_N(groupId, parentFolderId,
326: name);
327: }
328:
329: public static java.util.List findWithDynamicQuery(
330: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
331: throws com.liferay.portal.SystemException {
332: return getPersistence().findWithDynamicQuery(queryInitializer);
333: }
334:
335: public static java.util.List findWithDynamicQuery(
336: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
337: int begin, int end)
338: throws com.liferay.portal.SystemException {
339: return getPersistence().findWithDynamicQuery(queryInitializer,
340: begin, end);
341: }
342:
343: public static java.util.List findAll()
344: throws com.liferay.portal.SystemException {
345: return getPersistence().findAll();
346: }
347:
348: public static java.util.List findAll(int begin, int end)
349: throws com.liferay.portal.SystemException {
350: return getPersistence().findAll(begin, end);
351: }
352:
353: public static java.util.List findAll(int begin, int end,
354: com.liferay.portal.kernel.util.OrderByComparator obc)
355: throws com.liferay.portal.SystemException {
356: return getPersistence().findAll(begin, end, obc);
357: }
358:
359: public static void removeByUuid(java.lang.String uuid)
360: throws com.liferay.portal.SystemException {
361: getPersistence().removeByUuid(uuid);
362: }
363:
364: public static void removeByUUID_G(java.lang.String uuid,
365: long groupId) throws com.liferay.portal.SystemException,
366: com.liferay.portlet.documentlibrary.NoSuchFolderException {
367: getPersistence().removeByUUID_G(uuid, groupId);
368: }
369:
370: public static void removeByGroupId(long groupId)
371: throws com.liferay.portal.SystemException {
372: getPersistence().removeByGroupId(groupId);
373: }
374:
375: public static void removeByCompanyId(long companyId)
376: throws com.liferay.portal.SystemException {
377: getPersistence().removeByCompanyId(companyId);
378: }
379:
380: public static void removeByG_P(long groupId, long parentFolderId)
381: throws com.liferay.portal.SystemException {
382: getPersistence().removeByG_P(groupId, parentFolderId);
383: }
384:
385: public static void removeByP_N(long parentFolderId,
386: java.lang.String name)
387: throws com.liferay.portal.SystemException {
388: getPersistence().removeByP_N(parentFolderId, name);
389: }
390:
391: public static void removeByG_P_N(long groupId, long parentFolderId,
392: java.lang.String name)
393: throws com.liferay.portal.SystemException,
394: com.liferay.portlet.documentlibrary.NoSuchFolderException {
395: getPersistence().removeByG_P_N(groupId, parentFolderId, name);
396: }
397:
398: public static void removeAll()
399: throws com.liferay.portal.SystemException {
400: getPersistence().removeAll();
401: }
402:
403: public static int countByUuid(java.lang.String uuid)
404: throws com.liferay.portal.SystemException {
405: return getPersistence().countByUuid(uuid);
406: }
407:
408: public static int countByUUID_G(java.lang.String uuid, long groupId)
409: throws com.liferay.portal.SystemException {
410: return getPersistence().countByUUID_G(uuid, groupId);
411: }
412:
413: public static int countByGroupId(long groupId)
414: throws com.liferay.portal.SystemException {
415: return getPersistence().countByGroupId(groupId);
416: }
417:
418: public static int countByCompanyId(long companyId)
419: throws com.liferay.portal.SystemException {
420: return getPersistence().countByCompanyId(companyId);
421: }
422:
423: public static int countByG_P(long groupId, long parentFolderId)
424: throws com.liferay.portal.SystemException {
425: return getPersistence().countByG_P(groupId, parentFolderId);
426: }
427:
428: public static int countByP_N(long parentFolderId,
429: java.lang.String name)
430: throws com.liferay.portal.SystemException {
431: return getPersistence().countByP_N(parentFolderId, name);
432: }
433:
434: public static int countByG_P_N(long groupId, long parentFolderId,
435: java.lang.String name)
436: throws com.liferay.portal.SystemException {
437: return getPersistence().countByG_P_N(groupId, parentFolderId,
438: name);
439: }
440:
441: public static int countAll()
442: throws com.liferay.portal.SystemException {
443: return getPersistence().countAll();
444: }
445:
446: public static DLFolderPersistence getPersistence() {
447: return _getUtil()._persistence;
448: }
449:
450: public void setPersistence(DLFolderPersistence persistence) {
451: _persistence = persistence;
452: }
453:
454: private static DLFolderUtil _getUtil() {
455: if (_util == null) {
456: _util = (DLFolderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
457: .locate(_UTIL);
458: }
459:
460: return _util;
461: }
462:
463: private static final String _UTIL = DLFolderUtil.class.getName();
464: private static DLFolderUtil _util;
465: private DLFolderPersistence _persistence;
466: }
|