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