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.calendar.service.persistence;
022:
023: /**
024: * <a href="CalEventUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class CalEventUtil {
030: public static com.liferay.portlet.calendar.model.CalEvent create(
031: long eventId) {
032: return getPersistence().create(eventId);
033: }
034:
035: public static com.liferay.portlet.calendar.model.CalEvent remove(
036: long eventId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.calendar.NoSuchEventException {
038: return getPersistence().remove(eventId);
039: }
040:
041: public static com.liferay.portlet.calendar.model.CalEvent remove(
042: com.liferay.portlet.calendar.model.CalEvent calEvent)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(calEvent);
045: }
046:
047: public static com.liferay.portlet.calendar.model.CalEvent update(
048: com.liferay.portlet.calendar.model.CalEvent calEvent)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(calEvent);
051: }
052:
053: public static com.liferay.portlet.calendar.model.CalEvent update(
054: com.liferay.portlet.calendar.model.CalEvent calEvent,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(calEvent, merge);
057: }
058:
059: public static com.liferay.portlet.calendar.model.CalEvent updateImpl(
060: com.liferay.portlet.calendar.model.CalEvent calEvent,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(calEvent, merge);
063: }
064:
065: public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
066: long eventId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.calendar.NoSuchEventException {
068: return getPersistence().findByPrimaryKey(eventId);
069: }
070:
071: public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
072: long eventId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(eventId);
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.calendar.model.CalEvent 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.calendar.NoSuchEventException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.calendar.model.CalEvent 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.calendar.NoSuchEventException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
111: long eventId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.calendar.NoSuchEventException {
115: return getPersistence().findByUuid_PrevAndNext(eventId, uuid,
116: obc);
117: }
118:
119: public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
120: java.lang.String uuid, long groupId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.calendar.NoSuchEventException {
123: return getPersistence().findByUUID_G(uuid, groupId);
124: }
125:
126: public static com.liferay.portlet.calendar.model.CalEvent 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.calendar.model.CalEvent findByGroupId_First(
150: long groupId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.calendar.NoSuchEventException {
154: return getPersistence().findByGroupId_First(groupId, obc);
155: }
156:
157: public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
158: long groupId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.calendar.NoSuchEventException {
162: return getPersistence().findByGroupId_Last(groupId, obc);
163: }
164:
165: public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
166: long eventId, long groupId,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.calendar.NoSuchEventException {
170: return getPersistence().findByGroupId_PrevAndNext(eventId,
171: groupId, obc);
172: }
173:
174: public static java.util.List findByG_T(long groupId,
175: java.lang.String type)
176: throws com.liferay.portal.SystemException {
177: return getPersistence().findByG_T(groupId, type);
178: }
179:
180: public static java.util.List findByG_T(long groupId,
181: java.lang.String type, int begin, int end)
182: throws com.liferay.portal.SystemException {
183: return getPersistence().findByG_T(groupId, type, begin, end);
184: }
185:
186: public static java.util.List findByG_T(long groupId,
187: java.lang.String type, int begin, int end,
188: com.liferay.portal.kernel.util.OrderByComparator obc)
189: throws com.liferay.portal.SystemException {
190: return getPersistence().findByG_T(groupId, type, begin, end,
191: obc);
192: }
193:
194: public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
195: long groupId, java.lang.String type,
196: com.liferay.portal.kernel.util.OrderByComparator obc)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portlet.calendar.NoSuchEventException {
199: return getPersistence().findByG_T_First(groupId, type, obc);
200: }
201:
202: public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
203: long groupId, java.lang.String type,
204: com.liferay.portal.kernel.util.OrderByComparator obc)
205: throws com.liferay.portal.SystemException,
206: com.liferay.portlet.calendar.NoSuchEventException {
207: return getPersistence().findByG_T_Last(groupId, type, obc);
208: }
209:
210: public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
211: long eventId, long groupId, java.lang.String type,
212: com.liferay.portal.kernel.util.OrderByComparator obc)
213: throws com.liferay.portal.SystemException,
214: com.liferay.portlet.calendar.NoSuchEventException {
215: return getPersistence().findByG_T_PrevAndNext(eventId, groupId,
216: type, obc);
217: }
218:
219: public static java.util.List findByG_R(long groupId,
220: boolean repeating)
221: throws com.liferay.portal.SystemException {
222: return getPersistence().findByG_R(groupId, repeating);
223: }
224:
225: public static java.util.List findByG_R(long groupId,
226: boolean repeating, int begin, int end)
227: throws com.liferay.portal.SystemException {
228: return getPersistence().findByG_R(groupId, repeating, begin,
229: end);
230: }
231:
232: public static java.util.List findByG_R(long groupId,
233: boolean repeating, int begin, int end,
234: com.liferay.portal.kernel.util.OrderByComparator obc)
235: throws com.liferay.portal.SystemException {
236: return getPersistence().findByG_R(groupId, repeating, begin,
237: end, obc);
238: }
239:
240: public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
241: long groupId, boolean repeating,
242: com.liferay.portal.kernel.util.OrderByComparator obc)
243: throws com.liferay.portal.SystemException,
244: com.liferay.portlet.calendar.NoSuchEventException {
245: return getPersistence()
246: .findByG_R_First(groupId, repeating, obc);
247: }
248:
249: public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
250: long groupId, boolean repeating,
251: com.liferay.portal.kernel.util.OrderByComparator obc)
252: throws com.liferay.portal.SystemException,
253: com.liferay.portlet.calendar.NoSuchEventException {
254: return getPersistence().findByG_R_Last(groupId, repeating, obc);
255: }
256:
257: public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
258: long eventId, long groupId, boolean repeating,
259: com.liferay.portal.kernel.util.OrderByComparator obc)
260: throws com.liferay.portal.SystemException,
261: com.liferay.portlet.calendar.NoSuchEventException {
262: return getPersistence().findByG_R_PrevAndNext(eventId, groupId,
263: repeating, obc);
264: }
265:
266: public static java.util.List findWithDynamicQuery(
267: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
268: throws com.liferay.portal.SystemException {
269: return getPersistence().findWithDynamicQuery(queryInitializer);
270: }
271:
272: public static java.util.List findWithDynamicQuery(
273: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
274: int begin, int end)
275: throws com.liferay.portal.SystemException {
276: return getPersistence().findWithDynamicQuery(queryInitializer,
277: begin, end);
278: }
279:
280: public static java.util.List findAll()
281: throws com.liferay.portal.SystemException {
282: return getPersistence().findAll();
283: }
284:
285: public static java.util.List findAll(int begin, int end)
286: throws com.liferay.portal.SystemException {
287: return getPersistence().findAll(begin, end);
288: }
289:
290: public static java.util.List findAll(int begin, int end,
291: com.liferay.portal.kernel.util.OrderByComparator obc)
292: throws com.liferay.portal.SystemException {
293: return getPersistence().findAll(begin, end, obc);
294: }
295:
296: public static void removeByUuid(java.lang.String uuid)
297: throws com.liferay.portal.SystemException {
298: getPersistence().removeByUuid(uuid);
299: }
300:
301: public static void removeByUUID_G(java.lang.String uuid,
302: long groupId) throws com.liferay.portal.SystemException,
303: com.liferay.portlet.calendar.NoSuchEventException {
304: getPersistence().removeByUUID_G(uuid, groupId);
305: }
306:
307: public static void removeByGroupId(long groupId)
308: throws com.liferay.portal.SystemException {
309: getPersistence().removeByGroupId(groupId);
310: }
311:
312: public static void removeByG_T(long groupId, java.lang.String type)
313: throws com.liferay.portal.SystemException {
314: getPersistence().removeByG_T(groupId, type);
315: }
316:
317: public static void removeByG_R(long groupId, boolean repeating)
318: throws com.liferay.portal.SystemException {
319: getPersistence().removeByG_R(groupId, repeating);
320: }
321:
322: public static void removeAll()
323: throws com.liferay.portal.SystemException {
324: getPersistence().removeAll();
325: }
326:
327: public static int countByUuid(java.lang.String uuid)
328: throws com.liferay.portal.SystemException {
329: return getPersistence().countByUuid(uuid);
330: }
331:
332: public static int countByUUID_G(java.lang.String uuid, long groupId)
333: throws com.liferay.portal.SystemException {
334: return getPersistence().countByUUID_G(uuid, groupId);
335: }
336:
337: public static int countByGroupId(long groupId)
338: throws com.liferay.portal.SystemException {
339: return getPersistence().countByGroupId(groupId);
340: }
341:
342: public static int countByG_T(long groupId, java.lang.String type)
343: throws com.liferay.portal.SystemException {
344: return getPersistence().countByG_T(groupId, type);
345: }
346:
347: public static int countByG_R(long groupId, boolean repeating)
348: throws com.liferay.portal.SystemException {
349: return getPersistence().countByG_R(groupId, repeating);
350: }
351:
352: public static int countAll()
353: throws com.liferay.portal.SystemException {
354: return getPersistence().countAll();
355: }
356:
357: public static CalEventPersistence getPersistence() {
358: return _getUtil()._persistence;
359: }
360:
361: public void setPersistence(CalEventPersistence persistence) {
362: _persistence = persistence;
363: }
364:
365: private static CalEventUtil _getUtil() {
366: if (_util == null) {
367: _util = (CalEventUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
368: .locate(_UTIL);
369: }
370:
371: return _util;
372: }
373:
374: private static final String _UTIL = CalEventUtil.class.getName();
375: private static CalEventUtil _util;
376: private CalEventPersistence _persistence;
377: }
|