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 = ?. 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 = ?. 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 = ?. 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 the first system event in the ordered set where groupId = ?. 083 * 084 * @param groupId the group ID 085 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 086 * @return the first matching system event 087 * @throws NoSuchSystemEventException if a matching system event could not be found 088 */ 089 public SystemEvent findByGroupId_First(long groupId, 090 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 091 throws com.liferay.portal.NoSuchSystemEventException; 092 093 /** 094 * Returns the first system event in the ordered set where groupId = ?. 095 * 096 * @param groupId the group ID 097 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 098 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 099 */ 100 public SystemEvent fetchByGroupId_First(long groupId, 101 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 102 103 /** 104 * Returns the last system event in the ordered set where groupId = ?. 105 * 106 * @param groupId the group ID 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the last matching system event 109 * @throws NoSuchSystemEventException if a matching system event could not be found 110 */ 111 public SystemEvent findByGroupId_Last(long groupId, 112 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 113 throws com.liferay.portal.NoSuchSystemEventException; 114 115 /** 116 * Returns the last system event in the ordered set where groupId = ?. 117 * 118 * @param groupId the group ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 121 */ 122 public SystemEvent fetchByGroupId_Last(long groupId, 123 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 124 125 /** 126 * Returns the system events before and after the current system event in the ordered set where groupId = ?. 127 * 128 * @param systemEventId the primary key of the current system event 129 * @param groupId the group ID 130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 131 * @return the previous, current, and next system event 132 * @throws NoSuchSystemEventException if a system event with the primary key could not be found 133 */ 134 public SystemEvent[] findByGroupId_PrevAndNext(long systemEventId, 135 long groupId, 136 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 137 throws com.liferay.portal.NoSuchSystemEventException; 138 139 /** 140 * Removes all the system events where groupId = ? from the database. 141 * 142 * @param groupId the group ID 143 */ 144 public void removeByGroupId(long groupId); 145 146 /** 147 * Returns the number of system events where groupId = ?. 148 * 149 * @param groupId the group ID 150 * @return the number of matching system events 151 */ 152 public int countByGroupId(long groupId); 153 154 /** 155 * Returns all the system events where groupId = ? and systemEventSetKey = ?. 156 * 157 * @param groupId the group ID 158 * @param systemEventSetKey the system event set key 159 * @return the matching system events 160 */ 161 public java.util.List<SystemEvent> findByG_S(long groupId, 162 long systemEventSetKey); 163 164 /** 165 * Returns a range of all the system events where groupId = ? and systemEventSetKey = ?. 166 * 167 * <p> 168 * 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. 169 * </p> 170 * 171 * @param groupId the group ID 172 * @param systemEventSetKey the system event set key 173 * @param start the lower bound of the range of system events 174 * @param end the upper bound of the range of system events (not inclusive) 175 * @return the range of matching system events 176 */ 177 public java.util.List<SystemEvent> findByG_S(long groupId, 178 long systemEventSetKey, int start, int end); 179 180 /** 181 * Returns an ordered range of all the system events where groupId = ? and systemEventSetKey = ?. 182 * 183 * <p> 184 * 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. 185 * </p> 186 * 187 * @param groupId the group ID 188 * @param systemEventSetKey the system event set key 189 * @param start the lower bound of the range of system events 190 * @param end the upper bound of the range of system events (not inclusive) 191 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 192 * @return the ordered range of matching system events 193 */ 194 public java.util.List<SystemEvent> findByG_S(long groupId, 195 long systemEventSetKey, int start, int end, 196 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 197 198 /** 199 * Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?. 200 * 201 * @param groupId the group ID 202 * @param systemEventSetKey the system event set key 203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 204 * @return the first matching system event 205 * @throws NoSuchSystemEventException if a matching system event could not be found 206 */ 207 public SystemEvent findByG_S_First(long groupId, long systemEventSetKey, 208 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 209 throws com.liferay.portal.NoSuchSystemEventException; 210 211 /** 212 * Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?. 213 * 214 * @param groupId the group ID 215 * @param systemEventSetKey the system event set key 216 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 217 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 218 */ 219 public SystemEvent fetchByG_S_First(long groupId, long systemEventSetKey, 220 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 221 222 /** 223 * Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?. 224 * 225 * @param groupId the group ID 226 * @param systemEventSetKey the system event set key 227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 228 * @return the last matching system event 229 * @throws NoSuchSystemEventException if a matching system event could not be found 230 */ 231 public SystemEvent findByG_S_Last(long groupId, long systemEventSetKey, 232 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 233 throws com.liferay.portal.NoSuchSystemEventException; 234 235 /** 236 * Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?. 237 * 238 * @param groupId the group ID 239 * @param systemEventSetKey the system event set key 240 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 241 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 242 */ 243 public SystemEvent fetchByG_S_Last(long groupId, long systemEventSetKey, 244 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 245 246 /** 247 * Returns the system events before and after the current system event in the ordered set where groupId = ? and systemEventSetKey = ?. 248 * 249 * @param systemEventId the primary key of the current system event 250 * @param groupId the group ID 251 * @param systemEventSetKey the system event set key 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the previous, current, and next system event 254 * @throws NoSuchSystemEventException if a system event with the primary key could not be found 255 */ 256 public SystemEvent[] findByG_S_PrevAndNext(long systemEventId, 257 long groupId, long systemEventSetKey, 258 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 259 throws com.liferay.portal.NoSuchSystemEventException; 260 261 /** 262 * Removes all the system events where groupId = ? and systemEventSetKey = ? from the database. 263 * 264 * @param groupId the group ID 265 * @param systemEventSetKey the system event set key 266 */ 267 public void removeByG_S(long groupId, long systemEventSetKey); 268 269 /** 270 * Returns the number of system events where groupId = ? and systemEventSetKey = ?. 271 * 272 * @param groupId the group ID 273 * @param systemEventSetKey the system event set key 274 * @return the number of matching system events 275 */ 276 public int countByG_S(long groupId, long systemEventSetKey); 277 278 /** 279 * Returns all the system events where groupId = ? and classNameId = ? and classPK = ?. 280 * 281 * @param groupId the group ID 282 * @param classNameId the class name ID 283 * @param classPK the class p k 284 * @return the matching system events 285 */ 286 public java.util.List<SystemEvent> findByG_C_C(long groupId, 287 long classNameId, long classPK); 288 289 /** 290 * Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param groupId the group ID 297 * @param classNameId the class name ID 298 * @param classPK the class p k 299 * @param start the lower bound of the range of system events 300 * @param end the upper bound of the range of system events (not inclusive) 301 * @return the range of matching system events 302 */ 303 public java.util.List<SystemEvent> findByG_C_C(long groupId, 304 long classNameId, long classPK, int start, int end); 305 306 /** 307 * Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ?. 308 * 309 * <p> 310 * 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. 311 * </p> 312 * 313 * @param groupId the group ID 314 * @param classNameId the class name ID 315 * @param classPK the class p k 316 * @param start the lower bound of the range of system events 317 * @param end the upper bound of the range of system events (not inclusive) 318 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 319 * @return the ordered range of matching system events 320 */ 321 public java.util.List<SystemEvent> findByG_C_C(long groupId, 322 long classNameId, long classPK, int start, int end, 323 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 324 325 /** 326 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 327 * 328 * @param groupId the group ID 329 * @param classNameId the class name ID 330 * @param classPK the class p k 331 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 332 * @return the first matching system event 333 * @throws NoSuchSystemEventException if a matching system event could not be found 334 */ 335 public SystemEvent findByG_C_C_First(long groupId, long classNameId, 336 long classPK, 337 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 338 throws com.liferay.portal.NoSuchSystemEventException; 339 340 /** 341 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 342 * 343 * @param groupId the group ID 344 * @param classNameId the class name ID 345 * @param classPK the class p k 346 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 347 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 348 */ 349 public SystemEvent fetchByG_C_C_First(long groupId, long classNameId, 350 long classPK, 351 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 352 353 /** 354 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 355 * 356 * @param groupId the group ID 357 * @param classNameId the class name ID 358 * @param classPK the class p k 359 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 360 * @return the last matching system event 361 * @throws NoSuchSystemEventException if a matching system event could not be found 362 */ 363 public SystemEvent findByG_C_C_Last(long groupId, long classNameId, 364 long classPK, 365 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 366 throws com.liferay.portal.NoSuchSystemEventException; 367 368 /** 369 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 370 * 371 * @param groupId the group ID 372 * @param classNameId the class name ID 373 * @param classPK the class p k 374 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 375 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 376 */ 377 public SystemEvent fetchByG_C_C_Last(long groupId, long classNameId, 378 long classPK, 379 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 380 381 /** 382 * Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 383 * 384 * @param systemEventId the primary key of the current system event 385 * @param groupId the group ID 386 * @param classNameId the class name ID 387 * @param classPK the class p k 388 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 389 * @return the previous, current, and next system event 390 * @throws NoSuchSystemEventException if a system event with the primary key could not be found 391 */ 392 public SystemEvent[] findByG_C_C_PrevAndNext(long systemEventId, 393 long groupId, long classNameId, long classPK, 394 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 395 throws com.liferay.portal.NoSuchSystemEventException; 396 397 /** 398 * Removes all the system events where groupId = ? and classNameId = ? and classPK = ? from the database. 399 * 400 * @param groupId the group ID 401 * @param classNameId the class name ID 402 * @param classPK the class p k 403 */ 404 public void removeByG_C_C(long groupId, long classNameId, long classPK); 405 406 /** 407 * Returns the number of system events where groupId = ? and classNameId = ? and classPK = ?. 408 * 409 * @param groupId the group ID 410 * @param classNameId the class name ID 411 * @param classPK the class p k 412 * @return the number of matching system events 413 */ 414 public int countByG_C_C(long groupId, long classNameId, long classPK); 415 416 /** 417 * Returns all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 418 * 419 * @param groupId the group ID 420 * @param classNameId the class name ID 421 * @param classPK the class p k 422 * @param type the type 423 * @return the matching system events 424 */ 425 public java.util.List<SystemEvent> findByG_C_C_T(long groupId, 426 long classNameId, long classPK, int type); 427 428 /** 429 * Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param groupId the group ID 436 * @param classNameId the class name ID 437 * @param classPK the class p k 438 * @param type the type 439 * @param start the lower bound of the range of system events 440 * @param end the upper bound of the range of system events (not inclusive) 441 * @return the range of matching system events 442 */ 443 public java.util.List<SystemEvent> findByG_C_C_T(long groupId, 444 long classNameId, long classPK, int type, int start, int end); 445 446 /** 447 * Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 448 * 449 * <p> 450 * 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. 451 * </p> 452 * 453 * @param groupId the group ID 454 * @param classNameId the class name ID 455 * @param classPK the class p k 456 * @param type the type 457 * @param start the lower bound of the range of system events 458 * @param end the upper bound of the range of system events (not inclusive) 459 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 460 * @return the ordered range of matching system events 461 */ 462 public java.util.List<SystemEvent> findByG_C_C_T(long groupId, 463 long classNameId, long classPK, int type, int start, int end, 464 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 465 466 /** 467 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 468 * 469 * @param groupId the group ID 470 * @param classNameId the class name ID 471 * @param classPK the class p k 472 * @param type the type 473 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 474 * @return the first matching system event 475 * @throws NoSuchSystemEventException if a matching system event could not be found 476 */ 477 public SystemEvent findByG_C_C_T_First(long groupId, long classNameId, 478 long classPK, int type, 479 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 480 throws com.liferay.portal.NoSuchSystemEventException; 481 482 /** 483 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 484 * 485 * @param groupId the group ID 486 * @param classNameId the class name ID 487 * @param classPK the class p k 488 * @param type the type 489 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 490 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 491 */ 492 public SystemEvent fetchByG_C_C_T_First(long groupId, long classNameId, 493 long classPK, int type, 494 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 495 496 /** 497 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 498 * 499 * @param groupId the group ID 500 * @param classNameId the class name ID 501 * @param classPK the class p k 502 * @param type the type 503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 504 * @return the last matching system event 505 * @throws NoSuchSystemEventException if a matching system event could not be found 506 */ 507 public SystemEvent findByG_C_C_T_Last(long groupId, long classNameId, 508 long classPK, int type, 509 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 510 throws com.liferay.portal.NoSuchSystemEventException; 511 512 /** 513 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 514 * 515 * @param groupId the group ID 516 * @param classNameId the class name ID 517 * @param classPK the class p k 518 * @param type the type 519 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 520 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 521 */ 522 public SystemEvent fetchByG_C_C_T_Last(long groupId, long classNameId, 523 long classPK, int type, 524 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 525 526 /** 527 * Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 528 * 529 * @param systemEventId the primary key of the current system event 530 * @param groupId the group ID 531 * @param classNameId the class name ID 532 * @param classPK the class p k 533 * @param type the type 534 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 535 * @return the previous, current, and next system event 536 * @throws NoSuchSystemEventException if a system event with the primary key could not be found 537 */ 538 public SystemEvent[] findByG_C_C_T_PrevAndNext(long systemEventId, 539 long groupId, long classNameId, long classPK, int type, 540 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator) 541 throws com.liferay.portal.NoSuchSystemEventException; 542 543 /** 544 * Removes all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database. 545 * 546 * @param groupId the group ID 547 * @param classNameId the class name ID 548 * @param classPK the class p k 549 * @param type the type 550 */ 551 public void removeByG_C_C_T(long groupId, long classNameId, long classPK, 552 int type); 553 554 /** 555 * Returns the number of system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 556 * 557 * @param groupId the group ID 558 * @param classNameId the class name ID 559 * @param classPK the class p k 560 * @param type the type 561 * @return the number of matching system events 562 */ 563 public int countByG_C_C_T(long groupId, long classNameId, long classPK, 564 int type); 565 566 /** 567 * Caches the system event in the entity cache if it is enabled. 568 * 569 * @param systemEvent the system event 570 */ 571 public void cacheResult(SystemEvent systemEvent); 572 573 /** 574 * Caches the system events in the entity cache if it is enabled. 575 * 576 * @param systemEvents the system events 577 */ 578 public void cacheResult(java.util.List<SystemEvent> systemEvents); 579 580 /** 581 * Creates a new system event with the primary key. Does not add the system event to the database. 582 * 583 * @param systemEventId the primary key for the new system event 584 * @return the new system event 585 */ 586 public SystemEvent create(long systemEventId); 587 588 /** 589 * Removes the system event with the primary key from the database. Also notifies the appropriate model listeners. 590 * 591 * @param systemEventId the primary key of the system event 592 * @return the system event that was removed 593 * @throws NoSuchSystemEventException if a system event with the primary key could not be found 594 */ 595 public SystemEvent remove(long systemEventId) 596 throws com.liferay.portal.NoSuchSystemEventException; 597 598 public SystemEvent updateImpl(SystemEvent systemEvent); 599 600 /** 601 * Returns the system event with the primary key or throws a {@link NoSuchSystemEventException} if it could not be found. 602 * 603 * @param systemEventId the primary key of the system event 604 * @return the system event 605 * @throws NoSuchSystemEventException if a system event with the primary key could not be found 606 */ 607 public SystemEvent findByPrimaryKey(long systemEventId) 608 throws com.liferay.portal.NoSuchSystemEventException; 609 610 /** 611 * Returns the system event with the primary key or returns <code>null</code> if it could not be found. 612 * 613 * @param systemEventId the primary key of the system event 614 * @return the system event, or <code>null</code> if a system event with the primary key could not be found 615 */ 616 public SystemEvent fetchByPrimaryKey(long systemEventId); 617 618 @Override 619 public java.util.Map<java.io.Serializable, SystemEvent> fetchByPrimaryKeys( 620 java.util.Set<java.io.Serializable> primaryKeys); 621 622 /** 623 * Returns all the system events. 624 * 625 * @return the system events 626 */ 627 public java.util.List<SystemEvent> findAll(); 628 629 /** 630 * Returns a range of all the system events. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param start the lower bound of the range of system events 637 * @param end the upper bound of the range of system events (not inclusive) 638 * @return the range of system events 639 */ 640 public java.util.List<SystemEvent> findAll(int start, int end); 641 642 /** 643 * Returns an ordered range of all the system events. 644 * 645 * <p> 646 * 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. 647 * </p> 648 * 649 * @param start the lower bound of the range of system events 650 * @param end the upper bound of the range of system events (not inclusive) 651 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 652 * @return the ordered range of system events 653 */ 654 public java.util.List<SystemEvent> findAll(int start, int end, 655 com.liferay.portal.kernel.util.OrderByComparator<SystemEvent> orderByComparator); 656 657 /** 658 * Removes all the system events from the database. 659 */ 660 public void removeAll(); 661 662 /** 663 * Returns the number of system events. 664 * 665 * @return the number of system events 666 */ 667 public int countAll(); 668 }