001
014
015 package com.liferay.portlet.asset.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.asset.model.AssetLink;
024
025 import java.util.List;
026
027
033 public class AssetLinkUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(AssetLink assetLink) {
045 getPersistence().clearCache(assetLink);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<AssetLink> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<AssetLink> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<AssetLink> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static AssetLink remove(AssetLink assetLink)
088 throws SystemException {
089 return getPersistence().remove(assetLink);
090 }
091
092
095 public static AssetLink update(AssetLink assetLink, boolean merge)
096 throws SystemException {
097 return getPersistence().update(assetLink, merge);
098 }
099
100
103 public static AssetLink update(AssetLink assetLink, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(assetLink, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.asset.model.AssetLink assetLink) {
110 getPersistence().cacheResult(assetLink);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks) {
115 getPersistence().cacheResult(assetLinks);
116 }
117
118 public static com.liferay.portlet.asset.model.AssetLink create(long linkId) {
119 return getPersistence().create(linkId);
120 }
121
122 public static com.liferay.portlet.asset.model.AssetLink remove(long linkId)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.asset.NoSuchLinkException {
125 return getPersistence().remove(linkId);
126 }
127
128 public static com.liferay.portlet.asset.model.AssetLink updateImpl(
129 com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().updateImpl(assetLink, merge);
132 }
133
134 public static com.liferay.portlet.asset.model.AssetLink findByPrimaryKey(
135 long linkId)
136 throws com.liferay.portal.kernel.exception.SystemException,
137 com.liferay.portlet.asset.NoSuchLinkException {
138 return getPersistence().findByPrimaryKey(linkId);
139 }
140
141 public static com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey(
142 long linkId) throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().fetchByPrimaryKey(linkId);
144 }
145
146 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
147 long entryId1)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getPersistence().findByE1(entryId1);
150 }
151
152 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
153 long entryId1, int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence().findByE1(entryId1, start, end);
156 }
157
158 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
159 long entryId1, int start, int end,
160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161 throws com.liferay.portal.kernel.exception.SystemException {
162 return getPersistence().findByE1(entryId1, start, end, orderByComparator);
163 }
164
165 public static com.liferay.portlet.asset.model.AssetLink findByE1_First(
166 long entryId1,
167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168 throws com.liferay.portal.kernel.exception.SystemException,
169 com.liferay.portlet.asset.NoSuchLinkException {
170 return getPersistence().findByE1_First(entryId1, orderByComparator);
171 }
172
173 public static com.liferay.portlet.asset.model.AssetLink findByE1_Last(
174 long entryId1,
175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176 throws com.liferay.portal.kernel.exception.SystemException,
177 com.liferay.portlet.asset.NoSuchLinkException {
178 return getPersistence().findByE1_Last(entryId1, orderByComparator);
179 }
180
181 public static com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
182 long linkId, long entryId1,
183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184 throws com.liferay.portal.kernel.exception.SystemException,
185 com.liferay.portlet.asset.NoSuchLinkException {
186 return getPersistence()
187 .findByE1_PrevAndNext(linkId, entryId1, orderByComparator);
188 }
189
190 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
191 long entryId2)
192 throws com.liferay.portal.kernel.exception.SystemException {
193 return getPersistence().findByE2(entryId2);
194 }
195
196 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
197 long entryId2, int start, int end)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence().findByE2(entryId2, start, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
203 long entryId2, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findByE2(entryId2, start, end, orderByComparator);
207 }
208
209 public static com.liferay.portlet.asset.model.AssetLink findByE2_First(
210 long entryId2,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException,
213 com.liferay.portlet.asset.NoSuchLinkException {
214 return getPersistence().findByE2_First(entryId2, orderByComparator);
215 }
216
217 public static com.liferay.portlet.asset.model.AssetLink findByE2_Last(
218 long entryId2,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.kernel.exception.SystemException,
221 com.liferay.portlet.asset.NoSuchLinkException {
222 return getPersistence().findByE2_Last(entryId2, orderByComparator);
223 }
224
225 public static com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
226 long linkId, long entryId2,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException,
229 com.liferay.portlet.asset.NoSuchLinkException {
230 return getPersistence()
231 .findByE2_PrevAndNext(linkId, entryId2, orderByComparator);
232 }
233
234 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
235 long entryId1, long entryId2)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getPersistence().findByE_E(entryId1, entryId2);
238 }
239
240 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
241 long entryId1, long entryId2, int start, int end)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence().findByE_E(entryId1, entryId2, start, end);
244 }
245
246 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
247 long entryId1, long entryId2, int start, int end,
248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getPersistence()
251 .findByE_E(entryId1, entryId2, start, end, orderByComparator);
252 }
253
254 public static com.liferay.portlet.asset.model.AssetLink findByE_E_First(
255 long entryId1, long entryId2,
256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257 throws com.liferay.portal.kernel.exception.SystemException,
258 com.liferay.portlet.asset.NoSuchLinkException {
259 return getPersistence()
260 .findByE_E_First(entryId1, entryId2, orderByComparator);
261 }
262
263 public static com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
264 long entryId1, long entryId2,
265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266 throws com.liferay.portal.kernel.exception.SystemException,
267 com.liferay.portlet.asset.NoSuchLinkException {
268 return getPersistence()
269 .findByE_E_Last(entryId1, entryId2, orderByComparator);
270 }
271
272 public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
273 long linkId, long entryId1, long entryId2,
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 .findByE_E_PrevAndNext(linkId, entryId1, entryId2,
279 orderByComparator);
280 }
281
282 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
283 long entryId1, int type)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence().findByE1_T(entryId1, type);
286 }
287
288 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
289 long entryId1, int type, int start, int end)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 return getPersistence().findByE1_T(entryId1, type, start, end);
292 }
293
294 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
295 long entryId1, int type, int start, int end,
296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence()
299 .findByE1_T(entryId1, type, start, end, orderByComparator);
300 }
301
302 public static com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
303 long entryId1, int type,
304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305 throws com.liferay.portal.kernel.exception.SystemException,
306 com.liferay.portlet.asset.NoSuchLinkException {
307 return getPersistence()
308 .findByE1_T_First(entryId1, type, orderByComparator);
309 }
310
311 public static com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
312 long entryId1, int type,
313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314 throws com.liferay.portal.kernel.exception.SystemException,
315 com.liferay.portlet.asset.NoSuchLinkException {
316 return getPersistence()
317 .findByE1_T_Last(entryId1, type, orderByComparator);
318 }
319
320 public static com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
321 long linkId, long entryId1, 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 .findByE1_T_PrevAndNext(linkId, entryId1, type,
327 orderByComparator);
328 }
329
330 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
331 long entryId2, int type)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getPersistence().findByE2_T(entryId2, type);
334 }
335
336 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
337 long entryId2, int type, int start, int end)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getPersistence().findByE2_T(entryId2, type, start, end);
340 }
341
342 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
343 long entryId2, int type, int start, int end,
344 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getPersistence()
347 .findByE2_T(entryId2, type, start, end, orderByComparator);
348 }
349
350 public static com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
351 long entryId2, int type,
352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353 throws com.liferay.portal.kernel.exception.SystemException,
354 com.liferay.portlet.asset.NoSuchLinkException {
355 return getPersistence()
356 .findByE2_T_First(entryId2, type, orderByComparator);
357 }
358
359 public static com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
360 long entryId2, int type,
361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362 throws com.liferay.portal.kernel.exception.SystemException,
363 com.liferay.portlet.asset.NoSuchLinkException {
364 return getPersistence()
365 .findByE2_T_Last(entryId2, type, orderByComparator);
366 }
367
368 public static com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
369 long linkId, long entryId2, int type,
370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371 throws com.liferay.portal.kernel.exception.SystemException,
372 com.liferay.portlet.asset.NoSuchLinkException {
373 return getPersistence()
374 .findByE2_T_PrevAndNext(linkId, entryId2, type,
375 orderByComparator);
376 }
377
378 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
379 long entryId1, long entryId2, int type)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 return getPersistence().findByE_E_T(entryId1, entryId2, type);
382 }
383
384 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
385 long entryId1, long entryId2, int type, int start, int end)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getPersistence().findByE_E_T(entryId1, entryId2, type, start, end);
388 }
389
390 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
391 long entryId1, long entryId2, int type, int start, int end,
392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getPersistence()
395 .findByE_E_T(entryId1, entryId2, type, start, end,
396 orderByComparator);
397 }
398
399 public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
400 long entryId1, long entryId2, int type,
401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402 throws com.liferay.portal.kernel.exception.SystemException,
403 com.liferay.portlet.asset.NoSuchLinkException {
404 return getPersistence()
405 .findByE_E_T_First(entryId1, entryId2, type,
406 orderByComparator);
407 }
408
409 public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
410 long entryId1, long entryId2, int type,
411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412 throws com.liferay.portal.kernel.exception.SystemException,
413 com.liferay.portlet.asset.NoSuchLinkException {
414 return getPersistence()
415 .findByE_E_T_Last(entryId1, entryId2, type, orderByComparator);
416 }
417
418 public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
419 long linkId, long entryId1, long entryId2, int type,
420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421 throws com.liferay.portal.kernel.exception.SystemException,
422 com.liferay.portlet.asset.NoSuchLinkException {
423 return getPersistence()
424 .findByE_E_T_PrevAndNext(linkId, entryId1, entryId2, type,
425 orderByComparator);
426 }
427
428 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getPersistence().findAll();
431 }
432
433 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
434 int start, int end)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getPersistence().findAll(start, end);
437 }
438
439 public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
440 int start, int end,
441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getPersistence().findAll(start, end, orderByComparator);
444 }
445
446 public static void removeByE1(long entryId1)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 getPersistence().removeByE1(entryId1);
449 }
450
451 public static void removeByE2(long entryId2)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 getPersistence().removeByE2(entryId2);
454 }
455
456 public static void removeByE_E(long entryId1, long entryId2)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 getPersistence().removeByE_E(entryId1, entryId2);
459 }
460
461 public static void removeByE1_T(long entryId1, int type)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 getPersistence().removeByE1_T(entryId1, type);
464 }
465
466 public static void removeByE2_T(long entryId2, int type)
467 throws com.liferay.portal.kernel.exception.SystemException {
468 getPersistence().removeByE2_T(entryId2, type);
469 }
470
471 public static void removeByE_E_T(long entryId1, long entryId2, int type)
472 throws com.liferay.portal.kernel.exception.SystemException {
473 getPersistence().removeByE_E_T(entryId1, entryId2, type);
474 }
475
476 public static void removeAll()
477 throws com.liferay.portal.kernel.exception.SystemException {
478 getPersistence().removeAll();
479 }
480
481 public static int countByE1(long entryId1)
482 throws com.liferay.portal.kernel.exception.SystemException {
483 return getPersistence().countByE1(entryId1);
484 }
485
486 public static int countByE2(long entryId2)
487 throws com.liferay.portal.kernel.exception.SystemException {
488 return getPersistence().countByE2(entryId2);
489 }
490
491 public static int countByE_E(long entryId1, long entryId2)
492 throws com.liferay.portal.kernel.exception.SystemException {
493 return getPersistence().countByE_E(entryId1, entryId2);
494 }
495
496 public static int countByE1_T(long entryId1, int type)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getPersistence().countByE1_T(entryId1, type);
499 }
500
501 public static int countByE2_T(long entryId2, int type)
502 throws com.liferay.portal.kernel.exception.SystemException {
503 return getPersistence().countByE2_T(entryId2, type);
504 }
505
506 public static int countByE_E_T(long entryId1, long entryId2, int type)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 return getPersistence().countByE_E_T(entryId1, entryId2, type);
509 }
510
511 public static int countAll()
512 throws com.liferay.portal.kernel.exception.SystemException {
513 return getPersistence().countAll();
514 }
515
516 public static AssetLinkPersistence getPersistence() {
517 if (_persistence == null) {
518 _persistence = (AssetLinkPersistence)PortalBeanLocatorUtil.locate(AssetLinkPersistence.class.getName());
519 }
520
521 return _persistence;
522 }
523
524 public void setPersistence(AssetLinkPersistence persistence) {
525 _persistence = persistence;
526 }
527
528 private static AssetLinkPersistence _persistence;
529 }