1
14
15 package com.liferay.portlet.wiki.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.wiki.model.WikiNode;
22
23 import java.util.List;
24
25
38 public class WikiNodeUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(WikiNode wikiNode) {
50 getPersistence().clearCache(wikiNode);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<WikiNode> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<WikiNode> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static WikiNode remove(WikiNode wikiNode) throws SystemException {
82 return getPersistence().remove(wikiNode);
83 }
84
85
88 public static WikiNode update(WikiNode wikiNode, boolean merge)
89 throws SystemException {
90 return getPersistence().update(wikiNode, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portlet.wiki.model.WikiNode wikiNode) {
95 getPersistence().cacheResult(wikiNode);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portlet.wiki.model.WikiNode> wikiNodes) {
100 getPersistence().cacheResult(wikiNodes);
101 }
102
103 public static com.liferay.portlet.wiki.model.WikiNode create(long nodeId) {
104 return getPersistence().create(nodeId);
105 }
106
107 public static com.liferay.portlet.wiki.model.WikiNode remove(long nodeId)
108 throws com.liferay.portal.kernel.exception.SystemException,
109 com.liferay.portlet.wiki.NoSuchNodeException {
110 return getPersistence().remove(nodeId);
111 }
112
113 public static com.liferay.portlet.wiki.model.WikiNode updateImpl(
114 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getPersistence().updateImpl(wikiNode, merge);
117 }
118
119 public static com.liferay.portlet.wiki.model.WikiNode findByPrimaryKey(
120 long nodeId)
121 throws com.liferay.portal.kernel.exception.SystemException,
122 com.liferay.portlet.wiki.NoSuchNodeException {
123 return getPersistence().findByPrimaryKey(nodeId);
124 }
125
126 public static com.liferay.portlet.wiki.model.WikiNode fetchByPrimaryKey(
127 long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence().fetchByPrimaryKey(nodeId);
129 }
130
131 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
132 java.lang.String uuid)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByUuid(uuid);
135 }
136
137 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
138 java.lang.String uuid, int start, int end)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByUuid(uuid, start, end);
141 }
142
143 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByUuid(
144 java.lang.String uuid, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
148 }
149
150 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_First(
151 java.lang.String uuid,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException,
154 com.liferay.portlet.wiki.NoSuchNodeException {
155 return getPersistence().findByUuid_First(uuid, orderByComparator);
156 }
157
158 public static com.liferay.portlet.wiki.model.WikiNode findByUuid_Last(
159 java.lang.String uuid,
160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161 throws com.liferay.portal.kernel.exception.SystemException,
162 com.liferay.portlet.wiki.NoSuchNodeException {
163 return getPersistence().findByUuid_Last(uuid, orderByComparator);
164 }
165
166 public static com.liferay.portlet.wiki.model.WikiNode[] findByUuid_PrevAndNext(
167 long nodeId, java.lang.String uuid,
168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169 throws com.liferay.portal.kernel.exception.SystemException,
170 com.liferay.portlet.wiki.NoSuchNodeException {
171 return getPersistence()
172 .findByUuid_PrevAndNext(nodeId, uuid, orderByComparator);
173 }
174
175 public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
176 java.lang.String uuid, long groupId)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.wiki.NoSuchNodeException {
179 return getPersistence().findByUUID_G(uuid, groupId);
180 }
181
182 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
183 java.lang.String uuid, long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().fetchByUUID_G(uuid, groupId);
186 }
187
188 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
189 java.lang.String uuid, long groupId, boolean retrieveFromCache)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
192 }
193
194 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
195 long groupId)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findByGroupId(groupId);
198 }
199
200 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
201 long groupId, int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().findByGroupId(groupId, start, end);
204 }
205
206 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
207 long groupId, int start, int end,
208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence()
211 .findByGroupId(groupId, start, end, orderByComparator);
212 }
213
214 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
215 long groupId,
216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217 throws com.liferay.portal.kernel.exception.SystemException,
218 com.liferay.portlet.wiki.NoSuchNodeException {
219 return getPersistence().findByGroupId_First(groupId, orderByComparator);
220 }
221
222 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
223 long groupId,
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.liferay.portal.kernel.exception.SystemException,
226 com.liferay.portlet.wiki.NoSuchNodeException {
227 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
228 }
229
230 public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
231 long nodeId, long groupId,
232 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233 throws com.liferay.portal.kernel.exception.SystemException,
234 com.liferay.portlet.wiki.NoSuchNodeException {
235 return getPersistence()
236 .findByGroupId_PrevAndNext(nodeId, groupId, orderByComparator);
237 }
238
239 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
240 long groupId)
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence().filterFindByGroupId(groupId);
243 }
244
245 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
246 long groupId, int start, int end)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getPersistence().filterFindByGroupId(groupId, start, end);
249 }
250
251 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> filterFindByGroupId(
252 long groupId, int start, int end,
253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence()
256 .filterFindByGroupId(groupId, start, end, orderByComparator);
257 }
258
259 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
260 long companyId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().findByCompanyId(companyId);
263 }
264
265 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
266 long companyId, int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().findByCompanyId(companyId, start, end);
269 }
270
271 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
272 long companyId, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence()
276 .findByCompanyId(companyId, start, end, orderByComparator);
277 }
278
279 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
280 long companyId,
281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282 throws com.liferay.portal.kernel.exception.SystemException,
283 com.liferay.portlet.wiki.NoSuchNodeException {
284 return getPersistence()
285 .findByCompanyId_First(companyId, orderByComparator);
286 }
287
288 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
289 long companyId,
290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291 throws com.liferay.portal.kernel.exception.SystemException,
292 com.liferay.portlet.wiki.NoSuchNodeException {
293 return getPersistence()
294 .findByCompanyId_Last(companyId, orderByComparator);
295 }
296
297 public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
298 long nodeId, long companyId,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException,
301 com.liferay.portlet.wiki.NoSuchNodeException {
302 return getPersistence()
303 .findByCompanyId_PrevAndNext(nodeId, companyId,
304 orderByComparator);
305 }
306
307 public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
308 long groupId, java.lang.String name)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.wiki.NoSuchNodeException {
311 return getPersistence().findByG_N(groupId, name);
312 }
313
314 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
315 long groupId, java.lang.String name)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getPersistence().fetchByG_N(groupId, name);
318 }
319
320 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
321 long groupId, java.lang.String name, boolean retrieveFromCache)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
324 }
325
326 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().findAll();
329 }
330
331 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
332 int start, int end)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence().findAll(start, end);
335 }
336
337 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
338 int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence().findAll(start, end, orderByComparator);
342 }
343
344 public static void removeByUuid(java.lang.String uuid)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 getPersistence().removeByUuid(uuid);
347 }
348
349 public static void removeByUUID_G(java.lang.String uuid, long groupId)
350 throws com.liferay.portal.kernel.exception.SystemException,
351 com.liferay.portlet.wiki.NoSuchNodeException {
352 getPersistence().removeByUUID_G(uuid, groupId);
353 }
354
355 public static void removeByGroupId(long groupId)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 getPersistence().removeByGroupId(groupId);
358 }
359
360 public static void removeByCompanyId(long companyId)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 getPersistence().removeByCompanyId(companyId);
363 }
364
365 public static void removeByG_N(long groupId, java.lang.String name)
366 throws com.liferay.portal.kernel.exception.SystemException,
367 com.liferay.portlet.wiki.NoSuchNodeException {
368 getPersistence().removeByG_N(groupId, name);
369 }
370
371 public static void removeAll()
372 throws com.liferay.portal.kernel.exception.SystemException {
373 getPersistence().removeAll();
374 }
375
376 public static int countByUuid(java.lang.String uuid)
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return getPersistence().countByUuid(uuid);
379 }
380
381 public static int countByUUID_G(java.lang.String uuid, long groupId)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 return getPersistence().countByUUID_G(uuid, groupId);
384 }
385
386 public static int countByGroupId(long groupId)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getPersistence().countByGroupId(groupId);
389 }
390
391 public static int filterCountByGroupId(long groupId)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getPersistence().filterCountByGroupId(groupId);
394 }
395
396 public static int countByCompanyId(long companyId)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getPersistence().countByCompanyId(companyId);
399 }
400
401 public static int countByG_N(long groupId, java.lang.String name)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getPersistence().countByG_N(groupId, name);
404 }
405
406 public static int filterCountByG_N(long groupId, java.lang.String name)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 return getPersistence().filterCountByG_N(groupId, name);
409 }
410
411 public static int countAll()
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getPersistence().countAll();
414 }
415
416 public static WikiNodePersistence getPersistence() {
417 if (_persistence == null) {
418 _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
419 }
420
421 return _persistence;
422 }
423
424 public void setPersistence(WikiNodePersistence persistence) {
425 _persistence = persistence;
426 }
427
428 private static WikiNodePersistence _persistence;
429 }