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