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