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 classNameId = &#63; and classPK = &#63;.
178            *
179            * @param groupId the group ID
180            * @param classNameId the class name ID
181            * @param classPK the class p k
182            * @return the matching system events
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
186                    long groupId, long classNameId, long classPK)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param groupId the group ID
197            * @param classNameId the class name ID
198            * @param classPK the class p k
199            * @param start the lower bound of the range of system events
200            * @param end the upper bound of the range of system events (not inclusive)
201            * @return the range of matching system events
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
205                    long groupId, long classNameId, long classPK, int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
210            *
211            * <p>
212            * 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.
213            * </p>
214            *
215            * @param groupId the group ID
216            * @param classNameId the class name ID
217            * @param classPK the class p k
218            * @param start the lower bound of the range of system events
219            * @param end the upper bound of the range of system events (not inclusive)
220            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
221            * @return the ordered range of matching system events
222            * @throws SystemException if a system exception occurred
223            */
224            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
225                    long groupId, long classNameId, long classPK, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
231            *
232            * @param groupId the group ID
233            * @param classNameId the class name ID
234            * @param classPK the class p k
235            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
236            * @return the first matching system event
237            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portal.model.SystemEvent findByG_C_C_First(
241                    long groupId, long classNameId, long classPK,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.NoSuchSystemEventException,
244                            com.liferay.portal.kernel.exception.SystemException;
245    
246            /**
247            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
248            *
249            * @param groupId the group ID
250            * @param classNameId the class name ID
251            * @param classPK the class p k
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public com.liferay.portal.model.SystemEvent fetchByG_C_C_First(
257                    long groupId, long classNameId, long classPK,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
263            *
264            * @param groupId the group ID
265            * @param classNameId the class name ID
266            * @param classPK the class p k
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the last matching system event
269            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public com.liferay.portal.model.SystemEvent findByG_C_C_Last(long groupId,
273                    long classNameId, long classPK,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.NoSuchSystemEventException,
276                            com.liferay.portal.kernel.exception.SystemException;
277    
278            /**
279            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
280            *
281            * @param groupId the group ID
282            * @param classNameId the class name ID
283            * @param classPK the class p k
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public com.liferay.portal.model.SystemEvent fetchByG_C_C_Last(
289                    long groupId, long classNameId, long classPK,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
295            *
296            * @param systemEventId the primary key of the current system event
297            * @param groupId the group ID
298            * @param classNameId the class name ID
299            * @param classPK the class p k
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the previous, current, and next system event
302            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public com.liferay.portal.model.SystemEvent[] findByG_C_C_PrevAndNext(
306                    long systemEventId, long groupId, long classNameId, long classPK,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.NoSuchSystemEventException,
309                            com.liferay.portal.kernel.exception.SystemException;
310    
311            /**
312            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
313            *
314            * @param groupId the group ID
315            * @param classNameId the class name ID
316            * @param classPK the class p k
317            * @throws SystemException if a system exception occurred
318            */
319            public void removeByG_C_C(long groupId, long classNameId, long classPK)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
324            *
325            * @param groupId the group ID
326            * @param classNameId the class name ID
327            * @param classPK the class p k
328            * @return the number of matching system events
329            * @throws SystemException if a system exception occurred
330            */
331            public int countByG_C_C(long groupId, long classNameId, long classPK)
332                    throws com.liferay.portal.kernel.exception.SystemException;
333    
334            /**
335            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
336            *
337            * @param groupId the group ID
338            * @param classNameId the class name ID
339            * @param classPK the class p k
340            * @param type the type
341            * @return the matching system events
342            * @throws SystemException if a system exception occurred
343            */
344            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
345                    long groupId, long classNameId, long classPK, int type)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
350            *
351            * <p>
352            * 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.
353            * </p>
354            *
355            * @param groupId the group ID
356            * @param classNameId the class name ID
357            * @param classPK the class p k
358            * @param type the type
359            * @param start the lower bound of the range of system events
360            * @param end the upper bound of the range of system events (not inclusive)
361            * @return the range of matching system events
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
365                    long groupId, long classNameId, long classPK, int type, int start,
366                    int end) throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param groupId the group ID
376            * @param classNameId the class name ID
377            * @param classPK the class p k
378            * @param type the type
379            * @param start the lower bound of the range of system events
380            * @param end the upper bound of the range of system events (not inclusive)
381            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
382            * @return the ordered range of matching system events
383            * @throws SystemException if a system exception occurred
384            */
385            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
386                    long groupId, long classNameId, long classPK, int type, int start,
387                    int end,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
393            *
394            * @param groupId the group ID
395            * @param classNameId the class name ID
396            * @param classPK the class p k
397            * @param type the type
398            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
399            * @return the first matching system event
400            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
401            * @throws SystemException if a system exception occurred
402            */
403            public com.liferay.portal.model.SystemEvent findByG_C_C_T_First(
404                    long groupId, long classNameId, long classPK, int type,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.NoSuchSystemEventException,
407                            com.liferay.portal.kernel.exception.SystemException;
408    
409            /**
410            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
411            *
412            * @param groupId the group ID
413            * @param classNameId the class name ID
414            * @param classPK the class p k
415            * @param type the type
416            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
417            * @return the first matching system event, or <code>null</code> 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 fetchByG_C_C_T_First(
421                    long groupId, long classNameId, long classPK, int type,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
427            *
428            * @param groupId the group ID
429            * @param classNameId the class name ID
430            * @param classPK the class p k
431            * @param type the type
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the last matching system event
434            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.SystemEvent findByG_C_C_T_Last(
438                    long groupId, long classNameId, long classPK, int type,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.NoSuchSystemEventException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
445            *
446            * @param groupId the group ID
447            * @param classNameId the class name ID
448            * @param classPK the class p k
449            * @param type the type
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public com.liferay.portal.model.SystemEvent fetchByG_C_C_T_Last(
455                    long groupId, long classNameId, long classPK, int type,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            /**
460            * 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;.
461            *
462            * @param systemEventId the primary key of the current system event
463            * @param groupId the group ID
464            * @param classNameId the class name ID
465            * @param classPK the class p k
466            * @param type the type
467            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
468            * @return the previous, current, and next system event
469            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public com.liferay.portal.model.SystemEvent[] findByG_C_C_T_PrevAndNext(
473                    long systemEventId, long groupId, long classNameId, long classPK,
474                    int type,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.NoSuchSystemEventException,
477                            com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
481            *
482            * @param groupId the group ID
483            * @param classNameId the class name ID
484            * @param classPK the class p k
485            * @param type the type
486            * @throws SystemException if a system exception occurred
487            */
488            public void removeByG_C_C_T(long groupId, long classNameId, long classPK,
489                    int type) throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
493            *
494            * @param groupId the group ID
495            * @param classNameId the class name ID
496            * @param classPK the class p k
497            * @param type the type
498            * @return the number of matching system events
499            * @throws SystemException if a system exception occurred
500            */
501            public int countByG_C_C_T(long groupId, long classNameId, long classPK,
502                    int type) throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Caches the system event in the entity cache if it is enabled.
506            *
507            * @param systemEvent the system event
508            */
509            public void cacheResult(com.liferay.portal.model.SystemEvent systemEvent);
510    
511            /**
512            * Caches the system events in the entity cache if it is enabled.
513            *
514            * @param systemEvents the system events
515            */
516            public void cacheResult(
517                    java.util.List<com.liferay.portal.model.SystemEvent> systemEvents);
518    
519            /**
520            * Creates a new system event with the primary key. Does not add the system event to the database.
521            *
522            * @param systemEventId the primary key for the new system event
523            * @return the new system event
524            */
525            public com.liferay.portal.model.SystemEvent create(long systemEventId);
526    
527            /**
528            * Removes the system event with the primary key from the database. Also notifies the appropriate model listeners.
529            *
530            * @param systemEventId the primary key of the system event
531            * @return the system event that was removed
532            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
533            * @throws SystemException if a system exception occurred
534            */
535            public com.liferay.portal.model.SystemEvent remove(long systemEventId)
536                    throws com.liferay.portal.NoSuchSystemEventException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            public com.liferay.portal.model.SystemEvent updateImpl(
540                    com.liferay.portal.model.SystemEvent systemEvent)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            /**
544            * Returns the system event with the primary key or throws a {@link com.liferay.portal.NoSuchSystemEventException} if it could not be found.
545            *
546            * @param systemEventId the primary key of the system event
547            * @return the system event
548            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
549            * @throws SystemException if a system exception occurred
550            */
551            public com.liferay.portal.model.SystemEvent findByPrimaryKey(
552                    long systemEventId)
553                    throws com.liferay.portal.NoSuchSystemEventException,
554                            com.liferay.portal.kernel.exception.SystemException;
555    
556            /**
557            * Returns the system event with the primary key or returns <code>null</code> if it could not be found.
558            *
559            * @param systemEventId the primary key of the system event
560            * @return the system event, or <code>null</code> if a system event with the primary key could not be found
561            * @throws SystemException if a system exception occurred
562            */
563            public com.liferay.portal.model.SystemEvent fetchByPrimaryKey(
564                    long systemEventId)
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * Returns all the system events.
569            *
570            * @return the system events
571            * @throws SystemException if a system exception occurred
572            */
573            public java.util.List<com.liferay.portal.model.SystemEvent> findAll()
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Returns a range of all the system events.
578            *
579            * <p>
580            * 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.
581            * </p>
582            *
583            * @param start the lower bound of the range of system events
584            * @param end the upper bound of the range of system events (not inclusive)
585            * @return the range of system events
586            * @throws SystemException if a system exception occurred
587            */
588            public java.util.List<com.liferay.portal.model.SystemEvent> findAll(
589                    int start, int end)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns an ordered range of all the system events.
594            *
595            * <p>
596            * 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.
597            * </p>
598            *
599            * @param start the lower bound of the range of system events
600            * @param end the upper bound of the range of system events (not inclusive)
601            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
602            * @return the ordered range of system events
603            * @throws SystemException if a system exception occurred
604            */
605            public java.util.List<com.liferay.portal.model.SystemEvent> findAll(
606                    int start, int end,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException;
609    
610            /**
611            * Removes all the system events from the database.
612            *
613            * @throws SystemException if a system exception occurred
614            */
615            public void removeAll()
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Returns the number of system events.
620            *
621            * @return the number of system events
622            * @throws SystemException if a system exception occurred
623            */
624            public int countAll()
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    }