001 /** 002 * Copyright (c) 2000-2010 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.portlet.calendar.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.service.ServiceContext; 022 023 import com.liferay.portlet.calendar.model.CalEvent; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the cal event service. This utility wraps {@link CalEventPersistenceImpl} 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 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 032 * </p> 033 * 034 * <p> 035 * Caching information and settings can be found in <code>portal.properties</code> 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see CalEventPersistence 040 * @see CalEventPersistenceImpl 041 * @generated 042 */ 043 public class CalEventUtil { 044 /** 045 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 046 */ 047 public static void clearCache() { 048 getPersistence().clearCache(); 049 } 050 051 /** 052 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 053 */ 054 public static void clearCache(CalEvent calEvent) { 055 getPersistence().clearCache(calEvent); 056 } 057 058 /** 059 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 060 */ 061 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 062 throws SystemException { 063 return getPersistence().countWithDynamicQuery(dynamicQuery); 064 } 065 066 /** 067 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 068 */ 069 public static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery) 070 throws SystemException { 071 return getPersistence().findWithDynamicQuery(dynamicQuery); 072 } 073 074 /** 075 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 076 */ 077 public static List<CalEvent> findWithDynamicQuery( 078 DynamicQuery dynamicQuery, int start, int end) 079 throws SystemException { 080 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 081 } 082 083 /** 084 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 085 */ 086 public static List<CalEvent> findWithDynamicQuery( 087 DynamicQuery dynamicQuery, int start, int end, 088 OrderByComparator orderByComparator) throws SystemException { 089 return getPersistence() 090 .findWithDynamicQuery(dynamicQuery, start, end, 091 orderByComparator); 092 } 093 094 /** 095 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 096 */ 097 public static CalEvent remove(CalEvent calEvent) throws SystemException { 098 return getPersistence().remove(calEvent); 099 } 100 101 /** 102 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 103 */ 104 public static CalEvent update(CalEvent calEvent, boolean merge) 105 throws SystemException { 106 return getPersistence().update(calEvent, merge); 107 } 108 109 /** 110 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 111 */ 112 public static CalEvent update(CalEvent calEvent, boolean merge, 113 ServiceContext serviceContext) throws SystemException { 114 return getPersistence().update(calEvent, merge, serviceContext); 115 } 116 117 /** 118 * Caches the cal event in the entity cache if it is enabled. 119 * 120 * @param calEvent the cal event to cache 121 */ 122 public static void cacheResult( 123 com.liferay.portlet.calendar.model.CalEvent calEvent) { 124 getPersistence().cacheResult(calEvent); 125 } 126 127 /** 128 * Caches the cal events in the entity cache if it is enabled. 129 * 130 * @param calEvents the cal events to cache 131 */ 132 public static void cacheResult( 133 java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents) { 134 getPersistence().cacheResult(calEvents); 135 } 136 137 /** 138 * Creates a new cal event with the primary key. Does not add the cal event to the database. 139 * 140 * @param eventId the primary key for the new cal event 141 * @return the new cal event 142 */ 143 public static com.liferay.portlet.calendar.model.CalEvent create( 144 long eventId) { 145 return getPersistence().create(eventId); 146 } 147 148 /** 149 * Removes the cal event with the primary key from the database. Also notifies the appropriate model listeners. 150 * 151 * @param eventId the primary key of the cal event to remove 152 * @return the cal event that was removed 153 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public static com.liferay.portlet.calendar.model.CalEvent remove( 157 long eventId) 158 throws com.liferay.portal.kernel.exception.SystemException, 159 com.liferay.portlet.calendar.NoSuchEventException { 160 return getPersistence().remove(eventId); 161 } 162 163 public static com.liferay.portlet.calendar.model.CalEvent updateImpl( 164 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getPersistence().updateImpl(calEvent, merge); 167 } 168 169 /** 170 * Finds the cal event with the primary key or throws a {@link com.liferay.portlet.calendar.NoSuchEventException} if it could not be found. 171 * 172 * @param eventId the primary key of the cal event to find 173 * @return the cal event 174 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey( 178 long eventId) 179 throws com.liferay.portal.kernel.exception.SystemException, 180 com.liferay.portlet.calendar.NoSuchEventException { 181 return getPersistence().findByPrimaryKey(eventId); 182 } 183 184 /** 185 * Finds the cal event with the primary key or returns <code>null</code> if it could not be found. 186 * 187 * @param eventId the primary key of the cal event to find 188 * @return the cal event, or <code>null</code> if a cal event with the primary key could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey( 192 long eventId) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByPrimaryKey(eventId); 195 } 196 197 /** 198 * Finds all the cal events where uuid = ?. 199 * 200 * @param uuid the uuid to search with 201 * @return the matching cal events 202 * @throws SystemException if a system exception occurred 203 */ 204 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid( 205 java.lang.String uuid) 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return getPersistence().findByUuid(uuid); 208 } 209 210 /** 211 * Finds a range of all the cal events where uuid = ?. 212 * 213 * <p> 214 * 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. 215 * </p> 216 * 217 * @param uuid the uuid to search with 218 * @param start the lower bound of the range of cal events to return 219 * @param end the upper bound of the range of cal events to return (not inclusive) 220 * @return the range of matching cal events 221 * @throws SystemException if a system exception occurred 222 */ 223 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid( 224 java.lang.String uuid, int start, int end) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().findByUuid(uuid, start, end); 227 } 228 229 /** 230 * Finds an ordered range of all the cal events where uuid = ?. 231 * 232 * <p> 233 * 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. 234 * </p> 235 * 236 * @param uuid the uuid to search with 237 * @param start the lower bound of the range of cal events to return 238 * @param end the upper bound of the range of cal events to return (not inclusive) 239 * @param orderByComparator the comparator to order the results by 240 * @return the ordered range of matching cal events 241 * @throws SystemException if a system exception occurred 242 */ 243 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid( 244 java.lang.String uuid, int start, int end, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException { 247 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 248 } 249 250 /** 251 * Finds the first cal event in the ordered set where uuid = ?. 252 * 253 * <p> 254 * 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. 255 * </p> 256 * 257 * @param uuid the uuid to search with 258 * @param orderByComparator the comparator to order the set by 259 * @return the first matching cal event 260 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 261 * @throws SystemException if a system exception occurred 262 */ 263 public static com.liferay.portlet.calendar.model.CalEvent findByUuid_First( 264 java.lang.String uuid, 265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 266 throws com.liferay.portal.kernel.exception.SystemException, 267 com.liferay.portlet.calendar.NoSuchEventException { 268 return getPersistence().findByUuid_First(uuid, orderByComparator); 269 } 270 271 /** 272 * Finds the last cal event in the ordered set where uuid = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param uuid the uuid to search with 279 * @param orderByComparator the comparator to order the set by 280 * @return the last matching cal event 281 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public static com.liferay.portlet.calendar.model.CalEvent findByUuid_Last( 285 java.lang.String uuid, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException, 288 com.liferay.portlet.calendar.NoSuchEventException { 289 return getPersistence().findByUuid_Last(uuid, orderByComparator); 290 } 291 292 /** 293 * Finds the cal events before and after the current cal event in the ordered set where uuid = ?. 294 * 295 * <p> 296 * 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. 297 * </p> 298 * 299 * @param eventId the primary key of the current cal event 300 * @param uuid the uuid to search with 301 * @param orderByComparator the comparator to order the set by 302 * @return the previous, current, and next cal event 303 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext( 307 long eventId, java.lang.String uuid, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException, 310 com.liferay.portlet.calendar.NoSuchEventException { 311 return getPersistence() 312 .findByUuid_PrevAndNext(eventId, uuid, orderByComparator); 313 } 314 315 /** 316 * Finds the cal event where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.calendar.NoSuchEventException} if it could not be found. 317 * 318 * @param uuid the uuid to search with 319 * @param groupId the group id to search with 320 * @return the matching cal event 321 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G( 325 java.lang.String uuid, long groupId) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.calendar.NoSuchEventException { 328 return getPersistence().findByUUID_G(uuid, groupId); 329 } 330 331 /** 332 * Finds the cal event where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 333 * 334 * @param uuid the uuid to search with 335 * @param groupId the group id to search with 336 * @return the matching cal event, or <code>null</code> if a matching cal event could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException { 342 return getPersistence().fetchByUUID_G(uuid, groupId); 343 } 344 345 /** 346 * Finds the cal event where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 347 * 348 * @param uuid the uuid to search with 349 * @param groupId the group id to search with 350 * @return the matching cal event, or <code>null</code> if a matching cal event could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G( 354 java.lang.String uuid, long groupId, boolean retrieveFromCache) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 357 } 358 359 /** 360 * Finds all the cal events where companyId = ?. 361 * 362 * @param companyId the company id to search with 363 * @return the matching cal events 364 * @throws SystemException if a system exception occurred 365 */ 366 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId( 367 long companyId) 368 throws com.liferay.portal.kernel.exception.SystemException { 369 return getPersistence().findByCompanyId(companyId); 370 } 371 372 /** 373 * Finds a range of all the cal events where companyId = ?. 374 * 375 * <p> 376 * 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. 377 * </p> 378 * 379 * @param companyId the company id to search with 380 * @param start the lower bound of the range of cal events to return 381 * @param end the upper bound of the range of cal events to return (not inclusive) 382 * @return the range of matching cal events 383 * @throws SystemException if a system exception occurred 384 */ 385 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId( 386 long companyId, int start, int end) 387 throws com.liferay.portal.kernel.exception.SystemException { 388 return getPersistence().findByCompanyId(companyId, start, end); 389 } 390 391 /** 392 * Finds an ordered range of all the cal events where companyId = ?. 393 * 394 * <p> 395 * 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. 396 * </p> 397 * 398 * @param companyId the company id to search with 399 * @param start the lower bound of the range of cal events to return 400 * @param end the upper bound of the range of cal events to return (not inclusive) 401 * @param orderByComparator the comparator to order the results by 402 * @return the ordered range of matching cal events 403 * @throws SystemException if a system exception occurred 404 */ 405 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId( 406 long companyId, int start, int end, 407 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 408 throws com.liferay.portal.kernel.exception.SystemException { 409 return getPersistence() 410 .findByCompanyId(companyId, start, end, orderByComparator); 411 } 412 413 /** 414 * Finds the first cal event in the ordered set where companyId = ?. 415 * 416 * <p> 417 * 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. 418 * </p> 419 * 420 * @param companyId the company id to search with 421 * @param orderByComparator the comparator to order the set by 422 * @return the first matching cal event 423 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First( 427 long companyId, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException, 430 com.liferay.portlet.calendar.NoSuchEventException { 431 return getPersistence() 432 .findByCompanyId_First(companyId, orderByComparator); 433 } 434 435 /** 436 * Finds the last cal event in the ordered set where companyId = ?. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param companyId the company id to search with 443 * @param orderByComparator the comparator to order the set by 444 * @return the last matching cal event 445 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last( 449 long companyId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.calendar.NoSuchEventException { 453 return getPersistence() 454 .findByCompanyId_Last(companyId, orderByComparator); 455 } 456 457 /** 458 * Finds the cal events before and after the current cal event in the ordered set where companyId = ?. 459 * 460 * <p> 461 * 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. 462 * </p> 463 * 464 * @param eventId the primary key of the current cal event 465 * @param companyId the company id to search with 466 * @param orderByComparator the comparator to order the set by 467 * @return the previous, current, and next cal event 468 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public static com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext( 472 long eventId, long companyId, 473 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 474 throws com.liferay.portal.kernel.exception.SystemException, 475 com.liferay.portlet.calendar.NoSuchEventException { 476 return getPersistence() 477 .findByCompanyId_PrevAndNext(eventId, companyId, 478 orderByComparator); 479 } 480 481 /** 482 * Finds all the cal events where groupId = ?. 483 * 484 * @param groupId the group id to search with 485 * @return the matching cal events 486 * @throws SystemException if a system exception occurred 487 */ 488 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId( 489 long groupId) 490 throws com.liferay.portal.kernel.exception.SystemException { 491 return getPersistence().findByGroupId(groupId); 492 } 493 494 /** 495 * Finds a range of all the cal events where groupId = ?. 496 * 497 * <p> 498 * 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. 499 * </p> 500 * 501 * @param groupId the group id to search with 502 * @param start the lower bound of the range of cal events to return 503 * @param end the upper bound of the range of cal events to return (not inclusive) 504 * @return the range of matching cal events 505 * @throws SystemException if a system exception occurred 506 */ 507 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId( 508 long groupId, int start, int end) 509 throws com.liferay.portal.kernel.exception.SystemException { 510 return getPersistence().findByGroupId(groupId, start, end); 511 } 512 513 /** 514 * Finds an ordered range of all the cal events where groupId = ?. 515 * 516 * <p> 517 * 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. 518 * </p> 519 * 520 * @param groupId the group id to search with 521 * @param start the lower bound of the range of cal events to return 522 * @param end the upper bound of the range of cal events to return (not inclusive) 523 * @param orderByComparator the comparator to order the results by 524 * @return the ordered range of matching cal events 525 * @throws SystemException if a system exception occurred 526 */ 527 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId( 528 long groupId, int start, int end, 529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 530 throws com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence() 532 .findByGroupId(groupId, start, end, orderByComparator); 533 } 534 535 /** 536 * Finds the first cal event in the ordered set where groupId = ?. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param groupId the group id to search with 543 * @param orderByComparator the comparator to order the set by 544 * @return the first matching cal event 545 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 546 * @throws SystemException if a system exception occurred 547 */ 548 public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First( 549 long groupId, 550 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 551 throws com.liferay.portal.kernel.exception.SystemException, 552 com.liferay.portlet.calendar.NoSuchEventException { 553 return getPersistence().findByGroupId_First(groupId, orderByComparator); 554 } 555 556 /** 557 * Finds the last cal event in the ordered set where groupId = ?. 558 * 559 * <p> 560 * 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. 561 * </p> 562 * 563 * @param groupId the group id to search with 564 * @param orderByComparator the comparator to order the set by 565 * @return the last matching cal event 566 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 567 * @throws SystemException if a system exception occurred 568 */ 569 public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last( 570 long groupId, 571 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 572 throws com.liferay.portal.kernel.exception.SystemException, 573 com.liferay.portlet.calendar.NoSuchEventException { 574 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 575 } 576 577 /** 578 * Finds the cal events before and after the current cal event in the ordered set where groupId = ?. 579 * 580 * <p> 581 * 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. 582 * </p> 583 * 584 * @param eventId the primary key of the current cal event 585 * @param groupId the group id to search with 586 * @param orderByComparator the comparator to order the set by 587 * @return the previous, current, and next cal event 588 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 589 * @throws SystemException if a system exception occurred 590 */ 591 public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext( 592 long eventId, long groupId, 593 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 594 throws com.liferay.portal.kernel.exception.SystemException, 595 com.liferay.portlet.calendar.NoSuchEventException { 596 return getPersistence() 597 .findByGroupId_PrevAndNext(eventId, groupId, 598 orderByComparator); 599 } 600 601 /** 602 * Filters by the user's permissions and finds all the cal events where groupId = ?. 603 * 604 * @param groupId the group id to search with 605 * @return the matching cal events that the user has permission to view 606 * @throws SystemException if a system exception occurred 607 */ 608 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId( 609 long groupId) 610 throws com.liferay.portal.kernel.exception.SystemException { 611 return getPersistence().filterFindByGroupId(groupId); 612 } 613 614 /** 615 * Filters by the user's permissions and finds a range of all the cal events where groupId = ?. 616 * 617 * <p> 618 * 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. 619 * </p> 620 * 621 * @param groupId the group id to search with 622 * @param start the lower bound of the range of cal events to return 623 * @param end the upper bound of the range of cal events to return (not inclusive) 624 * @return the range of matching cal events that the user has permission to view 625 * @throws SystemException if a system exception occurred 626 */ 627 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId( 628 long groupId, int start, int end) 629 throws com.liferay.portal.kernel.exception.SystemException { 630 return getPersistence().filterFindByGroupId(groupId, start, end); 631 } 632 633 /** 634 * Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ?. 635 * 636 * <p> 637 * 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. 638 * </p> 639 * 640 * @param groupId the group id to search with 641 * @param start the lower bound of the range of cal events to return 642 * @param end the upper bound of the range of cal events to return (not inclusive) 643 * @param orderByComparator the comparator to order the results by 644 * @return the ordered range of matching cal events that the user has permission to view 645 * @throws SystemException if a system exception occurred 646 */ 647 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId( 648 long groupId, int start, int end, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException { 651 return getPersistence() 652 .filterFindByGroupId(groupId, start, end, orderByComparator); 653 } 654 655 /** 656 * Finds all the cal events where remindBy ≠ ?. 657 * 658 * @param remindBy the remind by to search with 659 * @return the matching cal events 660 * @throws SystemException if a system exception occurred 661 */ 662 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy( 663 int remindBy) 664 throws com.liferay.portal.kernel.exception.SystemException { 665 return getPersistence().findByNotRemindBy(remindBy); 666 } 667 668 /** 669 * Finds a range of all the cal events where remindBy ≠ ?. 670 * 671 * <p> 672 * 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. 673 * </p> 674 * 675 * @param remindBy the remind by to search with 676 * @param start the lower bound of the range of cal events to return 677 * @param end the upper bound of the range of cal events to return (not inclusive) 678 * @return the range of matching cal events 679 * @throws SystemException if a system exception occurred 680 */ 681 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy( 682 int remindBy, int start, int end) 683 throws com.liferay.portal.kernel.exception.SystemException { 684 return getPersistence().findByNotRemindBy(remindBy, start, end); 685 } 686 687 /** 688 * Finds an ordered range of all the cal events where remindBy ≠ ?. 689 * 690 * <p> 691 * 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. 692 * </p> 693 * 694 * @param remindBy the remind by to search with 695 * @param start the lower bound of the range of cal events to return 696 * @param end the upper bound of the range of cal events to return (not inclusive) 697 * @param orderByComparator the comparator to order the results by 698 * @return the ordered range of matching cal events 699 * @throws SystemException if a system exception occurred 700 */ 701 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy( 702 int remindBy, int start, int end, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence() 706 .findByNotRemindBy(remindBy, start, end, orderByComparator); 707 } 708 709 /** 710 * Finds the first cal event in the ordered set where remindBy ≠ ?. 711 * 712 * <p> 713 * 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. 714 * </p> 715 * 716 * @param remindBy the remind by to search with 717 * @param orderByComparator the comparator to order the set by 718 * @return the first matching cal event 719 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 720 * @throws SystemException if a system exception occurred 721 */ 722 public static com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_First( 723 int remindBy, 724 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 725 throws com.liferay.portal.kernel.exception.SystemException, 726 com.liferay.portlet.calendar.NoSuchEventException { 727 return getPersistence() 728 .findByNotRemindBy_First(remindBy, orderByComparator); 729 } 730 731 /** 732 * Finds the last cal event in the ordered set where remindBy ≠ ?. 733 * 734 * <p> 735 * 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. 736 * </p> 737 * 738 * @param remindBy the remind by to search with 739 * @param orderByComparator the comparator to order the set by 740 * @return the last matching cal event 741 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 742 * @throws SystemException if a system exception occurred 743 */ 744 public static com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_Last( 745 int remindBy, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.kernel.exception.SystemException, 748 com.liferay.portlet.calendar.NoSuchEventException { 749 return getPersistence() 750 .findByNotRemindBy_Last(remindBy, orderByComparator); 751 } 752 753 /** 754 * Finds the cal events before and after the current cal event in the ordered set where remindBy ≠ ?. 755 * 756 * <p> 757 * 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. 758 * </p> 759 * 760 * @param eventId the primary key of the current cal event 761 * @param remindBy the remind by to search with 762 * @param orderByComparator the comparator to order the set by 763 * @return the previous, current, and next cal event 764 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 765 * @throws SystemException if a system exception occurred 766 */ 767 public static com.liferay.portlet.calendar.model.CalEvent[] findByNotRemindBy_PrevAndNext( 768 long eventId, int remindBy, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.kernel.exception.SystemException, 771 com.liferay.portlet.calendar.NoSuchEventException { 772 return getPersistence() 773 .findByNotRemindBy_PrevAndNext(eventId, remindBy, 774 orderByComparator); 775 } 776 777 /** 778 * Finds all the cal events where groupId = ? and type = ?. 779 * 780 * @param groupId the group id to search with 781 * @param type the type to search with 782 * @return the matching cal events 783 * @throws SystemException if a system exception occurred 784 */ 785 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T( 786 long groupId, java.lang.String type) 787 throws com.liferay.portal.kernel.exception.SystemException { 788 return getPersistence().findByG_T(groupId, type); 789 } 790 791 /** 792 * Finds a range of all the cal events where groupId = ? and type = ?. 793 * 794 * <p> 795 * 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. 796 * </p> 797 * 798 * @param groupId the group id to search with 799 * @param type the type to search with 800 * @param start the lower bound of the range of cal events to return 801 * @param end the upper bound of the range of cal events to return (not inclusive) 802 * @return the range of matching cal events 803 * @throws SystemException if a system exception occurred 804 */ 805 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T( 806 long groupId, java.lang.String type, int start, int end) 807 throws com.liferay.portal.kernel.exception.SystemException { 808 return getPersistence().findByG_T(groupId, type, start, end); 809 } 810 811 /** 812 * Finds an ordered range of all the cal events where groupId = ? and type = ?. 813 * 814 * <p> 815 * 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. 816 * </p> 817 * 818 * @param groupId the group id to search with 819 * @param type the type to search with 820 * @param start the lower bound of the range of cal events to return 821 * @param end the upper bound of the range of cal events to return (not inclusive) 822 * @param orderByComparator the comparator to order the results by 823 * @return the ordered range of matching cal events 824 * @throws SystemException if a system exception occurred 825 */ 826 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T( 827 long groupId, java.lang.String type, int start, int end, 828 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 829 throws com.liferay.portal.kernel.exception.SystemException { 830 return getPersistence() 831 .findByG_T(groupId, type, start, end, orderByComparator); 832 } 833 834 /** 835 * Finds the first cal event in the ordered set where groupId = ? and type = ?. 836 * 837 * <p> 838 * 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. 839 * </p> 840 * 841 * @param groupId the group id to search with 842 * @param type the type to search with 843 * @param orderByComparator the comparator to order the set by 844 * @return the first matching cal event 845 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 846 * @throws SystemException if a system exception occurred 847 */ 848 public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First( 849 long groupId, java.lang.String type, 850 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 851 throws com.liferay.portal.kernel.exception.SystemException, 852 com.liferay.portlet.calendar.NoSuchEventException { 853 return getPersistence().findByG_T_First(groupId, type, orderByComparator); 854 } 855 856 /** 857 * Finds the last cal event in the ordered set where groupId = ? and type = ?. 858 * 859 * <p> 860 * 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. 861 * </p> 862 * 863 * @param groupId the group id to search with 864 * @param type the type to search with 865 * @param orderByComparator the comparator to order the set by 866 * @return the last matching cal event 867 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 868 * @throws SystemException if a system exception occurred 869 */ 870 public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last( 871 long groupId, java.lang.String type, 872 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 873 throws com.liferay.portal.kernel.exception.SystemException, 874 com.liferay.portlet.calendar.NoSuchEventException { 875 return getPersistence().findByG_T_Last(groupId, type, orderByComparator); 876 } 877 878 /** 879 * Finds the cal events before and after the current cal event in the ordered set where groupId = ? and type = ?. 880 * 881 * <p> 882 * 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. 883 * </p> 884 * 885 * @param eventId the primary key of the current cal event 886 * @param groupId the group id to search with 887 * @param type the type to search with 888 * @param orderByComparator the comparator to order the set by 889 * @return the previous, current, and next cal event 890 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 891 * @throws SystemException if a system exception occurred 892 */ 893 public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext( 894 long eventId, long groupId, java.lang.String type, 895 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 896 throws com.liferay.portal.kernel.exception.SystemException, 897 com.liferay.portlet.calendar.NoSuchEventException { 898 return getPersistence() 899 .findByG_T_PrevAndNext(eventId, groupId, type, 900 orderByComparator); 901 } 902 903 /** 904 * Filters by the user's permissions and finds all the cal events where groupId = ? and type = ?. 905 * 906 * @param groupId the group id to search with 907 * @param type the type to search with 908 * @return the matching cal events that the user has permission to view 909 * @throws SystemException if a system exception occurred 910 */ 911 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T( 912 long groupId, java.lang.String type) 913 throws com.liferay.portal.kernel.exception.SystemException { 914 return getPersistence().filterFindByG_T(groupId, type); 915 } 916 917 /** 918 * Filters by the user's permissions and finds a range of all the cal events where groupId = ? and type = ?. 919 * 920 * <p> 921 * 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. 922 * </p> 923 * 924 * @param groupId the group id to search with 925 * @param type the type to search with 926 * @param start the lower bound of the range of cal events to return 927 * @param end the upper bound of the range of cal events to return (not inclusive) 928 * @return the range of matching cal events that the user has permission to view 929 * @throws SystemException if a system exception occurred 930 */ 931 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T( 932 long groupId, java.lang.String type, int start, int end) 933 throws com.liferay.portal.kernel.exception.SystemException { 934 return getPersistence().filterFindByG_T(groupId, type, start, end); 935 } 936 937 /** 938 * Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and type = ?. 939 * 940 * <p> 941 * 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. 942 * </p> 943 * 944 * @param groupId the group id to search with 945 * @param type the type to search with 946 * @param start the lower bound of the range of cal events to return 947 * @param end the upper bound of the range of cal events to return (not inclusive) 948 * @param orderByComparator the comparator to order the results by 949 * @return the ordered range of matching cal events that the user has permission to view 950 * @throws SystemException if a system exception occurred 951 */ 952 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T( 953 long groupId, java.lang.String type, int start, int end, 954 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 955 throws com.liferay.portal.kernel.exception.SystemException { 956 return getPersistence() 957 .filterFindByG_T(groupId, type, start, end, orderByComparator); 958 } 959 960 /** 961 * Finds all the cal events where groupId = ? and repeating = ?. 962 * 963 * @param groupId the group id to search with 964 * @param repeating the repeating to search with 965 * @return the matching cal events 966 * @throws SystemException if a system exception occurred 967 */ 968 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R( 969 long groupId, boolean repeating) 970 throws com.liferay.portal.kernel.exception.SystemException { 971 return getPersistence().findByG_R(groupId, repeating); 972 } 973 974 /** 975 * Finds a range of all the cal events where groupId = ? and repeating = ?. 976 * 977 * <p> 978 * 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. 979 * </p> 980 * 981 * @param groupId the group id to search with 982 * @param repeating the repeating to search with 983 * @param start the lower bound of the range of cal events to return 984 * @param end the upper bound of the range of cal events to return (not inclusive) 985 * @return the range of matching cal events 986 * @throws SystemException if a system exception occurred 987 */ 988 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R( 989 long groupId, boolean repeating, int start, int end) 990 throws com.liferay.portal.kernel.exception.SystemException { 991 return getPersistence().findByG_R(groupId, repeating, start, end); 992 } 993 994 /** 995 * Finds an ordered range of all the cal events where groupId = ? and repeating = ?. 996 * 997 * <p> 998 * 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. 999 * </p> 1000 * 1001 * @param groupId the group id to search with 1002 * @param repeating the repeating to search with 1003 * @param start the lower bound of the range of cal events to return 1004 * @param end the upper bound of the range of cal events to return (not inclusive) 1005 * @param orderByComparator the comparator to order the results by 1006 * @return the ordered range of matching cal events 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R( 1010 long groupId, boolean repeating, int start, int end, 1011 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1012 throws com.liferay.portal.kernel.exception.SystemException { 1013 return getPersistence() 1014 .findByG_R(groupId, repeating, start, end, orderByComparator); 1015 } 1016 1017 /** 1018 * Finds the first cal event in the ordered set where groupId = ? and repeating = ?. 1019 * 1020 * <p> 1021 * 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. 1022 * </p> 1023 * 1024 * @param groupId the group id to search with 1025 * @param repeating the repeating to search with 1026 * @param orderByComparator the comparator to order the set by 1027 * @return the first matching cal event 1028 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First( 1032 long groupId, boolean repeating, 1033 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1034 throws com.liferay.portal.kernel.exception.SystemException, 1035 com.liferay.portlet.calendar.NoSuchEventException { 1036 return getPersistence() 1037 .findByG_R_First(groupId, repeating, orderByComparator); 1038 } 1039 1040 /** 1041 * Finds the last cal event in the ordered set where groupId = ? and repeating = ?. 1042 * 1043 * <p> 1044 * 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. 1045 * </p> 1046 * 1047 * @param groupId the group id to search with 1048 * @param repeating the repeating to search with 1049 * @param orderByComparator the comparator to order the set by 1050 * @return the last matching cal event 1051 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 1052 * @throws SystemException if a system exception occurred 1053 */ 1054 public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last( 1055 long groupId, boolean repeating, 1056 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1057 throws com.liferay.portal.kernel.exception.SystemException, 1058 com.liferay.portlet.calendar.NoSuchEventException { 1059 return getPersistence() 1060 .findByG_R_Last(groupId, repeating, orderByComparator); 1061 } 1062 1063 /** 1064 * Finds the cal events before and after the current cal event in the ordered set where groupId = ? and repeating = ?. 1065 * 1066 * <p> 1067 * 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. 1068 * </p> 1069 * 1070 * @param eventId the primary key of the current cal event 1071 * @param groupId the group id to search with 1072 * @param repeating the repeating to search with 1073 * @param orderByComparator the comparator to order the set by 1074 * @return the previous, current, and next cal event 1075 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext( 1079 long eventId, long groupId, boolean repeating, 1080 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1081 throws com.liferay.portal.kernel.exception.SystemException, 1082 com.liferay.portlet.calendar.NoSuchEventException { 1083 return getPersistence() 1084 .findByG_R_PrevAndNext(eventId, groupId, repeating, 1085 orderByComparator); 1086 } 1087 1088 /** 1089 * Filters by the user's permissions and finds all the cal events where groupId = ? and repeating = ?. 1090 * 1091 * @param groupId the group id to search with 1092 * @param repeating the repeating to search with 1093 * @return the matching cal events that the user has permission to view 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R( 1097 long groupId, boolean repeating) 1098 throws com.liferay.portal.kernel.exception.SystemException { 1099 return getPersistence().filterFindByG_R(groupId, repeating); 1100 } 1101 1102 /** 1103 * Filters by the user's permissions and finds a range of all the cal events where groupId = ? and repeating = ?. 1104 * 1105 * <p> 1106 * 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. 1107 * </p> 1108 * 1109 * @param groupId the group id to search with 1110 * @param repeating the repeating to search with 1111 * @param start the lower bound of the range of cal events to return 1112 * @param end the upper bound of the range of cal events to return (not inclusive) 1113 * @return the range of matching cal events that the user has permission to view 1114 * @throws SystemException if a system exception occurred 1115 */ 1116 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R( 1117 long groupId, boolean repeating, int start, int end) 1118 throws com.liferay.portal.kernel.exception.SystemException { 1119 return getPersistence().filterFindByG_R(groupId, repeating, start, end); 1120 } 1121 1122 /** 1123 * Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and repeating = ?. 1124 * 1125 * <p> 1126 * 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. 1127 * </p> 1128 * 1129 * @param groupId the group id to search with 1130 * @param repeating the repeating to search with 1131 * @param start the lower bound of the range of cal events to return 1132 * @param end the upper bound of the range of cal events to return (not inclusive) 1133 * @param orderByComparator the comparator to order the results by 1134 * @return the ordered range of matching cal events that the user has permission to view 1135 * @throws SystemException if a system exception occurred 1136 */ 1137 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R( 1138 long groupId, boolean repeating, int start, int end, 1139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1140 throws com.liferay.portal.kernel.exception.SystemException { 1141 return getPersistence() 1142 .filterFindByG_R(groupId, repeating, start, end, 1143 orderByComparator); 1144 } 1145 1146 /** 1147 * Finds all the cal events. 1148 * 1149 * @return the cal events 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll() 1153 throws com.liferay.portal.kernel.exception.SystemException { 1154 return getPersistence().findAll(); 1155 } 1156 1157 /** 1158 * Finds a range of all the cal events. 1159 * 1160 * <p> 1161 * 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. 1162 * </p> 1163 * 1164 * @param start the lower bound of the range of cal events to return 1165 * @param end the upper bound of the range of cal events to return (not inclusive) 1166 * @return the range of cal events 1167 * @throws SystemException if a system exception occurred 1168 */ 1169 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll( 1170 int start, int end) 1171 throws com.liferay.portal.kernel.exception.SystemException { 1172 return getPersistence().findAll(start, end); 1173 } 1174 1175 /** 1176 * Finds an ordered range of all the cal events. 1177 * 1178 * <p> 1179 * 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. 1180 * </p> 1181 * 1182 * @param start the lower bound of the range of cal events to return 1183 * @param end the upper bound of the range of cal events to return (not inclusive) 1184 * @param orderByComparator the comparator to order the results by 1185 * @return the ordered range of cal events 1186 * @throws SystemException if a system exception occurred 1187 */ 1188 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll( 1189 int start, int end, 1190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1191 throws com.liferay.portal.kernel.exception.SystemException { 1192 return getPersistence().findAll(start, end, orderByComparator); 1193 } 1194 1195 /** 1196 * Removes all the cal events where uuid = ? from the database. 1197 * 1198 * @param uuid the uuid to search with 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public static void removeByUuid(java.lang.String uuid) 1202 throws com.liferay.portal.kernel.exception.SystemException { 1203 getPersistence().removeByUuid(uuid); 1204 } 1205 1206 /** 1207 * Removes the cal event where uuid = ? and groupId = ? from the database. 1208 * 1209 * @param uuid the uuid to search with 1210 * @param groupId the group id to search with 1211 * @throws SystemException if a system exception occurred 1212 */ 1213 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1214 throws com.liferay.portal.kernel.exception.SystemException, 1215 com.liferay.portlet.calendar.NoSuchEventException { 1216 getPersistence().removeByUUID_G(uuid, groupId); 1217 } 1218 1219 /** 1220 * Removes all the cal events where companyId = ? from the database. 1221 * 1222 * @param companyId the company id to search with 1223 * @throws SystemException if a system exception occurred 1224 */ 1225 public static void removeByCompanyId(long companyId) 1226 throws com.liferay.portal.kernel.exception.SystemException { 1227 getPersistence().removeByCompanyId(companyId); 1228 } 1229 1230 /** 1231 * Removes all the cal events where groupId = ? from the database. 1232 * 1233 * @param groupId the group id to search with 1234 * @throws SystemException if a system exception occurred 1235 */ 1236 public static void removeByGroupId(long groupId) 1237 throws com.liferay.portal.kernel.exception.SystemException { 1238 getPersistence().removeByGroupId(groupId); 1239 } 1240 1241 /** 1242 * Removes all the cal events where remindBy ≠ ? from the database. 1243 * 1244 * @param remindBy the remind by to search with 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public static void removeByNotRemindBy(int remindBy) 1248 throws com.liferay.portal.kernel.exception.SystemException { 1249 getPersistence().removeByNotRemindBy(remindBy); 1250 } 1251 1252 /** 1253 * Removes all the cal events where groupId = ? and type = ? from the database. 1254 * 1255 * @param groupId the group id to search with 1256 * @param type the type to search with 1257 * @throws SystemException if a system exception occurred 1258 */ 1259 public static void removeByG_T(long groupId, java.lang.String type) 1260 throws com.liferay.portal.kernel.exception.SystemException { 1261 getPersistence().removeByG_T(groupId, type); 1262 } 1263 1264 /** 1265 * Removes all the cal events where groupId = ? and repeating = ? from the database. 1266 * 1267 * @param groupId the group id to search with 1268 * @param repeating the repeating to search with 1269 * @throws SystemException if a system exception occurred 1270 */ 1271 public static void removeByG_R(long groupId, boolean repeating) 1272 throws com.liferay.portal.kernel.exception.SystemException { 1273 getPersistence().removeByG_R(groupId, repeating); 1274 } 1275 1276 /** 1277 * Removes all the cal events from the database. 1278 * 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public static void removeAll() 1282 throws com.liferay.portal.kernel.exception.SystemException { 1283 getPersistence().removeAll(); 1284 } 1285 1286 /** 1287 * Counts all the cal events where uuid = ?. 1288 * 1289 * @param uuid the uuid to search with 1290 * @return the number of matching cal events 1291 * @throws SystemException if a system exception occurred 1292 */ 1293 public static int countByUuid(java.lang.String uuid) 1294 throws com.liferay.portal.kernel.exception.SystemException { 1295 return getPersistence().countByUuid(uuid); 1296 } 1297 1298 /** 1299 * Counts all the cal events where uuid = ? and groupId = ?. 1300 * 1301 * @param uuid the uuid to search with 1302 * @param groupId the group id to search with 1303 * @return the number of matching cal events 1304 * @throws SystemException if a system exception occurred 1305 */ 1306 public static int countByUUID_G(java.lang.String uuid, long groupId) 1307 throws com.liferay.portal.kernel.exception.SystemException { 1308 return getPersistence().countByUUID_G(uuid, groupId); 1309 } 1310 1311 /** 1312 * Counts all the cal events where companyId = ?. 1313 * 1314 * @param companyId the company id to search with 1315 * @return the number of matching cal events 1316 * @throws SystemException if a system exception occurred 1317 */ 1318 public static int countByCompanyId(long companyId) 1319 throws com.liferay.portal.kernel.exception.SystemException { 1320 return getPersistence().countByCompanyId(companyId); 1321 } 1322 1323 /** 1324 * Counts all the cal events where groupId = ?. 1325 * 1326 * @param groupId the group id to search with 1327 * @return the number of matching cal events 1328 * @throws SystemException if a system exception occurred 1329 */ 1330 public static int countByGroupId(long groupId) 1331 throws com.liferay.portal.kernel.exception.SystemException { 1332 return getPersistence().countByGroupId(groupId); 1333 } 1334 1335 /** 1336 * Filters by the user's permissions and counts all the cal events where groupId = ?. 1337 * 1338 * @param groupId the group id to search with 1339 * @return the number of matching cal events that the user has permission to view 1340 * @throws SystemException if a system exception occurred 1341 */ 1342 public static int filterCountByGroupId(long groupId) 1343 throws com.liferay.portal.kernel.exception.SystemException { 1344 return getPersistence().filterCountByGroupId(groupId); 1345 } 1346 1347 /** 1348 * Counts all the cal events where remindBy ≠ ?. 1349 * 1350 * @param remindBy the remind by to search with 1351 * @return the number of matching cal events 1352 * @throws SystemException if a system exception occurred 1353 */ 1354 public static int countByNotRemindBy(int remindBy) 1355 throws com.liferay.portal.kernel.exception.SystemException { 1356 return getPersistence().countByNotRemindBy(remindBy); 1357 } 1358 1359 /** 1360 * Counts all the cal events where groupId = ? and type = ?. 1361 * 1362 * @param groupId the group id to search with 1363 * @param type the type to search with 1364 * @return the number of matching cal events 1365 * @throws SystemException if a system exception occurred 1366 */ 1367 public static int countByG_T(long groupId, java.lang.String type) 1368 throws com.liferay.portal.kernel.exception.SystemException { 1369 return getPersistence().countByG_T(groupId, type); 1370 } 1371 1372 /** 1373 * Filters by the user's permissions and counts all the cal events where groupId = ? and type = ?. 1374 * 1375 * @param groupId the group id to search with 1376 * @param type the type to search with 1377 * @return the number of matching cal events that the user has permission to view 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public static int filterCountByG_T(long groupId, java.lang.String type) 1381 throws com.liferay.portal.kernel.exception.SystemException { 1382 return getPersistence().filterCountByG_T(groupId, type); 1383 } 1384 1385 /** 1386 * Counts all the cal events where groupId = ? and repeating = ?. 1387 * 1388 * @param groupId the group id to search with 1389 * @param repeating the repeating to search with 1390 * @return the number of matching cal events 1391 * @throws SystemException if a system exception occurred 1392 */ 1393 public static int countByG_R(long groupId, boolean repeating) 1394 throws com.liferay.portal.kernel.exception.SystemException { 1395 return getPersistence().countByG_R(groupId, repeating); 1396 } 1397 1398 /** 1399 * Filters by the user's permissions and counts all the cal events where groupId = ? and repeating = ?. 1400 * 1401 * @param groupId the group id to search with 1402 * @param repeating the repeating to search with 1403 * @return the number of matching cal events that the user has permission to view 1404 * @throws SystemException if a system exception occurred 1405 */ 1406 public static int filterCountByG_R(long groupId, boolean repeating) 1407 throws com.liferay.portal.kernel.exception.SystemException { 1408 return getPersistence().filterCountByG_R(groupId, repeating); 1409 } 1410 1411 /** 1412 * Counts all the cal events. 1413 * 1414 * @return the number of cal events 1415 * @throws SystemException if a system exception occurred 1416 */ 1417 public static int countAll() 1418 throws com.liferay.portal.kernel.exception.SystemException { 1419 return getPersistence().countAll(); 1420 } 1421 1422 public static CalEventPersistence getPersistence() { 1423 if (_persistence == null) { 1424 _persistence = (CalEventPersistence)PortalBeanLocatorUtil.locate(CalEventPersistence.class.getName()); 1425 } 1426 1427 return _persistence; 1428 } 1429 1430 public void setPersistence(CalEventPersistence persistence) { 1431 _persistence = persistence; 1432 } 1433 1434 private static CalEventPersistence _persistence; 1435 }