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="WikiNodeUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class WikiNodeUtil {
030: public static com.liferay.portlet.wiki.model.WikiNode create(
031: long nodeId) {
032: return getPersistence().create(nodeId);
033: }
034:
035: public static com.liferay.portlet.wiki.model.WikiNode remove(
036: long nodeId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.wiki.NoSuchNodeException {
038: return getPersistence().remove(nodeId);
039: }
040:
041: public static com.liferay.portlet.wiki.model.WikiNode remove(
042: com.liferay.portlet.wiki.model.WikiNode wikiNode)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(wikiNode);
045: }
046:
047: public static com.liferay.portlet.wiki.model.WikiNode update(
048: com.liferay.portlet.wiki.model.WikiNode wikiNode)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(wikiNode);
051: }
052:
053: public static com.liferay.portlet.wiki.model.WikiNode update(
054: com.liferay.portlet.wiki.model.WikiNode wikiNode,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(wikiNode, merge);
057: }
058:
059: public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
060: com.liferay.portlet.wiki.model.WikiNode wikiNode,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(wikiNode, merge);
063: }
064:
065: public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
066: long nodeId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.wiki.NoSuchNodeException {
068: return getPersistence().findByPrimaryKey(nodeId);
069: }
070:
071: public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
072: long nodeId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(nodeId);
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.WikiNode 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.NoSuchNodeException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.wiki.model.WikiNode 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.NoSuchNodeException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
111: long nodeId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.wiki.NoSuchNodeException {
115: return getPersistence().findByUuid_PrevAndNext(nodeId, uuid,
116: obc);
117: }
118:
119: public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
120: java.lang.String uuid, long groupId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.wiki.NoSuchNodeException {
123: return getPersistence().findByUUID_G(uuid, groupId);
124: }
125:
126: public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
127: java.lang.String uuid, long groupId)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().fetchByUUID_G(uuid, groupId);
130: }
131:
132: public static java.util.List findByGroupId(long groupId)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByGroupId(groupId);
135: }
136:
137: public static java.util.List findByGroupId(long groupId, int begin,
138: int end) throws com.liferay.portal.SystemException {
139: return getPersistence().findByGroupId(groupId, begin, end);
140: }
141:
142: public static java.util.List findByGroupId(long groupId, int begin,
143: int end,
144: com.liferay.portal.kernel.util.OrderByComparator obc)
145: throws com.liferay.portal.SystemException {
146: return getPersistence().findByGroupId(groupId, begin, end, obc);
147: }
148:
149: public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
150: long groupId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.wiki.NoSuchNodeException {
154: return getPersistence().findByGroupId_First(groupId, obc);
155: }
156:
157: public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
158: long groupId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.wiki.NoSuchNodeException {
162: return getPersistence().findByGroupId_Last(groupId, obc);
163: }
164:
165: public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
166: long nodeId, long groupId,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.wiki.NoSuchNodeException {
170: return getPersistence().findByGroupId_PrevAndNext(nodeId,
171: groupId, obc);
172: }
173:
174: public static java.util.List findByCompanyId(long companyId)
175: throws com.liferay.portal.SystemException {
176: return getPersistence().findByCompanyId(companyId);
177: }
178:
179: public static java.util.List findByCompanyId(long companyId,
180: int begin, int end)
181: throws com.liferay.portal.SystemException {
182: return getPersistence().findByCompanyId(companyId, begin, end);
183: }
184:
185: public static java.util.List findByCompanyId(long companyId,
186: int begin, int end,
187: com.liferay.portal.kernel.util.OrderByComparator obc)
188: throws com.liferay.portal.SystemException {
189: return getPersistence().findByCompanyId(companyId, begin, end,
190: obc);
191: }
192:
193: public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
194: long companyId,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portlet.wiki.NoSuchNodeException {
198: return getPersistence().findByCompanyId_First(companyId, obc);
199: }
200:
201: public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
202: long companyId,
203: com.liferay.portal.kernel.util.OrderByComparator obc)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portlet.wiki.NoSuchNodeException {
206: return getPersistence().findByCompanyId_Last(companyId, obc);
207: }
208:
209: public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
210: long nodeId, long companyId,
211: com.liferay.portal.kernel.util.OrderByComparator obc)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.wiki.NoSuchNodeException {
214: return getPersistence().findByCompanyId_PrevAndNext(nodeId,
215: companyId, obc);
216: }
217:
218: public static java.util.List findWithDynamicQuery(
219: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
220: throws com.liferay.portal.SystemException {
221: return getPersistence().findWithDynamicQuery(queryInitializer);
222: }
223:
224: public static java.util.List findWithDynamicQuery(
225: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
226: int begin, int end)
227: throws com.liferay.portal.SystemException {
228: return getPersistence().findWithDynamicQuery(queryInitializer,
229: begin, end);
230: }
231:
232: public static java.util.List findAll()
233: throws com.liferay.portal.SystemException {
234: return getPersistence().findAll();
235: }
236:
237: public static java.util.List findAll(int begin, int end)
238: throws com.liferay.portal.SystemException {
239: return getPersistence().findAll(begin, end);
240: }
241:
242: public static java.util.List findAll(int begin, int end,
243: com.liferay.portal.kernel.util.OrderByComparator obc)
244: throws com.liferay.portal.SystemException {
245: return getPersistence().findAll(begin, end, obc);
246: }
247:
248: public static void removeByUuid(java.lang.String uuid)
249: throws com.liferay.portal.SystemException {
250: getPersistence().removeByUuid(uuid);
251: }
252:
253: public static void removeByUUID_G(java.lang.String uuid,
254: long groupId) throws com.liferay.portal.SystemException,
255: com.liferay.portlet.wiki.NoSuchNodeException {
256: getPersistence().removeByUUID_G(uuid, groupId);
257: }
258:
259: public static void removeByGroupId(long groupId)
260: throws com.liferay.portal.SystemException {
261: getPersistence().removeByGroupId(groupId);
262: }
263:
264: public static void removeByCompanyId(long companyId)
265: throws com.liferay.portal.SystemException {
266: getPersistence().removeByCompanyId(companyId);
267: }
268:
269: public static void removeAll()
270: throws com.liferay.portal.SystemException {
271: getPersistence().removeAll();
272: }
273:
274: public static int countByUuid(java.lang.String uuid)
275: throws com.liferay.portal.SystemException {
276: return getPersistence().countByUuid(uuid);
277: }
278:
279: public static int countByUUID_G(java.lang.String uuid, long groupId)
280: throws com.liferay.portal.SystemException {
281: return getPersistence().countByUUID_G(uuid, groupId);
282: }
283:
284: public static int countByGroupId(long groupId)
285: throws com.liferay.portal.SystemException {
286: return getPersistence().countByGroupId(groupId);
287: }
288:
289: public static int countByCompanyId(long companyId)
290: throws com.liferay.portal.SystemException {
291: return getPersistence().countByCompanyId(companyId);
292: }
293:
294: public static int countAll()
295: throws com.liferay.portal.SystemException {
296: return getPersistence().countAll();
297: }
298:
299: public static WikiNodePersistence getPersistence() {
300: return _getUtil()._persistence;
301: }
302:
303: public void setPersistence(WikiNodePersistence persistence) {
304: _persistence = persistence;
305: }
306:
307: private static WikiNodeUtil _getUtil() {
308: if (_util == null) {
309: _util = (WikiNodeUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
310: .locate(_UTIL);
311: }
312:
313: return _util;
314: }
315:
316: private static final String _UTIL = WikiNodeUtil.class.getName();
317: private static WikiNodeUtil _util;
318: private WikiNodePersistence _persistence;
319: }
|