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