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