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