001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.SystemEvent;
018    
019    /**
020     * The persistence interface for the system event service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see SystemEventPersistenceImpl
028     * @see SystemEventUtil
029     * @generated
030     */
031    public interface SystemEventPersistence extends BasePersistence<SystemEvent> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link SystemEventUtil} to access the system event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Returns all the system events where groupId = &#63;.
040            *
041            * @param groupId the group ID
042            * @return the matching system events
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
046                    long groupId)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the system events where groupId = &#63;.
051            *
052            * <p>
053            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
054            * </p>
055            *
056            * @param groupId the group ID
057            * @param start the lower bound of the range of system events
058            * @param end the upper bound of the range of system events (not inclusive)
059            * @return the range of matching system events
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
063                    long groupId, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the system events where groupId = &#63;.
068            *
069            * <p>
070            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
071            * </p>
072            *
073            * @param groupId the group ID
074            * @param start the lower bound of the range of system events
075            * @param end the upper bound of the range of system events (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching system events
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
081                    long groupId, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first system event in the ordered set where groupId = &#63;.
087            *
088            * @param groupId the group ID
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching system event
091            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.SystemEvent findByGroupId_First(
095                    long groupId,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchSystemEventException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first system event in the ordered set where groupId = &#63;.
102            *
103            * @param groupId the group ID
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.SystemEvent fetchByGroupId_First(
109                    long groupId,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last system event in the ordered set where groupId = &#63;.
115            *
116            * @param groupId the group ID
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching system event
119            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.SystemEvent findByGroupId_Last(
123                    long groupId,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchSystemEventException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last system event in the ordered set where groupId = &#63;.
130            *
131            * @param groupId the group ID
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.SystemEvent fetchByGroupId_Last(
137                    long groupId,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the system events before and after the current system event in the ordered set where groupId = &#63;.
143            *
144            * @param systemEventId the primary key of the current system event
145            * @param groupId the group ID
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next system event
148            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.SystemEvent[] findByGroupId_PrevAndNext(
152                    long systemEventId, long groupId,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchSystemEventException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Removes all the system events where groupId = &#63; from the database.
159            *
160            * @param groupId the group ID
161            * @throws SystemException if a system exception occurred
162            */
163            public void removeByGroupId(long groupId)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the number of system events where groupId = &#63;.
168            *
169            * @param groupId the group ID
170            * @return the number of matching system events
171            * @throws SystemException if a system exception occurred
172            */
173            public int countByGroupId(long groupId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns all the system events where groupId = &#63; and systemEventSetKey = &#63;.
178            *
179            * @param groupId the group ID
180            * @param systemEventSetKey the system event set key
181            * @return the matching system events
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
185                    long groupId, long systemEventSetKey)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns a range of all the system events where groupId = &#63; and systemEventSetKey = &#63;.
190            *
191            * <p>
192            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
193            * </p>
194            *
195            * @param groupId the group ID
196            * @param systemEventSetKey the system event set key
197            * @param start the lower bound of the range of system events
198            * @param end the upper bound of the range of system events (not inclusive)
199            * @return the range of matching system events
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
203                    long groupId, long systemEventSetKey, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the system events where groupId = &#63; and systemEventSetKey = &#63;.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
211            * </p>
212            *
213            * @param groupId the group ID
214            * @param systemEventSetKey the system event set key
215            * @param start the lower bound of the range of system events
216            * @param end the upper bound of the range of system events (not inclusive)
217            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
218            * @return the ordered range of matching system events
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
222                    long groupId, long systemEventSetKey, int start, int end,
223                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            /**
227            * Returns the first system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
228            *
229            * @param groupId the group ID
230            * @param systemEventSetKey the system event set key
231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
232            * @return the first matching system event
233            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portal.model.SystemEvent findByG_S_First(long groupId,
237                    long systemEventSetKey,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.NoSuchSystemEventException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns the first system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
244            *
245            * @param groupId the group ID
246            * @param systemEventSetKey the system event set key
247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
248            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portal.model.SystemEvent fetchByG_S_First(long groupId,
252                    long systemEventSetKey,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns the last system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
258            *
259            * @param groupId the group ID
260            * @param systemEventSetKey the system event set key
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the last matching system event
263            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
264            * @throws SystemException if a system exception occurred
265            */
266            public com.liferay.portal.model.SystemEvent findByG_S_Last(long groupId,
267                    long systemEventSetKey,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.NoSuchSystemEventException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the last system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
274            *
275            * @param groupId the group ID
276            * @param systemEventSetKey the system event set key
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public com.liferay.portal.model.SystemEvent fetchByG_S_Last(long groupId,
282                    long systemEventSetKey,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
288            *
289            * @param systemEventId the primary key of the current system event
290            * @param groupId the group ID
291            * @param systemEventSetKey the system event set key
292            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
293            * @return the previous, current, and next system event
294            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
295            * @throws SystemException if a system exception occurred
296            */
297            public com.liferay.portal.model.SystemEvent[] findByG_S_PrevAndNext(
298                    long systemEventId, long groupId, long systemEventSetKey,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.NoSuchSystemEventException,
301                            com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * Removes all the system events where groupId = &#63; and systemEventSetKey = &#63; from the database.
305            *
306            * @param groupId the group ID
307            * @param systemEventSetKey the system event set key
308            * @throws SystemException if a system exception occurred
309            */
310            public void removeByG_S(long groupId, long systemEventSetKey)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the number of system events where groupId = &#63; and systemEventSetKey = &#63;.
315            *
316            * @param groupId the group ID
317            * @param systemEventSetKey the system event set key
318            * @return the number of matching system events
319            * @throws SystemException if a system exception occurred
320            */
321            public int countByG_S(long groupId, long systemEventSetKey)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
326            *
327            * @param groupId the group ID
328            * @param classNameId the class name ID
329            * @param classPK the class p k
330            * @return the matching system events
331            * @throws SystemException if a system exception occurred
332            */
333            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
334                    long groupId, long classNameId, long classPK)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
339            *
340            * <p>
341            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
342            * </p>
343            *
344            * @param groupId the group ID
345            * @param classNameId the class name ID
346            * @param classPK the class p k
347            * @param start the lower bound of the range of system events
348            * @param end the upper bound of the range of system events (not inclusive)
349            * @return the range of matching system events
350            * @throws SystemException if a system exception occurred
351            */
352            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
353                    long groupId, long classNameId, long classPK, int start, int end)
354                    throws com.liferay.portal.kernel.exception.SystemException;
355    
356            /**
357            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
358            *
359            * <p>
360            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
361            * </p>
362            *
363            * @param groupId the group ID
364            * @param classNameId the class name ID
365            * @param classPK the class p k
366            * @param start the lower bound of the range of system events
367            * @param end the upper bound of the range of system events (not inclusive)
368            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
369            * @return the ordered range of matching system events
370            * @throws SystemException if a system exception occurred
371            */
372            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
373                    long groupId, long classNameId, long classPK, int start, int end,
374                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375                    throws com.liferay.portal.kernel.exception.SystemException;
376    
377            /**
378            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
379            *
380            * @param groupId the group ID
381            * @param classNameId the class name ID
382            * @param classPK the class p k
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the first matching system event
385            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
386            * @throws SystemException if a system exception occurred
387            */
388            public com.liferay.portal.model.SystemEvent findByG_C_C_First(
389                    long groupId, long classNameId, long classPK,
390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391                    throws com.liferay.portal.NoSuchSystemEventException,
392                            com.liferay.portal.kernel.exception.SystemException;
393    
394            /**
395            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
396            *
397            * @param groupId the group ID
398            * @param classNameId the class name ID
399            * @param classPK the class p k
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
402            * @throws SystemException if a system exception occurred
403            */
404            public com.liferay.portal.model.SystemEvent fetchByG_C_C_First(
405                    long groupId, long classNameId, long classPK,
406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            /**
410            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
411            *
412            * @param groupId the group ID
413            * @param classNameId the class name ID
414            * @param classPK the class p k
415            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
416            * @return the last matching system event
417            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
418            * @throws SystemException if a system exception occurred
419            */
420            public com.liferay.portal.model.SystemEvent findByG_C_C_Last(long groupId,
421                    long classNameId, long classPK,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.NoSuchSystemEventException,
424                            com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
428            *
429            * @param groupId the group ID
430            * @param classNameId the class name ID
431            * @param classPK the class p k
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portal.model.SystemEvent fetchByG_C_C_Last(
437                    long groupId, long classNameId, long classPK,
438                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439                    throws com.liferay.portal.kernel.exception.SystemException;
440    
441            /**
442            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
443            *
444            * @param systemEventId the primary key of the current system event
445            * @param groupId the group ID
446            * @param classNameId the class name ID
447            * @param classPK the class p k
448            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
449            * @return the previous, current, and next system event
450            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
451            * @throws SystemException if a system exception occurred
452            */
453            public com.liferay.portal.model.SystemEvent[] findByG_C_C_PrevAndNext(
454                    long systemEventId, long groupId, long classNameId, long classPK,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.NoSuchSystemEventException,
457                            com.liferay.portal.kernel.exception.SystemException;
458    
459            /**
460            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
461            *
462            * @param groupId the group ID
463            * @param classNameId the class name ID
464            * @param classPK the class p k
465            * @throws SystemException if a system exception occurred
466            */
467            public void removeByG_C_C(long groupId, long classNameId, long classPK)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
472            *
473            * @param groupId the group ID
474            * @param classNameId the class name ID
475            * @param classPK the class p k
476            * @return the number of matching system events
477            * @throws SystemException if a system exception occurred
478            */
479            public int countByG_C_C(long groupId, long classNameId, long classPK)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
484            *
485            * @param groupId the group ID
486            * @param classNameId the class name ID
487            * @param classPK the class p k
488            * @param type the type
489            * @return the matching system events
490            * @throws SystemException if a system exception occurred
491            */
492            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
493                    long groupId, long classNameId, long classPK, int type)
494                    throws com.liferay.portal.kernel.exception.SystemException;
495    
496            /**
497            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
498            *
499            * <p>
500            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
501            * </p>
502            *
503            * @param groupId the group ID
504            * @param classNameId the class name ID
505            * @param classPK the class p k
506            * @param type the type
507            * @param start the lower bound of the range of system events
508            * @param end the upper bound of the range of system events (not inclusive)
509            * @return the range of matching system events
510            * @throws SystemException if a system exception occurred
511            */
512            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
513                    long groupId, long classNameId, long classPK, int type, int start,
514                    int end) throws com.liferay.portal.kernel.exception.SystemException;
515    
516            /**
517            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
518            *
519            * <p>
520            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
521            * </p>
522            *
523            * @param groupId the group ID
524            * @param classNameId the class name ID
525            * @param classPK the class p k
526            * @param type the type
527            * @param start the lower bound of the range of system events
528            * @param end the upper bound of the range of system events (not inclusive)
529            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
530            * @return the ordered range of matching system events
531            * @throws SystemException if a system exception occurred
532            */
533            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
534                    long groupId, long classNameId, long classPK, int type, int start,
535                    int end,
536                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
541            *
542            * @param groupId the group ID
543            * @param classNameId the class name ID
544            * @param classPK the class p k
545            * @param type the type
546            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
547            * @return the first matching system event
548            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
549            * @throws SystemException if a system exception occurred
550            */
551            public com.liferay.portal.model.SystemEvent findByG_C_C_T_First(
552                    long groupId, long classNameId, long classPK, int type,
553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
554                    throws com.liferay.portal.NoSuchSystemEventException,
555                            com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
559            *
560            * @param groupId the group ID
561            * @param classNameId the class name ID
562            * @param classPK the class p k
563            * @param type the type
564            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
565            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portal.model.SystemEvent fetchByG_C_C_T_First(
569                    long groupId, long classNameId, long classPK, int type,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            /**
574            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
575            *
576            * @param groupId the group ID
577            * @param classNameId the class name ID
578            * @param classPK the class p k
579            * @param type the type
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the last matching system event
582            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portal.model.SystemEvent findByG_C_C_T_Last(
586                    long groupId, long classNameId, long classPK, int type,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.NoSuchSystemEventException,
589                            com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
593            *
594            * @param groupId the group ID
595            * @param classNameId the class name ID
596            * @param classPK the class p k
597            * @param type the type
598            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
599            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portal.model.SystemEvent fetchByG_C_C_T_Last(
603                    long groupId, long classNameId, long classPK, int type,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
609            *
610            * @param systemEventId the primary key of the current system event
611            * @param groupId the group ID
612            * @param classNameId the class name ID
613            * @param classPK the class p k
614            * @param type the type
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the previous, current, and next system event
617            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public com.liferay.portal.model.SystemEvent[] findByG_C_C_T_PrevAndNext(
621                    long systemEventId, long groupId, long classNameId, long classPK,
622                    int type,
623                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
624                    throws com.liferay.portal.NoSuchSystemEventException,
625                            com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
629            *
630            * @param groupId the group ID
631            * @param classNameId the class name ID
632            * @param classPK the class p k
633            * @param type the type
634            * @throws SystemException if a system exception occurred
635            */
636            public void removeByG_C_C_T(long groupId, long classNameId, long classPK,
637                    int type) throws com.liferay.portal.kernel.exception.SystemException;
638    
639            /**
640            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
641            *
642            * @param groupId the group ID
643            * @param classNameId the class name ID
644            * @param classPK the class p k
645            * @param type the type
646            * @return the number of matching system events
647            * @throws SystemException if a system exception occurred
648            */
649            public int countByG_C_C_T(long groupId, long classNameId, long classPK,
650                    int type) throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * Caches the system event in the entity cache if it is enabled.
654            *
655            * @param systemEvent the system event
656            */
657            public void cacheResult(com.liferay.portal.model.SystemEvent systemEvent);
658    
659            /**
660            * Caches the system events in the entity cache if it is enabled.
661            *
662            * @param systemEvents the system events
663            */
664            public void cacheResult(
665                    java.util.List<com.liferay.portal.model.SystemEvent> systemEvents);
666    
667            /**
668            * Creates a new system event with the primary key. Does not add the system event to the database.
669            *
670            * @param systemEventId the primary key for the new system event
671            * @return the new system event
672            */
673            public com.liferay.portal.model.SystemEvent create(long systemEventId);
674    
675            /**
676            * Removes the system event with the primary key from the database. Also notifies the appropriate model listeners.
677            *
678            * @param systemEventId the primary key of the system event
679            * @return the system event that was removed
680            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
681            * @throws SystemException if a system exception occurred
682            */
683            public com.liferay.portal.model.SystemEvent remove(long systemEventId)
684                    throws com.liferay.portal.NoSuchSystemEventException,
685                            com.liferay.portal.kernel.exception.SystemException;
686    
687            public com.liferay.portal.model.SystemEvent updateImpl(
688                    com.liferay.portal.model.SystemEvent systemEvent)
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Returns the system event with the primary key or throws a {@link com.liferay.portal.NoSuchSystemEventException} if it could not be found.
693            *
694            * @param systemEventId the primary key of the system event
695            * @return the system event
696            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
697            * @throws SystemException if a system exception occurred
698            */
699            public com.liferay.portal.model.SystemEvent findByPrimaryKey(
700                    long systemEventId)
701                    throws com.liferay.portal.NoSuchSystemEventException,
702                            com.liferay.portal.kernel.exception.SystemException;
703    
704            /**
705            * Returns the system event with the primary key or returns <code>null</code> if it could not be found.
706            *
707            * @param systemEventId the primary key of the system event
708            * @return the system event, or <code>null</code> if a system event with the primary key could not be found
709            * @throws SystemException if a system exception occurred
710            */
711            public com.liferay.portal.model.SystemEvent fetchByPrimaryKey(
712                    long systemEventId)
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * Returns all the system events.
717            *
718            * @return the system events
719            * @throws SystemException if a system exception occurred
720            */
721            public java.util.List<com.liferay.portal.model.SystemEvent> findAll()
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            /**
725            * Returns a range of all the system events.
726            *
727            * <p>
728            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
729            * </p>
730            *
731            * @param start the lower bound of the range of system events
732            * @param end the upper bound of the range of system events (not inclusive)
733            * @return the range of system events
734            * @throws SystemException if a system exception occurred
735            */
736            public java.util.List<com.liferay.portal.model.SystemEvent> findAll(
737                    int start, int end)
738                    throws com.liferay.portal.kernel.exception.SystemException;
739    
740            /**
741            * Returns an ordered range of all the system events.
742            *
743            * <p>
744            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
745            * </p>
746            *
747            * @param start the lower bound of the range of system events
748            * @param end the upper bound of the range of system events (not inclusive)
749            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
750            * @return the ordered range of system events
751            * @throws SystemException if a system exception occurred
752            */
753            public java.util.List<com.liferay.portal.model.SystemEvent> findAll(
754                    int start, int end,
755                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
756                    throws com.liferay.portal.kernel.exception.SystemException;
757    
758            /**
759            * Removes all the system events from the database.
760            *
761            * @throws SystemException if a system exception occurred
762            */
763            public void removeAll()
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Returns the number of system events.
768            *
769            * @return the number of system events
770            * @throws SystemException if a system exception occurred
771            */
772            public int countAll()
773                    throws com.liferay.portal.kernel.exception.SystemException;
774    }