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