001 /** 002 * Copyright (c) 2000-2012 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.dynamicdatalists.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.dynamicdatalists.model.DDLRecord; 020 021 /** 022 * The persistence interface for the d d l record service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DDLRecordPersistenceImpl 030 * @see DDLRecordUtil 031 * @generated 032 */ 033 public interface DDLRecordPersistence extends BasePersistence<DDLRecord> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DDLRecordUtil} to access the d d l record persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the d d l record in the entity cache if it is enabled. 042 * 043 * @param ddlRecord the d d l record 044 */ 045 public void cacheResult( 046 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord); 047 048 /** 049 * Caches the d d l records in the entity cache if it is enabled. 050 * 051 * @param ddlRecords the d d l records 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> ddlRecords); 055 056 /** 057 * Creates a new d d l record with the primary key. Does not add the d d l record to the database. 058 * 059 * @param recordId the primary key for the new d d l record 060 * @return the new d d l record 061 */ 062 public com.liferay.portlet.dynamicdatalists.model.DDLRecord create( 063 long recordId); 064 065 /** 066 * Removes the d d l record with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param recordId the primary key of the d d l record 069 * @return the d d l record that was removed 070 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.dynamicdatalists.model.DDLRecord remove( 074 long recordId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 077 078 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateImpl( 079 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the d d l record with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordException} if it could not be found. 084 * 085 * @param recordId the primary key of the d d l record 086 * @return the d d l record 087 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByPrimaryKey( 091 long recordId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 094 095 /** 096 * Returns the d d l record with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param recordId the primary key of the d d l record 099 * @return the d d l record, or <code>null</code> if a d d l record with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByPrimaryKey( 103 long recordId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the d d l records where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @return the matching d d l records 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid( 114 java.lang.String uuid) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the d d l records where uuid = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param uuid the uuid 125 * @param start the lower bound of the range of d d l records 126 * @param end the upper bound of the range of d d l records (not inclusive) 127 * @return the range of matching d d l records 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid( 131 java.lang.String uuid, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the d d l records where uuid = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param uuid the uuid 142 * @param start the lower bound of the range of d d l records 143 * @param end the upper bound of the range of d d l records (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching d d l records 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid( 149 java.lang.String uuid, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first d d l record in the ordered set where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching d d l record 159 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First( 163 java.lang.String uuid, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 167 168 /** 169 * Returns the first d d l record in the ordered set where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_First( 177 java.lang.String uuid, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last d d l record in the ordered set where uuid = ?. 183 * 184 * @param uuid the uuid 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching d d l record 187 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 195 196 /** 197 * Returns the last d d l record in the ordered set where uuid = ?. 198 * 199 * @param uuid the uuid 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_Last( 205 java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the d d l records before and after the current d d l record in the ordered set where uuid = ?. 211 * 212 * @param recordId the primary key of the current d d l record 213 * @param uuid the uuid 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next d d l record 216 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext( 220 long recordId, java.lang.String uuid, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 224 225 /** 226 * Returns the d d l record where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordException} if it could not be found. 227 * 228 * @param uuid the uuid 229 * @param groupId the group ID 230 * @return the matching d d l record 231 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G( 235 java.lang.String uuid, long groupId) 236 throws com.liferay.portal.kernel.exception.SystemException, 237 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 238 239 /** 240 * Returns the d d l record where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 241 * 242 * @param uuid the uuid 243 * @param groupId the group ID 244 * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G( 248 java.lang.String uuid, long groupId) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns the d d l record where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 253 * 254 * @param uuid the uuid 255 * @param groupId the group ID 256 * @param retrieveFromCache whether to use the finder cache 257 * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G( 261 java.lang.String uuid, long groupId, boolean retrieveFromCache) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns all the d d l records where uuid = ? and companyId = ?. 266 * 267 * @param uuid the uuid 268 * @param companyId the company ID 269 * @return the matching d d l records 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C( 273 java.lang.String uuid, long companyId) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns a range of all the d d l records where uuid = ? and 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 uuid the uuid 284 * @param companyId the company ID 285 * @param start the lower bound of the range of d d l records 286 * @param end the upper bound of the range of d d l records (not inclusive) 287 * @return the range of matching d d l records 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C( 291 java.lang.String uuid, long companyId, int start, int end) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns an ordered range of all the d d l records where uuid = ? and companyId = ?. 296 * 297 * <p> 298 * 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. 299 * </p> 300 * 301 * @param uuid the uuid 302 * @param companyId the company ID 303 * @param start the lower bound of the range of d d l records 304 * @param end the upper bound of the range of d d l records (not inclusive) 305 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 306 * @return the ordered range of matching d d l records 307 * @throws SystemException if a system exception occurred 308 */ 309 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C( 310 java.lang.String uuid, long companyId, int start, int end, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns the first d d l record in the ordered set where uuid = ? and companyId = ?. 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the first matching d d l record 321 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_First( 325 java.lang.String uuid, long companyId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 329 330 /** 331 * Returns the first d d l record in the ordered set where uuid = ? and companyId = ?. 332 * 333 * @param uuid the uuid 334 * @param companyId the company ID 335 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 336 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_First( 340 java.lang.String uuid, long companyId, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns the last d d l record in the ordered set where uuid = ? and companyId = ?. 346 * 347 * @param uuid the uuid 348 * @param companyId the company ID 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the last matching d d l record 351 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_Last( 355 java.lang.String uuid, long companyId, 356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 357 throws com.liferay.portal.kernel.exception.SystemException, 358 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 359 360 /** 361 * Returns the last d d l record in the ordered set where uuid = ? and companyId = ?. 362 * 363 * @param uuid the uuid 364 * @param companyId the company ID 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_Last( 370 java.lang.String uuid, long companyId, 371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Returns the d d l records before and after the current d d l record in the ordered set where uuid = ? and companyId = ?. 376 * 377 * @param recordId the primary key of the current d d l record 378 * @param uuid the uuid 379 * @param companyId the company ID 380 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 381 * @return the previous, current, and next d d l record 382 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_C_PrevAndNext( 386 long recordId, java.lang.String uuid, long companyId, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException, 389 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 390 391 /** 392 * Returns all the d d l records where companyId = ?. 393 * 394 * @param companyId the company ID 395 * @return the matching d d l records 396 * @throws SystemException if a system exception occurred 397 */ 398 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId( 399 long companyId) 400 throws com.liferay.portal.kernel.exception.SystemException; 401 402 /** 403 * Returns a range of all the d d l records where companyId = ?. 404 * 405 * <p> 406 * 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. 407 * </p> 408 * 409 * @param companyId the company ID 410 * @param start the lower bound of the range of d d l records 411 * @param end the upper bound of the range of d d l records (not inclusive) 412 * @return the range of matching d d l records 413 * @throws SystemException if a system exception occurred 414 */ 415 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId( 416 long companyId, int start, int end) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Returns an ordered range of all the d d l records where companyId = ?. 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 companyId the company ID 427 * @param start the lower bound of the range of d d l records 428 * @param end the upper bound of the range of d d l records (not inclusive) 429 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 430 * @return the ordered range of matching d d l records 431 * @throws SystemException if a system exception occurred 432 */ 433 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId( 434 long companyId, int start, int end, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.kernel.exception.SystemException; 437 438 /** 439 * Returns the first d d l record in the ordered set where companyId = ?. 440 * 441 * @param companyId the company ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the first matching d d l record 444 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_First( 448 long companyId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 452 453 /** 454 * Returns the first d d l record in the ordered set where companyId = ?. 455 * 456 * @param companyId the company ID 457 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 458 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_First( 462 long companyId, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the last d d l record in the ordered set where companyId = ?. 468 * 469 * @param companyId the company ID 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the last matching d d l record 472 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_Last( 476 long companyId, 477 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 478 throws com.liferay.portal.kernel.exception.SystemException, 479 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 480 481 /** 482 * Returns the last d d l record in the ordered set where companyId = ?. 483 * 484 * @param companyId the company ID 485 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 486 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_Last( 490 long companyId, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns the d d l records before and after the current d d l record in the ordered set where companyId = ?. 496 * 497 * @param recordId the primary key of the current d d l record 498 * @param companyId the company ID 499 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 500 * @return the previous, current, and next d d l record 501 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 502 * @throws SystemException if a system exception occurred 503 */ 504 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByCompanyId_PrevAndNext( 505 long recordId, long companyId, 506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 507 throws com.liferay.portal.kernel.exception.SystemException, 508 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 509 510 /** 511 * Returns all the d d l records where recordSetId = ?. 512 * 513 * @param recordSetId the record set ID 514 * @return the matching d d l records 515 * @throws SystemException if a system exception occurred 516 */ 517 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId( 518 long recordSetId) 519 throws com.liferay.portal.kernel.exception.SystemException; 520 521 /** 522 * Returns a range of all the d d l records where recordSetId = ?. 523 * 524 * <p> 525 * 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. 526 * </p> 527 * 528 * @param recordSetId the record set ID 529 * @param start the lower bound of the range of d d l records 530 * @param end the upper bound of the range of d d l records (not inclusive) 531 * @return the range of matching d d l records 532 * @throws SystemException if a system exception occurred 533 */ 534 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId( 535 long recordSetId, int start, int end) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Returns an ordered range of all the d d l records where recordSetId = ?. 540 * 541 * <p> 542 * 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. 543 * </p> 544 * 545 * @param recordSetId the record set ID 546 * @param start the lower bound of the range of d d l records 547 * @param end the upper bound of the range of d d l records (not inclusive) 548 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 549 * @return the ordered range of matching d d l records 550 * @throws SystemException if a system exception occurred 551 */ 552 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId( 553 long recordSetId, int start, int end, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns the first d d l record in the ordered set where recordSetId = ?. 559 * 560 * @param recordSetId the record set ID 561 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 562 * @return the first matching d d l record 563 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 564 * @throws SystemException if a system exception occurred 565 */ 566 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First( 567 long recordSetId, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException, 570 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 571 572 /** 573 * Returns the first d d l record in the ordered set where recordSetId = ?. 574 * 575 * @param recordSetId the record set ID 576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 577 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_First( 581 long recordSetId, 582 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 583 throws com.liferay.portal.kernel.exception.SystemException; 584 585 /** 586 * Returns the last d d l record in the ordered set where recordSetId = ?. 587 * 588 * @param recordSetId the record set ID 589 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 590 * @return the last matching d d l record 591 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 592 * @throws SystemException if a system exception occurred 593 */ 594 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last( 595 long recordSetId, 596 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 597 throws com.liferay.portal.kernel.exception.SystemException, 598 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 599 600 /** 601 * Returns the last d d l record in the ordered set where recordSetId = ?. 602 * 603 * @param recordSetId the record set ID 604 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 605 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 606 * @throws SystemException if a system exception occurred 607 */ 608 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_Last( 609 long recordSetId, 610 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 611 throws com.liferay.portal.kernel.exception.SystemException; 612 613 /** 614 * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = ?. 615 * 616 * @param recordId the primary key of the current d d l record 617 * @param recordSetId the record set ID 618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 619 * @return the previous, current, and next d d l record 620 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext( 624 long recordId, long recordSetId, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException, 627 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 628 629 /** 630 * Returns all the d d l records where recordSetId = ? and userId = ?. 631 * 632 * @param recordSetId the record set ID 633 * @param userId the user ID 634 * @return the matching d d l records 635 * @throws SystemException if a system exception occurred 636 */ 637 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U( 638 long recordSetId, long userId) 639 throws com.liferay.portal.kernel.exception.SystemException; 640 641 /** 642 * Returns a range of all the d d l records where recordSetId = ? and userId = ?. 643 * 644 * <p> 645 * 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. 646 * </p> 647 * 648 * @param recordSetId the record set ID 649 * @param userId the user ID 650 * @param start the lower bound of the range of d d l records 651 * @param end the upper bound of the range of d d l records (not inclusive) 652 * @return the range of matching d d l records 653 * @throws SystemException if a system exception occurred 654 */ 655 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U( 656 long recordSetId, long userId, int start, int end) 657 throws com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Returns an ordered range of all the d d l records where recordSetId = ? and userId = ?. 661 * 662 * <p> 663 * 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. 664 * </p> 665 * 666 * @param recordSetId the record set ID 667 * @param userId the user ID 668 * @param start the lower bound of the range of d d l records 669 * @param end the upper bound of the range of d d l records (not inclusive) 670 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 671 * @return the ordered range of matching d d l records 672 * @throws SystemException if a system exception occurred 673 */ 674 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U( 675 long recordSetId, long userId, int start, int end, 676 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 677 throws com.liferay.portal.kernel.exception.SystemException; 678 679 /** 680 * Returns the first d d l record in the ordered set where recordSetId = ? and userId = ?. 681 * 682 * @param recordSetId the record set ID 683 * @param userId the user ID 684 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 685 * @return the first matching d d l record 686 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First( 690 long recordSetId, long userId, 691 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 692 throws com.liferay.portal.kernel.exception.SystemException, 693 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 694 695 /** 696 * Returns the first d d l record in the ordered set where recordSetId = ? and userId = ?. 697 * 698 * @param recordSetId the record set ID 699 * @param userId the user ID 700 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 701 * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_First( 705 long recordSetId, long userId, 706 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 707 throws com.liferay.portal.kernel.exception.SystemException; 708 709 /** 710 * Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. 711 * 712 * @param recordSetId the record set ID 713 * @param userId the user ID 714 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 715 * @return the last matching d d l record 716 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last( 720 long recordSetId, long userId, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException, 723 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 724 725 /** 726 * Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. 727 * 728 * @param recordSetId the record set ID 729 * @param userId the user ID 730 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 731 * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found 732 * @throws SystemException if a system exception occurred 733 */ 734 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_Last( 735 long recordSetId, long userId, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.kernel.exception.SystemException; 738 739 /** 740 * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = ? and userId = ?. 741 * 742 * @param recordId the primary key of the current d d l record 743 * @param recordSetId the record set ID 744 * @param userId the user ID 745 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 746 * @return the previous, current, and next d d l record 747 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found 748 * @throws SystemException if a system exception occurred 749 */ 750 public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext( 751 long recordId, long recordSetId, long userId, 752 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 753 throws com.liferay.portal.kernel.exception.SystemException, 754 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 755 756 /** 757 * Returns all the d d l records. 758 * 759 * @return the d d l records 760 * @throws SystemException if a system exception occurred 761 */ 762 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll() 763 throws com.liferay.portal.kernel.exception.SystemException; 764 765 /** 766 * Returns a range of all the d d l records. 767 * 768 * <p> 769 * 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. 770 * </p> 771 * 772 * @param start the lower bound of the range of d d l records 773 * @param end the upper bound of the range of d d l records (not inclusive) 774 * @return the range of d d l records 775 * @throws SystemException if a system exception occurred 776 */ 777 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll( 778 int start, int end) 779 throws com.liferay.portal.kernel.exception.SystemException; 780 781 /** 782 * Returns an ordered range of all the d d l records. 783 * 784 * <p> 785 * 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. 786 * </p> 787 * 788 * @param start the lower bound of the range of d d l records 789 * @param end the upper bound of the range of d d l records (not inclusive) 790 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 791 * @return the ordered range of d d l records 792 * @throws SystemException if a system exception occurred 793 */ 794 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll( 795 int start, int end, 796 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 797 throws com.liferay.portal.kernel.exception.SystemException; 798 799 /** 800 * Removes all the d d l records where uuid = ? from the database. 801 * 802 * @param uuid the uuid 803 * @throws SystemException if a system exception occurred 804 */ 805 public void removeByUuid(java.lang.String uuid) 806 throws com.liferay.portal.kernel.exception.SystemException; 807 808 /** 809 * Removes the d d l record where uuid = ? and groupId = ? from the database. 810 * 811 * @param uuid the uuid 812 * @param groupId the group ID 813 * @return the d d l record that was removed 814 * @throws SystemException if a system exception occurred 815 */ 816 public com.liferay.portlet.dynamicdatalists.model.DDLRecord removeByUUID_G( 817 java.lang.String uuid, long groupId) 818 throws com.liferay.portal.kernel.exception.SystemException, 819 com.liferay.portlet.dynamicdatalists.NoSuchRecordException; 820 821 /** 822 * Removes all the d d l records where uuid = ? and companyId = ? from the database. 823 * 824 * @param uuid the uuid 825 * @param companyId the company ID 826 * @throws SystemException if a system exception occurred 827 */ 828 public void removeByUuid_C(java.lang.String uuid, long companyId) 829 throws com.liferay.portal.kernel.exception.SystemException; 830 831 /** 832 * Removes all the d d l records where companyId = ? from the database. 833 * 834 * @param companyId the company ID 835 * @throws SystemException if a system exception occurred 836 */ 837 public void removeByCompanyId(long companyId) 838 throws com.liferay.portal.kernel.exception.SystemException; 839 840 /** 841 * Removes all the d d l records where recordSetId = ? from the database. 842 * 843 * @param recordSetId the record set ID 844 * @throws SystemException if a system exception occurred 845 */ 846 public void removeByRecordSetId(long recordSetId) 847 throws com.liferay.portal.kernel.exception.SystemException; 848 849 /** 850 * Removes all the d d l records where recordSetId = ? and userId = ? from the database. 851 * 852 * @param recordSetId the record set ID 853 * @param userId the user ID 854 * @throws SystemException if a system exception occurred 855 */ 856 public void removeByR_U(long recordSetId, long userId) 857 throws com.liferay.portal.kernel.exception.SystemException; 858 859 /** 860 * Removes all the d d l records from the database. 861 * 862 * @throws SystemException if a system exception occurred 863 */ 864 public void removeAll() 865 throws com.liferay.portal.kernel.exception.SystemException; 866 867 /** 868 * Returns the number of d d l records where uuid = ?. 869 * 870 * @param uuid the uuid 871 * @return the number of matching d d l records 872 * @throws SystemException if a system exception occurred 873 */ 874 public int countByUuid(java.lang.String uuid) 875 throws com.liferay.portal.kernel.exception.SystemException; 876 877 /** 878 * Returns the number of d d l records where uuid = ? and groupId = ?. 879 * 880 * @param uuid the uuid 881 * @param groupId the group ID 882 * @return the number of matching d d l records 883 * @throws SystemException if a system exception occurred 884 */ 885 public int countByUUID_G(java.lang.String uuid, long groupId) 886 throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Returns the number of d d l records where uuid = ? and companyId = ?. 890 * 891 * @param uuid the uuid 892 * @param companyId the company ID 893 * @return the number of matching d d l records 894 * @throws SystemException if a system exception occurred 895 */ 896 public int countByUuid_C(java.lang.String uuid, long companyId) 897 throws com.liferay.portal.kernel.exception.SystemException; 898 899 /** 900 * Returns the number of d d l records where companyId = ?. 901 * 902 * @param companyId the company ID 903 * @return the number of matching d d l records 904 * @throws SystemException if a system exception occurred 905 */ 906 public int countByCompanyId(long companyId) 907 throws com.liferay.portal.kernel.exception.SystemException; 908 909 /** 910 * Returns the number of d d l records where recordSetId = ?. 911 * 912 * @param recordSetId the record set ID 913 * @return the number of matching d d l records 914 * @throws SystemException if a system exception occurred 915 */ 916 public int countByRecordSetId(long recordSetId) 917 throws com.liferay.portal.kernel.exception.SystemException; 918 919 /** 920 * Returns the number of d d l records where recordSetId = ? and userId = ?. 921 * 922 * @param recordSetId the record set ID 923 * @param userId the user ID 924 * @return the number of matching d d l records 925 * @throws SystemException if a system exception occurred 926 */ 927 public int countByR_U(long recordSetId, long userId) 928 throws com.liferay.portal.kernel.exception.SystemException; 929 930 /** 931 * Returns the number of d d l records. 932 * 933 * @return the number of d d l records 934 * @throws SystemException if a system exception occurred 935 */ 936 public int countAll() 937 throws com.liferay.portal.kernel.exception.SystemException; 938 }