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 obc)
138 throws com.liferay.portal.SystemException {
139 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.wiki.NoSuchNodeException {
147 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.wiki.NoSuchNodeException {
155 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.wiki.NoSuchNodeException {
163 return getPersistence().findByUuid_PrevAndNext(nodeId, uuid, obc);
164 }
165
166 public static com.liferay.portlet.wiki.model.WikiNode findByUUID_G(
167 java.lang.String uuid, long groupId)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portlet.wiki.NoSuchNodeException {
170 return getPersistence().findByUUID_G(uuid, groupId);
171 }
172
173 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
174 java.lang.String uuid, long groupId)
175 throws com.liferay.portal.SystemException {
176 return getPersistence().fetchByUUID_G(uuid, groupId);
177 }
178
179 public static com.liferay.portlet.wiki.model.WikiNode fetchByUUID_G(
180 java.lang.String uuid, long groupId, boolean retrieveFromCache)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
183 }
184
185 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
186 long groupId) throws com.liferay.portal.SystemException {
187 return getPersistence().findByGroupId(groupId);
188 }
189
190 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
191 long groupId, int start, int end)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findByGroupId(groupId, start, end);
194 }
195
196 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByGroupId(
197 long groupId, int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().findByGroupId(groupId, start, end, obc);
201 }
202
203 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_First(
204 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException,
206 com.liferay.portlet.wiki.NoSuchNodeException {
207 return getPersistence().findByGroupId_First(groupId, obc);
208 }
209
210 public static com.liferay.portlet.wiki.model.WikiNode findByGroupId_Last(
211 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.SystemException,
213 com.liferay.portlet.wiki.NoSuchNodeException {
214 return getPersistence().findByGroupId_Last(groupId, obc);
215 }
216
217 public static com.liferay.portlet.wiki.model.WikiNode[] findByGroupId_PrevAndNext(
218 long nodeId, long groupId,
219 com.liferay.portal.kernel.util.OrderByComparator obc)
220 throws com.liferay.portal.SystemException,
221 com.liferay.portlet.wiki.NoSuchNodeException {
222 return getPersistence().findByGroupId_PrevAndNext(nodeId, groupId, obc);
223 }
224
225 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
226 long companyId) throws com.liferay.portal.SystemException {
227 return getPersistence().findByCompanyId(companyId);
228 }
229
230 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
231 long companyId, int start, int end)
232 throws com.liferay.portal.SystemException {
233 return getPersistence().findByCompanyId(companyId, start, end);
234 }
235
236 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findByCompanyId(
237 long companyId, int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator obc)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().findByCompanyId(companyId, start, end, obc);
241 }
242
243 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_First(
244 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException,
246 com.liferay.portlet.wiki.NoSuchNodeException {
247 return getPersistence().findByCompanyId_First(companyId, obc);
248 }
249
250 public static com.liferay.portlet.wiki.model.WikiNode findByCompanyId_Last(
251 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.SystemException,
253 com.liferay.portlet.wiki.NoSuchNodeException {
254 return getPersistence().findByCompanyId_Last(companyId, obc);
255 }
256
257 public static com.liferay.portlet.wiki.model.WikiNode[] findByCompanyId_PrevAndNext(
258 long nodeId, long companyId,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.SystemException,
261 com.liferay.portlet.wiki.NoSuchNodeException {
262 return getPersistence()
263 .findByCompanyId_PrevAndNext(nodeId, companyId, obc);
264 }
265
266 public static com.liferay.portlet.wiki.model.WikiNode findByG_N(
267 long groupId, java.lang.String name)
268 throws com.liferay.portal.SystemException,
269 com.liferay.portlet.wiki.NoSuchNodeException {
270 return getPersistence().findByG_N(groupId, name);
271 }
272
273 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
274 long groupId, java.lang.String name)
275 throws com.liferay.portal.SystemException {
276 return getPersistence().fetchByG_N(groupId, name);
277 }
278
279 public static com.liferay.portlet.wiki.model.WikiNode fetchByG_N(
280 long groupId, java.lang.String name, boolean retrieveFromCache)
281 throws com.liferay.portal.SystemException {
282 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
283 }
284
285 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll()
286 throws com.liferay.portal.SystemException {
287 return getPersistence().findAll();
288 }
289
290 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
291 int start, int end) throws com.liferay.portal.SystemException {
292 return getPersistence().findAll(start, end);
293 }
294
295 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> findAll(
296 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.SystemException {
298 return getPersistence().findAll(start, end, obc);
299 }
300
301 public static void removeByUuid(java.lang.String uuid)
302 throws com.liferay.portal.SystemException {
303 getPersistence().removeByUuid(uuid);
304 }
305
306 public static void removeByUUID_G(java.lang.String uuid, long groupId)
307 throws com.liferay.portal.SystemException,
308 com.liferay.portlet.wiki.NoSuchNodeException {
309 getPersistence().removeByUUID_G(uuid, groupId);
310 }
311
312 public static void removeByGroupId(long groupId)
313 throws com.liferay.portal.SystemException {
314 getPersistence().removeByGroupId(groupId);
315 }
316
317 public static void removeByCompanyId(long companyId)
318 throws com.liferay.portal.SystemException {
319 getPersistence().removeByCompanyId(companyId);
320 }
321
322 public static void removeByG_N(long groupId, java.lang.String name)
323 throws com.liferay.portal.SystemException,
324 com.liferay.portlet.wiki.NoSuchNodeException {
325 getPersistence().removeByG_N(groupId, name);
326 }
327
328 public static void removeAll() throws com.liferay.portal.SystemException {
329 getPersistence().removeAll();
330 }
331
332 public static int countByUuid(java.lang.String uuid)
333 throws com.liferay.portal.SystemException {
334 return getPersistence().countByUuid(uuid);
335 }
336
337 public static int countByUUID_G(java.lang.String uuid, long groupId)
338 throws com.liferay.portal.SystemException {
339 return getPersistence().countByUUID_G(uuid, groupId);
340 }
341
342 public static int countByGroupId(long groupId)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().countByGroupId(groupId);
345 }
346
347 public static int countByCompanyId(long companyId)
348 throws com.liferay.portal.SystemException {
349 return getPersistence().countByCompanyId(companyId);
350 }
351
352 public static int countByG_N(long groupId, java.lang.String name)
353 throws com.liferay.portal.SystemException {
354 return getPersistence().countByG_N(groupId, name);
355 }
356
357 public static int countAll() throws com.liferay.portal.SystemException {
358 return getPersistence().countAll();
359 }
360
361 public static WikiNodePersistence getPersistence() {
362 if (_persistence == null) {
363 _persistence = (WikiNodePersistence)PortalBeanLocatorUtil.locate(WikiNodePersistence.class.getName());
364 }
365
366 return _persistence;
367 }
368
369 public void setPersistence(WikiNodePersistence persistence) {
370 _persistence = persistence;
371 }
372
373 private static WikiNodePersistence _persistence;
374 }