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