001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.blogs.service.persistence;
022:
023: /**
024: * <a href="BlogsEntryUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class BlogsEntryUtil {
030: public static com.liferay.portlet.blogs.model.BlogsEntry create(
031: long entryId) {
032: return getPersistence().create(entryId);
033: }
034:
035: public static com.liferay.portlet.blogs.model.BlogsEntry remove(
036: long entryId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.blogs.NoSuchEntryException {
038: return getPersistence().remove(entryId);
039: }
040:
041: public static com.liferay.portlet.blogs.model.BlogsEntry remove(
042: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(blogsEntry);
045: }
046:
047: public static com.liferay.portlet.blogs.model.BlogsEntry update(
048: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(blogsEntry);
051: }
052:
053: public static com.liferay.portlet.blogs.model.BlogsEntry update(
054: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(blogsEntry, merge);
057: }
058:
059: public static com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
060: com.liferay.portlet.blogs.model.BlogsEntry blogsEntry,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(blogsEntry, merge);
063: }
064:
065: public static com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
066: long entryId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.blogs.NoSuchEntryException {
068: return getPersistence().findByPrimaryKey(entryId);
069: }
070:
071: public static com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
072: long entryId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(entryId);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.blogs.NoSuchEntryException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.blogs.NoSuchEntryException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
111: long entryId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.blogs.NoSuchEntryException {
115: return getPersistence().findByUuid_PrevAndNext(entryId, uuid,
116: obc);
117: }
118:
119: public static com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
120: java.lang.String uuid, long groupId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.blogs.NoSuchEntryException {
123: return getPersistence().findByUUID_G(uuid, groupId);
124: }
125:
126: public static com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
127: java.lang.String uuid, long groupId)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().fetchByUUID_G(uuid, groupId);
130: }
131:
132: public static java.util.List findByGroupId(long groupId)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByGroupId(groupId);
135: }
136:
137: public static java.util.List findByGroupId(long groupId, int begin,
138: int end) throws com.liferay.portal.SystemException {
139: return getPersistence().findByGroupId(groupId, begin, end);
140: }
141:
142: public static java.util.List findByGroupId(long groupId, int begin,
143: int end,
144: com.liferay.portal.kernel.util.OrderByComparator obc)
145: throws com.liferay.portal.SystemException {
146: return getPersistence().findByGroupId(groupId, begin, end, obc);
147: }
148:
149: public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
150: long groupId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.blogs.NoSuchEntryException {
154: return getPersistence().findByGroupId_First(groupId, obc);
155: }
156:
157: public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
158: long groupId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.blogs.NoSuchEntryException {
162: return getPersistence().findByGroupId_Last(groupId, obc);
163: }
164:
165: public static com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
166: long entryId, long groupId,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.blogs.NoSuchEntryException {
170: return getPersistence().findByGroupId_PrevAndNext(entryId,
171: groupId, obc);
172: }
173:
174: public static java.util.List findByCompanyId(long companyId)
175: throws com.liferay.portal.SystemException {
176: return getPersistence().findByCompanyId(companyId);
177: }
178:
179: public static java.util.List findByCompanyId(long companyId,
180: int begin, int end)
181: throws com.liferay.portal.SystemException {
182: return getPersistence().findByCompanyId(companyId, begin, end);
183: }
184:
185: public static java.util.List findByCompanyId(long companyId,
186: int begin, int end,
187: com.liferay.portal.kernel.util.OrderByComparator obc)
188: throws com.liferay.portal.SystemException {
189: return getPersistence().findByCompanyId(companyId, begin, end,
190: obc);
191: }
192:
193: public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
194: long companyId,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portlet.blogs.NoSuchEntryException {
198: return getPersistence().findByCompanyId_First(companyId, obc);
199: }
200:
201: public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
202: long companyId,
203: com.liferay.portal.kernel.util.OrderByComparator obc)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portlet.blogs.NoSuchEntryException {
206: return getPersistence().findByCompanyId_Last(companyId, obc);
207: }
208:
209: public static com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
210: long entryId, long companyId,
211: com.liferay.portal.kernel.util.OrderByComparator obc)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.blogs.NoSuchEntryException {
214: return getPersistence().findByCompanyId_PrevAndNext(entryId,
215: companyId, obc);
216: }
217:
218: public static java.util.List findByG_U(long groupId, long userId)
219: throws com.liferay.portal.SystemException {
220: return getPersistence().findByG_U(groupId, userId);
221: }
222:
223: public static java.util.List findByG_U(long groupId, long userId,
224: int begin, int end)
225: throws com.liferay.portal.SystemException {
226: return getPersistence().findByG_U(groupId, userId, begin, end);
227: }
228:
229: public static java.util.List findByG_U(long groupId, long userId,
230: int begin, int end,
231: com.liferay.portal.kernel.util.OrderByComparator obc)
232: throws com.liferay.portal.SystemException {
233: return getPersistence().findByG_U(groupId, userId, begin, end,
234: obc);
235: }
236:
237: public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
238: long groupId, long userId,
239: com.liferay.portal.kernel.util.OrderByComparator obc)
240: throws com.liferay.portal.SystemException,
241: com.liferay.portlet.blogs.NoSuchEntryException {
242: return getPersistence().findByG_U_First(groupId, userId, obc);
243: }
244:
245: public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
246: long groupId, long userId,
247: com.liferay.portal.kernel.util.OrderByComparator obc)
248: throws com.liferay.portal.SystemException,
249: com.liferay.portlet.blogs.NoSuchEntryException {
250: return getPersistence().findByG_U_Last(groupId, userId, obc);
251: }
252:
253: public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
254: long entryId, long groupId, long userId,
255: com.liferay.portal.kernel.util.OrderByComparator obc)
256: throws com.liferay.portal.SystemException,
257: com.liferay.portlet.blogs.NoSuchEntryException {
258: return getPersistence().findByG_U_PrevAndNext(entryId, groupId,
259: userId, obc);
260: }
261:
262: public static com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(
263: long groupId, java.lang.String urlTitle)
264: throws com.liferay.portal.SystemException,
265: com.liferay.portlet.blogs.NoSuchEntryException {
266: return getPersistence().findByG_UT(groupId, urlTitle);
267: }
268:
269: public static com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
270: long groupId, java.lang.String urlTitle)
271: throws com.liferay.portal.SystemException {
272: return getPersistence().fetchByG_UT(groupId, urlTitle);
273: }
274:
275: public static java.util.List findByC_U(long companyId, long userId)
276: throws com.liferay.portal.SystemException {
277: return getPersistence().findByC_U(companyId, userId);
278: }
279:
280: public static java.util.List findByC_U(long companyId, long userId,
281: int begin, int end)
282: throws com.liferay.portal.SystemException {
283: return getPersistence()
284: .findByC_U(companyId, userId, begin, end);
285: }
286:
287: public static java.util.List findByC_U(long companyId, long userId,
288: int begin, int end,
289: com.liferay.portal.kernel.util.OrderByComparator obc)
290: throws com.liferay.portal.SystemException {
291: return getPersistence().findByC_U(companyId, userId, begin,
292: end, obc);
293: }
294:
295: public static com.liferay.portlet.blogs.model.BlogsEntry findByC_U_First(
296: long companyId, long userId,
297: com.liferay.portal.kernel.util.OrderByComparator obc)
298: throws com.liferay.portal.SystemException,
299: com.liferay.portlet.blogs.NoSuchEntryException {
300: return getPersistence().findByC_U_First(companyId, userId, obc);
301: }
302:
303: public static com.liferay.portlet.blogs.model.BlogsEntry findByC_U_Last(
304: long companyId, long userId,
305: com.liferay.portal.kernel.util.OrderByComparator obc)
306: throws com.liferay.portal.SystemException,
307: com.liferay.portlet.blogs.NoSuchEntryException {
308: return getPersistence().findByC_U_Last(companyId, userId, obc);
309: }
310:
311: public static com.liferay.portlet.blogs.model.BlogsEntry[] findByC_U_PrevAndNext(
312: long entryId, long companyId, long userId,
313: com.liferay.portal.kernel.util.OrderByComparator obc)
314: throws com.liferay.portal.SystemException,
315: com.liferay.portlet.blogs.NoSuchEntryException {
316: return getPersistence().findByC_U_PrevAndNext(entryId,
317: companyId, userId, obc);
318: }
319:
320: public static java.util.List findWithDynamicQuery(
321: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
322: throws com.liferay.portal.SystemException {
323: return getPersistence().findWithDynamicQuery(queryInitializer);
324: }
325:
326: public static java.util.List findWithDynamicQuery(
327: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
328: int begin, int end)
329: throws com.liferay.portal.SystemException {
330: return getPersistence().findWithDynamicQuery(queryInitializer,
331: begin, end);
332: }
333:
334: public static java.util.List findAll()
335: throws com.liferay.portal.SystemException {
336: return getPersistence().findAll();
337: }
338:
339: public static java.util.List findAll(int begin, int end)
340: throws com.liferay.portal.SystemException {
341: return getPersistence().findAll(begin, end);
342: }
343:
344: public static java.util.List findAll(int begin, int end,
345: com.liferay.portal.kernel.util.OrderByComparator obc)
346: throws com.liferay.portal.SystemException {
347: return getPersistence().findAll(begin, end, obc);
348: }
349:
350: public static void removeByUuid(java.lang.String uuid)
351: throws com.liferay.portal.SystemException {
352: getPersistence().removeByUuid(uuid);
353: }
354:
355: public static void removeByUUID_G(java.lang.String uuid,
356: long groupId) throws com.liferay.portal.SystemException,
357: com.liferay.portlet.blogs.NoSuchEntryException {
358: getPersistence().removeByUUID_G(uuid, groupId);
359: }
360:
361: public static void removeByGroupId(long groupId)
362: throws com.liferay.portal.SystemException {
363: getPersistence().removeByGroupId(groupId);
364: }
365:
366: public static void removeByCompanyId(long companyId)
367: throws com.liferay.portal.SystemException {
368: getPersistence().removeByCompanyId(companyId);
369: }
370:
371: public static void removeByG_U(long groupId, long userId)
372: throws com.liferay.portal.SystemException {
373: getPersistence().removeByG_U(groupId, userId);
374: }
375:
376: public static void removeByG_UT(long groupId,
377: java.lang.String urlTitle)
378: throws com.liferay.portal.SystemException,
379: com.liferay.portlet.blogs.NoSuchEntryException {
380: getPersistence().removeByG_UT(groupId, urlTitle);
381: }
382:
383: public static void removeByC_U(long companyId, long userId)
384: throws com.liferay.portal.SystemException {
385: getPersistence().removeByC_U(companyId, userId);
386: }
387:
388: public static void removeAll()
389: throws com.liferay.portal.SystemException {
390: getPersistence().removeAll();
391: }
392:
393: public static int countByUuid(java.lang.String uuid)
394: throws com.liferay.portal.SystemException {
395: return getPersistence().countByUuid(uuid);
396: }
397:
398: public static int countByUUID_G(java.lang.String uuid, long groupId)
399: throws com.liferay.portal.SystemException {
400: return getPersistence().countByUUID_G(uuid, groupId);
401: }
402:
403: public static int countByGroupId(long groupId)
404: throws com.liferay.portal.SystemException {
405: return getPersistence().countByGroupId(groupId);
406: }
407:
408: public static int countByCompanyId(long companyId)
409: throws com.liferay.portal.SystemException {
410: return getPersistence().countByCompanyId(companyId);
411: }
412:
413: public static int countByG_U(long groupId, long userId)
414: throws com.liferay.portal.SystemException {
415: return getPersistence().countByG_U(groupId, userId);
416: }
417:
418: public static int countByG_UT(long groupId,
419: java.lang.String urlTitle)
420: throws com.liferay.portal.SystemException {
421: return getPersistence().countByG_UT(groupId, urlTitle);
422: }
423:
424: public static int countByC_U(long companyId, long userId)
425: throws com.liferay.portal.SystemException {
426: return getPersistence().countByC_U(companyId, userId);
427: }
428:
429: public static int countAll()
430: throws com.liferay.portal.SystemException {
431: return getPersistence().countAll();
432: }
433:
434: public static BlogsEntryPersistence getPersistence() {
435: return _getUtil()._persistence;
436: }
437:
438: public void setPersistence(BlogsEntryPersistence persistence) {
439: _persistence = persistence;
440: }
441:
442: private static BlogsEntryUtil _getUtil() {
443: if (_util == null) {
444: _util = (BlogsEntryUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
445: .locate(_UTIL);
446: }
447:
448: return _util;
449: }
450:
451: private static final String _UTIL = BlogsEntryUtil.class.getName();
452: private static BlogsEntryUtil _util;
453: private BlogsEntryPersistence _persistence;
454: }
|