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