001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.SystemEvent; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the system event service. This utility wraps {@link SystemEventPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see SystemEventPersistence 036 * @see SystemEventPersistenceImpl 037 * @generated 038 */ 039 public class SystemEventUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(SystemEvent systemEvent) { 057 getPersistence().clearCache(systemEvent); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<SystemEvent> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<SystemEvent> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<SystemEvent> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static SystemEvent update(SystemEvent systemEvent) 100 throws SystemException { 101 return getPersistence().update(systemEvent); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static SystemEvent update(SystemEvent systemEvent, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(systemEvent, serviceContext); 110 } 111 112 /** 113 * Returns all the system events where groupId = ?. 114 * 115 * @param groupId the group ID 116 * @return the matching system events 117 * @throws SystemException if a system exception occurred 118 */ 119 public static java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId( 120 long groupId) 121 throws com.liferay.portal.kernel.exception.SystemException { 122 return getPersistence().findByGroupId(groupId); 123 } 124 125 /** 126 * Returns a range of all the system events where groupId = ?. 127 * 128 * <p> 129 * 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. 130 * </p> 131 * 132 * @param groupId the group ID 133 * @param start the lower bound of the range of system events 134 * @param end the upper bound of the range of system events (not inclusive) 135 * @return the range of matching system events 136 * @throws SystemException if a system exception occurred 137 */ 138 public static java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId( 139 long groupId, int start, int end) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return getPersistence().findByGroupId(groupId, start, end); 142 } 143 144 /** 145 * Returns an ordered range of all the system events where groupId = ?. 146 * 147 * <p> 148 * 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. 149 * </p> 150 * 151 * @param groupId the group ID 152 * @param start the lower bound of the range of system events 153 * @param end the upper bound of the range of system events (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching system events 156 * @throws SystemException if a system exception occurred 157 */ 158 public static java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId( 159 long groupId, int start, int end, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence() 163 .findByGroupId(groupId, start, end, orderByComparator); 164 } 165 166 /** 167 * Returns the first system event in the ordered set where groupId = ?. 168 * 169 * @param groupId the group ID 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching system event 172 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portal.model.SystemEvent findByGroupId_First( 176 long groupId, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.NoSuchSystemEventException, 179 com.liferay.portal.kernel.exception.SystemException { 180 return getPersistence().findByGroupId_First(groupId, orderByComparator); 181 } 182 183 /** 184 * Returns the first system event in the ordered set where groupId = ?. 185 * 186 * @param groupId the group ID 187 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 188 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portal.model.SystemEvent fetchByGroupId_First( 192 long groupId, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException { 195 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 196 } 197 198 /** 199 * Returns the last system event in the ordered set where groupId = ?. 200 * 201 * @param groupId the group ID 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the last matching system event 204 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public static com.liferay.portal.model.SystemEvent findByGroupId_Last( 208 long groupId, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.NoSuchSystemEventException, 211 com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 213 } 214 215 /** 216 * Returns the last system event in the ordered set where groupId = ?. 217 * 218 * @param groupId the group ID 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 221 * @throws SystemException if a system exception occurred 222 */ 223 public static com.liferay.portal.model.SystemEvent fetchByGroupId_Last( 224 long groupId, 225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 226 throws com.liferay.portal.kernel.exception.SystemException { 227 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 228 } 229 230 /** 231 * Returns the system events before and after the current system event in the ordered set where groupId = ?. 232 * 233 * @param systemEventId the primary key of the current system event 234 * @param groupId the group ID 235 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 236 * @return the previous, current, and next system event 237 * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found 238 * @throws SystemException if a system exception occurred 239 */ 240 public static com.liferay.portal.model.SystemEvent[] findByGroupId_PrevAndNext( 241 long systemEventId, long groupId, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.NoSuchSystemEventException, 244 com.liferay.portal.kernel.exception.SystemException { 245 return getPersistence() 246 .findByGroupId_PrevAndNext(systemEventId, groupId, 247 orderByComparator); 248 } 249 250 /** 251 * Removes all the system events where groupId = ? from the database. 252 * 253 * @param groupId the group ID 254 * @throws SystemException if a system exception occurred 255 */ 256 public static void removeByGroupId(long groupId) 257 throws com.liferay.portal.kernel.exception.SystemException { 258 getPersistence().removeByGroupId(groupId); 259 } 260 261 /** 262 * Returns the number of system events where groupId = ?. 263 * 264 * @param groupId the group ID 265 * @return the number of matching system events 266 * @throws SystemException if a system exception occurred 267 */ 268 public static int countByGroupId(long groupId) 269 throws com.liferay.portal.kernel.exception.SystemException { 270 return getPersistence().countByGroupId(groupId); 271 } 272 273 /** 274 * Returns all the system events where groupId = ? and systemEventSetKey = ?. 275 * 276 * @param groupId the group ID 277 * @param systemEventSetKey the system event set key 278 * @return the matching system events 279 * @throws SystemException if a system exception occurred 280 */ 281 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_S( 282 long groupId, long systemEventSetKey) 283 throws com.liferay.portal.kernel.exception.SystemException { 284 return getPersistence().findByG_S(groupId, systemEventSetKey); 285 } 286 287 /** 288 * Returns a range of all the system events where groupId = ? and systemEventSetKey = ?. 289 * 290 * <p> 291 * 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. 292 * </p> 293 * 294 * @param groupId the group ID 295 * @param systemEventSetKey the system event set key 296 * @param start the lower bound of the range of system events 297 * @param end the upper bound of the range of system events (not inclusive) 298 * @return the range of matching system events 299 * @throws SystemException if a system exception occurred 300 */ 301 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_S( 302 long groupId, long systemEventSetKey, int start, int end) 303 throws com.liferay.portal.kernel.exception.SystemException { 304 return getPersistence().findByG_S(groupId, systemEventSetKey, start, end); 305 } 306 307 /** 308 * Returns an ordered range of all the system events where groupId = ? and systemEventSetKey = ?. 309 * 310 * <p> 311 * 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. 312 * </p> 313 * 314 * @param groupId the group ID 315 * @param systemEventSetKey the system event set key 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 * @throws SystemException if a system exception occurred 321 */ 322 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_S( 323 long groupId, long systemEventSetKey, int start, int end, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException { 326 return getPersistence() 327 .findByG_S(groupId, systemEventSetKey, start, end, 328 orderByComparator); 329 } 330 331 /** 332 * Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?. 333 * 334 * @param groupId the group ID 335 * @param systemEventSetKey the system event set key 336 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 337 * @return the first matching system event 338 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 339 * @throws SystemException if a system exception occurred 340 */ 341 public static com.liferay.portal.model.SystemEvent findByG_S_First( 342 long groupId, long systemEventSetKey, 343 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 344 throws com.liferay.portal.NoSuchSystemEventException, 345 com.liferay.portal.kernel.exception.SystemException { 346 return getPersistence() 347 .findByG_S_First(groupId, systemEventSetKey, 348 orderByComparator); 349 } 350 351 /** 352 * Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?. 353 * 354 * @param groupId the group ID 355 * @param systemEventSetKey the system event set key 356 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 357 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 358 * @throws SystemException if a system exception occurred 359 */ 360 public static com.liferay.portal.model.SystemEvent fetchByG_S_First( 361 long groupId, long systemEventSetKey, 362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 363 throws com.liferay.portal.kernel.exception.SystemException { 364 return getPersistence() 365 .fetchByG_S_First(groupId, systemEventSetKey, 366 orderByComparator); 367 } 368 369 /** 370 * Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?. 371 * 372 * @param groupId the group ID 373 * @param systemEventSetKey the system event set key 374 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 375 * @return the last matching system event 376 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public static com.liferay.portal.model.SystemEvent findByG_S_Last( 380 long groupId, long systemEventSetKey, 381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 382 throws com.liferay.portal.NoSuchSystemEventException, 383 com.liferay.portal.kernel.exception.SystemException { 384 return getPersistence() 385 .findByG_S_Last(groupId, systemEventSetKey, orderByComparator); 386 } 387 388 /** 389 * Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?. 390 * 391 * @param groupId the group ID 392 * @param systemEventSetKey the system event set key 393 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 394 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public static com.liferay.portal.model.SystemEvent fetchByG_S_Last( 398 long groupId, long systemEventSetKey, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.kernel.exception.SystemException { 401 return getPersistence() 402 .fetchByG_S_Last(groupId, systemEventSetKey, 403 orderByComparator); 404 } 405 406 /** 407 * Returns the system events before and after the current system event in the ordered set where groupId = ? and systemEventSetKey = ?. 408 * 409 * @param systemEventId the primary key of the current system event 410 * @param groupId the group ID 411 * @param systemEventSetKey the system event set key 412 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 413 * @return the previous, current, and next system event 414 * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found 415 * @throws SystemException if a system exception occurred 416 */ 417 public static com.liferay.portal.model.SystemEvent[] findByG_S_PrevAndNext( 418 long systemEventId, long groupId, long systemEventSetKey, 419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 420 throws com.liferay.portal.NoSuchSystemEventException, 421 com.liferay.portal.kernel.exception.SystemException { 422 return getPersistence() 423 .findByG_S_PrevAndNext(systemEventId, groupId, 424 systemEventSetKey, orderByComparator); 425 } 426 427 /** 428 * Removes all the system events where groupId = ? and systemEventSetKey = ? from the database. 429 * 430 * @param groupId the group ID 431 * @param systemEventSetKey the system event set key 432 * @throws SystemException if a system exception occurred 433 */ 434 public static void removeByG_S(long groupId, long systemEventSetKey) 435 throws com.liferay.portal.kernel.exception.SystemException { 436 getPersistence().removeByG_S(groupId, systemEventSetKey); 437 } 438 439 /** 440 * Returns the number of system events where groupId = ? and systemEventSetKey = ?. 441 * 442 * @param groupId the group ID 443 * @param systemEventSetKey the system event set key 444 * @return the number of matching system events 445 * @throws SystemException if a system exception occurred 446 */ 447 public static int countByG_S(long groupId, long systemEventSetKey) 448 throws com.liferay.portal.kernel.exception.SystemException { 449 return getPersistence().countByG_S(groupId, systemEventSetKey); 450 } 451 452 /** 453 * Returns all the system events where groupId = ? and classNameId = ? and classPK = ?. 454 * 455 * @param groupId the group ID 456 * @param classNameId the class name ID 457 * @param classPK the class p k 458 * @return the matching system events 459 * @throws SystemException if a system exception occurred 460 */ 461 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C( 462 long groupId, long classNameId, long classPK) 463 throws com.liferay.portal.kernel.exception.SystemException { 464 return getPersistence().findByG_C_C(groupId, classNameId, classPK); 465 } 466 467 /** 468 * Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ?. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param groupId the group ID 475 * @param classNameId the class name ID 476 * @param classPK the class p k 477 * @param start the lower bound of the range of system events 478 * @param end the upper bound of the range of system events (not inclusive) 479 * @return the range of matching system events 480 * @throws SystemException if a system exception occurred 481 */ 482 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C( 483 long groupId, long classNameId, long classPK, int start, int end) 484 throws com.liferay.portal.kernel.exception.SystemException { 485 return getPersistence() 486 .findByG_C_C(groupId, classNameId, classPK, start, end); 487 } 488 489 /** 490 * Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ?. 491 * 492 * <p> 493 * 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. 494 * </p> 495 * 496 * @param groupId the group ID 497 * @param classNameId the class name ID 498 * @param classPK the class p k 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 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 502 * @return the ordered range of matching system events 503 * @throws SystemException if a system exception occurred 504 */ 505 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C( 506 long groupId, long classNameId, long classPK, int start, int end, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.kernel.exception.SystemException { 509 return getPersistence() 510 .findByG_C_C(groupId, classNameId, classPK, start, end, 511 orderByComparator); 512 } 513 514 /** 515 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 516 * 517 * @param groupId the group ID 518 * @param classNameId the class name ID 519 * @param classPK the class p k 520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 521 * @return the first matching system event 522 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 523 * @throws SystemException if a system exception occurred 524 */ 525 public static com.liferay.portal.model.SystemEvent findByG_C_C_First( 526 long groupId, long classNameId, long classPK, 527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 528 throws com.liferay.portal.NoSuchSystemEventException, 529 com.liferay.portal.kernel.exception.SystemException { 530 return getPersistence() 531 .findByG_C_C_First(groupId, classNameId, classPK, 532 orderByComparator); 533 } 534 535 /** 536 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 537 * 538 * @param groupId the group ID 539 * @param classNameId the class name ID 540 * @param classPK the class p k 541 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 542 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 543 * @throws SystemException if a system exception occurred 544 */ 545 public static com.liferay.portal.model.SystemEvent fetchByG_C_C_First( 546 long groupId, long classNameId, long classPK, 547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 548 throws com.liferay.portal.kernel.exception.SystemException { 549 return getPersistence() 550 .fetchByG_C_C_First(groupId, classNameId, classPK, 551 orderByComparator); 552 } 553 554 /** 555 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 556 * 557 * @param groupId the group ID 558 * @param classNameId the class name ID 559 * @param classPK the class p k 560 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 561 * @return the last matching system event 562 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public static com.liferay.portal.model.SystemEvent findByG_C_C_Last( 566 long groupId, long classNameId, long classPK, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.NoSuchSystemEventException, 569 com.liferay.portal.kernel.exception.SystemException { 570 return getPersistence() 571 .findByG_C_C_Last(groupId, classNameId, classPK, 572 orderByComparator); 573 } 574 575 /** 576 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 577 * 578 * @param groupId the group ID 579 * @param classNameId the class name ID 580 * @param classPK the class p k 581 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 582 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 583 * @throws SystemException if a system exception occurred 584 */ 585 public static com.liferay.portal.model.SystemEvent fetchByG_C_C_Last( 586 long groupId, long classNameId, long classPK, 587 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 588 throws com.liferay.portal.kernel.exception.SystemException { 589 return getPersistence() 590 .fetchByG_C_C_Last(groupId, classNameId, classPK, 591 orderByComparator); 592 } 593 594 /** 595 * Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 596 * 597 * @param systemEventId the primary key of the current system event 598 * @param groupId the group ID 599 * @param classNameId the class name ID 600 * @param classPK the class p k 601 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 602 * @return the previous, current, and next system event 603 * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found 604 * @throws SystemException if a system exception occurred 605 */ 606 public static com.liferay.portal.model.SystemEvent[] findByG_C_C_PrevAndNext( 607 long systemEventId, long groupId, long classNameId, long classPK, 608 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 609 throws com.liferay.portal.NoSuchSystemEventException, 610 com.liferay.portal.kernel.exception.SystemException { 611 return getPersistence() 612 .findByG_C_C_PrevAndNext(systemEventId, groupId, 613 classNameId, classPK, orderByComparator); 614 } 615 616 /** 617 * Removes all the system events where groupId = ? and classNameId = ? and classPK = ? from the database. 618 * 619 * @param groupId the group ID 620 * @param classNameId the class name ID 621 * @param classPK the class p k 622 * @throws SystemException if a system exception occurred 623 */ 624 public static void removeByG_C_C(long groupId, long classNameId, 625 long classPK) 626 throws com.liferay.portal.kernel.exception.SystemException { 627 getPersistence().removeByG_C_C(groupId, classNameId, classPK); 628 } 629 630 /** 631 * Returns the number of system events where groupId = ? and classNameId = ? and classPK = ?. 632 * 633 * @param groupId the group ID 634 * @param classNameId the class name ID 635 * @param classPK the class p k 636 * @return the number of matching system events 637 * @throws SystemException if a system exception occurred 638 */ 639 public static int countByG_C_C(long groupId, long classNameId, long classPK) 640 throws com.liferay.portal.kernel.exception.SystemException { 641 return getPersistence().countByG_C_C(groupId, classNameId, classPK); 642 } 643 644 /** 645 * Returns all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 646 * 647 * @param groupId the group ID 648 * @param classNameId the class name ID 649 * @param classPK the class p k 650 * @param type the type 651 * @return the matching system events 652 * @throws SystemException if a system exception occurred 653 */ 654 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T( 655 long groupId, long classNameId, long classPK, int type) 656 throws com.liferay.portal.kernel.exception.SystemException { 657 return getPersistence() 658 .findByG_C_C_T(groupId, classNameId, classPK, type); 659 } 660 661 /** 662 * Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 663 * 664 * <p> 665 * 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. 666 * </p> 667 * 668 * @param groupId the group ID 669 * @param classNameId the class name ID 670 * @param classPK the class p k 671 * @param type the type 672 * @param start the lower bound of the range of system events 673 * @param end the upper bound of the range of system events (not inclusive) 674 * @return the range of matching system events 675 * @throws SystemException if a system exception occurred 676 */ 677 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T( 678 long groupId, long classNameId, long classPK, int type, int start, 679 int end) throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence() 681 .findByG_C_C_T(groupId, classNameId, classPK, type, start, 682 end); 683 } 684 685 /** 686 * Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 687 * 688 * <p> 689 * 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. 690 * </p> 691 * 692 * @param groupId the group ID 693 * @param classNameId the class name ID 694 * @param classPK the class p k 695 * @param type the type 696 * @param start the lower bound of the range of system events 697 * @param end the upper bound of the range of system events (not inclusive) 698 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 699 * @return the ordered range of matching system events 700 * @throws SystemException if a system exception occurred 701 */ 702 public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T( 703 long groupId, long classNameId, long classPK, int type, int start, 704 int end, 705 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence() 708 .findByG_C_C_T(groupId, classNameId, classPK, type, start, 709 end, orderByComparator); 710 } 711 712 /** 713 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 714 * 715 * @param groupId the group ID 716 * @param classNameId the class name ID 717 * @param classPK the class p k 718 * @param type the type 719 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 720 * @return the first matching system event 721 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 722 * @throws SystemException if a system exception occurred 723 */ 724 public static com.liferay.portal.model.SystemEvent findByG_C_C_T_First( 725 long groupId, long classNameId, long classPK, int type, 726 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 727 throws com.liferay.portal.NoSuchSystemEventException, 728 com.liferay.portal.kernel.exception.SystemException { 729 return getPersistence() 730 .findByG_C_C_T_First(groupId, classNameId, classPK, type, 731 orderByComparator); 732 } 733 734 /** 735 * Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 736 * 737 * @param groupId the group ID 738 * @param classNameId the class name ID 739 * @param classPK the class p k 740 * @param type the type 741 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 742 * @return the first matching system event, or <code>null</code> if a matching system event could not be found 743 * @throws SystemException if a system exception occurred 744 */ 745 public static com.liferay.portal.model.SystemEvent fetchByG_C_C_T_First( 746 long groupId, long classNameId, long classPK, int type, 747 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 748 throws com.liferay.portal.kernel.exception.SystemException { 749 return getPersistence() 750 .fetchByG_C_C_T_First(groupId, classNameId, classPK, type, 751 orderByComparator); 752 } 753 754 /** 755 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 756 * 757 * @param groupId the group ID 758 * @param classNameId the class name ID 759 * @param classPK the class p k 760 * @param type the type 761 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 762 * @return the last matching system event 763 * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found 764 * @throws SystemException if a system exception occurred 765 */ 766 public static com.liferay.portal.model.SystemEvent findByG_C_C_T_Last( 767 long groupId, long classNameId, long classPK, int type, 768 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 769 throws com.liferay.portal.NoSuchSystemEventException, 770 com.liferay.portal.kernel.exception.SystemException { 771 return getPersistence() 772 .findByG_C_C_T_Last(groupId, classNameId, classPK, type, 773 orderByComparator); 774 } 775 776 /** 777 * Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 778 * 779 * @param groupId the group ID 780 * @param classNameId the class name ID 781 * @param classPK the class p k 782 * @param type the type 783 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 784 * @return the last matching system event, or <code>null</code> if a matching system event could not be found 785 * @throws SystemException if a system exception occurred 786 */ 787 public static com.liferay.portal.model.SystemEvent fetchByG_C_C_T_Last( 788 long groupId, long classNameId, long classPK, int type, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException { 791 return getPersistence() 792 .fetchByG_C_C_T_Last(groupId, classNameId, classPK, type, 793 orderByComparator); 794 } 795 796 /** 797 * Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?. 798 * 799 * @param systemEventId the primary key of the current system event 800 * @param groupId the group ID 801 * @param classNameId the class name ID 802 * @param classPK the class p k 803 * @param type the type 804 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 805 * @return the previous, current, and next system event 806 * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found 807 * @throws SystemException if a system exception occurred 808 */ 809 public static com.liferay.portal.model.SystemEvent[] findByG_C_C_T_PrevAndNext( 810 long systemEventId, long groupId, long classNameId, long classPK, 811 int type, 812 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 813 throws com.liferay.portal.NoSuchSystemEventException, 814 com.liferay.portal.kernel.exception.SystemException { 815 return getPersistence() 816 .findByG_C_C_T_PrevAndNext(systemEventId, groupId, 817 classNameId, classPK, type, orderByComparator); 818 } 819 820 /** 821 * Removes all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database. 822 * 823 * @param groupId the group ID 824 * @param classNameId the class name ID 825 * @param classPK the class p k 826 * @param type the type 827 * @throws SystemException if a system exception occurred 828 */ 829 public static void removeByG_C_C_T(long groupId, long classNameId, 830 long classPK, int type) 831 throws com.liferay.portal.kernel.exception.SystemException { 832 getPersistence().removeByG_C_C_T(groupId, classNameId, classPK, type); 833 } 834 835 /** 836 * Returns the number of system events where groupId = ? and classNameId = ? and classPK = ? and type = ?. 837 * 838 * @param groupId the group ID 839 * @param classNameId the class name ID 840 * @param classPK the class p k 841 * @param type the type 842 * @return the number of matching system events 843 * @throws SystemException if a system exception occurred 844 */ 845 public static int countByG_C_C_T(long groupId, long classNameId, 846 long classPK, int type) 847 throws com.liferay.portal.kernel.exception.SystemException { 848 return getPersistence() 849 .countByG_C_C_T(groupId, classNameId, classPK, type); 850 } 851 852 /** 853 * Caches the system event in the entity cache if it is enabled. 854 * 855 * @param systemEvent the system event 856 */ 857 public static void cacheResult( 858 com.liferay.portal.model.SystemEvent systemEvent) { 859 getPersistence().cacheResult(systemEvent); 860 } 861 862 /** 863 * Caches the system events in the entity cache if it is enabled. 864 * 865 * @param systemEvents the system events 866 */ 867 public static void cacheResult( 868 java.util.List<com.liferay.portal.model.SystemEvent> systemEvents) { 869 getPersistence().cacheResult(systemEvents); 870 } 871 872 /** 873 * Creates a new system event with the primary key. Does not add the system event to the database. 874 * 875 * @param systemEventId the primary key for the new system event 876 * @return the new system event 877 */ 878 public static com.liferay.portal.model.SystemEvent create( 879 long systemEventId) { 880 return getPersistence().create(systemEventId); 881 } 882 883 /** 884 * Removes the system event with the primary key from the database. Also notifies the appropriate model listeners. 885 * 886 * @param systemEventId the primary key of the system event 887 * @return the system event that was removed 888 * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found 889 * @throws SystemException if a system exception occurred 890 */ 891 public static com.liferay.portal.model.SystemEvent remove( 892 long systemEventId) 893 throws com.liferay.portal.NoSuchSystemEventException, 894 com.liferay.portal.kernel.exception.SystemException { 895 return getPersistence().remove(systemEventId); 896 } 897 898 public static com.liferay.portal.model.SystemEvent updateImpl( 899 com.liferay.portal.model.SystemEvent systemEvent) 900 throws com.liferay.portal.kernel.exception.SystemException { 901 return getPersistence().updateImpl(systemEvent); 902 } 903 904 /** 905 * Returns the system event with the primary key or throws a {@link com.liferay.portal.NoSuchSystemEventException} if it could not be found. 906 * 907 * @param systemEventId the primary key of the system event 908 * @return the system event 909 * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found 910 * @throws SystemException if a system exception occurred 911 */ 912 public static com.liferay.portal.model.SystemEvent findByPrimaryKey( 913 long systemEventId) 914 throws com.liferay.portal.NoSuchSystemEventException, 915 com.liferay.portal.kernel.exception.SystemException { 916 return getPersistence().findByPrimaryKey(systemEventId); 917 } 918 919 /** 920 * Returns the system event with the primary key or returns <code>null</code> if it could not be found. 921 * 922 * @param systemEventId the primary key of the system event 923 * @return the system event, or <code>null</code> if a system event with the primary key could not be found 924 * @throws SystemException if a system exception occurred 925 */ 926 public static com.liferay.portal.model.SystemEvent fetchByPrimaryKey( 927 long systemEventId) 928 throws com.liferay.portal.kernel.exception.SystemException { 929 return getPersistence().fetchByPrimaryKey(systemEventId); 930 } 931 932 /** 933 * Returns all the system events. 934 * 935 * @return the system events 936 * @throws SystemException if a system exception occurred 937 */ 938 public static java.util.List<com.liferay.portal.model.SystemEvent> findAll() 939 throws com.liferay.portal.kernel.exception.SystemException { 940 return getPersistence().findAll(); 941 } 942 943 /** 944 * Returns a range of all the system events. 945 * 946 * <p> 947 * 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. 948 * </p> 949 * 950 * @param start the lower bound of the range of system events 951 * @param end the upper bound of the range of system events (not inclusive) 952 * @return the range of system events 953 * @throws SystemException if a system exception occurred 954 */ 955 public static java.util.List<com.liferay.portal.model.SystemEvent> findAll( 956 int start, int end) 957 throws com.liferay.portal.kernel.exception.SystemException { 958 return getPersistence().findAll(start, end); 959 } 960 961 /** 962 * Returns an ordered range of all the system events. 963 * 964 * <p> 965 * 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. 966 * </p> 967 * 968 * @param start the lower bound of the range of system events 969 * @param end the upper bound of the range of system events (not inclusive) 970 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 971 * @return the ordered range of system events 972 * @throws SystemException if a system exception occurred 973 */ 974 public static java.util.List<com.liferay.portal.model.SystemEvent> findAll( 975 int start, int end, 976 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 977 throws com.liferay.portal.kernel.exception.SystemException { 978 return getPersistence().findAll(start, end, orderByComparator); 979 } 980 981 /** 982 * Removes all the system events from the database. 983 * 984 * @throws SystemException if a system exception occurred 985 */ 986 public static void removeAll() 987 throws com.liferay.portal.kernel.exception.SystemException { 988 getPersistence().removeAll(); 989 } 990 991 /** 992 * Returns the number of system events. 993 * 994 * @return the number of system events 995 * @throws SystemException if a system exception occurred 996 */ 997 public static int countAll() 998 throws com.liferay.portal.kernel.exception.SystemException { 999 return getPersistence().countAll(); 1000 } 1001 1002 public static SystemEventPersistence getPersistence() { 1003 if (_persistence == null) { 1004 _persistence = (SystemEventPersistence)PortalBeanLocatorUtil.locate(SystemEventPersistence.class.getName()); 1005 1006 ReferenceRegistry.registerReference(SystemEventUtil.class, 1007 "_persistence"); 1008 } 1009 1010 return _persistence; 1011 } 1012 1013 /** 1014 * @deprecated As of 6.2.0 1015 */ 1016 public void setPersistence(SystemEventPersistence persistence) { 1017 } 1018 1019 private static SystemEventPersistence _persistence; 1020 }