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.portal.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.model.Layout; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the layout service. This utility wraps {@link LayoutPersistenceImpl} 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. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see LayoutPersistence 036 * @see LayoutPersistenceImpl 037 * @generated 038 */ 039 public class LayoutUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(Layout layout) { 057 getPersistence().clearCache(layout); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery) 072 throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery, 080 int start, int end) throws SystemException { 081 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 082 } 083 084 /** 085 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 086 */ 087 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery, 088 int start, int end, OrderByComparator orderByComparator) 089 throws SystemException { 090 return getPersistence() 091 .findWithDynamicQuery(dynamicQuery, start, end, 092 orderByComparator); 093 } 094 095 /** 096 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 097 */ 098 public static Layout update(Layout layout, boolean merge) 099 throws SystemException { 100 return getPersistence().update(layout, merge); 101 } 102 103 /** 104 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 105 */ 106 public static Layout update(Layout layout, boolean merge, 107 ServiceContext serviceContext) throws SystemException { 108 return getPersistence().update(layout, merge, serviceContext); 109 } 110 111 /** 112 * Caches the layout in the entity cache if it is enabled. 113 * 114 * @param layout the layout 115 */ 116 public static void cacheResult(com.liferay.portal.model.Layout layout) { 117 getPersistence().cacheResult(layout); 118 } 119 120 /** 121 * Caches the layouts in the entity cache if it is enabled. 122 * 123 * @param layouts the layouts 124 */ 125 public static void cacheResult( 126 java.util.List<com.liferay.portal.model.Layout> layouts) { 127 getPersistence().cacheResult(layouts); 128 } 129 130 /** 131 * Creates a new layout with the primary key. Does not add the layout to the database. 132 * 133 * @param plid the primary key for the new layout 134 * @return the new layout 135 */ 136 public static com.liferay.portal.model.Layout create(long plid) { 137 return getPersistence().create(plid); 138 } 139 140 /** 141 * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners. 142 * 143 * @param plid the primary key of the layout 144 * @return the layout that was removed 145 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 146 * @throws SystemException if a system exception occurred 147 */ 148 public static com.liferay.portal.model.Layout remove(long plid) 149 throws com.liferay.portal.NoSuchLayoutException, 150 com.liferay.portal.kernel.exception.SystemException { 151 return getPersistence().remove(plid); 152 } 153 154 public static com.liferay.portal.model.Layout updateImpl( 155 com.liferay.portal.model.Layout layout, boolean merge) 156 throws com.liferay.portal.kernel.exception.SystemException { 157 return getPersistence().updateImpl(layout, merge); 158 } 159 160 /** 161 * Returns the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 162 * 163 * @param plid the primary key of the layout 164 * @return the layout 165 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public static com.liferay.portal.model.Layout findByPrimaryKey(long plid) 169 throws com.liferay.portal.NoSuchLayoutException, 170 com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().findByPrimaryKey(plid); 172 } 173 174 /** 175 * Returns the layout with the primary key or returns <code>null</code> if it could not be found. 176 * 177 * @param plid the primary key of the layout 178 * @return the layout, or <code>null</code> if a layout with the primary key could not be found 179 * @throws SystemException if a system exception occurred 180 */ 181 public static com.liferay.portal.model.Layout fetchByPrimaryKey(long plid) 182 throws com.liferay.portal.kernel.exception.SystemException { 183 return getPersistence().fetchByPrimaryKey(plid); 184 } 185 186 /** 187 * Returns all the layouts where uuid = ?. 188 * 189 * @param uuid the uuid 190 * @return the matching layouts 191 * @throws SystemException if a system exception occurred 192 */ 193 public static java.util.List<com.liferay.portal.model.Layout> findByUuid( 194 java.lang.String uuid) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return getPersistence().findByUuid(uuid); 197 } 198 199 /** 200 * Returns a range of all the layouts where uuid = ?. 201 * 202 * <p> 203 * 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. 204 * </p> 205 * 206 * @param uuid the uuid 207 * @param start the lower bound of the range of layouts 208 * @param end the upper bound of the range of layouts (not inclusive) 209 * @return the range of matching layouts 210 * @throws SystemException if a system exception occurred 211 */ 212 public static java.util.List<com.liferay.portal.model.Layout> findByUuid( 213 java.lang.String uuid, int start, int end) 214 throws com.liferay.portal.kernel.exception.SystemException { 215 return getPersistence().findByUuid(uuid, start, end); 216 } 217 218 /** 219 * Returns an ordered range of all the layouts where uuid = ?. 220 * 221 * <p> 222 * 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. 223 * </p> 224 * 225 * @param uuid the uuid 226 * @param start the lower bound of the range of layouts 227 * @param end the upper bound of the range of layouts (not inclusive) 228 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 229 * @return the ordered range of matching layouts 230 * @throws SystemException if a system exception occurred 231 */ 232 public static java.util.List<com.liferay.portal.model.Layout> findByUuid( 233 java.lang.String uuid, int start, int end, 234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 235 throws com.liferay.portal.kernel.exception.SystemException { 236 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 237 } 238 239 /** 240 * Returns the first layout in the ordered set where uuid = ?. 241 * 242 * @param uuid the uuid 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the first matching layout 245 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public static com.liferay.portal.model.Layout findByUuid_First( 249 java.lang.String uuid, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.NoSuchLayoutException, 252 com.liferay.portal.kernel.exception.SystemException { 253 return getPersistence().findByUuid_First(uuid, orderByComparator); 254 } 255 256 /** 257 * Returns the first layout in the ordered set where uuid = ?. 258 * 259 * @param uuid the uuid 260 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 261 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 262 * @throws SystemException if a system exception occurred 263 */ 264 public static com.liferay.portal.model.Layout fetchByUuid_First( 265 java.lang.String uuid, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.kernel.exception.SystemException { 268 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 269 } 270 271 /** 272 * Returns the last layout in the ordered set where uuid = ?. 273 * 274 * @param uuid the uuid 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the last matching layout 277 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public static com.liferay.portal.model.Layout findByUuid_Last( 281 java.lang.String uuid, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.NoSuchLayoutException, 284 com.liferay.portal.kernel.exception.SystemException { 285 return getPersistence().findByUuid_Last(uuid, orderByComparator); 286 } 287 288 /** 289 * Returns the last layout in the ordered set where uuid = ?. 290 * 291 * @param uuid the uuid 292 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 293 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 294 * @throws SystemException if a system exception occurred 295 */ 296 public static com.liferay.portal.model.Layout fetchByUuid_Last( 297 java.lang.String uuid, 298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 299 throws com.liferay.portal.kernel.exception.SystemException { 300 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 301 } 302 303 /** 304 * Returns the layouts before and after the current layout in the ordered set where uuid = ?. 305 * 306 * @param plid the primary key of the current layout 307 * @param uuid the uuid 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the previous, current, and next layout 310 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 311 * @throws SystemException if a system exception occurred 312 */ 313 public static com.liferay.portal.model.Layout[] findByUuid_PrevAndNext( 314 long plid, java.lang.String uuid, 315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 316 throws com.liferay.portal.NoSuchLayoutException, 317 com.liferay.portal.kernel.exception.SystemException { 318 return getPersistence() 319 .findByUuid_PrevAndNext(plid, uuid, orderByComparator); 320 } 321 322 /** 323 * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 324 * 325 * @param uuid the uuid 326 * @param groupId the group ID 327 * @param privateLayout the private layout 328 * @return the matching layout 329 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 330 * @throws SystemException if a system exception occurred 331 */ 332 public static com.liferay.portal.model.Layout findByUUID_G_P( 333 java.lang.String uuid, long groupId, boolean privateLayout) 334 throws com.liferay.portal.NoSuchLayoutException, 335 com.liferay.portal.kernel.exception.SystemException { 336 return getPersistence().findByUUID_G_P(uuid, groupId, privateLayout); 337 } 338 339 /** 340 * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 341 * 342 * @param uuid the uuid 343 * @param groupId the group ID 344 * @param privateLayout the private layout 345 * @return the matching layout, or <code>null</code> if a matching layout could not be found 346 * @throws SystemException if a system exception occurred 347 */ 348 public static com.liferay.portal.model.Layout fetchByUUID_G_P( 349 java.lang.String uuid, long groupId, boolean privateLayout) 350 throws com.liferay.portal.kernel.exception.SystemException { 351 return getPersistence().fetchByUUID_G_P(uuid, groupId, privateLayout); 352 } 353 354 /** 355 * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 356 * 357 * @param uuid the uuid 358 * @param groupId the group ID 359 * @param privateLayout the private layout 360 * @param retrieveFromCache whether to use the finder cache 361 * @return the matching layout, or <code>null</code> if a matching layout could not be found 362 * @throws SystemException if a system exception occurred 363 */ 364 public static com.liferay.portal.model.Layout fetchByUUID_G_P( 365 java.lang.String uuid, long groupId, boolean privateLayout, 366 boolean retrieveFromCache) 367 throws com.liferay.portal.kernel.exception.SystemException { 368 return getPersistence() 369 .fetchByUUID_G_P(uuid, groupId, privateLayout, 370 retrieveFromCache); 371 } 372 373 /** 374 * Returns all the layouts where groupId = ?. 375 * 376 * @param groupId the group ID 377 * @return the matching layouts 378 * @throws SystemException if a system exception occurred 379 */ 380 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId( 381 long groupId) 382 throws com.liferay.portal.kernel.exception.SystemException { 383 return getPersistence().findByGroupId(groupId); 384 } 385 386 /** 387 * Returns a range of all the layouts where groupId = ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param groupId the group ID 394 * @param start the lower bound of the range of layouts 395 * @param end the upper bound of the range of layouts (not inclusive) 396 * @return the range of matching layouts 397 * @throws SystemException if a system exception occurred 398 */ 399 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId( 400 long groupId, int start, int end) 401 throws com.liferay.portal.kernel.exception.SystemException { 402 return getPersistence().findByGroupId(groupId, start, end); 403 } 404 405 /** 406 * Returns an ordered range of all the layouts where groupId = ?. 407 * 408 * <p> 409 * 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. 410 * </p> 411 * 412 * @param groupId the group ID 413 * @param start the lower bound of the range of layouts 414 * @param end the upper bound of the range of layouts (not inclusive) 415 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 416 * @return the ordered range of matching layouts 417 * @throws SystemException if a system exception occurred 418 */ 419 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId( 420 long groupId, int start, int end, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException { 423 return getPersistence() 424 .findByGroupId(groupId, start, end, orderByComparator); 425 } 426 427 /** 428 * Returns the first layout in the ordered set where groupId = ?. 429 * 430 * @param groupId the group ID 431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 432 * @return the first matching layout 433 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public static com.liferay.portal.model.Layout findByGroupId_First( 437 long groupId, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.NoSuchLayoutException, 440 com.liferay.portal.kernel.exception.SystemException { 441 return getPersistence().findByGroupId_First(groupId, orderByComparator); 442 } 443 444 /** 445 * Returns the first layout in the ordered set where groupId = ?. 446 * 447 * @param groupId the group ID 448 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 449 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 450 * @throws SystemException if a system exception occurred 451 */ 452 public static com.liferay.portal.model.Layout fetchByGroupId_First( 453 long groupId, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException { 456 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 457 } 458 459 /** 460 * Returns the last layout in the ordered set where groupId = ?. 461 * 462 * @param groupId the group ID 463 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 464 * @return the last matching layout 465 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 466 * @throws SystemException if a system exception occurred 467 */ 468 public static com.liferay.portal.model.Layout findByGroupId_Last( 469 long groupId, 470 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 471 throws com.liferay.portal.NoSuchLayoutException, 472 com.liferay.portal.kernel.exception.SystemException { 473 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 474 } 475 476 /** 477 * Returns the last layout in the ordered set where groupId = ?. 478 * 479 * @param groupId the group ID 480 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 481 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 482 * @throws SystemException if a system exception occurred 483 */ 484 public static com.liferay.portal.model.Layout fetchByGroupId_Last( 485 long groupId, 486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 487 throws com.liferay.portal.kernel.exception.SystemException { 488 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 489 } 490 491 /** 492 * Returns the layouts before and after the current layout in the ordered set where groupId = ?. 493 * 494 * @param plid the primary key of the current layout 495 * @param groupId the group ID 496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 497 * @return the previous, current, and next layout 498 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public static com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext( 502 long plid, long groupId, 503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 504 throws com.liferay.portal.NoSuchLayoutException, 505 com.liferay.portal.kernel.exception.SystemException { 506 return getPersistence() 507 .findByGroupId_PrevAndNext(plid, groupId, orderByComparator); 508 } 509 510 /** 511 * Returns all the layouts that the user has permission to view where groupId = ?. 512 * 513 * @param groupId the group ID 514 * @return the matching layouts that the user has permission to view 515 * @throws SystemException if a system exception occurred 516 */ 517 public static java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId( 518 long groupId) 519 throws com.liferay.portal.kernel.exception.SystemException { 520 return getPersistence().filterFindByGroupId(groupId); 521 } 522 523 /** 524 * Returns a range of all the layouts that the user has permission to view where groupId = ?. 525 * 526 * <p> 527 * 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. 528 * </p> 529 * 530 * @param groupId the group ID 531 * @param start the lower bound of the range of layouts 532 * @param end the upper bound of the range of layouts (not inclusive) 533 * @return the range of matching layouts that the user has permission to view 534 * @throws SystemException if a system exception occurred 535 */ 536 public static java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId( 537 long groupId, int start, int end) 538 throws com.liferay.portal.kernel.exception.SystemException { 539 return getPersistence().filterFindByGroupId(groupId, start, end); 540 } 541 542 /** 543 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ?. 544 * 545 * <p> 546 * 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. 547 * </p> 548 * 549 * @param groupId the group ID 550 * @param start the lower bound of the range of layouts 551 * @param end the upper bound of the range of layouts (not inclusive) 552 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 553 * @return the ordered range of matching layouts that the user has permission to view 554 * @throws SystemException if a system exception occurred 555 */ 556 public static java.util.List<com.liferay.portal.model.Layout> filterFindByGroupId( 557 long groupId, int start, int end, 558 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 559 throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence() 561 .filterFindByGroupId(groupId, start, end, orderByComparator); 562 } 563 564 /** 565 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ?. 566 * 567 * @param plid the primary key of the current layout 568 * @param groupId the group ID 569 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 570 * @return the previous, current, and next layout 571 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 572 * @throws SystemException if a system exception occurred 573 */ 574 public static com.liferay.portal.model.Layout[] filterFindByGroupId_PrevAndNext( 575 long plid, long groupId, 576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 577 throws com.liferay.portal.NoSuchLayoutException, 578 com.liferay.portal.kernel.exception.SystemException { 579 return getPersistence() 580 .filterFindByGroupId_PrevAndNext(plid, groupId, 581 orderByComparator); 582 } 583 584 /** 585 * Returns all the layouts where companyId = ?. 586 * 587 * @param companyId the company ID 588 * @return the matching layouts 589 * @throws SystemException if a system exception occurred 590 */ 591 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 592 long companyId) 593 throws com.liferay.portal.kernel.exception.SystemException { 594 return getPersistence().findByCompanyId(companyId); 595 } 596 597 /** 598 * Returns a range of all the layouts where companyId = ?. 599 * 600 * <p> 601 * 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. 602 * </p> 603 * 604 * @param companyId the company ID 605 * @param start the lower bound of the range of layouts 606 * @param end the upper bound of the range of layouts (not inclusive) 607 * @return the range of matching layouts 608 * @throws SystemException if a system exception occurred 609 */ 610 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 611 long companyId, int start, int end) 612 throws com.liferay.portal.kernel.exception.SystemException { 613 return getPersistence().findByCompanyId(companyId, start, end); 614 } 615 616 /** 617 * Returns an ordered range of all the layouts where companyId = ?. 618 * 619 * <p> 620 * 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. 621 * </p> 622 * 623 * @param companyId the company ID 624 * @param start the lower bound of the range of layouts 625 * @param end the upper bound of the range of layouts (not inclusive) 626 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 627 * @return the ordered range of matching layouts 628 * @throws SystemException if a system exception occurred 629 */ 630 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 631 long companyId, int start, int end, 632 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 633 throws com.liferay.portal.kernel.exception.SystemException { 634 return getPersistence() 635 .findByCompanyId(companyId, start, end, orderByComparator); 636 } 637 638 /** 639 * Returns the first layout in the ordered set where companyId = ?. 640 * 641 * @param companyId the company ID 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the first matching layout 644 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public static com.liferay.portal.model.Layout findByCompanyId_First( 648 long companyId, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.NoSuchLayoutException, 651 com.liferay.portal.kernel.exception.SystemException { 652 return getPersistence() 653 .findByCompanyId_First(companyId, orderByComparator); 654 } 655 656 /** 657 * Returns the first layout in the ordered set where companyId = ?. 658 * 659 * @param companyId the company ID 660 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 661 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 662 * @throws SystemException if a system exception occurred 663 */ 664 public static com.liferay.portal.model.Layout fetchByCompanyId_First( 665 long companyId, 666 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 667 throws com.liferay.portal.kernel.exception.SystemException { 668 return getPersistence() 669 .fetchByCompanyId_First(companyId, orderByComparator); 670 } 671 672 /** 673 * Returns the last layout in the ordered set where companyId = ?. 674 * 675 * @param companyId the company ID 676 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 677 * @return the last matching layout 678 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 679 * @throws SystemException if a system exception occurred 680 */ 681 public static com.liferay.portal.model.Layout findByCompanyId_Last( 682 long companyId, 683 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 684 throws com.liferay.portal.NoSuchLayoutException, 685 com.liferay.portal.kernel.exception.SystemException { 686 return getPersistence() 687 .findByCompanyId_Last(companyId, orderByComparator); 688 } 689 690 /** 691 * Returns the last layout in the ordered set where companyId = ?. 692 * 693 * @param companyId the company ID 694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 695 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 696 * @throws SystemException if a system exception occurred 697 */ 698 public static com.liferay.portal.model.Layout fetchByCompanyId_Last( 699 long companyId, 700 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 701 throws com.liferay.portal.kernel.exception.SystemException { 702 return getPersistence() 703 .fetchByCompanyId_Last(companyId, orderByComparator); 704 } 705 706 /** 707 * Returns the layouts before and after the current layout in the ordered set where companyId = ?. 708 * 709 * @param plid the primary key of the current layout 710 * @param companyId the company ID 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the previous, current, and next layout 713 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 714 * @throws SystemException if a system exception occurred 715 */ 716 public static com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext( 717 long plid, long companyId, 718 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 719 throws com.liferay.portal.NoSuchLayoutException, 720 com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence() 722 .findByCompanyId_PrevAndNext(plid, companyId, 723 orderByComparator); 724 } 725 726 /** 727 * Returns the layout where iconImageId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 728 * 729 * @param iconImageId the icon image ID 730 * @return the matching layout 731 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 732 * @throws SystemException if a system exception occurred 733 */ 734 public static com.liferay.portal.model.Layout findByIconImageId( 735 long iconImageId) 736 throws com.liferay.portal.NoSuchLayoutException, 737 com.liferay.portal.kernel.exception.SystemException { 738 return getPersistence().findByIconImageId(iconImageId); 739 } 740 741 /** 742 * Returns the layout where iconImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 743 * 744 * @param iconImageId the icon image ID 745 * @return the matching layout, or <code>null</code> if a matching layout could not be found 746 * @throws SystemException if a system exception occurred 747 */ 748 public static com.liferay.portal.model.Layout fetchByIconImageId( 749 long iconImageId) 750 throws com.liferay.portal.kernel.exception.SystemException { 751 return getPersistence().fetchByIconImageId(iconImageId); 752 } 753 754 /** 755 * Returns the layout where iconImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 756 * 757 * @param iconImageId the icon image ID 758 * @param retrieveFromCache whether to use the finder cache 759 * @return the matching layout, or <code>null</code> if a matching layout could not be found 760 * @throws SystemException if a system exception occurred 761 */ 762 public static com.liferay.portal.model.Layout fetchByIconImageId( 763 long iconImageId, boolean retrieveFromCache) 764 throws com.liferay.portal.kernel.exception.SystemException { 765 return getPersistence() 766 .fetchByIconImageId(iconImageId, retrieveFromCache); 767 } 768 769 /** 770 * Returns all the layouts where layoutPrototypeUuid = ?. 771 * 772 * @param layoutPrototypeUuid the layout prototype uuid 773 * @return the matching layouts 774 * @throws SystemException if a system exception occurred 775 */ 776 public static java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid( 777 java.lang.String layoutPrototypeUuid) 778 throws com.liferay.portal.kernel.exception.SystemException { 779 return getPersistence().findByLayoutPrototypeUuid(layoutPrototypeUuid); 780 } 781 782 /** 783 * Returns a range of all the layouts where layoutPrototypeUuid = ?. 784 * 785 * <p> 786 * 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. 787 * </p> 788 * 789 * @param layoutPrototypeUuid the layout prototype uuid 790 * @param start the lower bound of the range of layouts 791 * @param end the upper bound of the range of layouts (not inclusive) 792 * @return the range of matching layouts 793 * @throws SystemException if a system exception occurred 794 */ 795 public static java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid( 796 java.lang.String layoutPrototypeUuid, int start, int end) 797 throws com.liferay.portal.kernel.exception.SystemException { 798 return getPersistence() 799 .findByLayoutPrototypeUuid(layoutPrototypeUuid, start, end); 800 } 801 802 /** 803 * Returns an ordered range of all the layouts where layoutPrototypeUuid = ?. 804 * 805 * <p> 806 * 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. 807 * </p> 808 * 809 * @param layoutPrototypeUuid the layout prototype uuid 810 * @param start the lower bound of the range of layouts 811 * @param end the upper bound of the range of layouts (not inclusive) 812 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 813 * @return the ordered range of matching layouts 814 * @throws SystemException if a system exception occurred 815 */ 816 public static java.util.List<com.liferay.portal.model.Layout> findByLayoutPrototypeUuid( 817 java.lang.String layoutPrototypeUuid, int start, int end, 818 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 819 throws com.liferay.portal.kernel.exception.SystemException { 820 return getPersistence() 821 .findByLayoutPrototypeUuid(layoutPrototypeUuid, start, end, 822 orderByComparator); 823 } 824 825 /** 826 * Returns the first layout in the ordered set where layoutPrototypeUuid = ?. 827 * 828 * @param layoutPrototypeUuid the layout prototype uuid 829 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 830 * @return the first matching layout 831 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 832 * @throws SystemException if a system exception occurred 833 */ 834 public static com.liferay.portal.model.Layout findByLayoutPrototypeUuid_First( 835 java.lang.String layoutPrototypeUuid, 836 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 837 throws com.liferay.portal.NoSuchLayoutException, 838 com.liferay.portal.kernel.exception.SystemException { 839 return getPersistence() 840 .findByLayoutPrototypeUuid_First(layoutPrototypeUuid, 841 orderByComparator); 842 } 843 844 /** 845 * Returns the first layout in the ordered set where layoutPrototypeUuid = ?. 846 * 847 * @param layoutPrototypeUuid the layout prototype uuid 848 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 849 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 850 * @throws SystemException if a system exception occurred 851 */ 852 public static com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_First( 853 java.lang.String layoutPrototypeUuid, 854 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 855 throws com.liferay.portal.kernel.exception.SystemException { 856 return getPersistence() 857 .fetchByLayoutPrototypeUuid_First(layoutPrototypeUuid, 858 orderByComparator); 859 } 860 861 /** 862 * Returns the last layout in the ordered set where layoutPrototypeUuid = ?. 863 * 864 * @param layoutPrototypeUuid the layout prototype uuid 865 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 866 * @return the last matching layout 867 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 868 * @throws SystemException if a system exception occurred 869 */ 870 public static com.liferay.portal.model.Layout findByLayoutPrototypeUuid_Last( 871 java.lang.String layoutPrototypeUuid, 872 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 873 throws com.liferay.portal.NoSuchLayoutException, 874 com.liferay.portal.kernel.exception.SystemException { 875 return getPersistence() 876 .findByLayoutPrototypeUuid_Last(layoutPrototypeUuid, 877 orderByComparator); 878 } 879 880 /** 881 * Returns the last layout in the ordered set where layoutPrototypeUuid = ?. 882 * 883 * @param layoutPrototypeUuid the layout prototype uuid 884 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 885 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 886 * @throws SystemException if a system exception occurred 887 */ 888 public static com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_Last( 889 java.lang.String layoutPrototypeUuid, 890 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 891 throws com.liferay.portal.kernel.exception.SystemException { 892 return getPersistence() 893 .fetchByLayoutPrototypeUuid_Last(layoutPrototypeUuid, 894 orderByComparator); 895 } 896 897 /** 898 * Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = ?. 899 * 900 * @param plid the primary key of the current layout 901 * @param layoutPrototypeUuid the layout prototype uuid 902 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 903 * @return the previous, current, and next layout 904 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 905 * @throws SystemException if a system exception occurred 906 */ 907 public static com.liferay.portal.model.Layout[] findByLayoutPrototypeUuid_PrevAndNext( 908 long plid, java.lang.String layoutPrototypeUuid, 909 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 910 throws com.liferay.portal.NoSuchLayoutException, 911 com.liferay.portal.kernel.exception.SystemException { 912 return getPersistence() 913 .findByLayoutPrototypeUuid_PrevAndNext(plid, 914 layoutPrototypeUuid, orderByComparator); 915 } 916 917 /** 918 * Returns all the layouts where sourcePrototypeLayoutUuid = ?. 919 * 920 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 921 * @return the matching layouts 922 * @throws SystemException if a system exception occurred 923 */ 924 public static java.util.List<com.liferay.portal.model.Layout> findBySourcePrototypeLayoutUuid( 925 java.lang.String sourcePrototypeLayoutUuid) 926 throws com.liferay.portal.kernel.exception.SystemException { 927 return getPersistence() 928 .findBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid); 929 } 930 931 /** 932 * Returns a range of all the layouts where sourcePrototypeLayoutUuid = ?. 933 * 934 * <p> 935 * 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. 936 * </p> 937 * 938 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 939 * @param start the lower bound of the range of layouts 940 * @param end the upper bound of the range of layouts (not inclusive) 941 * @return the range of matching layouts 942 * @throws SystemException if a system exception occurred 943 */ 944 public static java.util.List<com.liferay.portal.model.Layout> findBySourcePrototypeLayoutUuid( 945 java.lang.String sourcePrototypeLayoutUuid, int start, int end) 946 throws com.liferay.portal.kernel.exception.SystemException { 947 return getPersistence() 948 .findBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid, 949 start, end); 950 } 951 952 /** 953 * Returns an ordered range of all the layouts where sourcePrototypeLayoutUuid = ?. 954 * 955 * <p> 956 * 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. 957 * </p> 958 * 959 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 960 * @param start the lower bound of the range of layouts 961 * @param end the upper bound of the range of layouts (not inclusive) 962 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 963 * @return the ordered range of matching layouts 964 * @throws SystemException if a system exception occurred 965 */ 966 public static java.util.List<com.liferay.portal.model.Layout> findBySourcePrototypeLayoutUuid( 967 java.lang.String sourcePrototypeLayoutUuid, int start, int end, 968 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 969 throws com.liferay.portal.kernel.exception.SystemException { 970 return getPersistence() 971 .findBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid, 972 start, end, orderByComparator); 973 } 974 975 /** 976 * Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?. 977 * 978 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 979 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 980 * @return the first matching layout 981 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 982 * @throws SystemException if a system exception occurred 983 */ 984 public static com.liferay.portal.model.Layout findBySourcePrototypeLayoutUuid_First( 985 java.lang.String sourcePrototypeLayoutUuid, 986 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 987 throws com.liferay.portal.NoSuchLayoutException, 988 com.liferay.portal.kernel.exception.SystemException { 989 return getPersistence() 990 .findBySourcePrototypeLayoutUuid_First(sourcePrototypeLayoutUuid, 991 orderByComparator); 992 } 993 994 /** 995 * Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?. 996 * 997 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 998 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 999 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public static com.liferay.portal.model.Layout fetchBySourcePrototypeLayoutUuid_First( 1003 java.lang.String sourcePrototypeLayoutUuid, 1004 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1005 throws com.liferay.portal.kernel.exception.SystemException { 1006 return getPersistence() 1007 .fetchBySourcePrototypeLayoutUuid_First(sourcePrototypeLayoutUuid, 1008 orderByComparator); 1009 } 1010 1011 /** 1012 * Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?. 1013 * 1014 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1015 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1016 * @return the last matching layout 1017 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1018 * @throws SystemException if a system exception occurred 1019 */ 1020 public static com.liferay.portal.model.Layout findBySourcePrototypeLayoutUuid_Last( 1021 java.lang.String sourcePrototypeLayoutUuid, 1022 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1023 throws com.liferay.portal.NoSuchLayoutException, 1024 com.liferay.portal.kernel.exception.SystemException { 1025 return getPersistence() 1026 .findBySourcePrototypeLayoutUuid_Last(sourcePrototypeLayoutUuid, 1027 orderByComparator); 1028 } 1029 1030 /** 1031 * Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?. 1032 * 1033 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1034 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1035 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 1036 * @throws SystemException if a system exception occurred 1037 */ 1038 public static com.liferay.portal.model.Layout fetchBySourcePrototypeLayoutUuid_Last( 1039 java.lang.String sourcePrototypeLayoutUuid, 1040 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1041 throws com.liferay.portal.kernel.exception.SystemException { 1042 return getPersistence() 1043 .fetchBySourcePrototypeLayoutUuid_Last(sourcePrototypeLayoutUuid, 1044 orderByComparator); 1045 } 1046 1047 /** 1048 * Returns the layouts before and after the current layout in the ordered set where sourcePrototypeLayoutUuid = ?. 1049 * 1050 * @param plid the primary key of the current layout 1051 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1052 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1053 * @return the previous, current, and next layout 1054 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1055 * @throws SystemException if a system exception occurred 1056 */ 1057 public static com.liferay.portal.model.Layout[] findBySourcePrototypeLayoutUuid_PrevAndNext( 1058 long plid, java.lang.String sourcePrototypeLayoutUuid, 1059 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1060 throws com.liferay.portal.NoSuchLayoutException, 1061 com.liferay.portal.kernel.exception.SystemException { 1062 return getPersistence() 1063 .findBySourcePrototypeLayoutUuid_PrevAndNext(plid, 1064 sourcePrototypeLayoutUuid, orderByComparator); 1065 } 1066 1067 /** 1068 * Returns all the layouts where groupId = ? and privateLayout = ?. 1069 * 1070 * @param groupId the group ID 1071 * @param privateLayout the private layout 1072 * @return the matching layouts 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public static java.util.List<com.liferay.portal.model.Layout> findByG_P( 1076 long groupId, boolean privateLayout) 1077 throws com.liferay.portal.kernel.exception.SystemException { 1078 return getPersistence().findByG_P(groupId, privateLayout); 1079 } 1080 1081 /** 1082 * Returns a range of all the layouts where groupId = ? and privateLayout = ?. 1083 * 1084 * <p> 1085 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 1086 * </p> 1087 * 1088 * @param groupId the group ID 1089 * @param privateLayout the private layout 1090 * @param start the lower bound of the range of layouts 1091 * @param end the upper bound of the range of layouts (not inclusive) 1092 * @return the range of matching layouts 1093 * @throws SystemException if a system exception occurred 1094 */ 1095 public static java.util.List<com.liferay.portal.model.Layout> findByG_P( 1096 long groupId, boolean privateLayout, int start, int end) 1097 throws com.liferay.portal.kernel.exception.SystemException { 1098 return getPersistence().findByG_P(groupId, privateLayout, start, end); 1099 } 1100 1101 /** 1102 * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ?. 1103 * 1104 * <p> 1105 * 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. 1106 * </p> 1107 * 1108 * @param groupId the group ID 1109 * @param privateLayout the private layout 1110 * @param start the lower bound of the range of layouts 1111 * @param end the upper bound of the range of layouts (not inclusive) 1112 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1113 * @return the ordered range of matching layouts 1114 * @throws SystemException if a system exception occurred 1115 */ 1116 public static java.util.List<com.liferay.portal.model.Layout> findByG_P( 1117 long groupId, boolean privateLayout, int start, int end, 1118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1119 throws com.liferay.portal.kernel.exception.SystemException { 1120 return getPersistence() 1121 .findByG_P(groupId, privateLayout, start, end, 1122 orderByComparator); 1123 } 1124 1125 /** 1126 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ?. 1127 * 1128 * @param groupId the group ID 1129 * @param privateLayout the private layout 1130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1131 * @return the first matching layout 1132 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public static com.liferay.portal.model.Layout findByG_P_First( 1136 long groupId, boolean privateLayout, 1137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1138 throws com.liferay.portal.NoSuchLayoutException, 1139 com.liferay.portal.kernel.exception.SystemException { 1140 return getPersistence() 1141 .findByG_P_First(groupId, privateLayout, orderByComparator); 1142 } 1143 1144 /** 1145 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ?. 1146 * 1147 * @param groupId the group ID 1148 * @param privateLayout the private layout 1149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1150 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 1151 * @throws SystemException if a system exception occurred 1152 */ 1153 public static com.liferay.portal.model.Layout fetchByG_P_First( 1154 long groupId, boolean privateLayout, 1155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1156 throws com.liferay.portal.kernel.exception.SystemException { 1157 return getPersistence() 1158 .fetchByG_P_First(groupId, privateLayout, orderByComparator); 1159 } 1160 1161 /** 1162 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ?. 1163 * 1164 * @param groupId the group ID 1165 * @param privateLayout the private layout 1166 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1167 * @return the last matching layout 1168 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1169 * @throws SystemException if a system exception occurred 1170 */ 1171 public static com.liferay.portal.model.Layout findByG_P_Last(long groupId, 1172 boolean privateLayout, 1173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1174 throws com.liferay.portal.NoSuchLayoutException, 1175 com.liferay.portal.kernel.exception.SystemException { 1176 return getPersistence() 1177 .findByG_P_Last(groupId, privateLayout, orderByComparator); 1178 } 1179 1180 /** 1181 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ?. 1182 * 1183 * @param groupId the group ID 1184 * @param privateLayout the private layout 1185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1186 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 1187 * @throws SystemException if a system exception occurred 1188 */ 1189 public static com.liferay.portal.model.Layout fetchByG_P_Last( 1190 long groupId, boolean privateLayout, 1191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1192 throws com.liferay.portal.kernel.exception.SystemException { 1193 return getPersistence() 1194 .fetchByG_P_Last(groupId, privateLayout, orderByComparator); 1195 } 1196 1197 /** 1198 * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?. 1199 * 1200 * @param plid the primary key of the current layout 1201 * @param groupId the group ID 1202 * @param privateLayout the private layout 1203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1204 * @return the previous, current, and next layout 1205 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1206 * @throws SystemException if a system exception occurred 1207 */ 1208 public static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext( 1209 long plid, long groupId, boolean privateLayout, 1210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1211 throws com.liferay.portal.NoSuchLayoutException, 1212 com.liferay.portal.kernel.exception.SystemException { 1213 return getPersistence() 1214 .findByG_P_PrevAndNext(plid, groupId, privateLayout, 1215 orderByComparator); 1216 } 1217 1218 /** 1219 * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ?. 1220 * 1221 * @param groupId the group ID 1222 * @param privateLayout the private layout 1223 * @return the matching layouts that the user has permission to view 1224 * @throws SystemException if a system exception occurred 1225 */ 1226 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P( 1227 long groupId, boolean privateLayout) 1228 throws com.liferay.portal.kernel.exception.SystemException { 1229 return getPersistence().filterFindByG_P(groupId, privateLayout); 1230 } 1231 1232 /** 1233 * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ?. 1234 * 1235 * <p> 1236 * 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. 1237 * </p> 1238 * 1239 * @param groupId the group ID 1240 * @param privateLayout the private layout 1241 * @param start the lower bound of the range of layouts 1242 * @param end the upper bound of the range of layouts (not inclusive) 1243 * @return the range of matching layouts that the user has permission to view 1244 * @throws SystemException if a system exception occurred 1245 */ 1246 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P( 1247 long groupId, boolean privateLayout, int start, int end) 1248 throws com.liferay.portal.kernel.exception.SystemException { 1249 return getPersistence() 1250 .filterFindByG_P(groupId, privateLayout, start, end); 1251 } 1252 1253 /** 1254 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ?. 1255 * 1256 * <p> 1257 * 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. 1258 * </p> 1259 * 1260 * @param groupId the group ID 1261 * @param privateLayout the private layout 1262 * @param start the lower bound of the range of layouts 1263 * @param end the upper bound of the range of layouts (not inclusive) 1264 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1265 * @return the ordered range of matching layouts that the user has permission to view 1266 * @throws SystemException if a system exception occurred 1267 */ 1268 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P( 1269 long groupId, boolean privateLayout, int start, int end, 1270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1271 throws com.liferay.portal.kernel.exception.SystemException { 1272 return getPersistence() 1273 .filterFindByG_P(groupId, privateLayout, start, end, 1274 orderByComparator); 1275 } 1276 1277 /** 1278 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ?. 1279 * 1280 * @param plid the primary key of the current layout 1281 * @param groupId the group ID 1282 * @param privateLayout the private layout 1283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1284 * @return the previous, current, and next layout 1285 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1286 * @throws SystemException if a system exception occurred 1287 */ 1288 public static com.liferay.portal.model.Layout[] filterFindByG_P_PrevAndNext( 1289 long plid, long groupId, boolean privateLayout, 1290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1291 throws com.liferay.portal.NoSuchLayoutException, 1292 com.liferay.portal.kernel.exception.SystemException { 1293 return getPersistence() 1294 .filterFindByG_P_PrevAndNext(plid, groupId, privateLayout, 1295 orderByComparator); 1296 } 1297 1298 /** 1299 * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 1300 * 1301 * @param groupId the group ID 1302 * @param privateLayout the private layout 1303 * @param layoutId the layout ID 1304 * @return the matching layout 1305 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1306 * @throws SystemException if a system exception occurred 1307 */ 1308 public static com.liferay.portal.model.Layout findByG_P_L(long groupId, 1309 boolean privateLayout, long layoutId) 1310 throws com.liferay.portal.NoSuchLayoutException, 1311 com.liferay.portal.kernel.exception.SystemException { 1312 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId); 1313 } 1314 1315 /** 1316 * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1317 * 1318 * @param groupId the group ID 1319 * @param privateLayout the private layout 1320 * @param layoutId the layout ID 1321 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1322 * @throws SystemException if a system exception occurred 1323 */ 1324 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, 1325 boolean privateLayout, long layoutId) 1326 throws com.liferay.portal.kernel.exception.SystemException { 1327 return getPersistence().fetchByG_P_L(groupId, privateLayout, layoutId); 1328 } 1329 1330 /** 1331 * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1332 * 1333 * @param groupId the group ID 1334 * @param privateLayout the private layout 1335 * @param layoutId the layout ID 1336 * @param retrieveFromCache whether to use the finder cache 1337 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1338 * @throws SystemException if a system exception occurred 1339 */ 1340 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, 1341 boolean privateLayout, long layoutId, boolean retrieveFromCache) 1342 throws com.liferay.portal.kernel.exception.SystemException { 1343 return getPersistence() 1344 .fetchByG_P_L(groupId, privateLayout, layoutId, 1345 retrieveFromCache); 1346 } 1347 1348 /** 1349 * Returns all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1350 * 1351 * @param groupId the group ID 1352 * @param privateLayout the private layout 1353 * @param parentLayoutId the parent layout ID 1354 * @return the matching layouts 1355 * @throws SystemException if a system exception occurred 1356 */ 1357 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 1358 long groupId, boolean privateLayout, long parentLayoutId) 1359 throws com.liferay.portal.kernel.exception.SystemException { 1360 return getPersistence() 1361 .findByG_P_P(groupId, privateLayout, parentLayoutId); 1362 } 1363 1364 /** 1365 * Returns a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1366 * 1367 * <p> 1368 * 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. 1369 * </p> 1370 * 1371 * @param groupId the group ID 1372 * @param privateLayout the private layout 1373 * @param parentLayoutId the parent layout ID 1374 * @param start the lower bound of the range of layouts 1375 * @param end the upper bound of the range of layouts (not inclusive) 1376 * @return the range of matching layouts 1377 * @throws SystemException if a system exception occurred 1378 */ 1379 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 1380 long groupId, boolean privateLayout, long parentLayoutId, int start, 1381 int end) throws com.liferay.portal.kernel.exception.SystemException { 1382 return getPersistence() 1383 .findByG_P_P(groupId, privateLayout, parentLayoutId, start, 1384 end); 1385 } 1386 1387 /** 1388 * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1389 * 1390 * <p> 1391 * 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. 1392 * </p> 1393 * 1394 * @param groupId the group ID 1395 * @param privateLayout the private layout 1396 * @param parentLayoutId the parent layout ID 1397 * @param start the lower bound of the range of layouts 1398 * @param end the upper bound of the range of layouts (not inclusive) 1399 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1400 * @return the ordered range of matching layouts 1401 * @throws SystemException if a system exception occurred 1402 */ 1403 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 1404 long groupId, boolean privateLayout, long parentLayoutId, int start, 1405 int end, 1406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1407 throws com.liferay.portal.kernel.exception.SystemException { 1408 return getPersistence() 1409 .findByG_P_P(groupId, privateLayout, parentLayoutId, start, 1410 end, orderByComparator); 1411 } 1412 1413 /** 1414 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1415 * 1416 * @param groupId the group ID 1417 * @param privateLayout the private layout 1418 * @param parentLayoutId the parent layout ID 1419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1420 * @return the first matching layout 1421 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1422 * @throws SystemException if a system exception occurred 1423 */ 1424 public static com.liferay.portal.model.Layout findByG_P_P_First( 1425 long groupId, boolean privateLayout, long parentLayoutId, 1426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1427 throws com.liferay.portal.NoSuchLayoutException, 1428 com.liferay.portal.kernel.exception.SystemException { 1429 return getPersistence() 1430 .findByG_P_P_First(groupId, privateLayout, parentLayoutId, 1431 orderByComparator); 1432 } 1433 1434 /** 1435 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1436 * 1437 * @param groupId the group ID 1438 * @param privateLayout the private layout 1439 * @param parentLayoutId the parent layout ID 1440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1441 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 1442 * @throws SystemException if a system exception occurred 1443 */ 1444 public static com.liferay.portal.model.Layout fetchByG_P_P_First( 1445 long groupId, boolean privateLayout, long parentLayoutId, 1446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1447 throws com.liferay.portal.kernel.exception.SystemException { 1448 return getPersistence() 1449 .fetchByG_P_P_First(groupId, privateLayout, parentLayoutId, 1450 orderByComparator); 1451 } 1452 1453 /** 1454 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1455 * 1456 * @param groupId the group ID 1457 * @param privateLayout the private layout 1458 * @param parentLayoutId the parent layout ID 1459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1460 * @return the last matching layout 1461 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1462 * @throws SystemException if a system exception occurred 1463 */ 1464 public static com.liferay.portal.model.Layout findByG_P_P_Last( 1465 long groupId, boolean privateLayout, long parentLayoutId, 1466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1467 throws com.liferay.portal.NoSuchLayoutException, 1468 com.liferay.portal.kernel.exception.SystemException { 1469 return getPersistence() 1470 .findByG_P_P_Last(groupId, privateLayout, parentLayoutId, 1471 orderByComparator); 1472 } 1473 1474 /** 1475 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1476 * 1477 * @param groupId the group ID 1478 * @param privateLayout the private layout 1479 * @param parentLayoutId the parent layout ID 1480 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1481 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 1482 * @throws SystemException if a system exception occurred 1483 */ 1484 public static com.liferay.portal.model.Layout fetchByG_P_P_Last( 1485 long groupId, boolean privateLayout, long parentLayoutId, 1486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1487 throws com.liferay.portal.kernel.exception.SystemException { 1488 return getPersistence() 1489 .fetchByG_P_P_Last(groupId, privateLayout, parentLayoutId, 1490 orderByComparator); 1491 } 1492 1493 /** 1494 * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1495 * 1496 * @param plid the primary key of the current layout 1497 * @param groupId the group ID 1498 * @param privateLayout the private layout 1499 * @param parentLayoutId the parent layout ID 1500 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1501 * @return the previous, current, and next layout 1502 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1503 * @throws SystemException if a system exception occurred 1504 */ 1505 public static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext( 1506 long plid, long groupId, boolean privateLayout, long parentLayoutId, 1507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1508 throws com.liferay.portal.NoSuchLayoutException, 1509 com.liferay.portal.kernel.exception.SystemException { 1510 return getPersistence() 1511 .findByG_P_P_PrevAndNext(plid, groupId, privateLayout, 1512 parentLayoutId, orderByComparator); 1513 } 1514 1515 /** 1516 * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1517 * 1518 * @param groupId the group ID 1519 * @param privateLayout the private layout 1520 * @param parentLayoutId the parent layout ID 1521 * @return the matching layouts that the user has permission to view 1522 * @throws SystemException if a system exception occurred 1523 */ 1524 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P( 1525 long groupId, boolean privateLayout, long parentLayoutId) 1526 throws com.liferay.portal.kernel.exception.SystemException { 1527 return getPersistence() 1528 .filterFindByG_P_P(groupId, privateLayout, parentLayoutId); 1529 } 1530 1531 /** 1532 * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1533 * 1534 * <p> 1535 * 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. 1536 * </p> 1537 * 1538 * @param groupId the group ID 1539 * @param privateLayout the private layout 1540 * @param parentLayoutId the parent layout ID 1541 * @param start the lower bound of the range of layouts 1542 * @param end the upper bound of the range of layouts (not inclusive) 1543 * @return the range of matching layouts that the user has permission to view 1544 * @throws SystemException if a system exception occurred 1545 */ 1546 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P( 1547 long groupId, boolean privateLayout, long parentLayoutId, int start, 1548 int end) throws com.liferay.portal.kernel.exception.SystemException { 1549 return getPersistence() 1550 .filterFindByG_P_P(groupId, privateLayout, parentLayoutId, 1551 start, end); 1552 } 1553 1554 /** 1555 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1556 * 1557 * <p> 1558 * 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. 1559 * </p> 1560 * 1561 * @param groupId the group ID 1562 * @param privateLayout the private layout 1563 * @param parentLayoutId the parent layout ID 1564 * @param start the lower bound of the range of layouts 1565 * @param end the upper bound of the range of layouts (not inclusive) 1566 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1567 * @return the ordered range of matching layouts that the user has permission to view 1568 * @throws SystemException if a system exception occurred 1569 */ 1570 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_P( 1571 long groupId, boolean privateLayout, long parentLayoutId, int start, 1572 int end, 1573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1574 throws com.liferay.portal.kernel.exception.SystemException { 1575 return getPersistence() 1576 .filterFindByG_P_P(groupId, privateLayout, parentLayoutId, 1577 start, end, orderByComparator); 1578 } 1579 1580 /** 1581 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1582 * 1583 * @param plid the primary key of the current layout 1584 * @param groupId the group ID 1585 * @param privateLayout the private layout 1586 * @param parentLayoutId the parent layout ID 1587 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1588 * @return the previous, current, and next layout 1589 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1590 * @throws SystemException if a system exception occurred 1591 */ 1592 public static com.liferay.portal.model.Layout[] filterFindByG_P_P_PrevAndNext( 1593 long plid, long groupId, boolean privateLayout, long parentLayoutId, 1594 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1595 throws com.liferay.portal.NoSuchLayoutException, 1596 com.liferay.portal.kernel.exception.SystemException { 1597 return getPersistence() 1598 .filterFindByG_P_P_PrevAndNext(plid, groupId, privateLayout, 1599 parentLayoutId, orderByComparator); 1600 } 1601 1602 /** 1603 * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 1604 * 1605 * @param groupId the group ID 1606 * @param privateLayout the private layout 1607 * @param friendlyURL the friendly u r l 1608 * @return the matching layout 1609 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1610 * @throws SystemException if a system exception occurred 1611 */ 1612 public static com.liferay.portal.model.Layout findByG_P_F(long groupId, 1613 boolean privateLayout, java.lang.String friendlyURL) 1614 throws com.liferay.portal.NoSuchLayoutException, 1615 com.liferay.portal.kernel.exception.SystemException { 1616 return getPersistence().findByG_P_F(groupId, privateLayout, friendlyURL); 1617 } 1618 1619 /** 1620 * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1621 * 1622 * @param groupId the group ID 1623 * @param privateLayout the private layout 1624 * @param friendlyURL the friendly u r l 1625 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1626 * @throws SystemException if a system exception occurred 1627 */ 1628 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, 1629 boolean privateLayout, java.lang.String friendlyURL) 1630 throws com.liferay.portal.kernel.exception.SystemException { 1631 return getPersistence().fetchByG_P_F(groupId, privateLayout, friendlyURL); 1632 } 1633 1634 /** 1635 * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1636 * 1637 * @param groupId the group ID 1638 * @param privateLayout the private layout 1639 * @param friendlyURL the friendly u r l 1640 * @param retrieveFromCache whether to use the finder cache 1641 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1642 * @throws SystemException if a system exception occurred 1643 */ 1644 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, 1645 boolean privateLayout, java.lang.String friendlyURL, 1646 boolean retrieveFromCache) 1647 throws com.liferay.portal.kernel.exception.SystemException { 1648 return getPersistence() 1649 .fetchByG_P_F(groupId, privateLayout, friendlyURL, 1650 retrieveFromCache); 1651 } 1652 1653 /** 1654 * Returns all the layouts where groupId = ? and privateLayout = ? and type = ?. 1655 * 1656 * @param groupId the group ID 1657 * @param privateLayout the private layout 1658 * @param type the type 1659 * @return the matching layouts 1660 * @throws SystemException if a system exception occurred 1661 */ 1662 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1663 long groupId, boolean privateLayout, java.lang.String type) 1664 throws com.liferay.portal.kernel.exception.SystemException { 1665 return getPersistence().findByG_P_T(groupId, privateLayout, type); 1666 } 1667 1668 /** 1669 * Returns a range of all the layouts where groupId = ? and privateLayout = ? and type = ?. 1670 * 1671 * <p> 1672 * 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. 1673 * </p> 1674 * 1675 * @param groupId the group ID 1676 * @param privateLayout the private layout 1677 * @param type the type 1678 * @param start the lower bound of the range of layouts 1679 * @param end the upper bound of the range of layouts (not inclusive) 1680 * @return the range of matching layouts 1681 * @throws SystemException if a system exception occurred 1682 */ 1683 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1684 long groupId, boolean privateLayout, java.lang.String type, int start, 1685 int end) throws com.liferay.portal.kernel.exception.SystemException { 1686 return getPersistence() 1687 .findByG_P_T(groupId, privateLayout, type, start, end); 1688 } 1689 1690 /** 1691 * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?. 1692 * 1693 * <p> 1694 * 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. 1695 * </p> 1696 * 1697 * @param groupId the group ID 1698 * @param privateLayout the private layout 1699 * @param type the type 1700 * @param start the lower bound of the range of layouts 1701 * @param end the upper bound of the range of layouts (not inclusive) 1702 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1703 * @return the ordered range of matching layouts 1704 * @throws SystemException if a system exception occurred 1705 */ 1706 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1707 long groupId, boolean privateLayout, java.lang.String type, int start, 1708 int end, 1709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1710 throws com.liferay.portal.kernel.exception.SystemException { 1711 return getPersistence() 1712 .findByG_P_T(groupId, privateLayout, type, start, end, 1713 orderByComparator); 1714 } 1715 1716 /** 1717 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1718 * 1719 * @param groupId the group ID 1720 * @param privateLayout the private layout 1721 * @param type the type 1722 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1723 * @return the first matching layout 1724 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1725 * @throws SystemException if a system exception occurred 1726 */ 1727 public static com.liferay.portal.model.Layout findByG_P_T_First( 1728 long groupId, boolean privateLayout, java.lang.String type, 1729 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1730 throws com.liferay.portal.NoSuchLayoutException, 1731 com.liferay.portal.kernel.exception.SystemException { 1732 return getPersistence() 1733 .findByG_P_T_First(groupId, privateLayout, type, 1734 orderByComparator); 1735 } 1736 1737 /** 1738 * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1739 * 1740 * @param groupId the group ID 1741 * @param privateLayout the private layout 1742 * @param type the type 1743 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1744 * @return the first matching layout, or <code>null</code> if a matching layout could not be found 1745 * @throws SystemException if a system exception occurred 1746 */ 1747 public static com.liferay.portal.model.Layout fetchByG_P_T_First( 1748 long groupId, boolean privateLayout, java.lang.String type, 1749 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1750 throws com.liferay.portal.kernel.exception.SystemException { 1751 return getPersistence() 1752 .fetchByG_P_T_First(groupId, privateLayout, type, 1753 orderByComparator); 1754 } 1755 1756 /** 1757 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1758 * 1759 * @param groupId the group ID 1760 * @param privateLayout the private layout 1761 * @param type the type 1762 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1763 * @return the last matching layout 1764 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1765 * @throws SystemException if a system exception occurred 1766 */ 1767 public static com.liferay.portal.model.Layout findByG_P_T_Last( 1768 long groupId, boolean privateLayout, java.lang.String type, 1769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1770 throws com.liferay.portal.NoSuchLayoutException, 1771 com.liferay.portal.kernel.exception.SystemException { 1772 return getPersistence() 1773 .findByG_P_T_Last(groupId, privateLayout, type, 1774 orderByComparator); 1775 } 1776 1777 /** 1778 * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1779 * 1780 * @param groupId the group ID 1781 * @param privateLayout the private layout 1782 * @param type the type 1783 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1784 * @return the last matching layout, or <code>null</code> if a matching layout could not be found 1785 * @throws SystemException if a system exception occurred 1786 */ 1787 public static com.liferay.portal.model.Layout fetchByG_P_T_Last( 1788 long groupId, boolean privateLayout, java.lang.String type, 1789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1790 throws com.liferay.portal.kernel.exception.SystemException { 1791 return getPersistence() 1792 .fetchByG_P_T_Last(groupId, privateLayout, type, 1793 orderByComparator); 1794 } 1795 1796 /** 1797 * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1798 * 1799 * @param plid the primary key of the current layout 1800 * @param groupId the group ID 1801 * @param privateLayout the private layout 1802 * @param type the type 1803 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1804 * @return the previous, current, and next layout 1805 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1806 * @throws SystemException if a system exception occurred 1807 */ 1808 public static com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext( 1809 long plid, long groupId, boolean privateLayout, java.lang.String type, 1810 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1811 throws com.liferay.portal.NoSuchLayoutException, 1812 com.liferay.portal.kernel.exception.SystemException { 1813 return getPersistence() 1814 .findByG_P_T_PrevAndNext(plid, groupId, privateLayout, type, 1815 orderByComparator); 1816 } 1817 1818 /** 1819 * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1820 * 1821 * @param groupId the group ID 1822 * @param privateLayout the private layout 1823 * @param type the type 1824 * @return the matching layouts that the user has permission to view 1825 * @throws SystemException if a system exception occurred 1826 */ 1827 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T( 1828 long groupId, boolean privateLayout, java.lang.String type) 1829 throws com.liferay.portal.kernel.exception.SystemException { 1830 return getPersistence().filterFindByG_P_T(groupId, privateLayout, type); 1831 } 1832 1833 /** 1834 * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1835 * 1836 * <p> 1837 * 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. 1838 * </p> 1839 * 1840 * @param groupId the group ID 1841 * @param privateLayout the private layout 1842 * @param type the type 1843 * @param start the lower bound of the range of layouts 1844 * @param end the upper bound of the range of layouts (not inclusive) 1845 * @return the range of matching layouts that the user has permission to view 1846 * @throws SystemException if a system exception occurred 1847 */ 1848 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T( 1849 long groupId, boolean privateLayout, java.lang.String type, int start, 1850 int end) throws com.liferay.portal.kernel.exception.SystemException { 1851 return getPersistence() 1852 .filterFindByG_P_T(groupId, privateLayout, type, start, end); 1853 } 1854 1855 /** 1856 * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and type = ?. 1857 * 1858 * <p> 1859 * 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. 1860 * </p> 1861 * 1862 * @param groupId the group ID 1863 * @param privateLayout the private layout 1864 * @param type the type 1865 * @param start the lower bound of the range of layouts 1866 * @param end the upper bound of the range of layouts (not inclusive) 1867 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1868 * @return the ordered range of matching layouts that the user has permission to view 1869 * @throws SystemException if a system exception occurred 1870 */ 1871 public static java.util.List<com.liferay.portal.model.Layout> filterFindByG_P_T( 1872 long groupId, boolean privateLayout, java.lang.String type, int start, 1873 int end, 1874 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1875 throws com.liferay.portal.kernel.exception.SystemException { 1876 return getPersistence() 1877 .filterFindByG_P_T(groupId, privateLayout, type, start, end, 1878 orderByComparator); 1879 } 1880 1881 /** 1882 * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 1883 * 1884 * @param plid the primary key of the current layout 1885 * @param groupId the group ID 1886 * @param privateLayout the private layout 1887 * @param type the type 1888 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1889 * @return the previous, current, and next layout 1890 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1891 * @throws SystemException if a system exception occurred 1892 */ 1893 public static com.liferay.portal.model.Layout[] filterFindByG_P_T_PrevAndNext( 1894 long plid, long groupId, boolean privateLayout, java.lang.String type, 1895 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1896 throws com.liferay.portal.NoSuchLayoutException, 1897 com.liferay.portal.kernel.exception.SystemException { 1898 return getPersistence() 1899 .filterFindByG_P_T_PrevAndNext(plid, groupId, privateLayout, 1900 type, orderByComparator); 1901 } 1902 1903 /** 1904 * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 1905 * 1906 * @param groupId the group ID 1907 * @param privateLayout the private layout 1908 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1909 * @return the matching layout 1910 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1911 * @throws SystemException if a system exception occurred 1912 */ 1913 public static com.liferay.portal.model.Layout findByG_P_SPLU(long groupId, 1914 boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) 1915 throws com.liferay.portal.NoSuchLayoutException, 1916 com.liferay.portal.kernel.exception.SystemException { 1917 return getPersistence() 1918 .findByG_P_SPLU(groupId, privateLayout, 1919 sourcePrototypeLayoutUuid); 1920 } 1921 1922 /** 1923 * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1924 * 1925 * @param groupId the group ID 1926 * @param privateLayout the private layout 1927 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1928 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1929 * @throws SystemException if a system exception occurred 1930 */ 1931 public static com.liferay.portal.model.Layout fetchByG_P_SPLU( 1932 long groupId, boolean privateLayout, 1933 java.lang.String sourcePrototypeLayoutUuid) 1934 throws com.liferay.portal.kernel.exception.SystemException { 1935 return getPersistence() 1936 .fetchByG_P_SPLU(groupId, privateLayout, 1937 sourcePrototypeLayoutUuid); 1938 } 1939 1940 /** 1941 * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1942 * 1943 * @param groupId the group ID 1944 * @param privateLayout the private layout 1945 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 1946 * @param retrieveFromCache whether to use the finder cache 1947 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1948 * @throws SystemException if a system exception occurred 1949 */ 1950 public static com.liferay.portal.model.Layout fetchByG_P_SPLU( 1951 long groupId, boolean privateLayout, 1952 java.lang.String sourcePrototypeLayoutUuid, boolean retrieveFromCache) 1953 throws com.liferay.portal.kernel.exception.SystemException { 1954 return getPersistence() 1955 .fetchByG_P_SPLU(groupId, privateLayout, 1956 sourcePrototypeLayoutUuid, retrieveFromCache); 1957 } 1958 1959 /** 1960 * Returns all the layouts. 1961 * 1962 * @return the layouts 1963 * @throws SystemException if a system exception occurred 1964 */ 1965 public static java.util.List<com.liferay.portal.model.Layout> findAll() 1966 throws com.liferay.portal.kernel.exception.SystemException { 1967 return getPersistence().findAll(); 1968 } 1969 1970 /** 1971 * Returns a range of all the layouts. 1972 * 1973 * <p> 1974 * 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. 1975 * </p> 1976 * 1977 * @param start the lower bound of the range of layouts 1978 * @param end the upper bound of the range of layouts (not inclusive) 1979 * @return the range of layouts 1980 * @throws SystemException if a system exception occurred 1981 */ 1982 public static java.util.List<com.liferay.portal.model.Layout> findAll( 1983 int start, int end) 1984 throws com.liferay.portal.kernel.exception.SystemException { 1985 return getPersistence().findAll(start, end); 1986 } 1987 1988 /** 1989 * Returns an ordered range of all the layouts. 1990 * 1991 * <p> 1992 * 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. 1993 * </p> 1994 * 1995 * @param start the lower bound of the range of layouts 1996 * @param end the upper bound of the range of layouts (not inclusive) 1997 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1998 * @return the ordered range of layouts 1999 * @throws SystemException if a system exception occurred 2000 */ 2001 public static java.util.List<com.liferay.portal.model.Layout> findAll( 2002 int start, int end, 2003 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2004 throws com.liferay.portal.kernel.exception.SystemException { 2005 return getPersistence().findAll(start, end, orderByComparator); 2006 } 2007 2008 /** 2009 * Removes all the layouts where uuid = ? from the database. 2010 * 2011 * @param uuid the uuid 2012 * @throws SystemException if a system exception occurred 2013 */ 2014 public static void removeByUuid(java.lang.String uuid) 2015 throws com.liferay.portal.kernel.exception.SystemException { 2016 getPersistence().removeByUuid(uuid); 2017 } 2018 2019 /** 2020 * Removes the layout where uuid = ? and groupId = ? and privateLayout = ? from the database. 2021 * 2022 * @param uuid the uuid 2023 * @param groupId the group ID 2024 * @param privateLayout the private layout 2025 * @return the layout that was removed 2026 * @throws SystemException if a system exception occurred 2027 */ 2028 public static com.liferay.portal.model.Layout removeByUUID_G_P( 2029 java.lang.String uuid, long groupId, boolean privateLayout) 2030 throws com.liferay.portal.NoSuchLayoutException, 2031 com.liferay.portal.kernel.exception.SystemException { 2032 return getPersistence().removeByUUID_G_P(uuid, groupId, privateLayout); 2033 } 2034 2035 /** 2036 * Removes all the layouts where groupId = ? from the database. 2037 * 2038 * @param groupId the group ID 2039 * @throws SystemException if a system exception occurred 2040 */ 2041 public static void removeByGroupId(long groupId) 2042 throws com.liferay.portal.kernel.exception.SystemException { 2043 getPersistence().removeByGroupId(groupId); 2044 } 2045 2046 /** 2047 * Removes all the layouts where companyId = ? from the database. 2048 * 2049 * @param companyId the company ID 2050 * @throws SystemException if a system exception occurred 2051 */ 2052 public static void removeByCompanyId(long companyId) 2053 throws com.liferay.portal.kernel.exception.SystemException { 2054 getPersistence().removeByCompanyId(companyId); 2055 } 2056 2057 /** 2058 * Removes the layout where iconImageId = ? from the database. 2059 * 2060 * @param iconImageId the icon image ID 2061 * @return the layout that was removed 2062 * @throws SystemException if a system exception occurred 2063 */ 2064 public static com.liferay.portal.model.Layout removeByIconImageId( 2065 long iconImageId) 2066 throws com.liferay.portal.NoSuchLayoutException, 2067 com.liferay.portal.kernel.exception.SystemException { 2068 return getPersistence().removeByIconImageId(iconImageId); 2069 } 2070 2071 /** 2072 * Removes all the layouts where layoutPrototypeUuid = ? from the database. 2073 * 2074 * @param layoutPrototypeUuid the layout prototype uuid 2075 * @throws SystemException if a system exception occurred 2076 */ 2077 public static void removeByLayoutPrototypeUuid( 2078 java.lang.String layoutPrototypeUuid) 2079 throws com.liferay.portal.kernel.exception.SystemException { 2080 getPersistence().removeByLayoutPrototypeUuid(layoutPrototypeUuid); 2081 } 2082 2083 /** 2084 * Removes all the layouts where sourcePrototypeLayoutUuid = ? from the database. 2085 * 2086 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 2087 * @throws SystemException if a system exception occurred 2088 */ 2089 public static void removeBySourcePrototypeLayoutUuid( 2090 java.lang.String sourcePrototypeLayoutUuid) 2091 throws com.liferay.portal.kernel.exception.SystemException { 2092 getPersistence() 2093 .removeBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid); 2094 } 2095 2096 /** 2097 * Removes all the layouts where groupId = ? and privateLayout = ? from the database. 2098 * 2099 * @param groupId the group ID 2100 * @param privateLayout the private layout 2101 * @throws SystemException if a system exception occurred 2102 */ 2103 public static void removeByG_P(long groupId, boolean privateLayout) 2104 throws com.liferay.portal.kernel.exception.SystemException { 2105 getPersistence().removeByG_P(groupId, privateLayout); 2106 } 2107 2108 /** 2109 * Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database. 2110 * 2111 * @param groupId the group ID 2112 * @param privateLayout the private layout 2113 * @param layoutId the layout ID 2114 * @return the layout that was removed 2115 * @throws SystemException if a system exception occurred 2116 */ 2117 public static com.liferay.portal.model.Layout removeByG_P_L(long groupId, 2118 boolean privateLayout, long layoutId) 2119 throws com.liferay.portal.NoSuchLayoutException, 2120 com.liferay.portal.kernel.exception.SystemException { 2121 return getPersistence().removeByG_P_L(groupId, privateLayout, layoutId); 2122 } 2123 2124 /** 2125 * Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database. 2126 * 2127 * @param groupId the group ID 2128 * @param privateLayout the private layout 2129 * @param parentLayoutId the parent layout ID 2130 * @throws SystemException if a system exception occurred 2131 */ 2132 public static void removeByG_P_P(long groupId, boolean privateLayout, 2133 long parentLayoutId) 2134 throws com.liferay.portal.kernel.exception.SystemException { 2135 getPersistence().removeByG_P_P(groupId, privateLayout, parentLayoutId); 2136 } 2137 2138 /** 2139 * Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database. 2140 * 2141 * @param groupId the group ID 2142 * @param privateLayout the private layout 2143 * @param friendlyURL the friendly u r l 2144 * @return the layout that was removed 2145 * @throws SystemException if a system exception occurred 2146 */ 2147 public static com.liferay.portal.model.Layout removeByG_P_F(long groupId, 2148 boolean privateLayout, java.lang.String friendlyURL) 2149 throws com.liferay.portal.NoSuchLayoutException, 2150 com.liferay.portal.kernel.exception.SystemException { 2151 return getPersistence() 2152 .removeByG_P_F(groupId, privateLayout, friendlyURL); 2153 } 2154 2155 /** 2156 * Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database. 2157 * 2158 * @param groupId the group ID 2159 * @param privateLayout the private layout 2160 * @param type the type 2161 * @throws SystemException if a system exception occurred 2162 */ 2163 public static void removeByG_P_T(long groupId, boolean privateLayout, 2164 java.lang.String type) 2165 throws com.liferay.portal.kernel.exception.SystemException { 2166 getPersistence().removeByG_P_T(groupId, privateLayout, type); 2167 } 2168 2169 /** 2170 * Removes the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? from the database. 2171 * 2172 * @param groupId the group ID 2173 * @param privateLayout the private layout 2174 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 2175 * @return the layout that was removed 2176 * @throws SystemException if a system exception occurred 2177 */ 2178 public static com.liferay.portal.model.Layout removeByG_P_SPLU( 2179 long groupId, boolean privateLayout, 2180 java.lang.String sourcePrototypeLayoutUuid) 2181 throws com.liferay.portal.NoSuchLayoutException, 2182 com.liferay.portal.kernel.exception.SystemException { 2183 return getPersistence() 2184 .removeByG_P_SPLU(groupId, privateLayout, 2185 sourcePrototypeLayoutUuid); 2186 } 2187 2188 /** 2189 * Removes all the layouts from the database. 2190 * 2191 * @throws SystemException if a system exception occurred 2192 */ 2193 public static void removeAll() 2194 throws com.liferay.portal.kernel.exception.SystemException { 2195 getPersistence().removeAll(); 2196 } 2197 2198 /** 2199 * Returns the number of layouts where uuid = ?. 2200 * 2201 * @param uuid the uuid 2202 * @return the number of matching layouts 2203 * @throws SystemException if a system exception occurred 2204 */ 2205 public static int countByUuid(java.lang.String uuid) 2206 throws com.liferay.portal.kernel.exception.SystemException { 2207 return getPersistence().countByUuid(uuid); 2208 } 2209 2210 /** 2211 * Returns the number of layouts where uuid = ? and groupId = ? and privateLayout = ?. 2212 * 2213 * @param uuid the uuid 2214 * @param groupId the group ID 2215 * @param privateLayout the private layout 2216 * @return the number of matching layouts 2217 * @throws SystemException if a system exception occurred 2218 */ 2219 public static int countByUUID_G_P(java.lang.String uuid, long groupId, 2220 boolean privateLayout) 2221 throws com.liferay.portal.kernel.exception.SystemException { 2222 return getPersistence().countByUUID_G_P(uuid, groupId, privateLayout); 2223 } 2224 2225 /** 2226 * Returns the number of layouts where groupId = ?. 2227 * 2228 * @param groupId the group ID 2229 * @return the number of matching layouts 2230 * @throws SystemException if a system exception occurred 2231 */ 2232 public static int countByGroupId(long groupId) 2233 throws com.liferay.portal.kernel.exception.SystemException { 2234 return getPersistence().countByGroupId(groupId); 2235 } 2236 2237 /** 2238 * Returns the number of layouts that the user has permission to view where groupId = ?. 2239 * 2240 * @param groupId the group ID 2241 * @return the number of matching layouts that the user has permission to view 2242 * @throws SystemException if a system exception occurred 2243 */ 2244 public static int filterCountByGroupId(long groupId) 2245 throws com.liferay.portal.kernel.exception.SystemException { 2246 return getPersistence().filterCountByGroupId(groupId); 2247 } 2248 2249 /** 2250 * Returns the number of layouts where companyId = ?. 2251 * 2252 * @param companyId the company ID 2253 * @return the number of matching layouts 2254 * @throws SystemException if a system exception occurred 2255 */ 2256 public static int countByCompanyId(long companyId) 2257 throws com.liferay.portal.kernel.exception.SystemException { 2258 return getPersistence().countByCompanyId(companyId); 2259 } 2260 2261 /** 2262 * Returns the number of layouts where iconImageId = ?. 2263 * 2264 * @param iconImageId the icon image ID 2265 * @return the number of matching layouts 2266 * @throws SystemException if a system exception occurred 2267 */ 2268 public static int countByIconImageId(long iconImageId) 2269 throws com.liferay.portal.kernel.exception.SystemException { 2270 return getPersistence().countByIconImageId(iconImageId); 2271 } 2272 2273 /** 2274 * Returns the number of layouts where layoutPrototypeUuid = ?. 2275 * 2276 * @param layoutPrototypeUuid the layout prototype uuid 2277 * @return the number of matching layouts 2278 * @throws SystemException if a system exception occurred 2279 */ 2280 public static int countByLayoutPrototypeUuid( 2281 java.lang.String layoutPrototypeUuid) 2282 throws com.liferay.portal.kernel.exception.SystemException { 2283 return getPersistence().countByLayoutPrototypeUuid(layoutPrototypeUuid); 2284 } 2285 2286 /** 2287 * Returns the number of layouts where sourcePrototypeLayoutUuid = ?. 2288 * 2289 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 2290 * @return the number of matching layouts 2291 * @throws SystemException if a system exception occurred 2292 */ 2293 public static int countBySourcePrototypeLayoutUuid( 2294 java.lang.String sourcePrototypeLayoutUuid) 2295 throws com.liferay.portal.kernel.exception.SystemException { 2296 return getPersistence() 2297 .countBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid); 2298 } 2299 2300 /** 2301 * Returns the number of layouts where groupId = ? and privateLayout = ?. 2302 * 2303 * @param groupId the group ID 2304 * @param privateLayout the private layout 2305 * @return the number of matching layouts 2306 * @throws SystemException if a system exception occurred 2307 */ 2308 public static int countByG_P(long groupId, boolean privateLayout) 2309 throws com.liferay.portal.kernel.exception.SystemException { 2310 return getPersistence().countByG_P(groupId, privateLayout); 2311 } 2312 2313 /** 2314 * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ?. 2315 * 2316 * @param groupId the group ID 2317 * @param privateLayout the private layout 2318 * @return the number of matching layouts that the user has permission to view 2319 * @throws SystemException if a system exception occurred 2320 */ 2321 public static int filterCountByG_P(long groupId, boolean privateLayout) 2322 throws com.liferay.portal.kernel.exception.SystemException { 2323 return getPersistence().filterCountByG_P(groupId, privateLayout); 2324 } 2325 2326 /** 2327 * Returns the number of layouts where groupId = ? and privateLayout = ? and layoutId = ?. 2328 * 2329 * @param groupId the group ID 2330 * @param privateLayout the private layout 2331 * @param layoutId the layout ID 2332 * @return the number of matching layouts 2333 * @throws SystemException if a system exception occurred 2334 */ 2335 public static int countByG_P_L(long groupId, boolean privateLayout, 2336 long layoutId) 2337 throws com.liferay.portal.kernel.exception.SystemException { 2338 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId); 2339 } 2340 2341 /** 2342 * Returns the number of layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 2343 * 2344 * @param groupId the group ID 2345 * @param privateLayout the private layout 2346 * @param parentLayoutId the parent layout ID 2347 * @return the number of matching layouts 2348 * @throws SystemException if a system exception occurred 2349 */ 2350 public static int countByG_P_P(long groupId, boolean privateLayout, 2351 long parentLayoutId) 2352 throws com.liferay.portal.kernel.exception.SystemException { 2353 return getPersistence() 2354 .countByG_P_P(groupId, privateLayout, parentLayoutId); 2355 } 2356 2357 /** 2358 * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. 2359 * 2360 * @param groupId the group ID 2361 * @param privateLayout the private layout 2362 * @param parentLayoutId the parent layout ID 2363 * @return the number of matching layouts that the user has permission to view 2364 * @throws SystemException if a system exception occurred 2365 */ 2366 public static int filterCountByG_P_P(long groupId, boolean privateLayout, 2367 long parentLayoutId) 2368 throws com.liferay.portal.kernel.exception.SystemException { 2369 return getPersistence() 2370 .filterCountByG_P_P(groupId, privateLayout, parentLayoutId); 2371 } 2372 2373 /** 2374 * Returns the number of layouts where groupId = ? and privateLayout = ? and friendlyURL = ?. 2375 * 2376 * @param groupId the group ID 2377 * @param privateLayout the private layout 2378 * @param friendlyURL the friendly u r l 2379 * @return the number of matching layouts 2380 * @throws SystemException if a system exception occurred 2381 */ 2382 public static int countByG_P_F(long groupId, boolean privateLayout, 2383 java.lang.String friendlyURL) 2384 throws com.liferay.portal.kernel.exception.SystemException { 2385 return getPersistence().countByG_P_F(groupId, privateLayout, friendlyURL); 2386 } 2387 2388 /** 2389 * Returns the number of layouts where groupId = ? and privateLayout = ? and type = ?. 2390 * 2391 * @param groupId the group ID 2392 * @param privateLayout the private layout 2393 * @param type the type 2394 * @return the number of matching layouts 2395 * @throws SystemException if a system exception occurred 2396 */ 2397 public static int countByG_P_T(long groupId, boolean privateLayout, 2398 java.lang.String type) 2399 throws com.liferay.portal.kernel.exception.SystemException { 2400 return getPersistence().countByG_P_T(groupId, privateLayout, type); 2401 } 2402 2403 /** 2404 * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. 2405 * 2406 * @param groupId the group ID 2407 * @param privateLayout the private layout 2408 * @param type the type 2409 * @return the number of matching layouts that the user has permission to view 2410 * @throws SystemException if a system exception occurred 2411 */ 2412 public static int filterCountByG_P_T(long groupId, boolean privateLayout, 2413 java.lang.String type) 2414 throws com.liferay.portal.kernel.exception.SystemException { 2415 return getPersistence().filterCountByG_P_T(groupId, privateLayout, type); 2416 } 2417 2418 /** 2419 * Returns the number of layouts where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ?. 2420 * 2421 * @param groupId the group ID 2422 * @param privateLayout the private layout 2423 * @param sourcePrototypeLayoutUuid the source prototype layout uuid 2424 * @return the number of matching layouts 2425 * @throws SystemException if a system exception occurred 2426 */ 2427 public static int countByG_P_SPLU(long groupId, boolean privateLayout, 2428 java.lang.String sourcePrototypeLayoutUuid) 2429 throws com.liferay.portal.kernel.exception.SystemException { 2430 return getPersistence() 2431 .countByG_P_SPLU(groupId, privateLayout, 2432 sourcePrototypeLayoutUuid); 2433 } 2434 2435 /** 2436 * Returns the number of layouts. 2437 * 2438 * @return the number of layouts 2439 * @throws SystemException if a system exception occurred 2440 */ 2441 public static int countAll() 2442 throws com.liferay.portal.kernel.exception.SystemException { 2443 return getPersistence().countAll(); 2444 } 2445 2446 public static LayoutPersistence getPersistence() { 2447 if (_persistence == null) { 2448 _persistence = (LayoutPersistence)PortalBeanLocatorUtil.locate(LayoutPersistence.class.getName()); 2449 2450 ReferenceRegistry.registerReference(LayoutUtil.class, "_persistence"); 2451 } 2452 2453 return _persistence; 2454 } 2455 2456 /** 2457 * @deprecated 2458 */ 2459 public void setPersistence(LayoutPersistence persistence) { 2460 } 2461 2462 private static LayoutPersistence _persistence; 2463 }