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.wiki.service.persistence;
022:
023: /**
024: * <a href="WikiPageUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class WikiPageUtil {
030: public static com.liferay.portlet.wiki.model.WikiPage create(
031: long pageId) {
032: return getPersistence().create(pageId);
033: }
034:
035: public static com.liferay.portlet.wiki.model.WikiPage remove(
036: long pageId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.wiki.NoSuchPageException {
038: return getPersistence().remove(pageId);
039: }
040:
041: public static com.liferay.portlet.wiki.model.WikiPage remove(
042: com.liferay.portlet.wiki.model.WikiPage wikiPage)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(wikiPage);
045: }
046:
047: public static com.liferay.portlet.wiki.model.WikiPage update(
048: com.liferay.portlet.wiki.model.WikiPage wikiPage)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(wikiPage);
051: }
052:
053: public static com.liferay.portlet.wiki.model.WikiPage update(
054: com.liferay.portlet.wiki.model.WikiPage wikiPage,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(wikiPage, merge);
057: }
058:
059: public static com.liferay.portlet.wiki.model.WikiPage updateImpl(
060: com.liferay.portlet.wiki.model.WikiPage wikiPage,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(wikiPage, merge);
063: }
064:
065: public static com.liferay.portlet.wiki.model.WikiPage findByPrimaryKey(
066: long pageId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.wiki.NoSuchPageException {
068: return getPersistence().findByPrimaryKey(pageId);
069: }
070:
071: public static com.liferay.portlet.wiki.model.WikiPage fetchByPrimaryKey(
072: long pageId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(pageId);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.wiki.model.WikiPage findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.wiki.NoSuchPageException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.wiki.model.WikiPage findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.wiki.NoSuchPageException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.wiki.model.WikiPage[] findByUuid_PrevAndNext(
111: long pageId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.wiki.NoSuchPageException {
115: return getPersistence().findByUuid_PrevAndNext(pageId, uuid,
116: obc);
117: }
118:
119: public static java.util.List findByNodeId(long nodeId)
120: throws com.liferay.portal.SystemException {
121: return getPersistence().findByNodeId(nodeId);
122: }
123:
124: public static java.util.List findByNodeId(long nodeId, int begin,
125: int end) throws com.liferay.portal.SystemException {
126: return getPersistence().findByNodeId(nodeId, begin, end);
127: }
128:
129: public static java.util.List findByNodeId(long nodeId, int begin,
130: int end,
131: com.liferay.portal.kernel.util.OrderByComparator obc)
132: throws com.liferay.portal.SystemException {
133: return getPersistence().findByNodeId(nodeId, begin, end, obc);
134: }
135:
136: public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_First(
137: long nodeId,
138: com.liferay.portal.kernel.util.OrderByComparator obc)
139: throws com.liferay.portal.SystemException,
140: com.liferay.portlet.wiki.NoSuchPageException {
141: return getPersistence().findByNodeId_First(nodeId, obc);
142: }
143:
144: public static com.liferay.portlet.wiki.model.WikiPage findByNodeId_Last(
145: long nodeId,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portlet.wiki.NoSuchPageException {
149: return getPersistence().findByNodeId_Last(nodeId, obc);
150: }
151:
152: public static com.liferay.portlet.wiki.model.WikiPage[] findByNodeId_PrevAndNext(
153: long pageId, long nodeId,
154: com.liferay.portal.kernel.util.OrderByComparator obc)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portlet.wiki.NoSuchPageException {
157: return getPersistence().findByNodeId_PrevAndNext(pageId,
158: nodeId, obc);
159: }
160:
161: public static java.util.List findByN_T(long nodeId,
162: java.lang.String title)
163: throws com.liferay.portal.SystemException {
164: return getPersistence().findByN_T(nodeId, title);
165: }
166:
167: public static java.util.List findByN_T(long nodeId,
168: java.lang.String title, int begin, int end)
169: throws com.liferay.portal.SystemException {
170: return getPersistence().findByN_T(nodeId, title, begin, end);
171: }
172:
173: public static java.util.List findByN_T(long nodeId,
174: java.lang.String title, int begin, int end,
175: com.liferay.portal.kernel.util.OrderByComparator obc)
176: throws com.liferay.portal.SystemException {
177: return getPersistence().findByN_T(nodeId, title, begin, end,
178: obc);
179: }
180:
181: public static com.liferay.portlet.wiki.model.WikiPage findByN_T_First(
182: long nodeId, java.lang.String title,
183: com.liferay.portal.kernel.util.OrderByComparator obc)
184: throws com.liferay.portal.SystemException,
185: com.liferay.portlet.wiki.NoSuchPageException {
186: return getPersistence().findByN_T_First(nodeId, title, obc);
187: }
188:
189: public static com.liferay.portlet.wiki.model.WikiPage findByN_T_Last(
190: long nodeId, java.lang.String title,
191: com.liferay.portal.kernel.util.OrderByComparator obc)
192: throws com.liferay.portal.SystemException,
193: com.liferay.portlet.wiki.NoSuchPageException {
194: return getPersistence().findByN_T_Last(nodeId, title, obc);
195: }
196:
197: public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_PrevAndNext(
198: long pageId, long nodeId, java.lang.String title,
199: com.liferay.portal.kernel.util.OrderByComparator obc)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portlet.wiki.NoSuchPageException {
202: return getPersistence().findByN_T_PrevAndNext(pageId, nodeId,
203: title, obc);
204: }
205:
206: public static java.util.List findByN_H(long nodeId, boolean head)
207: throws com.liferay.portal.SystemException {
208: return getPersistence().findByN_H(nodeId, head);
209: }
210:
211: public static java.util.List findByN_H(long nodeId, boolean head,
212: int begin, int end)
213: throws com.liferay.portal.SystemException {
214: return getPersistence().findByN_H(nodeId, head, begin, end);
215: }
216:
217: public static java.util.List findByN_H(long nodeId, boolean head,
218: int begin, int end,
219: com.liferay.portal.kernel.util.OrderByComparator obc)
220: throws com.liferay.portal.SystemException {
221: return getPersistence()
222: .findByN_H(nodeId, head, begin, end, obc);
223: }
224:
225: public static com.liferay.portlet.wiki.model.WikiPage findByN_H_First(
226: long nodeId, boolean head,
227: com.liferay.portal.kernel.util.OrderByComparator obc)
228: throws com.liferay.portal.SystemException,
229: com.liferay.portlet.wiki.NoSuchPageException {
230: return getPersistence().findByN_H_First(nodeId, head, obc);
231: }
232:
233: public static com.liferay.portlet.wiki.model.WikiPage findByN_H_Last(
234: long nodeId, boolean head,
235: com.liferay.portal.kernel.util.OrderByComparator obc)
236: throws com.liferay.portal.SystemException,
237: com.liferay.portlet.wiki.NoSuchPageException {
238: return getPersistence().findByN_H_Last(nodeId, head, obc);
239: }
240:
241: public static com.liferay.portlet.wiki.model.WikiPage[] findByN_H_PrevAndNext(
242: long pageId, long nodeId, boolean head,
243: com.liferay.portal.kernel.util.OrderByComparator obc)
244: throws com.liferay.portal.SystemException,
245: com.liferay.portlet.wiki.NoSuchPageException {
246: return getPersistence().findByN_H_PrevAndNext(pageId, nodeId,
247: head, obc);
248: }
249:
250: public static com.liferay.portlet.wiki.model.WikiPage findByN_T_V(
251: long nodeId, java.lang.String title, double version)
252: throws com.liferay.portal.SystemException,
253: com.liferay.portlet.wiki.NoSuchPageException {
254: return getPersistence().findByN_T_V(nodeId, title, version);
255: }
256:
257: public static com.liferay.portlet.wiki.model.WikiPage fetchByN_T_V(
258: long nodeId, java.lang.String title, double version)
259: throws com.liferay.portal.SystemException {
260: return getPersistence().fetchByN_T_V(nodeId, title, version);
261: }
262:
263: public static java.util.List findByN_T_H(long nodeId,
264: java.lang.String title, boolean head)
265: throws com.liferay.portal.SystemException {
266: return getPersistence().findByN_T_H(nodeId, title, head);
267: }
268:
269: public static java.util.List findByN_T_H(long nodeId,
270: java.lang.String title, boolean head, int begin, int end)
271: throws com.liferay.portal.SystemException {
272: return getPersistence().findByN_T_H(nodeId, title, head, begin,
273: end);
274: }
275:
276: public static java.util.List findByN_T_H(long nodeId,
277: java.lang.String title, boolean head, int begin, int end,
278: com.liferay.portal.kernel.util.OrderByComparator obc)
279: throws com.liferay.portal.SystemException {
280: return getPersistence().findByN_T_H(nodeId, title, head, begin,
281: end, obc);
282: }
283:
284: public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_First(
285: long nodeId, java.lang.String title, boolean head,
286: com.liferay.portal.kernel.util.OrderByComparator obc)
287: throws com.liferay.portal.SystemException,
288: com.liferay.portlet.wiki.NoSuchPageException {
289: return getPersistence().findByN_T_H_First(nodeId, title, head,
290: obc);
291: }
292:
293: public static com.liferay.portlet.wiki.model.WikiPage findByN_T_H_Last(
294: long nodeId, java.lang.String title, boolean head,
295: com.liferay.portal.kernel.util.OrderByComparator obc)
296: throws com.liferay.portal.SystemException,
297: com.liferay.portlet.wiki.NoSuchPageException {
298: return getPersistence().findByN_T_H_Last(nodeId, title, head,
299: obc);
300: }
301:
302: public static com.liferay.portlet.wiki.model.WikiPage[] findByN_T_H_PrevAndNext(
303: long pageId, long nodeId, java.lang.String title,
304: boolean head,
305: com.liferay.portal.kernel.util.OrderByComparator obc)
306: throws com.liferay.portal.SystemException,
307: com.liferay.portlet.wiki.NoSuchPageException {
308: return getPersistence().findByN_T_H_PrevAndNext(pageId, nodeId,
309: title, head, obc);
310: }
311:
312: public static java.util.List findWithDynamicQuery(
313: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
314: throws com.liferay.portal.SystemException {
315: return getPersistence().findWithDynamicQuery(queryInitializer);
316: }
317:
318: public static java.util.List findWithDynamicQuery(
319: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
320: int begin, int end)
321: throws com.liferay.portal.SystemException {
322: return getPersistence().findWithDynamicQuery(queryInitializer,
323: begin, end);
324: }
325:
326: public static java.util.List findAll()
327: throws com.liferay.portal.SystemException {
328: return getPersistence().findAll();
329: }
330:
331: public static java.util.List findAll(int begin, int end)
332: throws com.liferay.portal.SystemException {
333: return getPersistence().findAll(begin, end);
334: }
335:
336: public static java.util.List findAll(int begin, int end,
337: com.liferay.portal.kernel.util.OrderByComparator obc)
338: throws com.liferay.portal.SystemException {
339: return getPersistence().findAll(begin, end, obc);
340: }
341:
342: public static void removeByUuid(java.lang.String uuid)
343: throws com.liferay.portal.SystemException {
344: getPersistence().removeByUuid(uuid);
345: }
346:
347: public static void removeByNodeId(long nodeId)
348: throws com.liferay.portal.SystemException {
349: getPersistence().removeByNodeId(nodeId);
350: }
351:
352: public static void removeByN_T(long nodeId, java.lang.String title)
353: throws com.liferay.portal.SystemException {
354: getPersistence().removeByN_T(nodeId, title);
355: }
356:
357: public static void removeByN_H(long nodeId, boolean head)
358: throws com.liferay.portal.SystemException {
359: getPersistence().removeByN_H(nodeId, head);
360: }
361:
362: public static void removeByN_T_V(long nodeId,
363: java.lang.String title, double version)
364: throws com.liferay.portal.SystemException,
365: com.liferay.portlet.wiki.NoSuchPageException {
366: getPersistence().removeByN_T_V(nodeId, title, version);
367: }
368:
369: public static void removeByN_T_H(long nodeId,
370: java.lang.String title, boolean head)
371: throws com.liferay.portal.SystemException {
372: getPersistence().removeByN_T_H(nodeId, title, head);
373: }
374:
375: public static void removeAll()
376: throws com.liferay.portal.SystemException {
377: getPersistence().removeAll();
378: }
379:
380: public static int countByUuid(java.lang.String uuid)
381: throws com.liferay.portal.SystemException {
382: return getPersistence().countByUuid(uuid);
383: }
384:
385: public static int countByNodeId(long nodeId)
386: throws com.liferay.portal.SystemException {
387: return getPersistence().countByNodeId(nodeId);
388: }
389:
390: public static int countByN_T(long nodeId, java.lang.String title)
391: throws com.liferay.portal.SystemException {
392: return getPersistence().countByN_T(nodeId, title);
393: }
394:
395: public static int countByN_H(long nodeId, boolean head)
396: throws com.liferay.portal.SystemException {
397: return getPersistence().countByN_H(nodeId, head);
398: }
399:
400: public static int countByN_T_V(long nodeId, java.lang.String title,
401: double version) throws com.liferay.portal.SystemException {
402: return getPersistence().countByN_T_V(nodeId, title, version);
403: }
404:
405: public static int countByN_T_H(long nodeId, java.lang.String title,
406: boolean head) throws com.liferay.portal.SystemException {
407: return getPersistence().countByN_T_H(nodeId, title, head);
408: }
409:
410: public static int countAll()
411: throws com.liferay.portal.SystemException {
412: return getPersistence().countAll();
413: }
414:
415: public static WikiPagePersistence getPersistence() {
416: return _getUtil()._persistence;
417: }
418:
419: public void setPersistence(WikiPagePersistence persistence) {
420: _persistence = persistence;
421: }
422:
423: private static WikiPageUtil _getUtil() {
424: if (_util == null) {
425: _util = (WikiPageUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
426: .locate(_UTIL);
427: }
428:
429: return _util;
430: }
431:
432: private static final String _UTIL = WikiPageUtil.class.getName();
433: private static WikiPageUtil _util;
434: private WikiPagePersistence _persistence;
435: }
|