001 /** 002 * Copyright (c) 2000-2013 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.DDLRecordSet; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the d d l record set service. This utility wraps {@link DDLRecordSetPersistenceImpl} 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 DDLRecordSetPersistence 037 * @see DDLRecordSetPersistenceImpl 038 * @generated 039 */ 040 public class DDLRecordSetUtil { 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(DDLRecordSet ddlRecordSet) { 058 getPersistence().clearCache(ddlRecordSet); 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<DDLRecordSet> 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<DDLRecordSet> 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<DDLRecordSet> 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, boolean) 099 */ 100 public static DDLRecordSet update(DDLRecordSet ddlRecordSet, boolean merge) 101 throws SystemException { 102 return getPersistence().update(ddlRecordSet, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DDLRecordSet update(DDLRecordSet ddlRecordSet, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(ddlRecordSet, merge, serviceContext); 111 } 112 113 /** 114 * Caches the d d l record set in the entity cache if it is enabled. 115 * 116 * @param ddlRecordSet the d d l record set 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) { 120 getPersistence().cacheResult(ddlRecordSet); 121 } 122 123 /** 124 * Caches the d d l record sets in the entity cache if it is enabled. 125 * 126 * @param ddlRecordSets the d d l record sets 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> ddlRecordSets) { 130 getPersistence().cacheResult(ddlRecordSets); 131 } 132 133 /** 134 * Creates a new d d l record set with the primary key. Does not add the d d l record set to the database. 135 * 136 * @param recordSetId the primary key for the new d d l record set 137 * @return the new d d l record set 138 */ 139 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet create( 140 long recordSetId) { 141 return getPersistence().create(recordSetId); 142 } 143 144 /** 145 * Removes the d d l record set with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param recordSetId the primary key of the d d l record set 148 * @return the d d l record set that was removed 149 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet remove( 153 long recordSetId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 156 return getPersistence().remove(recordSetId); 157 } 158 159 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateImpl( 160 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(ddlRecordSet, merge); 164 } 165 166 /** 167 * Returns the d d l record set with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found. 168 * 169 * @param recordSetId the primary key of the d d l record set 170 * @return the d d l record set 171 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByPrimaryKey( 175 long recordSetId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 178 return getPersistence().findByPrimaryKey(recordSetId); 179 } 180 181 /** 182 * Returns the d d l record set with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param recordSetId the primary key of the d d l record set 185 * @return the d d l record set, or <code>null</code> if a d d l record set with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByPrimaryKey( 189 long recordSetId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(recordSetId); 192 } 193 194 /** 195 * Returns all the d d l record sets where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching d d l record sets 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the d d l record sets where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of d d l record sets 216 * @param end the upper bound of the range of d d l record sets (not inclusive) 217 * @return the range of matching d d l record sets 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the d d l record sets where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of d d l record sets 235 * @param end the upper bound of the range of d d l record sets (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching d d l record sets 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first d d l record set in the ordered set where uuid = ?. 249 * 250 * @param uuid the uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching d d l record set 253 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Returns the first d d l record set in the ordered set where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUuid_First( 273 java.lang.String uuid, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last d d l record set in the ordered set where uuid = ?. 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching d d l record set 285 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the last d d l record set in the ordered set where uuid = ?. 298 * 299 * @param uuid the uuid 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUuid_Last( 305 java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the d d l record sets before and after the current d d l record set in the ordered set where uuid = ?. 313 * 314 * @param recordSetId the primary key of the current d d l record set 315 * @param uuid the uuid 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next d d l record set 318 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByUuid_PrevAndNext( 322 long recordSetId, java.lang.String uuid, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 326 return getPersistence() 327 .findByUuid_PrevAndNext(recordSetId, uuid, orderByComparator); 328 } 329 330 /** 331 * Returns the d d l record set where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found. 332 * 333 * @param uuid the uuid 334 * @param groupId the group ID 335 * @return the matching d d l record set 336 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 343 return getPersistence().findByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns the d d l record set where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUUID_G( 355 java.lang.String uuid, long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId); 358 } 359 360 /** 361 * Returns the d d l record set where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 362 * 363 * @param uuid the uuid 364 * @param groupId the group ID 365 * @param retrieveFromCache whether to use the finder cache 366 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUUID_G( 370 java.lang.String uuid, long groupId, boolean retrieveFromCache) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 373 } 374 375 /** 376 * Returns all the d d l record sets where groupId = ?. 377 * 378 * @param groupId the group ID 379 * @return the matching d d l record sets 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId( 383 long groupId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId); 386 } 387 388 /** 389 * Returns a range of all the d d l record sets where groupId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param groupId the group ID 396 * @param start the lower bound of the range of d d l record sets 397 * @param end the upper bound of the range of d d l record sets (not inclusive) 398 * @return the range of matching d d l record sets 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId( 402 long groupId, int start, int end) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return getPersistence().findByGroupId(groupId, start, end); 405 } 406 407 /** 408 * Returns an ordered range of all the d d l record sets where groupId = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param groupId the group ID 415 * @param start the lower bound of the range of d d l record sets 416 * @param end the upper bound of the range of d d l record sets (not inclusive) 417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 418 * @return the ordered range of matching d d l record sets 419 * @throws SystemException if a system exception occurred 420 */ 421 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId( 422 long groupId, int start, int end, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence() 426 .findByGroupId(groupId, start, end, orderByComparator); 427 } 428 429 /** 430 * Returns the first d d l record set in the ordered set where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching d d l record set 435 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_First( 439 long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 443 return getPersistence().findByGroupId_First(groupId, orderByComparator); 444 } 445 446 /** 447 * Returns the first d d l record set in the ordered set where groupId = ?. 448 * 449 * @param groupId the group ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByGroupId_First( 455 long groupId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the last d d l record set in the ordered set where groupId = ?. 463 * 464 * @param groupId the group ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching d d l record set 467 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_Last( 471 long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 475 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 476 } 477 478 /** 479 * Returns the last d d l record set in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 491 } 492 493 /** 494 * Returns the d d l record sets before and after the current d d l record set in the ordered set where groupId = ?. 495 * 496 * @param recordSetId the primary key of the current d d l record set 497 * @param groupId the group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the previous, current, and next d d l record set 500 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByGroupId_PrevAndNext( 504 long recordSetId, long groupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 508 return getPersistence() 509 .findByGroupId_PrevAndNext(recordSetId, groupId, 510 orderByComparator); 511 } 512 513 /** 514 * Returns all the d d l record sets that the user has permission to view where groupId = ?. 515 * 516 * @param groupId the group ID 517 * @return the matching d d l record sets that the user has permission to view 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId( 521 long groupId) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence().filterFindByGroupId(groupId); 524 } 525 526 /** 527 * Returns a range of all the d d l record sets that the user has permission to view where groupId = ?. 528 * 529 * <p> 530 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param start the lower bound of the range of d d l record sets 535 * @param end the upper bound of the range of d d l record sets (not inclusive) 536 * @return the range of matching d d l record sets that the user has permission to view 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId( 540 long groupId, int start, int end) 541 throws com.liferay.portal.kernel.exception.SystemException { 542 return getPersistence().filterFindByGroupId(groupId, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the d d l record sets that the user has permissions to view where groupId = ?. 547 * 548 * <p> 549 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param start the lower bound of the range of d d l record sets 554 * @param end the upper bound of the range of d d l record sets (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching d d l record sets that the user has permission to view 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId( 560 long groupId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .filterFindByGroupId(groupId, start, end, orderByComparator); 565 } 566 567 /** 568 * Returns the d d l record sets before and after the current d d l record set in the ordered set of d d l record sets that the user has permission to view where groupId = ?. 569 * 570 * @param recordSetId the primary key of the current d d l record set 571 * @param groupId the group ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next d d l record set 574 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] filterFindByGroupId_PrevAndNext( 578 long recordSetId, long groupId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 582 return getPersistence() 583 .filterFindByGroupId_PrevAndNext(recordSetId, groupId, 584 orderByComparator); 585 } 586 587 /** 588 * Returns the d d l record set where groupId = ? and recordSetKey = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found. 589 * 590 * @param groupId the group ID 591 * @param recordSetKey the record set key 592 * @return the matching d d l record set 593 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found 594 * @throws SystemException if a system exception occurred 595 */ 596 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByG_R( 597 long groupId, java.lang.String recordSetKey) 598 throws com.liferay.portal.kernel.exception.SystemException, 599 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 600 return getPersistence().findByG_R(groupId, recordSetKey); 601 } 602 603 /** 604 * Returns the d d l record set where groupId = ? and recordSetKey = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 605 * 606 * @param groupId the group ID 607 * @param recordSetKey the record set key 608 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 609 * @throws SystemException if a system exception occurred 610 */ 611 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R( 612 long groupId, java.lang.String recordSetKey) 613 throws com.liferay.portal.kernel.exception.SystemException { 614 return getPersistence().fetchByG_R(groupId, recordSetKey); 615 } 616 617 /** 618 * Returns the d d l record set where groupId = ? and recordSetKey = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 619 * 620 * @param groupId the group ID 621 * @param recordSetKey the record set key 622 * @param retrieveFromCache whether to use the finder cache 623 * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found 624 * @throws SystemException if a system exception occurred 625 */ 626 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R( 627 long groupId, java.lang.String recordSetKey, boolean retrieveFromCache) 628 throws com.liferay.portal.kernel.exception.SystemException { 629 return getPersistence() 630 .fetchByG_R(groupId, recordSetKey, retrieveFromCache); 631 } 632 633 /** 634 * Returns all the d d l record sets. 635 * 636 * @return the d d l record sets 637 * @throws SystemException if a system exception occurred 638 */ 639 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll() 640 throws com.liferay.portal.kernel.exception.SystemException { 641 return getPersistence().findAll(); 642 } 643 644 /** 645 * Returns a range of all the d d l record sets. 646 * 647 * <p> 648 * 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. 649 * </p> 650 * 651 * @param start the lower bound of the range of d d l record sets 652 * @param end the upper bound of the range of d d l record sets (not inclusive) 653 * @return the range of d d l record sets 654 * @throws SystemException if a system exception occurred 655 */ 656 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll( 657 int start, int end) 658 throws com.liferay.portal.kernel.exception.SystemException { 659 return getPersistence().findAll(start, end); 660 } 661 662 /** 663 * Returns an ordered range of all the d d l record sets. 664 * 665 * <p> 666 * 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. 667 * </p> 668 * 669 * @param start the lower bound of the range of d d l record sets 670 * @param end the upper bound of the range of d d l record sets (not inclusive) 671 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 672 * @return the ordered range of d d l record sets 673 * @throws SystemException if a system exception occurred 674 */ 675 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll( 676 int start, int end, 677 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence().findAll(start, end, orderByComparator); 680 } 681 682 /** 683 * Removes all the d d l record sets where uuid = ? from the database. 684 * 685 * @param uuid the uuid 686 * @throws SystemException if a system exception occurred 687 */ 688 public static void removeByUuid(java.lang.String uuid) 689 throws com.liferay.portal.kernel.exception.SystemException { 690 getPersistence().removeByUuid(uuid); 691 } 692 693 /** 694 * Removes the d d l record set where uuid = ? and groupId = ? from the database. 695 * 696 * @param uuid the uuid 697 * @param groupId the group ID 698 * @return the d d l record set that was removed 699 * @throws SystemException if a system exception occurred 700 */ 701 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet removeByUUID_G( 702 java.lang.String uuid, long groupId) 703 throws com.liferay.portal.kernel.exception.SystemException, 704 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 705 return getPersistence().removeByUUID_G(uuid, groupId); 706 } 707 708 /** 709 * Removes all the d d l record sets where groupId = ? from the database. 710 * 711 * @param groupId the group ID 712 * @throws SystemException if a system exception occurred 713 */ 714 public static void removeByGroupId(long groupId) 715 throws com.liferay.portal.kernel.exception.SystemException { 716 getPersistence().removeByGroupId(groupId); 717 } 718 719 /** 720 * Removes the d d l record set where groupId = ? and recordSetKey = ? from the database. 721 * 722 * @param groupId the group ID 723 * @param recordSetKey the record set key 724 * @return the d d l record set that was removed 725 * @throws SystemException if a system exception occurred 726 */ 727 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet removeByG_R( 728 long groupId, java.lang.String recordSetKey) 729 throws com.liferay.portal.kernel.exception.SystemException, 730 com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException { 731 return getPersistence().removeByG_R(groupId, recordSetKey); 732 } 733 734 /** 735 * Removes all the d d l record sets from the database. 736 * 737 * @throws SystemException if a system exception occurred 738 */ 739 public static void removeAll() 740 throws com.liferay.portal.kernel.exception.SystemException { 741 getPersistence().removeAll(); 742 } 743 744 /** 745 * Returns the number of d d l record sets where uuid = ?. 746 * 747 * @param uuid the uuid 748 * @return the number of matching d d l record sets 749 * @throws SystemException if a system exception occurred 750 */ 751 public static int countByUuid(java.lang.String uuid) 752 throws com.liferay.portal.kernel.exception.SystemException { 753 return getPersistence().countByUuid(uuid); 754 } 755 756 /** 757 * Returns the number of d d l record sets where uuid = ? and groupId = ?. 758 * 759 * @param uuid the uuid 760 * @param groupId the group ID 761 * @return the number of matching d d l record sets 762 * @throws SystemException if a system exception occurred 763 */ 764 public static int countByUUID_G(java.lang.String uuid, long groupId) 765 throws com.liferay.portal.kernel.exception.SystemException { 766 return getPersistence().countByUUID_G(uuid, groupId); 767 } 768 769 /** 770 * Returns the number of d d l record sets where groupId = ?. 771 * 772 * @param groupId the group ID 773 * @return the number of matching d d l record sets 774 * @throws SystemException if a system exception occurred 775 */ 776 public static int countByGroupId(long groupId) 777 throws com.liferay.portal.kernel.exception.SystemException { 778 return getPersistence().countByGroupId(groupId); 779 } 780 781 /** 782 * Returns the number of d d l record sets that the user has permission to view where groupId = ?. 783 * 784 * @param groupId the group ID 785 * @return the number of matching d d l record sets that the user has permission to view 786 * @throws SystemException if a system exception occurred 787 */ 788 public static int filterCountByGroupId(long groupId) 789 throws com.liferay.portal.kernel.exception.SystemException { 790 return getPersistence().filterCountByGroupId(groupId); 791 } 792 793 /** 794 * Returns the number of d d l record sets where groupId = ? and recordSetKey = ?. 795 * 796 * @param groupId the group ID 797 * @param recordSetKey the record set key 798 * @return the number of matching d d l record sets 799 * @throws SystemException if a system exception occurred 800 */ 801 public static int countByG_R(long groupId, java.lang.String recordSetKey) 802 throws com.liferay.portal.kernel.exception.SystemException { 803 return getPersistence().countByG_R(groupId, recordSetKey); 804 } 805 806 /** 807 * Returns the number of d d l record sets. 808 * 809 * @return the number of d d l record sets 810 * @throws SystemException if a system exception occurred 811 */ 812 public static int countAll() 813 throws com.liferay.portal.kernel.exception.SystemException { 814 return getPersistence().countAll(); 815 } 816 817 public static DDLRecordSetPersistence getPersistence() { 818 if (_persistence == null) { 819 _persistence = (DDLRecordSetPersistence)PortalBeanLocatorUtil.locate(DDLRecordSetPersistence.class.getName()); 820 821 ReferenceRegistry.registerReference(DDLRecordSetUtil.class, 822 "_persistence"); 823 } 824 825 return _persistence; 826 } 827 828 /** 829 * @deprecated 830 */ 831 public void setPersistence(DDLRecordSetPersistence persistence) { 832 } 833 834 private static DDLRecordSetPersistence _persistence; 835 }