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