1
22
23 package com.liferay.portlet.documentlibrary.service.persistence;
24
25
31 public class DLFileEntryUtil {
32 public static com.liferay.portlet.documentlibrary.model.DLFileEntry create(
33 long fileEntryId) {
34 return getPersistence().create(fileEntryId);
35 }
36
37 public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
38 long fileEntryId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
41 return getPersistence().remove(fileEntryId);
42 }
43
44 public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
45 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(dlFileEntry);
48 }
49
50
53 public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
54 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(dlFileEntry);
57 }
58
59
72 public static com.liferay.portlet.documentlibrary.model.DLFileEntry update(
73 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(dlFileEntry, merge);
76 }
77
78 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
79 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(dlFileEntry, merge);
82 }
83
84 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
85 long fileEntryId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
88 return getPersistence().findByPrimaryKey(fileEntryId);
89 }
90
91 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
92 long fileEntryId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(fileEntryId);
94 }
95
96 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
97 java.lang.String uuid) throws com.liferay.portal.SystemException {
98 return getPersistence().findByUuid(uuid);
99 }
100
101 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
102 java.lang.String uuid, int start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUuid(uuid, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
108 java.lang.String uuid, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUuid(uuid, start, end, obc);
112 }
113
114 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
115 java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
119 return getPersistence().findByUuid_First(uuid, obc);
120 }
121
122 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
123 java.lang.String uuid,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
127 return getPersistence().findByUuid_Last(uuid, obc);
128 }
129
130 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
131 long fileEntryId, java.lang.String uuid,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
135 return getPersistence().findByUuid_PrevAndNext(fileEntryId, uuid, obc);
136 }
137
138 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
139 long companyId) throws com.liferay.portal.SystemException {
140 return getPersistence().findByCompanyId(companyId);
141 }
142
143 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
144 long companyId, int start, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByCompanyId(companyId, start, end);
147 }
148
149 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
150 long companyId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findByCompanyId(companyId, start, end, obc);
154 }
155
156 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
157 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
160 return getPersistence().findByCompanyId_First(companyId, obc);
161 }
162
163 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
164 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
167 return getPersistence().findByCompanyId_Last(companyId, obc);
168 }
169
170 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
171 long fileEntryId, long companyId,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
175 return getPersistence()
176 .findByCompanyId_PrevAndNext(fileEntryId, companyId, obc);
177 }
178
179 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
180 long folderId) throws com.liferay.portal.SystemException {
181 return getPersistence().findByFolderId(folderId);
182 }
183
184 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
185 long folderId, int start, int end)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findByFolderId(folderId, start, end);
188 }
189
190 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
191 long folderId, int start, int end,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findByFolderId(folderId, start, end, obc);
195 }
196
197 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_First(
198 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.SystemException,
200 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
201 return getPersistence().findByFolderId_First(folderId, obc);
202 }
203
204 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
205 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException,
207 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
208 return getPersistence().findByFolderId_Last(folderId, obc);
209 }
210
211 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
212 long fileEntryId, long folderId,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
216 return getPersistence()
217 .findByFolderId_PrevAndNext(fileEntryId, folderId, obc);
218 }
219
220 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
221 long folderId, java.lang.String name)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
224 return getPersistence().findByF_N(folderId, name);
225 }
226
227 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
228 long folderId, java.lang.String name)
229 throws com.liferay.portal.SystemException {
230 return getPersistence().fetchByF_N(folderId, name);
231 }
232
233 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
234 long folderId, java.lang.String title)
235 throws com.liferay.portal.SystemException {
236 return getPersistence().findByF_T(folderId, title);
237 }
238
239 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
240 long folderId, java.lang.String title, int start, int end)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().findByF_T(folderId, title, start, end);
243 }
244
245 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
246 long folderId, java.lang.String title, int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator obc)
248 throws com.liferay.portal.SystemException {
249 return getPersistence().findByF_T(folderId, title, start, end, obc);
250 }
251
252 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
253 long folderId, java.lang.String title,
254 com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
257 return getPersistence().findByF_T_First(folderId, title, obc);
258 }
259
260 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
261 long folderId, java.lang.String title,
262 com.liferay.portal.kernel.util.OrderByComparator obc)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
265 return getPersistence().findByF_T_Last(folderId, title, obc);
266 }
267
268 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
269 long fileEntryId, long folderId, java.lang.String title,
270 com.liferay.portal.kernel.util.OrderByComparator obc)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
273 return getPersistence()
274 .findByF_T_PrevAndNext(fileEntryId, folderId, title, obc);
275 }
276
277 public static java.util.List<Object> findWithDynamicQuery(
278 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
279 throws com.liferay.portal.SystemException {
280 return getPersistence().findWithDynamicQuery(dynamicQuery);
281 }
282
283 public static java.util.List<Object> findWithDynamicQuery(
284 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
285 int end) throws com.liferay.portal.SystemException {
286 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
287 }
288
289 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
290 throws com.liferay.portal.SystemException {
291 return getPersistence().findAll();
292 }
293
294 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
295 int start, int end) throws com.liferay.portal.SystemException {
296 return getPersistence().findAll(start, end);
297 }
298
299 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
300 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
301 throws com.liferay.portal.SystemException {
302 return getPersistence().findAll(start, end, obc);
303 }
304
305 public static void removeByUuid(java.lang.String uuid)
306 throws com.liferay.portal.SystemException {
307 getPersistence().removeByUuid(uuid);
308 }
309
310 public static void removeByCompanyId(long companyId)
311 throws com.liferay.portal.SystemException {
312 getPersistence().removeByCompanyId(companyId);
313 }
314
315 public static void removeByFolderId(long folderId)
316 throws com.liferay.portal.SystemException {
317 getPersistence().removeByFolderId(folderId);
318 }
319
320 public static void removeByF_N(long folderId, java.lang.String name)
321 throws com.liferay.portal.SystemException,
322 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
323 getPersistence().removeByF_N(folderId, name);
324 }
325
326 public static void removeByF_T(long folderId, java.lang.String title)
327 throws com.liferay.portal.SystemException {
328 getPersistence().removeByF_T(folderId, title);
329 }
330
331 public static void removeAll() throws com.liferay.portal.SystemException {
332 getPersistence().removeAll();
333 }
334
335 public static int countByUuid(java.lang.String uuid)
336 throws com.liferay.portal.SystemException {
337 return getPersistence().countByUuid(uuid);
338 }
339
340 public static int countByCompanyId(long companyId)
341 throws com.liferay.portal.SystemException {
342 return getPersistence().countByCompanyId(companyId);
343 }
344
345 public static int countByFolderId(long folderId)
346 throws com.liferay.portal.SystemException {
347 return getPersistence().countByFolderId(folderId);
348 }
349
350 public static int countByF_N(long folderId, java.lang.String name)
351 throws com.liferay.portal.SystemException {
352 return getPersistence().countByF_N(folderId, name);
353 }
354
355 public static int countByF_T(long folderId, java.lang.String title)
356 throws com.liferay.portal.SystemException {
357 return getPersistence().countByF_T(folderId, title);
358 }
359
360 public static int countAll() throws com.liferay.portal.SystemException {
361 return getPersistence().countAll();
362 }
363
364 public static void registerListener(
365 com.liferay.portal.model.ModelListener listener) {
366 getPersistence().registerListener(listener);
367 }
368
369 public static void unregisterListener(
370 com.liferay.portal.model.ModelListener listener) {
371 getPersistence().unregisterListener(listener);
372 }
373
374 public static DLFileEntryPersistence getPersistence() {
375 return _persistence;
376 }
377
378 public void setPersistence(DLFileEntryPersistence persistence) {
379 _persistence = persistence;
380 }
381
382 private static DLFileEntryPersistence _persistence;
383 }