001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalContentSearchUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalContentSearchUtil {
030: public static com.liferay.portlet.journal.model.JournalContentSearch create(
031: long contentSearchId) {
032: return getPersistence().create(contentSearchId);
033: }
034:
035: public static com.liferay.portlet.journal.model.JournalContentSearch remove(
036: long contentSearchId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.journal.NoSuchContentSearchException {
039: return getPersistence().remove(contentSearchId);
040: }
041:
042: public static com.liferay.portlet.journal.model.JournalContentSearch remove(
043: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(journalContentSearch);
046: }
047:
048: public static com.liferay.portlet.journal.model.JournalContentSearch update(
049: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(journalContentSearch);
052: }
053:
054: public static com.liferay.portlet.journal.model.JournalContentSearch update(
055: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(journalContentSearch, merge);
058: }
059:
060: public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
061: com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(journalContentSearch, merge);
064: }
065:
066: public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
067: long contentSearchId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.journal.NoSuchContentSearchException {
070: return getPersistence().findByPrimaryKey(contentSearchId);
071: }
072:
073: public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
074: long contentSearchId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(contentSearchId);
077: }
078:
079: public static java.util.List findByG_P(long groupId,
080: boolean privateLayout)
081: throws com.liferay.portal.SystemException {
082: return getPersistence().findByG_P(groupId, privateLayout);
083: }
084:
085: public static java.util.List findByG_P(long groupId,
086: boolean privateLayout, int begin, int end)
087: throws com.liferay.portal.SystemException {
088: return getPersistence().findByG_P(groupId, privateLayout,
089: begin, end);
090: }
091:
092: public static java.util.List findByG_P(long groupId,
093: boolean privateLayout, int begin, int end,
094: com.liferay.portal.kernel.util.OrderByComparator obc)
095: throws com.liferay.portal.SystemException {
096: return getPersistence().findByG_P(groupId, privateLayout,
097: begin, end, obc);
098: }
099:
100: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
101: long groupId, boolean privateLayout,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.journal.NoSuchContentSearchException {
105: return getPersistence().findByG_P_First(groupId, privateLayout,
106: obc);
107: }
108:
109: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
110: long groupId, boolean privateLayout,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.journal.NoSuchContentSearchException {
114: return getPersistence().findByG_P_Last(groupId, privateLayout,
115: obc);
116: }
117:
118: public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
119: long contentSearchId, long groupId, boolean privateLayout,
120: com.liferay.portal.kernel.util.OrderByComparator obc)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.journal.NoSuchContentSearchException {
123: return getPersistence().findByG_P_PrevAndNext(contentSearchId,
124: groupId, privateLayout, obc);
125: }
126:
127: public static java.util.List findByG_A(long groupId,
128: java.lang.String articleId)
129: throws com.liferay.portal.SystemException {
130: return getPersistence().findByG_A(groupId, articleId);
131: }
132:
133: public static java.util.List findByG_A(long groupId,
134: java.lang.String articleId, int begin, int end)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByG_A(groupId, articleId, begin,
137: end);
138: }
139:
140: public static java.util.List findByG_A(long groupId,
141: java.lang.String articleId, int begin, int end,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException {
144: return getPersistence().findByG_A(groupId, articleId, begin,
145: end, obc);
146: }
147:
148: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
149: long groupId, java.lang.String articleId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.journal.NoSuchContentSearchException {
153: return getPersistence()
154: .findByG_A_First(groupId, articleId, obc);
155: }
156:
157: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
158: long groupId, java.lang.String articleId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.journal.NoSuchContentSearchException {
162: return getPersistence().findByG_A_Last(groupId, articleId, obc);
163: }
164:
165: public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
166: long contentSearchId, long groupId,
167: java.lang.String articleId,
168: com.liferay.portal.kernel.util.OrderByComparator obc)
169: throws com.liferay.portal.SystemException,
170: com.liferay.portlet.journal.NoSuchContentSearchException {
171: return getPersistence().findByG_A_PrevAndNext(contentSearchId,
172: groupId, articleId, obc);
173: }
174:
175: public static java.util.List findByG_P_L(long groupId,
176: boolean privateLayout, long layoutId)
177: throws com.liferay.portal.SystemException {
178: return getPersistence().findByG_P_L(groupId, privateLayout,
179: layoutId);
180: }
181:
182: public static java.util.List findByG_P_L(long groupId,
183: boolean privateLayout, long layoutId, int begin, int end)
184: throws com.liferay.portal.SystemException {
185: return getPersistence().findByG_P_L(groupId, privateLayout,
186: layoutId, begin, end);
187: }
188:
189: public static java.util.List findByG_P_L(long groupId,
190: boolean privateLayout, long layoutId, int begin, int end,
191: com.liferay.portal.kernel.util.OrderByComparator obc)
192: throws com.liferay.portal.SystemException {
193: return getPersistence().findByG_P_L(groupId, privateLayout,
194: layoutId, begin, end, obc);
195: }
196:
197: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
198: long groupId, boolean privateLayout, long layoutId,
199: com.liferay.portal.kernel.util.OrderByComparator obc)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portlet.journal.NoSuchContentSearchException {
202: return getPersistence().findByG_P_L_First(groupId,
203: privateLayout, layoutId, obc);
204: }
205:
206: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
207: long groupId, boolean privateLayout, long layoutId,
208: com.liferay.portal.kernel.util.OrderByComparator obc)
209: throws com.liferay.portal.SystemException,
210: com.liferay.portlet.journal.NoSuchContentSearchException {
211: return getPersistence().findByG_P_L_Last(groupId,
212: privateLayout, layoutId, obc);
213: }
214:
215: public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
216: long contentSearchId, long groupId, boolean privateLayout,
217: long layoutId,
218: com.liferay.portal.kernel.util.OrderByComparator obc)
219: throws com.liferay.portal.SystemException,
220: com.liferay.portlet.journal.NoSuchContentSearchException {
221: return getPersistence().findByG_P_L_PrevAndNext(
222: contentSearchId, groupId, privateLayout, layoutId, obc);
223: }
224:
225: public static java.util.List findByG_P_A(long groupId,
226: boolean privateLayout, java.lang.String articleId)
227: throws com.liferay.portal.SystemException {
228: return getPersistence().findByG_P_A(groupId, privateLayout,
229: articleId);
230: }
231:
232: public static java.util.List findByG_P_A(long groupId,
233: boolean privateLayout, java.lang.String articleId,
234: int begin, int end)
235: throws com.liferay.portal.SystemException {
236: return getPersistence().findByG_P_A(groupId, privateLayout,
237: articleId, begin, end);
238: }
239:
240: public static java.util.List findByG_P_A(long groupId,
241: boolean privateLayout, java.lang.String articleId,
242: int begin, int end,
243: com.liferay.portal.kernel.util.OrderByComparator obc)
244: throws com.liferay.portal.SystemException {
245: return getPersistence().findByG_P_A(groupId, privateLayout,
246: articleId, begin, end, obc);
247: }
248:
249: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
250: long groupId, boolean privateLayout,
251: java.lang.String articleId,
252: com.liferay.portal.kernel.util.OrderByComparator obc)
253: throws com.liferay.portal.SystemException,
254: com.liferay.portlet.journal.NoSuchContentSearchException {
255: return getPersistence().findByG_P_A_First(groupId,
256: privateLayout, articleId, obc);
257: }
258:
259: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
260: long groupId, boolean privateLayout,
261: java.lang.String articleId,
262: com.liferay.portal.kernel.util.OrderByComparator obc)
263: throws com.liferay.portal.SystemException,
264: com.liferay.portlet.journal.NoSuchContentSearchException {
265: return getPersistence().findByG_P_A_Last(groupId,
266: privateLayout, articleId, obc);
267: }
268:
269: public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
270: long contentSearchId, long groupId, boolean privateLayout,
271: java.lang.String articleId,
272: com.liferay.portal.kernel.util.OrderByComparator obc)
273: throws com.liferay.portal.SystemException,
274: com.liferay.portlet.journal.NoSuchContentSearchException {
275: return getPersistence()
276: .findByG_P_A_PrevAndNext(contentSearchId, groupId,
277: privateLayout, articleId, obc);
278: }
279:
280: public static java.util.List findByG_P_L_P(long groupId,
281: boolean privateLayout, long layoutId,
282: java.lang.String portletId)
283: throws com.liferay.portal.SystemException {
284: return getPersistence().findByG_P_L_P(groupId, privateLayout,
285: layoutId, portletId);
286: }
287:
288: public static java.util.List findByG_P_L_P(long groupId,
289: boolean privateLayout, long layoutId,
290: java.lang.String portletId, int begin, int end)
291: throws com.liferay.portal.SystemException {
292: return getPersistence().findByG_P_L_P(groupId, privateLayout,
293: layoutId, portletId, begin, end);
294: }
295:
296: public static java.util.List findByG_P_L_P(long groupId,
297: boolean privateLayout, long layoutId,
298: java.lang.String portletId, int begin, int end,
299: com.liferay.portal.kernel.util.OrderByComparator obc)
300: throws com.liferay.portal.SystemException {
301: return getPersistence().findByG_P_L_P(groupId, privateLayout,
302: layoutId, portletId, begin, end, obc);
303: }
304:
305: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
306: long groupId, boolean privateLayout, long layoutId,
307: java.lang.String portletId,
308: com.liferay.portal.kernel.util.OrderByComparator obc)
309: throws com.liferay.portal.SystemException,
310: com.liferay.portlet.journal.NoSuchContentSearchException {
311: return getPersistence().findByG_P_L_P_First(groupId,
312: privateLayout, layoutId, portletId, obc);
313: }
314:
315: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
316: long groupId, boolean privateLayout, long layoutId,
317: java.lang.String portletId,
318: com.liferay.portal.kernel.util.OrderByComparator obc)
319: throws com.liferay.portal.SystemException,
320: com.liferay.portlet.journal.NoSuchContentSearchException {
321: return getPersistence().findByG_P_L_P_Last(groupId,
322: privateLayout, layoutId, portletId, obc);
323: }
324:
325: public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
326: long contentSearchId, long groupId, boolean privateLayout,
327: long layoutId, java.lang.String portletId,
328: com.liferay.portal.kernel.util.OrderByComparator obc)
329: throws com.liferay.portal.SystemException,
330: com.liferay.portlet.journal.NoSuchContentSearchException {
331: return getPersistence().findByG_P_L_P_PrevAndNext(
332: contentSearchId, groupId, privateLayout, layoutId,
333: portletId, obc);
334: }
335:
336: public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
337: long groupId, boolean privateLayout, long layoutId,
338: java.lang.String portletId, java.lang.String articleId)
339: throws com.liferay.portal.SystemException,
340: com.liferay.portlet.journal.NoSuchContentSearchException {
341: return getPersistence().findByG_P_L_P_A(groupId, privateLayout,
342: layoutId, portletId, articleId);
343: }
344:
345: public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
346: long groupId, boolean privateLayout, long layoutId,
347: java.lang.String portletId, java.lang.String articleId)
348: throws com.liferay.portal.SystemException {
349: return getPersistence().fetchByG_P_L_P_A(groupId,
350: privateLayout, layoutId, portletId, articleId);
351: }
352:
353: public static java.util.List findWithDynamicQuery(
354: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
355: throws com.liferay.portal.SystemException {
356: return getPersistence().findWithDynamicQuery(queryInitializer);
357: }
358:
359: public static java.util.List findWithDynamicQuery(
360: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
361: int begin, int end)
362: throws com.liferay.portal.SystemException {
363: return getPersistence().findWithDynamicQuery(queryInitializer,
364: begin, end);
365: }
366:
367: public static java.util.List findAll()
368: throws com.liferay.portal.SystemException {
369: return getPersistence().findAll();
370: }
371:
372: public static java.util.List findAll(int begin, int end)
373: throws com.liferay.portal.SystemException {
374: return getPersistence().findAll(begin, end);
375: }
376:
377: public static java.util.List findAll(int begin, int end,
378: com.liferay.portal.kernel.util.OrderByComparator obc)
379: throws com.liferay.portal.SystemException {
380: return getPersistence().findAll(begin, end, obc);
381: }
382:
383: public static void removeByG_P(long groupId, boolean privateLayout)
384: throws com.liferay.portal.SystemException {
385: getPersistence().removeByG_P(groupId, privateLayout);
386: }
387:
388: public static void removeByG_A(long groupId,
389: java.lang.String articleId)
390: throws com.liferay.portal.SystemException {
391: getPersistence().removeByG_A(groupId, articleId);
392: }
393:
394: public static void removeByG_P_L(long groupId,
395: boolean privateLayout, long layoutId)
396: throws com.liferay.portal.SystemException {
397: getPersistence()
398: .removeByG_P_L(groupId, privateLayout, layoutId);
399: }
400:
401: public static void removeByG_P_A(long groupId,
402: boolean privateLayout, java.lang.String articleId)
403: throws com.liferay.portal.SystemException {
404: getPersistence().removeByG_P_A(groupId, privateLayout,
405: articleId);
406: }
407:
408: public static void removeByG_P_L_P(long groupId,
409: boolean privateLayout, long layoutId,
410: java.lang.String portletId)
411: throws com.liferay.portal.SystemException {
412: getPersistence().removeByG_P_L_P(groupId, privateLayout,
413: layoutId, portletId);
414: }
415:
416: public static void removeByG_P_L_P_A(long groupId,
417: boolean privateLayout, long layoutId,
418: java.lang.String portletId, java.lang.String articleId)
419: throws com.liferay.portal.SystemException,
420: com.liferay.portlet.journal.NoSuchContentSearchException {
421: getPersistence().removeByG_P_L_P_A(groupId, privateLayout,
422: layoutId, portletId, articleId);
423: }
424:
425: public static void removeAll()
426: throws com.liferay.portal.SystemException {
427: getPersistence().removeAll();
428: }
429:
430: public static int countByG_P(long groupId, boolean privateLayout)
431: throws com.liferay.portal.SystemException {
432: return getPersistence().countByG_P(groupId, privateLayout);
433: }
434:
435: public static int countByG_A(long groupId,
436: java.lang.String articleId)
437: throws com.liferay.portal.SystemException {
438: return getPersistence().countByG_A(groupId, articleId);
439: }
440:
441: public static int countByG_P_L(long groupId, boolean privateLayout,
442: long layoutId) throws com.liferay.portal.SystemException {
443: return getPersistence().countByG_P_L(groupId, privateLayout,
444: layoutId);
445: }
446:
447: public static int countByG_P_A(long groupId, boolean privateLayout,
448: java.lang.String articleId)
449: throws com.liferay.portal.SystemException {
450: return getPersistence().countByG_P_A(groupId, privateLayout,
451: articleId);
452: }
453:
454: public static int countByG_P_L_P(long groupId,
455: boolean privateLayout, long layoutId,
456: java.lang.String portletId)
457: throws com.liferay.portal.SystemException {
458: return getPersistence().countByG_P_L_P(groupId, privateLayout,
459: layoutId, portletId);
460: }
461:
462: public static int countByG_P_L_P_A(long groupId,
463: boolean privateLayout, long layoutId,
464: java.lang.String portletId, java.lang.String articleId)
465: throws com.liferay.portal.SystemException {
466: return getPersistence().countByG_P_L_P_A(groupId,
467: privateLayout, layoutId, portletId, articleId);
468: }
469:
470: public static int countAll()
471: throws com.liferay.portal.SystemException {
472: return getPersistence().countAll();
473: }
474:
475: public static JournalContentSearchPersistence getPersistence() {
476: return _getUtil()._persistence;
477: }
478:
479: public void setPersistence(
480: JournalContentSearchPersistence persistence) {
481: _persistence = persistence;
482: }
483:
484: private static JournalContentSearchUtil _getUtil() {
485: if (_util == null) {
486: _util = (JournalContentSearchUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
487: .locate(_UTIL);
488: }
489:
490: return _util;
491: }
492:
493: private static final String _UTIL = JournalContentSearchUtil.class
494: .getName();
495: private static JournalContentSearchUtil _util;
496: private JournalContentSearchPersistence _persistence;
497: }
|