001 /** 002 * Copyright (c) 2000-present 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.dynamicdatamapping.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.dynamicdatamapping.model.DDMStructureLayout; 026 027 import java.util.List; 028 029 /** 030 * The persistence utility for the d d m structure layout service. This utility wraps {@link com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMStructureLayoutPersistenceImpl} 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see DDMStructureLayoutPersistence 038 * @see com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMStructureLayoutPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class DDMStructureLayoutUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(DDMStructureLayout ddmStructureLayout) { 060 getPersistence().clearCache(ddmStructureLayout); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<DDMStructureLayout> findWithDynamicQuery( 074 DynamicQuery dynamicQuery) { 075 return getPersistence().findWithDynamicQuery(dynamicQuery); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 080 */ 081 public static List<DDMStructureLayout> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end) { 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<DDMStructureLayout> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator<DDMStructureLayout> orderByComparator) { 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 DDMStructureLayout update( 101 DDMStructureLayout ddmStructureLayout) { 102 return getPersistence().update(ddmStructureLayout); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static DDMStructureLayout update( 109 DDMStructureLayout ddmStructureLayout, ServiceContext serviceContext) { 110 return getPersistence().update(ddmStructureLayout, serviceContext); 111 } 112 113 /** 114 * Returns all the d d m structure layouts where uuid = ?. 115 * 116 * @param uuid the uuid 117 * @return the matching d d m structure layouts 118 */ 119 public static List<DDMStructureLayout> findByUuid(java.lang.String uuid) { 120 return getPersistence().findByUuid(uuid); 121 } 122 123 /** 124 * Returns a range of all the d d m structure layouts where uuid = ?. 125 * 126 * <p> 127 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMStructureLayoutModelImpl}. 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. 128 * </p> 129 * 130 * @param uuid the uuid 131 * @param start the lower bound of the range of d d m structure layouts 132 * @param end the upper bound of the range of d d m structure layouts (not inclusive) 133 * @return the range of matching d d m structure layouts 134 */ 135 public static List<DDMStructureLayout> findByUuid(java.lang.String uuid, 136 int start, int end) { 137 return getPersistence().findByUuid(uuid, start, end); 138 } 139 140 /** 141 * Returns an ordered range of all the d d m structure layouts where uuid = ?. 142 * 143 * <p> 144 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMStructureLayoutModelImpl}. 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. 145 * </p> 146 * 147 * @param uuid the uuid 148 * @param start the lower bound of the range of d d m structure layouts 149 * @param end the upper bound of the range of d d m structure layouts (not inclusive) 150 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 151 * @return the ordered range of matching d d m structure layouts 152 */ 153 public static List<DDMStructureLayout> findByUuid(java.lang.String uuid, 154 int start, int end, 155 OrderByComparator<DDMStructureLayout> orderByComparator) { 156 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 157 } 158 159 /** 160 * Returns the first d d m structure layout in the ordered set where uuid = ?. 161 * 162 * @param uuid the uuid 163 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 164 * @return the first matching d d m structure layout 165 * @throws NoSuchStructureLayoutException if a matching d d m structure layout could not be found 166 */ 167 public static DDMStructureLayout findByUuid_First(java.lang.String uuid, 168 OrderByComparator<DDMStructureLayout> orderByComparator) 169 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 170 return getPersistence().findByUuid_First(uuid, orderByComparator); 171 } 172 173 /** 174 * Returns the first d d m structure layout in the ordered set where uuid = ?. 175 * 176 * @param uuid the uuid 177 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 178 * @return the first matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 179 */ 180 public static DDMStructureLayout fetchByUuid_First(java.lang.String uuid, 181 OrderByComparator<DDMStructureLayout> orderByComparator) { 182 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 183 } 184 185 /** 186 * Returns the last d d m structure layout in the ordered set where uuid = ?. 187 * 188 * @param uuid the uuid 189 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 190 * @return the last matching d d m structure layout 191 * @throws NoSuchStructureLayoutException if a matching d d m structure layout could not be found 192 */ 193 public static DDMStructureLayout findByUuid_Last(java.lang.String uuid, 194 OrderByComparator<DDMStructureLayout> orderByComparator) 195 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 196 return getPersistence().findByUuid_Last(uuid, orderByComparator); 197 } 198 199 /** 200 * Returns the last d d m structure layout in the ordered set where uuid = ?. 201 * 202 * @param uuid the uuid 203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 204 * @return the last matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 205 */ 206 public static DDMStructureLayout fetchByUuid_Last(java.lang.String uuid, 207 OrderByComparator<DDMStructureLayout> orderByComparator) { 208 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 209 } 210 211 /** 212 * Returns the d d m structure layouts before and after the current d d m structure layout in the ordered set where uuid = ?. 213 * 214 * @param structureLayoutId the primary key of the current d d m structure layout 215 * @param uuid the uuid 216 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 217 * @return the previous, current, and next d d m structure layout 218 * @throws NoSuchStructureLayoutException if a d d m structure layout with the primary key could not be found 219 */ 220 public static DDMStructureLayout[] findByUuid_PrevAndNext( 221 long structureLayoutId, java.lang.String uuid, 222 OrderByComparator<DDMStructureLayout> orderByComparator) 223 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 224 return getPersistence() 225 .findByUuid_PrevAndNext(structureLayoutId, uuid, 226 orderByComparator); 227 } 228 229 /** 230 * Removes all the d d m structure layouts where uuid = ? from the database. 231 * 232 * @param uuid the uuid 233 */ 234 public static void removeByUuid(java.lang.String uuid) { 235 getPersistence().removeByUuid(uuid); 236 } 237 238 /** 239 * Returns the number of d d m structure layouts where uuid = ?. 240 * 241 * @param uuid the uuid 242 * @return the number of matching d d m structure layouts 243 */ 244 public static int countByUuid(java.lang.String uuid) { 245 return getPersistence().countByUuid(uuid); 246 } 247 248 /** 249 * Returns the d d m structure layout where uuid = ? and groupId = ? or throws a {@link NoSuchStructureLayoutException} if it could not be found. 250 * 251 * @param uuid the uuid 252 * @param groupId the group ID 253 * @return the matching d d m structure layout 254 * @throws NoSuchStructureLayoutException if a matching d d m structure layout could not be found 255 */ 256 public static DDMStructureLayout findByUUID_G(java.lang.String uuid, 257 long groupId) 258 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 259 return getPersistence().findByUUID_G(uuid, groupId); 260 } 261 262 /** 263 * Returns the d d m structure layout where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 264 * 265 * @param uuid the uuid 266 * @param groupId the group ID 267 * @return the matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 268 */ 269 public static DDMStructureLayout fetchByUUID_G(java.lang.String uuid, 270 long groupId) { 271 return getPersistence().fetchByUUID_G(uuid, groupId); 272 } 273 274 /** 275 * Returns the d d m structure layout where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 276 * 277 * @param uuid the uuid 278 * @param groupId the group ID 279 * @param retrieveFromCache whether to use the finder cache 280 * @return the matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 281 */ 282 public static DDMStructureLayout fetchByUUID_G(java.lang.String uuid, 283 long groupId, boolean retrieveFromCache) { 284 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 285 } 286 287 /** 288 * Removes the d d m structure layout where uuid = ? and groupId = ? from the database. 289 * 290 * @param uuid the uuid 291 * @param groupId the group ID 292 * @return the d d m structure layout that was removed 293 */ 294 public static DDMStructureLayout removeByUUID_G(java.lang.String uuid, 295 long groupId) 296 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 297 return getPersistence().removeByUUID_G(uuid, groupId); 298 } 299 300 /** 301 * Returns the number of d d m structure layouts where uuid = ? and groupId = ?. 302 * 303 * @param uuid the uuid 304 * @param groupId the group ID 305 * @return the number of matching d d m structure layouts 306 */ 307 public static int countByUUID_G(java.lang.String uuid, long groupId) { 308 return getPersistence().countByUUID_G(uuid, groupId); 309 } 310 311 /** 312 * Returns all the d d m structure layouts where uuid = ? and companyId = ?. 313 * 314 * @param uuid the uuid 315 * @param companyId the company ID 316 * @return the matching d d m structure layouts 317 */ 318 public static List<DDMStructureLayout> findByUuid_C(java.lang.String uuid, 319 long companyId) { 320 return getPersistence().findByUuid_C(uuid, companyId); 321 } 322 323 /** 324 * Returns a range of all the d d m structure layouts where uuid = ? and companyId = ?. 325 * 326 * <p> 327 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMStructureLayoutModelImpl}. 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. 328 * </p> 329 * 330 * @param uuid the uuid 331 * @param companyId the company ID 332 * @param start the lower bound of the range of d d m structure layouts 333 * @param end the upper bound of the range of d d m structure layouts (not inclusive) 334 * @return the range of matching d d m structure layouts 335 */ 336 public static List<DDMStructureLayout> findByUuid_C(java.lang.String uuid, 337 long companyId, int start, int end) { 338 return getPersistence().findByUuid_C(uuid, companyId, start, end); 339 } 340 341 /** 342 * Returns an ordered range of all the d d m structure layouts where uuid = ? and companyId = ?. 343 * 344 * <p> 345 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMStructureLayoutModelImpl}. 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. 346 * </p> 347 * 348 * @param uuid the uuid 349 * @param companyId the company ID 350 * @param start the lower bound of the range of d d m structure layouts 351 * @param end the upper bound of the range of d d m structure layouts (not inclusive) 352 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 353 * @return the ordered range of matching d d m structure layouts 354 */ 355 public static List<DDMStructureLayout> findByUuid_C(java.lang.String uuid, 356 long companyId, int start, int end, 357 OrderByComparator<DDMStructureLayout> orderByComparator) { 358 return getPersistence() 359 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 360 } 361 362 /** 363 * Returns the first d d m structure layout in the ordered set where uuid = ? and companyId = ?. 364 * 365 * @param uuid the uuid 366 * @param companyId the company ID 367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 368 * @return the first matching d d m structure layout 369 * @throws NoSuchStructureLayoutException if a matching d d m structure layout could not be found 370 */ 371 public static DDMStructureLayout findByUuid_C_First(java.lang.String uuid, 372 long companyId, OrderByComparator<DDMStructureLayout> orderByComparator) 373 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 374 return getPersistence() 375 .findByUuid_C_First(uuid, companyId, orderByComparator); 376 } 377 378 /** 379 * Returns the first d d m structure layout in the ordered set where uuid = ? and companyId = ?. 380 * 381 * @param uuid the uuid 382 * @param companyId the company ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the first matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 385 */ 386 public static DDMStructureLayout fetchByUuid_C_First( 387 java.lang.String uuid, long companyId, 388 OrderByComparator<DDMStructureLayout> orderByComparator) { 389 return getPersistence() 390 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 391 } 392 393 /** 394 * Returns the last d d m structure layout in the ordered set where uuid = ? and companyId = ?. 395 * 396 * @param uuid the uuid 397 * @param companyId the company ID 398 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 399 * @return the last matching d d m structure layout 400 * @throws NoSuchStructureLayoutException if a matching d d m structure layout could not be found 401 */ 402 public static DDMStructureLayout findByUuid_C_Last(java.lang.String uuid, 403 long companyId, OrderByComparator<DDMStructureLayout> orderByComparator) 404 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 405 return getPersistence() 406 .findByUuid_C_Last(uuid, companyId, orderByComparator); 407 } 408 409 /** 410 * Returns the last d d m structure layout in the ordered set where uuid = ? and companyId = ?. 411 * 412 * @param uuid the uuid 413 * @param companyId the company ID 414 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 415 * @return the last matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 416 */ 417 public static DDMStructureLayout fetchByUuid_C_Last(java.lang.String uuid, 418 long companyId, OrderByComparator<DDMStructureLayout> orderByComparator) { 419 return getPersistence() 420 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 421 } 422 423 /** 424 * Returns the d d m structure layouts before and after the current d d m structure layout in the ordered set where uuid = ? and companyId = ?. 425 * 426 * @param structureLayoutId the primary key of the current d d m structure layout 427 * @param uuid the uuid 428 * @param companyId the company ID 429 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 430 * @return the previous, current, and next d d m structure layout 431 * @throws NoSuchStructureLayoutException if a d d m structure layout with the primary key could not be found 432 */ 433 public static DDMStructureLayout[] findByUuid_C_PrevAndNext( 434 long structureLayoutId, java.lang.String uuid, long companyId, 435 OrderByComparator<DDMStructureLayout> orderByComparator) 436 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 437 return getPersistence() 438 .findByUuid_C_PrevAndNext(structureLayoutId, uuid, 439 companyId, orderByComparator); 440 } 441 442 /** 443 * Removes all the d d m structure layouts where uuid = ? and companyId = ? from the database. 444 * 445 * @param uuid the uuid 446 * @param companyId the company ID 447 */ 448 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 449 getPersistence().removeByUuid_C(uuid, companyId); 450 } 451 452 /** 453 * Returns the number of d d m structure layouts where uuid = ? and companyId = ?. 454 * 455 * @param uuid the uuid 456 * @param companyId the company ID 457 * @return the number of matching d d m structure layouts 458 */ 459 public static int countByUuid_C(java.lang.String uuid, long companyId) { 460 return getPersistence().countByUuid_C(uuid, companyId); 461 } 462 463 /** 464 * Returns the d d m structure layout where structureVersionId = ? or throws a {@link NoSuchStructureLayoutException} if it could not be found. 465 * 466 * @param structureVersionId the structure version ID 467 * @return the matching d d m structure layout 468 * @throws NoSuchStructureLayoutException if a matching d d m structure layout could not be found 469 */ 470 public static DDMStructureLayout findByStructureVersionId( 471 long structureVersionId) 472 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 473 return getPersistence().findByStructureVersionId(structureVersionId); 474 } 475 476 /** 477 * Returns the d d m structure layout where structureVersionId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 478 * 479 * @param structureVersionId the structure version ID 480 * @return the matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 481 */ 482 public static DDMStructureLayout fetchByStructureVersionId( 483 long structureVersionId) { 484 return getPersistence().fetchByStructureVersionId(structureVersionId); 485 } 486 487 /** 488 * Returns the d d m structure layout where structureVersionId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 489 * 490 * @param structureVersionId the structure version ID 491 * @param retrieveFromCache whether to use the finder cache 492 * @return the matching d d m structure layout, or <code>null</code> if a matching d d m structure layout could not be found 493 */ 494 public static DDMStructureLayout fetchByStructureVersionId( 495 long structureVersionId, boolean retrieveFromCache) { 496 return getPersistence() 497 .fetchByStructureVersionId(structureVersionId, 498 retrieveFromCache); 499 } 500 501 /** 502 * Removes the d d m structure layout where structureVersionId = ? from the database. 503 * 504 * @param structureVersionId the structure version ID 505 * @return the d d m structure layout that was removed 506 */ 507 public static DDMStructureLayout removeByStructureVersionId( 508 long structureVersionId) 509 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 510 return getPersistence().removeByStructureVersionId(structureVersionId); 511 } 512 513 /** 514 * Returns the number of d d m structure layouts where structureVersionId = ?. 515 * 516 * @param structureVersionId the structure version ID 517 * @return the number of matching d d m structure layouts 518 */ 519 public static int countByStructureVersionId(long structureVersionId) { 520 return getPersistence().countByStructureVersionId(structureVersionId); 521 } 522 523 /** 524 * Caches the d d m structure layout in the entity cache if it is enabled. 525 * 526 * @param ddmStructureLayout the d d m structure layout 527 */ 528 public static void cacheResult(DDMStructureLayout ddmStructureLayout) { 529 getPersistence().cacheResult(ddmStructureLayout); 530 } 531 532 /** 533 * Caches the d d m structure layouts in the entity cache if it is enabled. 534 * 535 * @param ddmStructureLayouts the d d m structure layouts 536 */ 537 public static void cacheResult(List<DDMStructureLayout> ddmStructureLayouts) { 538 getPersistence().cacheResult(ddmStructureLayouts); 539 } 540 541 /** 542 * Creates a new d d m structure layout with the primary key. Does not add the d d m structure layout to the database. 543 * 544 * @param structureLayoutId the primary key for the new d d m structure layout 545 * @return the new d d m structure layout 546 */ 547 public static DDMStructureLayout create(long structureLayoutId) { 548 return getPersistence().create(structureLayoutId); 549 } 550 551 /** 552 * Removes the d d m structure layout with the primary key from the database. Also notifies the appropriate model listeners. 553 * 554 * @param structureLayoutId the primary key of the d d m structure layout 555 * @return the d d m structure layout that was removed 556 * @throws NoSuchStructureLayoutException if a d d m structure layout with the primary key could not be found 557 */ 558 public static DDMStructureLayout remove(long structureLayoutId) 559 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 560 return getPersistence().remove(structureLayoutId); 561 } 562 563 public static DDMStructureLayout updateImpl( 564 DDMStructureLayout ddmStructureLayout) { 565 return getPersistence().updateImpl(ddmStructureLayout); 566 } 567 568 /** 569 * Returns the d d m structure layout with the primary key or throws a {@link NoSuchStructureLayoutException} if it could not be found. 570 * 571 * @param structureLayoutId the primary key of the d d m structure layout 572 * @return the d d m structure layout 573 * @throws NoSuchStructureLayoutException if a d d m structure layout with the primary key could not be found 574 */ 575 public static DDMStructureLayout findByPrimaryKey(long structureLayoutId) 576 throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLayoutException { 577 return getPersistence().findByPrimaryKey(structureLayoutId); 578 } 579 580 /** 581 * Returns the d d m structure layout with the primary key or returns <code>null</code> if it could not be found. 582 * 583 * @param structureLayoutId the primary key of the d d m structure layout 584 * @return the d d m structure layout, or <code>null</code> if a d d m structure layout with the primary key could not be found 585 */ 586 public static DDMStructureLayout fetchByPrimaryKey(long structureLayoutId) { 587 return getPersistence().fetchByPrimaryKey(structureLayoutId); 588 } 589 590 public static java.util.Map<java.io.Serializable, DDMStructureLayout> fetchByPrimaryKeys( 591 java.util.Set<java.io.Serializable> primaryKeys) { 592 return getPersistence().fetchByPrimaryKeys(primaryKeys); 593 } 594 595 /** 596 * Returns all the d d m structure layouts. 597 * 598 * @return the d d m structure layouts 599 */ 600 public static List<DDMStructureLayout> findAll() { 601 return getPersistence().findAll(); 602 } 603 604 /** 605 * Returns a range of all the d d m structure layouts. 606 * 607 * <p> 608 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMStructureLayoutModelImpl}. 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. 609 * </p> 610 * 611 * @param start the lower bound of the range of d d m structure layouts 612 * @param end the upper bound of the range of d d m structure layouts (not inclusive) 613 * @return the range of d d m structure layouts 614 */ 615 public static List<DDMStructureLayout> findAll(int start, int end) { 616 return getPersistence().findAll(start, end); 617 } 618 619 /** 620 * Returns an ordered range of all the d d m structure layouts. 621 * 622 * <p> 623 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DDMStructureLayoutModelImpl}. 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. 624 * </p> 625 * 626 * @param start the lower bound of the range of d d m structure layouts 627 * @param end the upper bound of the range of d d m structure layouts (not inclusive) 628 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 629 * @return the ordered range of d d m structure layouts 630 */ 631 public static List<DDMStructureLayout> findAll(int start, int end, 632 OrderByComparator<DDMStructureLayout> orderByComparator) { 633 return getPersistence().findAll(start, end, orderByComparator); 634 } 635 636 /** 637 * Removes all the d d m structure layouts from the database. 638 */ 639 public static void removeAll() { 640 getPersistence().removeAll(); 641 } 642 643 /** 644 * Returns the number of d d m structure layouts. 645 * 646 * @return the number of d d m structure layouts 647 */ 648 public static int countAll() { 649 return getPersistence().countAll(); 650 } 651 652 public static DDMStructureLayoutPersistence getPersistence() { 653 if (_persistence == null) { 654 _persistence = (DDMStructureLayoutPersistence)PortalBeanLocatorUtil.locate(DDMStructureLayoutPersistence.class.getName()); 655 656 ReferenceRegistry.registerReference(DDMStructureLayoutUtil.class, 657 "_persistence"); 658 } 659 660 return _persistence; 661 } 662 663 /** 664 * @deprecated As of 6.2.0 665 */ 666 @Deprecated 667 public void setPersistence(DDMStructureLayoutPersistence persistence) { 668 } 669 670 private static DDMStructureLayoutPersistence _persistence; 671 }