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