1
14
15 package com.liferay.portlet.documentlibrary.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 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
23
24 import java.util.List;
25
26
39 public class DLFileShortcutUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(DLFileShortcut dlFileShortcut) {
51 getPersistence().clearCache(dlFileShortcut);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static DLFileShortcut remove(DLFileShortcut dlFileShortcut)
82 throws SystemException {
83 return getPersistence().remove(dlFileShortcut);
84 }
85
86
89 public static DLFileShortcut update(DLFileShortcut dlFileShortcut,
90 boolean merge) throws SystemException {
91 return getPersistence().update(dlFileShortcut, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
96 getPersistence().cacheResult(dlFileShortcut);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts) {
101 getPersistence().cacheResult(dlFileShortcuts);
102 }
103
104 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
105 long fileShortcutId) {
106 return getPersistence().create(fileShortcutId);
107 }
108
109 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
110 long fileShortcutId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
113 return getPersistence().remove(fileShortcutId);
114 }
115
116
119 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
120 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(dlFileShortcut);
123 }
124
125 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
126 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(dlFileShortcut, merge);
129 }
130
131 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
132 long fileShortcutId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
135 return getPersistence().findByPrimaryKey(fileShortcutId);
136 }
137
138 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
139 long fileShortcutId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(fileShortcutId);
141 }
142
143 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
144 java.lang.String uuid) throws com.liferay.portal.SystemException {
145 return getPersistence().findByUuid(uuid);
146 }
147
148 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
149 java.lang.String uuid, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUuid(uuid, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
155 java.lang.String uuid, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
159 }
160
161 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
166 return getPersistence().findByUuid_First(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
174 return getPersistence().findByUuid_Last(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
178 long fileShortcutId, java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
182 return getPersistence()
183 .findByUuid_PrevAndNext(fileShortcutId, uuid,
184 orderByComparator);
185 }
186
187 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
188 java.lang.String uuid, long groupId)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
191 return getPersistence().findByUUID_G(uuid, groupId);
192 }
193
194 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
195 java.lang.String uuid, long groupId)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().fetchByUUID_G(uuid, groupId);
198 }
199
200 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
201 java.lang.String uuid, long groupId, boolean retrieveFromCache)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
204 }
205
206 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
207 long folderId) throws com.liferay.portal.SystemException {
208 return getPersistence().findByFolderId(folderId);
209 }
210
211 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
212 long folderId, int start, int end)
213 throws com.liferay.portal.SystemException {
214 return getPersistence().findByFolderId(folderId, start, end);
215 }
216
217 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
218 long folderId, int start, int end,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.SystemException {
221 return getPersistence()
222 .findByFolderId(folderId, start, end, orderByComparator);
223 }
224
225 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
226 long folderId,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.SystemException,
229 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
230 return getPersistence().findByFolderId_First(folderId, orderByComparator);
231 }
232
233 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
234 long folderId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
238 return getPersistence().findByFolderId_Last(folderId, orderByComparator);
239 }
240
241 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
242 long fileShortcutId, long folderId,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.SystemException,
245 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
246 return getPersistence()
247 .findByFolderId_PrevAndNext(fileShortcutId, folderId,
248 orderByComparator);
249 }
250
251 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
252 long toFolderId, java.lang.String toName)
253 throws com.liferay.portal.SystemException {
254 return getPersistence().findByTF_TN(toFolderId, toName);
255 }
256
257 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
258 long toFolderId, java.lang.String toName, int start, int end)
259 throws com.liferay.portal.SystemException {
260 return getPersistence().findByTF_TN(toFolderId, toName, start, end);
261 }
262
263 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
264 long toFolderId, java.lang.String toName, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266 throws com.liferay.portal.SystemException {
267 return getPersistence()
268 .findByTF_TN(toFolderId, toName, start, end,
269 orderByComparator);
270 }
271
272 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
273 long toFolderId, java.lang.String toName,
274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275 throws com.liferay.portal.SystemException,
276 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
277 return getPersistence()
278 .findByTF_TN_First(toFolderId, toName, orderByComparator);
279 }
280
281 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
282 long toFolderId, java.lang.String toName,
283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284 throws com.liferay.portal.SystemException,
285 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
286 return getPersistence()
287 .findByTF_TN_Last(toFolderId, toName, orderByComparator);
288 }
289
290 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
291 long fileShortcutId, long toFolderId, java.lang.String toName,
292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293 throws com.liferay.portal.SystemException,
294 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
295 return getPersistence()
296 .findByTF_TN_PrevAndNext(fileShortcutId, toFolderId, toName,
297 orderByComparator);
298 }
299
300 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
301 throws com.liferay.portal.SystemException {
302 return getPersistence().findAll();
303 }
304
305 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
306 int start, int end) throws com.liferay.portal.SystemException {
307 return getPersistence().findAll(start, end);
308 }
309
310 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
311 int start, int end,
312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313 throws com.liferay.portal.SystemException {
314 return getPersistence().findAll(start, end, orderByComparator);
315 }
316
317 public static void removeByUuid(java.lang.String uuid)
318 throws com.liferay.portal.SystemException {
319 getPersistence().removeByUuid(uuid);
320 }
321
322 public static void removeByUUID_G(java.lang.String uuid, long groupId)
323 throws com.liferay.portal.SystemException,
324 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
325 getPersistence().removeByUUID_G(uuid, groupId);
326 }
327
328 public static void removeByFolderId(long folderId)
329 throws com.liferay.portal.SystemException {
330 getPersistence().removeByFolderId(folderId);
331 }
332
333 public static void removeByTF_TN(long toFolderId, java.lang.String toName)
334 throws com.liferay.portal.SystemException {
335 getPersistence().removeByTF_TN(toFolderId, toName);
336 }
337
338 public static void removeAll() throws com.liferay.portal.SystemException {
339 getPersistence().removeAll();
340 }
341
342 public static int countByUuid(java.lang.String uuid)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().countByUuid(uuid);
345 }
346
347 public static int countByUUID_G(java.lang.String uuid, long groupId)
348 throws com.liferay.portal.SystemException {
349 return getPersistence().countByUUID_G(uuid, groupId);
350 }
351
352 public static int countByFolderId(long folderId)
353 throws com.liferay.portal.SystemException {
354 return getPersistence().countByFolderId(folderId);
355 }
356
357 public static int countByTF_TN(long toFolderId, java.lang.String toName)
358 throws com.liferay.portal.SystemException {
359 return getPersistence().countByTF_TN(toFolderId, toName);
360 }
361
362 public static int countAll() throws com.liferay.portal.SystemException {
363 return getPersistence().countAll();
364 }
365
366 public static DLFileShortcutPersistence getPersistence() {
367 if (_persistence == null) {
368 _persistence = (DLFileShortcutPersistence)PortalBeanLocatorUtil.locate(DLFileShortcutPersistence.class.getName());
369
370 ReferenceRegistry.registerReference(DLFileShortcutUtil.class,
371 "_persistence");
372 }
373
374 return _persistence;
375 }
376
377 public void setPersistence(DLFileShortcutPersistence persistence) {
378 _persistence = persistence;
379
380 ReferenceRegistry.registerReference(DLFileShortcutUtil.class,
381 "_persistence");
382 }
383
384 private static DLFileShortcutPersistence _persistence;
385 }