1
14
15 package com.liferay.portlet.asset.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.asset.model.AssetLink;
22
23 import java.util.List;
24
25
38 public class AssetLinkUtil {
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 AssetLink remove(AssetLink assetLink)
66 throws SystemException {
67 return getPersistence().remove(assetLink);
68 }
69
70
73 public static AssetLink update(AssetLink assetLink, boolean merge)
74 throws SystemException {
75 return getPersistence().update(assetLink, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.asset.model.AssetLink assetLink) {
80 getPersistence().cacheResult(assetLink);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks) {
85 getPersistence().cacheResult(assetLinks);
86 }
87
88 public static com.liferay.portlet.asset.model.AssetLink create(long linkId) {
89 return getPersistence().create(linkId);
90 }
91
92 public static com.liferay.portlet.asset.model.AssetLink remove(long linkId)
93 throws com.liferay.portal.kernel.exception.SystemException,
94 com.liferay.portlet.asset.NoSuchLinkException {
95 return getPersistence().remove(linkId);
96 }
97
98 public static com.liferay.portlet.asset.model.AssetLink updateImpl(
99 com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getPersistence().updateImpl(assetLink, merge);
102 }
103
104 public static com.liferay.portlet.asset.model.AssetLink findByPrimaryKey(
105 long linkId)
106 throws com.liferay.portal.kernel.exception.SystemException,
107 com.liferay.portlet.asset.NoSuchLinkException {
108 return getPersistence().findByPrimaryKey(linkId);
109 }
110
111 public static com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey(
112 long linkId) throws com.liferay.portal.kernel.exception.SystemException {
113 return getPersistence().fetchByPrimaryKey(linkId);
114 }
115
116 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
117 long entryId1)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getPersistence().findByE1(entryId1);
120 }
121
122 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
123 long entryId1, int start, int end)
124 throws com.liferay.portal.kernel.exception.SystemException {
125 return getPersistence().findByE1(entryId1, start, end);
126 }
127
128 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
129 long entryId1, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().findByE1(entryId1, start, end, orderByComparator);
133 }
134
135 public static com.liferay.portlet.asset.model.AssetLink findByE1_First(
136 long entryId1,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.asset.NoSuchLinkException {
140 return getPersistence().findByE1_First(entryId1, orderByComparator);
141 }
142
143 public static com.liferay.portlet.asset.model.AssetLink findByE1_Last(
144 long entryId1,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException,
147 com.liferay.portlet.asset.NoSuchLinkException {
148 return getPersistence().findByE1_Last(entryId1, orderByComparator);
149 }
150
151 public static com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
152 long linkId, long entryId1,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.kernel.exception.SystemException,
155 com.liferay.portlet.asset.NoSuchLinkException {
156 return getPersistence()
157 .findByE1_PrevAndNext(linkId, entryId1, orderByComparator);
158 }
159
160 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
161 long entryId2)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getPersistence().findByE2(entryId2);
164 }
165
166 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
167 long entryId2, int start, int end)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getPersistence().findByE2(entryId2, start, end);
170 }
171
172 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
173 long entryId2, int start, int end,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().findByE2(entryId2, start, end, orderByComparator);
177 }
178
179 public static com.liferay.portlet.asset.model.AssetLink findByE2_First(
180 long entryId2,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.asset.NoSuchLinkException {
184 return getPersistence().findByE2_First(entryId2, orderByComparator);
185 }
186
187 public static com.liferay.portlet.asset.model.AssetLink findByE2_Last(
188 long entryId2,
189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190 throws com.liferay.portal.kernel.exception.SystemException,
191 com.liferay.portlet.asset.NoSuchLinkException {
192 return getPersistence().findByE2_Last(entryId2, orderByComparator);
193 }
194
195 public static com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
196 long linkId, long entryId2,
197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198 throws com.liferay.portal.kernel.exception.SystemException,
199 com.liferay.portlet.asset.NoSuchLinkException {
200 return getPersistence()
201 .findByE2_PrevAndNext(linkId, entryId2, orderByComparator);
202 }
203
204 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
205 long entryId1, long entryId2)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findByE_E(entryId1, entryId2);
208 }
209
210 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
211 long entryId1, long entryId2, int start, int end)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findByE_E(entryId1, entryId2, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
217 long entryId1, long entryId2, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence()
221 .findByE_E(entryId1, entryId2, start, end, orderByComparator);
222 }
223
224 public static com.liferay.portlet.asset.model.AssetLink findByE_E_First(
225 long entryId1, long entryId2,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.kernel.exception.SystemException,
228 com.liferay.portlet.asset.NoSuchLinkException {
229 return getPersistence()
230 .findByE_E_First(entryId1, entryId2, orderByComparator);
231 }
232
233 public static com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
234 long entryId1, long entryId2,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.asset.NoSuchLinkException {
238 return getPersistence()
239 .findByE_E_Last(entryId1, entryId2, orderByComparator);
240 }
241
242 public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
243 long linkId, long entryId1, long entryId2,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.asset.NoSuchLinkException {
247 return getPersistence()
248 .findByE_E_PrevAndNext(linkId, entryId1, entryId2,
249 orderByComparator);
250 }
251
252 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
253 long entryId1, int type)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().findByE1_T(entryId1, type);
256 }
257
258 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
259 long entryId1, int type, int start, int end)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence().findByE1_T(entryId1, type, start, end);
262 }
263
264 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
265 long entryId1, int type, int start, int end,
266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence()
269 .findByE1_T(entryId1, type, start, end, orderByComparator);
270 }
271
272 public static com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
273 long entryId1, int type,
274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275 throws com.liferay.portal.kernel.exception.SystemException,
276 com.liferay.portlet.asset.NoSuchLinkException {
277 return getPersistence()
278 .findByE1_T_First(entryId1, type, orderByComparator);
279 }
280
281 public static com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
282 long entryId1, int type,
283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284 throws com.liferay.portal.kernel.exception.SystemException,
285 com.liferay.portlet.asset.NoSuchLinkException {
286 return getPersistence()
287 .findByE1_T_Last(entryId1, type, orderByComparator);
288 }
289
290 public static com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
291 long linkId, long entryId1, int type,
292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293 throws com.liferay.portal.kernel.exception.SystemException,
294 com.liferay.portlet.asset.NoSuchLinkException {
295 return getPersistence()
296 .findByE1_T_PrevAndNext(linkId, entryId1, type,
297 orderByComparator);
298 }
299
300 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
301 long entryId2, int type)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return getPersistence().findByE2_T(entryId2, type);
304 }
305
306 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
307 long entryId2, int type, int start, int end)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getPersistence().findByE2_T(entryId2, type, start, end);
310 }
311
312 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
313 long entryId2, int type, int start, int end,
314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getPersistence()
317 .findByE2_T(entryId2, type, start, end, orderByComparator);
318 }
319
320 public static com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
321 long entryId2, int type,
322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323 throws com.liferay.portal.kernel.exception.SystemException,
324 com.liferay.portlet.asset.NoSuchLinkException {
325 return getPersistence()
326 .findByE2_T_First(entryId2, type, orderByComparator);
327 }
328
329 public static com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
330 long entryId2, int type,
331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332 throws com.liferay.portal.kernel.exception.SystemException,
333 com.liferay.portlet.asset.NoSuchLinkException {
334 return getPersistence()
335 .findByE2_T_Last(entryId2, type, orderByComparator);
336 }
337
338 public static com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
339 long linkId, long entryId2, int type,
340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341 throws com.liferay.portal.kernel.exception.SystemException,
342 com.liferay.portlet.asset.NoSuchLinkException {
343 return getPersistence()
344 .findByE2_T_PrevAndNext(linkId, entryId2, type,
345 orderByComparator);
346 }
347
348 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
349 long entryId1, long entryId2, int type)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getPersistence().findByE_E_T(entryId1, entryId2, type);
352 }
353
354 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
355 long entryId1, long entryId2, int type, int start, int end)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getPersistence().findByE_E_T(entryId1, entryId2, type, start, end);
358 }
359
360 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
361 long entryId1, long entryId2, int type, int start, int end,
362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getPersistence()
365 .findByE_E_T(entryId1, entryId2, type, start, end,
366 orderByComparator);
367 }
368
369 public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
370 long entryId1, long entryId2, int type,
371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372 throws com.liferay.portal.kernel.exception.SystemException,
373 com.liferay.portlet.asset.NoSuchLinkException {
374 return getPersistence()
375 .findByE_E_T_First(entryId1, entryId2, type,
376 orderByComparator);
377 }
378
379 public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
380 long entryId1, long entryId2, int type,
381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382 throws com.liferay.portal.kernel.exception.SystemException,
383 com.liferay.portlet.asset.NoSuchLinkException {
384 return getPersistence()
385 .findByE_E_T_Last(entryId1, entryId2, type, orderByComparator);
386 }
387
388 public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
389 long linkId, long entryId1, long entryId2, int type,
390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391 throws com.liferay.portal.kernel.exception.SystemException,
392 com.liferay.portlet.asset.NoSuchLinkException {
393 return getPersistence()
394 .findByE_E_T_PrevAndNext(linkId, entryId1, entryId2, type,
395 orderByComparator);
396 }
397
398 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().findAll();
401 }
402
403 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
404 int start, int end)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().findAll(start, end);
407 }
408
409 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
410 int start, int end,
411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getPersistence().findAll(start, end, orderByComparator);
414 }
415
416 public static void removeByE1(long entryId1)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 getPersistence().removeByE1(entryId1);
419 }
420
421 public static void removeByE2(long entryId2)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 getPersistence().removeByE2(entryId2);
424 }
425
426 public static void removeByE_E(long entryId1, long entryId2)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 getPersistence().removeByE_E(entryId1, entryId2);
429 }
430
431 public static void removeByE1_T(long entryId1, int type)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 getPersistence().removeByE1_T(entryId1, type);
434 }
435
436 public static void removeByE2_T(long entryId2, int type)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 getPersistence().removeByE2_T(entryId2, type);
439 }
440
441 public static void removeByE_E_T(long entryId1, long entryId2, int type)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 getPersistence().removeByE_E_T(entryId1, entryId2, type);
444 }
445
446 public static void removeAll()
447 throws com.liferay.portal.kernel.exception.SystemException {
448 getPersistence().removeAll();
449 }
450
451 public static int countByE1(long entryId1)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 return getPersistence().countByE1(entryId1);
454 }
455
456 public static int countByE2(long entryId2)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getPersistence().countByE2(entryId2);
459 }
460
461 public static int countByE_E(long entryId1, long entryId2)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 return getPersistence().countByE_E(entryId1, entryId2);
464 }
465
466 public static int countByE1_T(long entryId1, int type)
467 throws com.liferay.portal.kernel.exception.SystemException {
468 return getPersistence().countByE1_T(entryId1, type);
469 }
470
471 public static int countByE2_T(long entryId2, int type)
472 throws com.liferay.portal.kernel.exception.SystemException {
473 return getPersistence().countByE2_T(entryId2, type);
474 }
475
476 public static int countByE_E_T(long entryId1, long entryId2, int type)
477 throws com.liferay.portal.kernel.exception.SystemException {
478 return getPersistence().countByE_E_T(entryId1, entryId2, type);
479 }
480
481 public static int countAll()
482 throws com.liferay.portal.kernel.exception.SystemException {
483 return getPersistence().countAll();
484 }
485
486 public static AssetLinkPersistence getPersistence() {
487 if (_persistence == null) {
488 _persistence = (AssetLinkPersistence)PortalBeanLocatorUtil.locate(AssetLinkPersistence.class.getName());
489 }
490
491 return _persistence;
492 }
493
494 public void setPersistence(AssetLinkPersistence persistence) {
495 _persistence = persistence;
496 }
497
498 private static AssetLinkPersistence _persistence;
499 }