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="DLFileEntryUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class DLFileEntryUtil {
030: public static com.liferay.portlet.documentlibrary.model.DLFileEntry create(
031: long fileEntryId) {
032: return getPersistence().create(fileEntryId);
033: }
034:
035: public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
036: long fileEntryId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
039: return getPersistence().remove(fileEntryId);
040: }
041:
042: public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
043: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(dlFileEntry);
046: }
047:
048: public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
049: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(dlFileEntry);
052: }
053:
054: public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
055: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(dlFileEntry, merge);
058: }
059:
060: public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
061: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(dlFileEntry, merge);
064: }
065:
066: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
067: long fileEntryId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
070: return getPersistence().findByPrimaryKey(fileEntryId);
071: }
072:
073: public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
074: long fileEntryId) throws com.liferay.portal.SystemException {
075: return getPersistence().fetchByPrimaryKey(fileEntryId);
076: }
077:
078: public static java.util.List findByUuid(java.lang.String uuid)
079: throws com.liferay.portal.SystemException {
080: return getPersistence().findByUuid(uuid);
081: }
082:
083: public static java.util.List findByUuid(java.lang.String uuid,
084: int begin, int end)
085: throws com.liferay.portal.SystemException {
086: return getPersistence().findByUuid(uuid, begin, end);
087: }
088:
089: public static java.util.List findByUuid(java.lang.String uuid,
090: int begin, int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByUuid(uuid, begin, end, obc);
094: }
095:
096: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
097: java.lang.String uuid,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
101: return getPersistence().findByUuid_First(uuid, obc);
102: }
103:
104: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
105: java.lang.String uuid,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
109: return getPersistence().findByUuid_Last(uuid, obc);
110: }
111:
112: public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
113: long fileEntryId, java.lang.String uuid,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
117: return getPersistence().findByUuid_PrevAndNext(fileEntryId,
118: uuid, obc);
119: }
120:
121: public static java.util.List findByCompanyId(long companyId)
122: throws com.liferay.portal.SystemException {
123: return getPersistence().findByCompanyId(companyId);
124: }
125:
126: public static java.util.List findByCompanyId(long companyId,
127: int begin, int end)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().findByCompanyId(companyId, begin, end);
130: }
131:
132: public static java.util.List findByCompanyId(long companyId,
133: int begin, int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByCompanyId(companyId, begin, end,
137: obc);
138: }
139:
140: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
141: long companyId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
145: return getPersistence().findByCompanyId_First(companyId, obc);
146: }
147:
148: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
149: long companyId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
153: return getPersistence().findByCompanyId_Last(companyId, obc);
154: }
155:
156: public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
157: long fileEntryId, long companyId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
161: return getPersistence().findByCompanyId_PrevAndNext(
162: fileEntryId, companyId, obc);
163: }
164:
165: public static java.util.List findByFolderId(long folderId)
166: throws com.liferay.portal.SystemException {
167: return getPersistence().findByFolderId(folderId);
168: }
169:
170: public static java.util.List findByFolderId(long folderId,
171: int begin, int end)
172: throws com.liferay.portal.SystemException {
173: return getPersistence().findByFolderId(folderId, begin, end);
174: }
175:
176: public static java.util.List findByFolderId(long folderId,
177: int begin, int end,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException {
180: return getPersistence().findByFolderId(folderId, begin, end,
181: obc);
182: }
183:
184: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_First(
185: long folderId,
186: com.liferay.portal.kernel.util.OrderByComparator obc)
187: throws com.liferay.portal.SystemException,
188: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
189: return getPersistence().findByFolderId_First(folderId, obc);
190: }
191:
192: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
193: long folderId,
194: com.liferay.portal.kernel.util.OrderByComparator obc)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
197: return getPersistence().findByFolderId_Last(folderId, obc);
198: }
199:
200: public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
201: long fileEntryId, long folderId,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
205: return getPersistence().findByFolderId_PrevAndNext(fileEntryId,
206: folderId, obc);
207: }
208:
209: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
210: long folderId, java.lang.String name)
211: throws com.liferay.portal.SystemException,
212: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
213: return getPersistence().findByF_N(folderId, name);
214: }
215:
216: public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
217: long folderId, java.lang.String name)
218: throws com.liferay.portal.SystemException {
219: return getPersistence().fetchByF_N(folderId, name);
220: }
221:
222: public static java.util.List findByF_T(long folderId,
223: java.lang.String title)
224: throws com.liferay.portal.SystemException {
225: return getPersistence().findByF_T(folderId, title);
226: }
227:
228: public static java.util.List findByF_T(long folderId,
229: java.lang.String title, int begin, int end)
230: throws com.liferay.portal.SystemException {
231: return getPersistence().findByF_T(folderId, title, begin, end);
232: }
233:
234: public static java.util.List findByF_T(long folderId,
235: java.lang.String title, int begin, int end,
236: com.liferay.portal.kernel.util.OrderByComparator obc)
237: throws com.liferay.portal.SystemException {
238: return getPersistence().findByF_T(folderId, title, begin, end,
239: obc);
240: }
241:
242: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
243: long folderId, java.lang.String title,
244: com.liferay.portal.kernel.util.OrderByComparator obc)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
247: return getPersistence().findByF_T_First(folderId, title, obc);
248: }
249:
250: public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
251: long folderId, java.lang.String title,
252: com.liferay.portal.kernel.util.OrderByComparator obc)
253: throws com.liferay.portal.SystemException,
254: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
255: return getPersistence().findByF_T_Last(folderId, title, obc);
256: }
257:
258: public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
259: long fileEntryId, long folderId, java.lang.String title,
260: com.liferay.portal.kernel.util.OrderByComparator obc)
261: throws com.liferay.portal.SystemException,
262: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
263: return getPersistence().findByF_T_PrevAndNext(fileEntryId,
264: folderId, title, obc);
265: }
266:
267: public static java.util.List findWithDynamicQuery(
268: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
269: throws com.liferay.portal.SystemException {
270: return getPersistence().findWithDynamicQuery(queryInitializer);
271: }
272:
273: public static java.util.List findWithDynamicQuery(
274: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
275: int begin, int end)
276: throws com.liferay.portal.SystemException {
277: return getPersistence().findWithDynamicQuery(queryInitializer,
278: begin, end);
279: }
280:
281: public static java.util.List findAll()
282: throws com.liferay.portal.SystemException {
283: return getPersistence().findAll();
284: }
285:
286: public static java.util.List findAll(int begin, int end)
287: throws com.liferay.portal.SystemException {
288: return getPersistence().findAll(begin, end);
289: }
290:
291: public static java.util.List findAll(int begin, int end,
292: com.liferay.portal.kernel.util.OrderByComparator obc)
293: throws com.liferay.portal.SystemException {
294: return getPersistence().findAll(begin, end, obc);
295: }
296:
297: public static void removeByUuid(java.lang.String uuid)
298: throws com.liferay.portal.SystemException {
299: getPersistence().removeByUuid(uuid);
300: }
301:
302: public static void removeByCompanyId(long companyId)
303: throws com.liferay.portal.SystemException {
304: getPersistence().removeByCompanyId(companyId);
305: }
306:
307: public static void removeByFolderId(long folderId)
308: throws com.liferay.portal.SystemException {
309: getPersistence().removeByFolderId(folderId);
310: }
311:
312: public static void removeByF_N(long folderId, java.lang.String name)
313: throws com.liferay.portal.SystemException,
314: com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
315: getPersistence().removeByF_N(folderId, name);
316: }
317:
318: public static void removeByF_T(long folderId, java.lang.String title)
319: throws com.liferay.portal.SystemException {
320: getPersistence().removeByF_T(folderId, title);
321: }
322:
323: public static void removeAll()
324: throws com.liferay.portal.SystemException {
325: getPersistence().removeAll();
326: }
327:
328: public static int countByUuid(java.lang.String uuid)
329: throws com.liferay.portal.SystemException {
330: return getPersistence().countByUuid(uuid);
331: }
332:
333: public static int countByCompanyId(long companyId)
334: throws com.liferay.portal.SystemException {
335: return getPersistence().countByCompanyId(companyId);
336: }
337:
338: public static int countByFolderId(long folderId)
339: throws com.liferay.portal.SystemException {
340: return getPersistence().countByFolderId(folderId);
341: }
342:
343: public static int countByF_N(long folderId, java.lang.String name)
344: throws com.liferay.portal.SystemException {
345: return getPersistence().countByF_N(folderId, name);
346: }
347:
348: public static int countByF_T(long folderId, java.lang.String title)
349: throws com.liferay.portal.SystemException {
350: return getPersistence().countByF_T(folderId, title);
351: }
352:
353: public static int countAll()
354: throws com.liferay.portal.SystemException {
355: return getPersistence().countAll();
356: }
357:
358: public static DLFileEntryPersistence getPersistence() {
359: return _getUtil()._persistence;
360: }
361:
362: public void setPersistence(DLFileEntryPersistence persistence) {
363: _persistence = persistence;
364: }
365:
366: private static DLFileEntryUtil _getUtil() {
367: if (_util == null) {
368: _util = (DLFileEntryUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
369: .locate(_UTIL);
370: }
371:
372: return _util;
373: }
374:
375: private static final String _UTIL = DLFileEntryUtil.class.getName();
376: private static DLFileEntryUtil _util;
377: private DLFileEntryPersistence _persistence;
378: }
|