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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.calendar.model.CalEvent; 020 021 /** 022 * The persistence interface for the cal event service. 023 * 024 * <p> 025 * Never modify or reference this interface directly. Always use {@link CalEventUtil} to access the cal event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see CalEventPersistenceImpl 034 * @see CalEventUtil 035 * @generated 036 */ 037 public interface CalEventPersistence extends BasePersistence<CalEvent> { 038 /** 039 * Caches the cal event in the entity cache if it is enabled. 040 * 041 * @param calEvent the cal event to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.calendar.model.CalEvent calEvent); 045 046 /** 047 * Caches the cal events in the entity cache if it is enabled. 048 * 049 * @param calEvents the cal events to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents); 053 054 /** 055 * Creates a new cal event with the primary key. Does not add the cal event to the database. 056 * 057 * @param eventId the primary key for the new cal event 058 * @return the new cal event 059 */ 060 public com.liferay.portlet.calendar.model.CalEvent create(long eventId); 061 062 /** 063 * Removes the cal event with the primary key from the database. Also notifies the appropriate model listeners. 064 * 065 * @param eventId the primary key of the cal event to remove 066 * @return the cal event that was removed 067 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 068 * @throws SystemException if a system exception occurred 069 */ 070 public com.liferay.portlet.calendar.model.CalEvent remove(long eventId) 071 throws com.liferay.portal.kernel.exception.SystemException, 072 com.liferay.portlet.calendar.NoSuchEventException; 073 074 public com.liferay.portlet.calendar.model.CalEvent updateImpl( 075 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge) 076 throws com.liferay.portal.kernel.exception.SystemException; 077 078 /** 079 * Finds the cal event with the primary key or throws a {@link com.liferay.portlet.calendar.NoSuchEventException} if it could not be found. 080 * 081 * @param eventId the primary key of the cal event to find 082 * @return the cal event 083 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 084 * @throws SystemException if a system exception occurred 085 */ 086 public com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey( 087 long eventId) 088 throws com.liferay.portal.kernel.exception.SystemException, 089 com.liferay.portlet.calendar.NoSuchEventException; 090 091 /** 092 * Finds the cal event with the primary key or returns <code>null</code> if it could not be found. 093 * 094 * @param eventId the primary key of the cal event to find 095 * @return the cal event, or <code>null</code> if a cal event with the primary key could not be found 096 * @throws SystemException if a system exception occurred 097 */ 098 public com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey( 099 long eventId) 100 throws com.liferay.portal.kernel.exception.SystemException; 101 102 /** 103 * Finds all the cal events where uuid = ?. 104 * 105 * @param uuid the uuid to search with 106 * @return the matching cal events 107 * @throws SystemException if a system exception occurred 108 */ 109 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid( 110 java.lang.String uuid) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Finds a range of all the cal events where uuid = ?. 115 * 116 * <p> 117 * 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. 118 * </p> 119 * 120 * @param uuid the uuid to search with 121 * @param start the lower bound of the range of cal events to return 122 * @param end the upper bound of the range of cal events to return (not inclusive) 123 * @return the range of matching cal events 124 * @throws SystemException if a system exception occurred 125 */ 126 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid( 127 java.lang.String uuid, int start, int end) 128 throws com.liferay.portal.kernel.exception.SystemException; 129 130 /** 131 * Finds an ordered range of all the cal events where uuid = ?. 132 * 133 * <p> 134 * 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. 135 * </p> 136 * 137 * @param uuid the uuid to search with 138 * @param start the lower bound of the range of cal events to return 139 * @param end the upper bound of the range of cal events to return (not inclusive) 140 * @param orderByComparator the comparator to order the results by 141 * @return the ordered range of matching cal events 142 * @throws SystemException if a system exception occurred 143 */ 144 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid( 145 java.lang.String uuid, int start, int end, 146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 147 throws com.liferay.portal.kernel.exception.SystemException; 148 149 /** 150 * Finds the first cal event in the ordered set where uuid = ?. 151 * 152 * <p> 153 * 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. 154 * </p> 155 * 156 * @param uuid the uuid to search with 157 * @param orderByComparator the comparator to order the set by 158 * @return the first matching cal event 159 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.calendar.model.CalEvent findByUuid_First( 163 java.lang.String uuid, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.calendar.NoSuchEventException; 167 168 /** 169 * Finds the last cal event in the ordered set where uuid = ?. 170 * 171 * <p> 172 * 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. 173 * </p> 174 * 175 * @param uuid the uuid to search with 176 * @param orderByComparator the comparator to order the set by 177 * @return the last matching cal event 178 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 179 * @throws SystemException if a system exception occurred 180 */ 181 public com.liferay.portlet.calendar.model.CalEvent findByUuid_Last( 182 java.lang.String uuid, 183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.calendar.NoSuchEventException; 186 187 /** 188 * Finds the cal events before and after the current cal event in the ordered set where uuid = ?. 189 * 190 * <p> 191 * 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. 192 * </p> 193 * 194 * @param eventId the primary key of the current cal event 195 * @param uuid the uuid to search with 196 * @param orderByComparator the comparator to order the set by 197 * @return the previous, current, and next cal event 198 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext( 202 long eventId, java.lang.String uuid, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException, 205 com.liferay.portlet.calendar.NoSuchEventException; 206 207 /** 208 * Finds the cal event where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.calendar.NoSuchEventException} if it could not be found. 209 * 210 * @param uuid the uuid to search with 211 * @param groupId the group id to search with 212 * @return the matching cal event 213 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.calendar.model.CalEvent findByUUID_G( 217 java.lang.String uuid, long groupId) 218 throws com.liferay.portal.kernel.exception.SystemException, 219 com.liferay.portlet.calendar.NoSuchEventException; 220 221 /** 222 * Finds the cal event where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 223 * 224 * @param uuid the uuid to search with 225 * @param groupId the group id to search with 226 * @return the matching cal event, or <code>null</code> if a matching cal event could not be found 227 * @throws SystemException if a system exception occurred 228 */ 229 public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G( 230 java.lang.String uuid, long groupId) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds the cal event where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 235 * 236 * @param uuid the uuid to search with 237 * @param groupId the group id to search with 238 * @return the matching cal event, or <code>null</code> if a matching cal event could not be found 239 * @throws SystemException if a system exception occurred 240 */ 241 public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G( 242 java.lang.String uuid, long groupId, boolean retrieveFromCache) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Finds all the cal events where companyId = ?. 247 * 248 * @param companyId the company id to search with 249 * @return the matching cal events 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId( 253 long companyId) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Finds a range of all the cal events where companyId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param companyId the company id to search with 264 * @param start the lower bound of the range of cal events to return 265 * @param end the upper bound of the range of cal events to return (not inclusive) 266 * @return the range of matching cal events 267 * @throws SystemException if a system exception occurred 268 */ 269 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId( 270 long companyId, int start, int end) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Finds an ordered range of all the cal events where companyId = ?. 275 * 276 * <p> 277 * 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. 278 * </p> 279 * 280 * @param companyId the company id to search with 281 * @param start the lower bound of the range of cal events to return 282 * @param end the upper bound of the range of cal events to return (not inclusive) 283 * @param orderByComparator the comparator to order the results by 284 * @return the ordered range of matching cal events 285 * @throws SystemException if a system exception occurred 286 */ 287 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId( 288 long companyId, int start, int end, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.kernel.exception.SystemException; 291 292 /** 293 * Finds the first cal event in the ordered set where companyId = ?. 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 companyId the company id to search with 300 * @param orderByComparator the comparator to order the set by 301 * @return the first matching cal event 302 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 303 * @throws SystemException if a system exception occurred 304 */ 305 public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First( 306 long companyId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException, 309 com.liferay.portlet.calendar.NoSuchEventException; 310 311 /** 312 * Finds the last cal event in the ordered set where companyId = ?. 313 * 314 * <p> 315 * 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. 316 * </p> 317 * 318 * @param companyId the company id to search with 319 * @param orderByComparator the comparator to order the set by 320 * @return the last 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 com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last( 325 long companyId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.calendar.NoSuchEventException; 329 330 /** 331 * Finds the cal events before and after the current cal event in the ordered set where companyId = ?. 332 * 333 * <p> 334 * 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. 335 * </p> 336 * 337 * @param eventId the primary key of the current cal event 338 * @param companyId the company id to search with 339 * @param orderByComparator the comparator to order the set by 340 * @return the previous, current, and next cal event 341 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext( 345 long eventId, long companyId, 346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 347 throws com.liferay.portal.kernel.exception.SystemException, 348 com.liferay.portlet.calendar.NoSuchEventException; 349 350 /** 351 * Finds all the cal events where groupId = ?. 352 * 353 * @param groupId the group id to search with 354 * @return the matching cal events 355 * @throws SystemException if a system exception occurred 356 */ 357 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId( 358 long groupId) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Finds a range of all the cal events where groupId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param groupId the group id to search with 369 * @param start the lower bound of the range of cal events to return 370 * @param end the upper bound of the range of cal events to return (not inclusive) 371 * @return the range of matching cal events 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId( 375 long groupId, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Finds an ordered range of all the cal events where groupId = ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param groupId the group id to search with 386 * @param start the lower bound of the range of cal events to return 387 * @param end the upper bound of the range of cal events to return (not inclusive) 388 * @param orderByComparator the comparator to order the results by 389 * @return the ordered range of matching cal events 390 * @throws SystemException if a system exception occurred 391 */ 392 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId( 393 long groupId, int start, int end, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.kernel.exception.SystemException; 396 397 /** 398 * Finds the first cal event in the ordered set where groupId = ?. 399 * 400 * <p> 401 * 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. 402 * </p> 403 * 404 * @param groupId the group id to search with 405 * @param orderByComparator the comparator to order the set by 406 * @return the first matching cal event 407 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 408 * @throws SystemException if a system exception occurred 409 */ 410 public com.liferay.portlet.calendar.model.CalEvent findByGroupId_First( 411 long groupId, 412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 413 throws com.liferay.portal.kernel.exception.SystemException, 414 com.liferay.portlet.calendar.NoSuchEventException; 415 416 /** 417 * Finds the last cal event in the ordered set where groupId = ?. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param groupId the group id to search with 424 * @param orderByComparator the comparator to order the set by 425 * @return the last matching cal event 426 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last( 430 long groupId, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException, 433 com.liferay.portlet.calendar.NoSuchEventException; 434 435 /** 436 * Finds the cal events before and after the current cal event in the ordered set where groupId = ?. 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 eventId the primary key of the current cal event 443 * @param groupId the group id to search with 444 * @param orderByComparator the comparator to order the set by 445 * @return the previous, current, and next cal event 446 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext( 450 long eventId, long groupId, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException, 453 com.liferay.portlet.calendar.NoSuchEventException; 454 455 /** 456 * Filters by the user's permissions and finds all the cal events where groupId = ?. 457 * 458 * @param groupId the group id to search with 459 * @return the matching cal events that the user has permission to view 460 * @throws SystemException if a system exception occurred 461 */ 462 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId( 463 long groupId) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Filters by the user's permissions and finds a range of all the cal events where groupId = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param groupId the group id to search with 474 * @param start the lower bound of the range of cal events to return 475 * @param end the upper bound of the range of cal events to return (not inclusive) 476 * @return the range of matching cal events that the user has permission to view 477 * @throws SystemException if a system exception occurred 478 */ 479 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId( 480 long groupId, int start, int end) 481 throws com.liferay.portal.kernel.exception.SystemException; 482 483 /** 484 * Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ?. 485 * 486 * <p> 487 * 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. 488 * </p> 489 * 490 * @param groupId the group id to search with 491 * @param start the lower bound of the range of cal events to return 492 * @param end the upper bound of the range of cal events to return (not inclusive) 493 * @param orderByComparator the comparator to order the results by 494 * @return the ordered range of matching cal events that the user has permission to view 495 * @throws SystemException if a system exception occurred 496 */ 497 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId( 498 long groupId, int start, int end, 499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Finds all the cal events where remindBy ≠ ?. 504 * 505 * @param remindBy the remind by to search with 506 * @return the matching cal events 507 * @throws SystemException if a system exception occurred 508 */ 509 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy( 510 int remindBy) 511 throws com.liferay.portal.kernel.exception.SystemException; 512 513 /** 514 * Finds a range of all the cal events where remindBy ≠ ?. 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 remindBy the remind by 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 * @return the range of matching cal events 524 * @throws SystemException if a system exception occurred 525 */ 526 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy( 527 int remindBy, int start, int end) 528 throws com.liferay.portal.kernel.exception.SystemException; 529 530 /** 531 * Finds an ordered range of all the cal events where remindBy ≠ ?. 532 * 533 * <p> 534 * 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. 535 * </p> 536 * 537 * @param remindBy the remind by to search with 538 * @param start the lower bound of the range of cal events to return 539 * @param end the upper bound of the range of cal events to return (not inclusive) 540 * @param orderByComparator the comparator to order the results by 541 * @return the ordered range of matching cal events 542 * @throws SystemException if a system exception occurred 543 */ 544 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy( 545 int remindBy, int start, int end, 546 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 547 throws com.liferay.portal.kernel.exception.SystemException; 548 549 /** 550 * Finds the first cal event in the ordered set where remindBy ≠ ?. 551 * 552 * <p> 553 * 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. 554 * </p> 555 * 556 * @param remindBy the remind by to search with 557 * @param orderByComparator the comparator to order the set by 558 * @return the first matching cal event 559 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 560 * @throws SystemException if a system exception occurred 561 */ 562 public com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_First( 563 int remindBy, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.kernel.exception.SystemException, 566 com.liferay.portlet.calendar.NoSuchEventException; 567 568 /** 569 * Finds the last cal event in the ordered set where remindBy ≠ ?. 570 * 571 * <p> 572 * 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. 573 * </p> 574 * 575 * @param remindBy the remind by to search with 576 * @param orderByComparator the comparator to order the set by 577 * @return the last matching cal event 578 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 579 * @throws SystemException if a system exception occurred 580 */ 581 public com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_Last( 582 int remindBy, 583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 584 throws com.liferay.portal.kernel.exception.SystemException, 585 com.liferay.portlet.calendar.NoSuchEventException; 586 587 /** 588 * Finds the cal events before and after the current cal event in the ordered set where remindBy ≠ ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param eventId the primary key of the current cal event 595 * @param remindBy the remind by to search with 596 * @param orderByComparator the comparator to order the set by 597 * @return the previous, current, and next cal event 598 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 599 * @throws SystemException if a system exception occurred 600 */ 601 public com.liferay.portlet.calendar.model.CalEvent[] findByNotRemindBy_PrevAndNext( 602 long eventId, int remindBy, 603 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 604 throws com.liferay.portal.kernel.exception.SystemException, 605 com.liferay.portlet.calendar.NoSuchEventException; 606 607 /** 608 * Finds all the cal events where groupId = ? and type = ?. 609 * 610 * @param groupId the group id to search with 611 * @param type the type to search with 612 * @return the matching cal events 613 * @throws SystemException if a system exception occurred 614 */ 615 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T( 616 long groupId, java.lang.String type) 617 throws com.liferay.portal.kernel.exception.SystemException; 618 619 /** 620 * Finds a range of all the cal events where groupId = ? and type = ?. 621 * 622 * <p> 623 * 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. 624 * </p> 625 * 626 * @param groupId the group id to search with 627 * @param type the type to search with 628 * @param start the lower bound of the range of cal events to return 629 * @param end the upper bound of the range of cal events to return (not inclusive) 630 * @return the range of matching cal events 631 * @throws SystemException if a system exception occurred 632 */ 633 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T( 634 long groupId, java.lang.String type, int start, int end) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * Finds an ordered range of all the cal events where groupId = ? and type = ?. 639 * 640 * <p> 641 * 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. 642 * </p> 643 * 644 * @param groupId the group id to search with 645 * @param type the type to search with 646 * @param start the lower bound of the range of cal events to return 647 * @param end the upper bound of the range of cal events to return (not inclusive) 648 * @param orderByComparator the comparator to order the results by 649 * @return the ordered range of matching cal events 650 * @throws SystemException if a system exception occurred 651 */ 652 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T( 653 long groupId, java.lang.String type, int start, int end, 654 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Finds the first cal event in the ordered set where groupId = ? and type = ?. 659 * 660 * <p> 661 * 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. 662 * </p> 663 * 664 * @param groupId the group id to search with 665 * @param type the type to search with 666 * @param orderByComparator the comparator to order the set by 667 * @return the first matching cal event 668 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 669 * @throws SystemException if a system exception occurred 670 */ 671 public com.liferay.portlet.calendar.model.CalEvent findByG_T_First( 672 long groupId, java.lang.String type, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException, 675 com.liferay.portlet.calendar.NoSuchEventException; 676 677 /** 678 * Finds the last cal event in the ordered set where groupId = ? and type = ?. 679 * 680 * <p> 681 * 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. 682 * </p> 683 * 684 * @param groupId the group id to search with 685 * @param type the type to search with 686 * @param orderByComparator the comparator to order the set by 687 * @return the last matching cal event 688 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 689 * @throws SystemException if a system exception occurred 690 */ 691 public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last( 692 long groupId, java.lang.String type, 693 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 694 throws com.liferay.portal.kernel.exception.SystemException, 695 com.liferay.portlet.calendar.NoSuchEventException; 696 697 /** 698 * Finds the cal events before and after the current cal event in the ordered set where groupId = ? and type = ?. 699 * 700 * <p> 701 * 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. 702 * </p> 703 * 704 * @param eventId the primary key of the current cal event 705 * @param groupId the group id to search with 706 * @param type the type to search with 707 * @param orderByComparator the comparator to order the set by 708 * @return the previous, current, and next cal event 709 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 710 * @throws SystemException if a system exception occurred 711 */ 712 public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext( 713 long eventId, long groupId, java.lang.String type, 714 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 715 throws com.liferay.portal.kernel.exception.SystemException, 716 com.liferay.portlet.calendar.NoSuchEventException; 717 718 /** 719 * Filters by the user's permissions and finds all the cal events where groupId = ? and type = ?. 720 * 721 * @param groupId the group id to search with 722 * @param type the type to search with 723 * @return the matching cal events that the user has permission to view 724 * @throws SystemException if a system exception occurred 725 */ 726 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T( 727 long groupId, java.lang.String type) 728 throws com.liferay.portal.kernel.exception.SystemException; 729 730 /** 731 * Filters by the user's permissions and finds a range of all the cal events where groupId = ? and type = ?. 732 * 733 * <p> 734 * 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. 735 * </p> 736 * 737 * @param groupId the group id to search with 738 * @param type the type to search with 739 * @param start the lower bound of the range of cal events to return 740 * @param end the upper bound of the range of cal events to return (not inclusive) 741 * @return the range of matching cal events that the user has permission to view 742 * @throws SystemException if a system exception occurred 743 */ 744 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T( 745 long groupId, java.lang.String type, int start, int end) 746 throws com.liferay.portal.kernel.exception.SystemException; 747 748 /** 749 * Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and type = ?. 750 * 751 * <p> 752 * 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. 753 * </p> 754 * 755 * @param groupId the group id to search with 756 * @param type the type to search with 757 * @param start the lower bound of the range of cal events to return 758 * @param end the upper bound of the range of cal events to return (not inclusive) 759 * @param orderByComparator the comparator to order the results by 760 * @return the ordered range of matching cal events that the user has permission to view 761 * @throws SystemException if a system exception occurred 762 */ 763 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T( 764 long groupId, java.lang.String type, int start, int end, 765 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 766 throws com.liferay.portal.kernel.exception.SystemException; 767 768 /** 769 * Finds all the cal events where groupId = ? and repeating = ?. 770 * 771 * @param groupId the group id to search with 772 * @param repeating the repeating to search with 773 * @return the matching cal events 774 * @throws SystemException if a system exception occurred 775 */ 776 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R( 777 long groupId, boolean repeating) 778 throws com.liferay.portal.kernel.exception.SystemException; 779 780 /** 781 * Finds a range of all the cal events where groupId = ? and repeating = ?. 782 * 783 * <p> 784 * 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. 785 * </p> 786 * 787 * @param groupId the group id to search with 788 * @param repeating the repeating to search with 789 * @param start the lower bound of the range of cal events to return 790 * @param end the upper bound of the range of cal events to return (not inclusive) 791 * @return the range of matching cal events 792 * @throws SystemException if a system exception occurred 793 */ 794 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R( 795 long groupId, boolean repeating, int start, int end) 796 throws com.liferay.portal.kernel.exception.SystemException; 797 798 /** 799 * Finds an ordered range of all the cal events where groupId = ? and repeating = ?. 800 * 801 * <p> 802 * 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. 803 * </p> 804 * 805 * @param groupId the group id to search with 806 * @param repeating the repeating to search with 807 * @param start the lower bound of the range of cal events to return 808 * @param end the upper bound of the range of cal events to return (not inclusive) 809 * @param orderByComparator the comparator to order the results by 810 * @return the ordered range of matching cal events 811 * @throws SystemException if a system exception occurred 812 */ 813 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R( 814 long groupId, boolean repeating, int start, int end, 815 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 816 throws com.liferay.portal.kernel.exception.SystemException; 817 818 /** 819 * Finds the first cal event in the ordered set where groupId = ? and repeating = ?. 820 * 821 * <p> 822 * 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. 823 * </p> 824 * 825 * @param groupId the group id to search with 826 * @param repeating the repeating to search with 827 * @param orderByComparator the comparator to order the set by 828 * @return the first matching cal event 829 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 830 * @throws SystemException if a system exception occurred 831 */ 832 public com.liferay.portlet.calendar.model.CalEvent findByG_R_First( 833 long groupId, boolean repeating, 834 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 835 throws com.liferay.portal.kernel.exception.SystemException, 836 com.liferay.portlet.calendar.NoSuchEventException; 837 838 /** 839 * Finds the last cal event in the ordered set where groupId = ? and repeating = ?. 840 * 841 * <p> 842 * 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. 843 * </p> 844 * 845 * @param groupId the group id to search with 846 * @param repeating the repeating to search with 847 * @param orderByComparator the comparator to order the set by 848 * @return the last matching cal event 849 * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found 850 * @throws SystemException if a system exception occurred 851 */ 852 public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last( 853 long groupId, boolean repeating, 854 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 855 throws com.liferay.portal.kernel.exception.SystemException, 856 com.liferay.portlet.calendar.NoSuchEventException; 857 858 /** 859 * Finds the cal events before and after the current cal event in the ordered set where groupId = ? and repeating = ?. 860 * 861 * <p> 862 * 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. 863 * </p> 864 * 865 * @param eventId the primary key of the current cal event 866 * @param groupId the group id to search with 867 * @param repeating the repeating to search with 868 * @param orderByComparator the comparator to order the set by 869 * @return the previous, current, and next cal event 870 * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found 871 * @throws SystemException if a system exception occurred 872 */ 873 public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext( 874 long eventId, long groupId, boolean repeating, 875 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 876 throws com.liferay.portal.kernel.exception.SystemException, 877 com.liferay.portlet.calendar.NoSuchEventException; 878 879 /** 880 * Filters by the user's permissions and finds all the cal events where groupId = ? and repeating = ?. 881 * 882 * @param groupId the group id to search with 883 * @param repeating the repeating to search with 884 * @return the matching cal events that the user has permission to view 885 * @throws SystemException if a system exception occurred 886 */ 887 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R( 888 long groupId, boolean repeating) 889 throws com.liferay.portal.kernel.exception.SystemException; 890 891 /** 892 * Filters by the user's permissions and finds a range of all the cal events where groupId = ? and repeating = ?. 893 * 894 * <p> 895 * 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. 896 * </p> 897 * 898 * @param groupId the group id to search with 899 * @param repeating the repeating to search with 900 * @param start the lower bound of the range of cal events to return 901 * @param end the upper bound of the range of cal events to return (not inclusive) 902 * @return the range of matching cal events that the user has permission to view 903 * @throws SystemException if a system exception occurred 904 */ 905 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R( 906 long groupId, boolean repeating, int start, int end) 907 throws com.liferay.portal.kernel.exception.SystemException; 908 909 /** 910 * Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and repeating = ?. 911 * 912 * <p> 913 * 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. 914 * </p> 915 * 916 * @param groupId the group id to search with 917 * @param repeating the repeating to search with 918 * @param start the lower bound of the range of cal events to return 919 * @param end the upper bound of the range of cal events to return (not inclusive) 920 * @param orderByComparator the comparator to order the results by 921 * @return the ordered range of matching cal events that the user has permission to view 922 * @throws SystemException if a system exception occurred 923 */ 924 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R( 925 long groupId, boolean repeating, int start, int end, 926 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 927 throws com.liferay.portal.kernel.exception.SystemException; 928 929 /** 930 * Finds all the cal events. 931 * 932 * @return the cal events 933 * @throws SystemException if a system exception occurred 934 */ 935 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll() 936 throws com.liferay.portal.kernel.exception.SystemException; 937 938 /** 939 * Finds a range of all the cal events. 940 * 941 * <p> 942 * 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. 943 * </p> 944 * 945 * @param start the lower bound of the range of cal events to return 946 * @param end the upper bound of the range of cal events to return (not inclusive) 947 * @return the range of cal events 948 * @throws SystemException if a system exception occurred 949 */ 950 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll( 951 int start, int end) 952 throws com.liferay.portal.kernel.exception.SystemException; 953 954 /** 955 * Finds an ordered range of all the cal events. 956 * 957 * <p> 958 * 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. 959 * </p> 960 * 961 * @param start the lower bound of the range of cal events to return 962 * @param end the upper bound of the range of cal events to return (not inclusive) 963 * @param orderByComparator the comparator to order the results by 964 * @return the ordered range of cal events 965 * @throws SystemException if a system exception occurred 966 */ 967 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll( 968 int start, int end, 969 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 970 throws com.liferay.portal.kernel.exception.SystemException; 971 972 /** 973 * Removes all the cal events where uuid = ? from the database. 974 * 975 * @param uuid the uuid to search with 976 * @throws SystemException if a system exception occurred 977 */ 978 public void removeByUuid(java.lang.String uuid) 979 throws com.liferay.portal.kernel.exception.SystemException; 980 981 /** 982 * Removes the cal event where uuid = ? and groupId = ? from the database. 983 * 984 * @param uuid the uuid to search with 985 * @param groupId the group id to search with 986 * @throws SystemException if a system exception occurred 987 */ 988 public void removeByUUID_G(java.lang.String uuid, long groupId) 989 throws com.liferay.portal.kernel.exception.SystemException, 990 com.liferay.portlet.calendar.NoSuchEventException; 991 992 /** 993 * Removes all the cal events where companyId = ? from the database. 994 * 995 * @param companyId the company id to search with 996 * @throws SystemException if a system exception occurred 997 */ 998 public void removeByCompanyId(long companyId) 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Removes all the cal events where groupId = ? from the database. 1003 * 1004 * @param groupId the group id to search with 1005 * @throws SystemException if a system exception occurred 1006 */ 1007 public void removeByGroupId(long groupId) 1008 throws com.liferay.portal.kernel.exception.SystemException; 1009 1010 /** 1011 * Removes all the cal events where remindBy ≠ ? from the database. 1012 * 1013 * @param remindBy the remind by to search with 1014 * @throws SystemException if a system exception occurred 1015 */ 1016 public void removeByNotRemindBy(int remindBy) 1017 throws com.liferay.portal.kernel.exception.SystemException; 1018 1019 /** 1020 * Removes all the cal events where groupId = ? and type = ? from the database. 1021 * 1022 * @param groupId the group id to search with 1023 * @param type the type to search with 1024 * @throws SystemException if a system exception occurred 1025 */ 1026 public void removeByG_T(long groupId, java.lang.String type) 1027 throws com.liferay.portal.kernel.exception.SystemException; 1028 1029 /** 1030 * Removes all the cal events where groupId = ? and repeating = ? from the database. 1031 * 1032 * @param groupId the group id to search with 1033 * @param repeating the repeating to search with 1034 * @throws SystemException if a system exception occurred 1035 */ 1036 public void removeByG_R(long groupId, boolean repeating) 1037 throws com.liferay.portal.kernel.exception.SystemException; 1038 1039 /** 1040 * Removes all the cal events from the database. 1041 * 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public void removeAll() 1045 throws com.liferay.portal.kernel.exception.SystemException; 1046 1047 /** 1048 * Counts all the cal events where uuid = ?. 1049 * 1050 * @param uuid the uuid to search with 1051 * @return the number of matching cal events 1052 * @throws SystemException if a system exception occurred 1053 */ 1054 public int countByUuid(java.lang.String uuid) 1055 throws com.liferay.portal.kernel.exception.SystemException; 1056 1057 /** 1058 * Counts all the cal events where uuid = ? and groupId = ?. 1059 * 1060 * @param uuid the uuid to search with 1061 * @param groupId the group id to search with 1062 * @return the number of matching cal events 1063 * @throws SystemException if a system exception occurred 1064 */ 1065 public int countByUUID_G(java.lang.String uuid, long groupId) 1066 throws com.liferay.portal.kernel.exception.SystemException; 1067 1068 /** 1069 * Counts all the cal events where companyId = ?. 1070 * 1071 * @param companyId the company id to search with 1072 * @return the number of matching cal events 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public int countByCompanyId(long companyId) 1076 throws com.liferay.portal.kernel.exception.SystemException; 1077 1078 /** 1079 * Counts all the cal events where groupId = ?. 1080 * 1081 * @param groupId the group id to search with 1082 * @return the number of matching cal events 1083 * @throws SystemException if a system exception occurred 1084 */ 1085 public int countByGroupId(long groupId) 1086 throws com.liferay.portal.kernel.exception.SystemException; 1087 1088 /** 1089 * Filters by the user's permissions and counts all the cal events where groupId = ?. 1090 * 1091 * @param groupId the group id to search with 1092 * @return the number of matching cal events that the user has permission to view 1093 * @throws SystemException if a system exception occurred 1094 */ 1095 public int filterCountByGroupId(long groupId) 1096 throws com.liferay.portal.kernel.exception.SystemException; 1097 1098 /** 1099 * Counts all the cal events where remindBy ≠ ?. 1100 * 1101 * @param remindBy the remind by to search with 1102 * @return the number of matching cal events 1103 * @throws SystemException if a system exception occurred 1104 */ 1105 public int countByNotRemindBy(int remindBy) 1106 throws com.liferay.portal.kernel.exception.SystemException; 1107 1108 /** 1109 * Counts all the cal events where groupId = ? and type = ?. 1110 * 1111 * @param groupId the group id to search with 1112 * @param type the type to search with 1113 * @return the number of matching cal events 1114 * @throws SystemException if a system exception occurred 1115 */ 1116 public int countByG_T(long groupId, java.lang.String type) 1117 throws com.liferay.portal.kernel.exception.SystemException; 1118 1119 /** 1120 * Filters by the user's permissions and counts all the cal events where groupId = ? and type = ?. 1121 * 1122 * @param groupId the group id to search with 1123 * @param type the type to search with 1124 * @return the number of matching cal events that the user has permission to view 1125 * @throws SystemException if a system exception occurred 1126 */ 1127 public int filterCountByG_T(long groupId, java.lang.String type) 1128 throws com.liferay.portal.kernel.exception.SystemException; 1129 1130 /** 1131 * Counts all the cal events where groupId = ? and repeating = ?. 1132 * 1133 * @param groupId the group id to search with 1134 * @param repeating the repeating to search with 1135 * @return the number of matching cal events 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public int countByG_R(long groupId, boolean repeating) 1139 throws com.liferay.portal.kernel.exception.SystemException; 1140 1141 /** 1142 * Filters by the user's permissions and counts all the cal events where groupId = ? and repeating = ?. 1143 * 1144 * @param groupId the group id to search with 1145 * @param repeating the repeating to search with 1146 * @return the number of matching cal events that the user has permission to view 1147 * @throws SystemException if a system exception occurred 1148 */ 1149 public int filterCountByG_R(long groupId, boolean repeating) 1150 throws com.liferay.portal.kernel.exception.SystemException; 1151 1152 /** 1153 * Counts all the cal events. 1154 * 1155 * @return the number of cal events 1156 * @throws SystemException if a system exception occurred 1157 */ 1158 public int countAll() 1159 throws com.liferay.portal.kernel.exception.SystemException; 1160 }