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