001 /** 002 * Copyright (c) 2000-2010 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.model.Layout; 022 import com.liferay.portal.service.ServiceContext; 023 024 import java.util.List; 025 026 /** 027 * The persistence utility for the layout service. 028 * 029 * <p> 030 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see LayoutPersistence 035 * @see LayoutPersistenceImpl 036 * @generated 037 */ 038 public class LayoutUtil { 039 /** 040 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 041 */ 042 public static void clearCache() { 043 getPersistence().clearCache(); 044 } 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 048 */ 049 public static void clearCache(Layout layout) { 050 getPersistence().clearCache(layout); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 055 */ 056 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 057 throws SystemException { 058 return getPersistence().countWithDynamicQuery(dynamicQuery); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 063 */ 064 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().findWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 071 */ 072 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery, 073 int start, int end) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 079 */ 080 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery, 081 int start, int end, OrderByComparator orderByComparator) 082 throws SystemException { 083 return getPersistence() 084 .findWithDynamicQuery(dynamicQuery, start, end, 085 orderByComparator); 086 } 087 088 /** 089 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 090 */ 091 public static Layout remove(Layout layout) throws SystemException { 092 return getPersistence().remove(layout); 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 to cache 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 to cache 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. 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 to remove 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 * Finds 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 to find 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 * Finds 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 to find 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 * Finds all the layouts where uuid = ?. 188 * 189 * @param uuid the uuid to search with 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 * Finds 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 to search with 207 * @param start the lower bound of the range of layouts to return 208 * @param end the upper bound of the range of layouts to return (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 * Finds 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 to search with 226 * @param start the lower bound of the range of layouts to return 227 * @param end the upper bound of the range of layouts to return (not inclusive) 228 * @param orderByComparator the comparator to order the results by 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 * Finds the first layout in the ordered set where uuid = ?. 241 * 242 * <p> 243 * 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. 244 * </p> 245 * 246 * @param uuid the uuid to search with 247 * @param orderByComparator the comparator to order the set by 248 * @return the first matching layout 249 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 250 * @throws SystemException if a system exception occurred 251 */ 252 public static com.liferay.portal.model.Layout findByUuid_First( 253 java.lang.String uuid, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.NoSuchLayoutException, 256 com.liferay.portal.kernel.exception.SystemException { 257 return getPersistence().findByUuid_First(uuid, orderByComparator); 258 } 259 260 /** 261 * Finds the last layout in the ordered set where uuid = ?. 262 * 263 * <p> 264 * 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. 265 * </p> 266 * 267 * @param uuid the uuid to search with 268 * @param orderByComparator the comparator to order the set by 269 * @return the last matching layout 270 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portal.model.Layout findByUuid_Last( 274 java.lang.String uuid, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.NoSuchLayoutException, 277 com.liferay.portal.kernel.exception.SystemException { 278 return getPersistence().findByUuid_Last(uuid, orderByComparator); 279 } 280 281 /** 282 * Finds the layouts before and after the current layout in the ordered set where uuid = ?. 283 * 284 * <p> 285 * 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. 286 * </p> 287 * 288 * @param plid the primary key of the current layout 289 * @param uuid the uuid to search with 290 * @param orderByComparator the comparator to order the set by 291 * @return the previous, current, and next layout 292 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public static com.liferay.portal.model.Layout[] findByUuid_PrevAndNext( 296 long plid, java.lang.String uuid, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.NoSuchLayoutException, 299 com.liferay.portal.kernel.exception.SystemException { 300 return getPersistence() 301 .findByUuid_PrevAndNext(plid, uuid, orderByComparator); 302 } 303 304 /** 305 * Finds the layout where uuid = ? and groupId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 306 * 307 * @param uuid the uuid to search with 308 * @param groupId the group id to search with 309 * @return the matching layout 310 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 311 * @throws SystemException if a system exception occurred 312 */ 313 public static com.liferay.portal.model.Layout findByUUID_G( 314 java.lang.String uuid, long groupId) 315 throws com.liferay.portal.NoSuchLayoutException, 316 com.liferay.portal.kernel.exception.SystemException { 317 return getPersistence().findByUUID_G(uuid, groupId); 318 } 319 320 /** 321 * Finds the layout where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 322 * 323 * @param uuid the uuid to search with 324 * @param groupId the group id to search with 325 * @return the matching layout, or <code>null</code> if a matching layout could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public static com.liferay.portal.model.Layout fetchByUUID_G( 329 java.lang.String uuid, long groupId) 330 throws com.liferay.portal.kernel.exception.SystemException { 331 return getPersistence().fetchByUUID_G(uuid, groupId); 332 } 333 334 /** 335 * Finds the layout where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 336 * 337 * @param uuid the uuid to search with 338 * @param groupId the group id to search with 339 * @return the matching layout, or <code>null</code> if a matching layout could not be found 340 * @throws SystemException if a system exception occurred 341 */ 342 public static com.liferay.portal.model.Layout fetchByUUID_G( 343 java.lang.String uuid, long groupId, boolean retrieveFromCache) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 346 } 347 348 /** 349 * Finds all the layouts where groupId = ?. 350 * 351 * @param groupId the group id to search with 352 * @return the matching layouts 353 * @throws SystemException if a system exception occurred 354 */ 355 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId( 356 long groupId) 357 throws com.liferay.portal.kernel.exception.SystemException { 358 return getPersistence().findByGroupId(groupId); 359 } 360 361 /** 362 * Finds a range of all the layouts where groupId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param groupId the group id to search with 369 * @param start the lower bound of the range of layouts to return 370 * @param end the upper bound of the range of layouts to return (not inclusive) 371 * @return the range of matching layouts 372 * @throws SystemException if a system exception occurred 373 */ 374 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId( 375 long groupId, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException { 377 return getPersistence().findByGroupId(groupId, start, end); 378 } 379 380 /** 381 * Finds an ordered range of all the layouts where groupId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param groupId the group id to search with 388 * @param start the lower bound of the range of layouts to return 389 * @param end the upper bound of the range of layouts to return (not inclusive) 390 * @param orderByComparator the comparator to order the results by 391 * @return the ordered range of matching layouts 392 * @throws SystemException if a system exception occurred 393 */ 394 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId( 395 long groupId, int start, int end, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException { 398 return getPersistence() 399 .findByGroupId(groupId, start, end, orderByComparator); 400 } 401 402 /** 403 * Finds the first layout in the ordered set where groupId = ?. 404 * 405 * <p> 406 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 407 * </p> 408 * 409 * @param groupId the group id to search with 410 * @param orderByComparator the comparator to order the set by 411 * @return the first matching layout 412 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 413 * @throws SystemException if a system exception occurred 414 */ 415 public static com.liferay.portal.model.Layout findByGroupId_First( 416 long groupId, 417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 418 throws com.liferay.portal.NoSuchLayoutException, 419 com.liferay.portal.kernel.exception.SystemException { 420 return getPersistence().findByGroupId_First(groupId, orderByComparator); 421 } 422 423 /** 424 * Finds the last layout in the ordered set where groupId = ?. 425 * 426 * <p> 427 * 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. 428 * </p> 429 * 430 * @param groupId the group id to search with 431 * @param orderByComparator the comparator to order the set by 432 * @return the last 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_Last( 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_Last(groupId, orderByComparator); 442 } 443 444 /** 445 * Finds the layouts before and after the current layout in the ordered set where groupId = ?. 446 * 447 * <p> 448 * 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. 449 * </p> 450 * 451 * @param plid the primary key of the current layout 452 * @param groupId the group id to search with 453 * @param orderByComparator the comparator to order the set by 454 * @return the previous, current, and next layout 455 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public static com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext( 459 long plid, long groupId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.NoSuchLayoutException, 462 com.liferay.portal.kernel.exception.SystemException { 463 return getPersistence() 464 .findByGroupId_PrevAndNext(plid, groupId, orderByComparator); 465 } 466 467 /** 468 * Finds all the layouts where companyId = ?. 469 * 470 * @param companyId the company id to search with 471 * @return the matching layouts 472 * @throws SystemException if a system exception occurred 473 */ 474 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 475 long companyId) 476 throws com.liferay.portal.kernel.exception.SystemException { 477 return getPersistence().findByCompanyId(companyId); 478 } 479 480 /** 481 * Finds a range of all the layouts where companyId = ?. 482 * 483 * <p> 484 * 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. 485 * </p> 486 * 487 * @param companyId the company id to search with 488 * @param start the lower bound of the range of layouts to return 489 * @param end the upper bound of the range of layouts to return (not inclusive) 490 * @return the range of matching layouts 491 * @throws SystemException if a system exception occurred 492 */ 493 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 494 long companyId, int start, int end) 495 throws com.liferay.portal.kernel.exception.SystemException { 496 return getPersistence().findByCompanyId(companyId, start, end); 497 } 498 499 /** 500 * Finds an ordered range of all the layouts where companyId = ?. 501 * 502 * <p> 503 * 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. 504 * </p> 505 * 506 * @param companyId the company id to search with 507 * @param start the lower bound of the range of layouts to return 508 * @param end the upper bound of the range of layouts to return (not inclusive) 509 * @param orderByComparator the comparator to order the results by 510 * @return the ordered range of matching layouts 511 * @throws SystemException if a system exception occurred 512 */ 513 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId( 514 long companyId, int start, int end, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.kernel.exception.SystemException { 517 return getPersistence() 518 .findByCompanyId(companyId, start, end, orderByComparator); 519 } 520 521 /** 522 * Finds the first layout in the ordered set where companyId = ?. 523 * 524 * <p> 525 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 526 * </p> 527 * 528 * @param companyId the company id to search with 529 * @param orderByComparator the comparator to order the set by 530 * @return the first matching layout 531 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public static com.liferay.portal.model.Layout findByCompanyId_First( 535 long companyId, 536 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 537 throws com.liferay.portal.NoSuchLayoutException, 538 com.liferay.portal.kernel.exception.SystemException { 539 return getPersistence() 540 .findByCompanyId_First(companyId, orderByComparator); 541 } 542 543 /** 544 * Finds the last layout in the ordered set where companyId = ?. 545 * 546 * <p> 547 * 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. 548 * </p> 549 * 550 * @param companyId the company id to search with 551 * @param orderByComparator the comparator to order the set by 552 * @return the last matching layout 553 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 554 * @throws SystemException if a system exception occurred 555 */ 556 public static com.liferay.portal.model.Layout findByCompanyId_Last( 557 long companyId, 558 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 559 throws com.liferay.portal.NoSuchLayoutException, 560 com.liferay.portal.kernel.exception.SystemException { 561 return getPersistence() 562 .findByCompanyId_Last(companyId, orderByComparator); 563 } 564 565 /** 566 * Finds the layouts before and after the current layout in the ordered set where companyId = ?. 567 * 568 * <p> 569 * 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. 570 * </p> 571 * 572 * @param plid the primary key of the current layout 573 * @param companyId the company id to search with 574 * @param orderByComparator the comparator to order the set by 575 * @return the previous, current, and next layout 576 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public static com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext( 580 long plid, long companyId, 581 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 582 throws com.liferay.portal.NoSuchLayoutException, 583 com.liferay.portal.kernel.exception.SystemException { 584 return getPersistence() 585 .findByCompanyId_PrevAndNext(plid, companyId, 586 orderByComparator); 587 } 588 589 /** 590 * Finds the layout where dlFolderId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 591 * 592 * @param dlFolderId the dl folder id to search with 593 * @return the matching layout 594 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 595 * @throws SystemException if a system exception occurred 596 */ 597 public static com.liferay.portal.model.Layout findByDLFolderId( 598 long dlFolderId) 599 throws com.liferay.portal.NoSuchLayoutException, 600 com.liferay.portal.kernel.exception.SystemException { 601 return getPersistence().findByDLFolderId(dlFolderId); 602 } 603 604 /** 605 * Finds the layout where dlFolderId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 606 * 607 * @param dlFolderId the dl folder id to search with 608 * @return the matching layout, or <code>null</code> if a matching layout could not be found 609 * @throws SystemException if a system exception occurred 610 */ 611 public static com.liferay.portal.model.Layout fetchByDLFolderId( 612 long dlFolderId) 613 throws com.liferay.portal.kernel.exception.SystemException { 614 return getPersistence().fetchByDLFolderId(dlFolderId); 615 } 616 617 /** 618 * Finds the layout where dlFolderId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 619 * 620 * @param dlFolderId the dl folder id to search with 621 * @return the matching layout, or <code>null</code> if a matching layout could not be found 622 * @throws SystemException if a system exception occurred 623 */ 624 public static com.liferay.portal.model.Layout fetchByDLFolderId( 625 long dlFolderId, boolean retrieveFromCache) 626 throws com.liferay.portal.kernel.exception.SystemException { 627 return getPersistence().fetchByDLFolderId(dlFolderId, retrieveFromCache); 628 } 629 630 /** 631 * Finds the layout where iconImageId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 632 * 633 * @param iconImageId the icon image id to search with 634 * @return the matching layout 635 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 636 * @throws SystemException if a system exception occurred 637 */ 638 public static com.liferay.portal.model.Layout findByIconImageId( 639 long iconImageId) 640 throws com.liferay.portal.NoSuchLayoutException, 641 com.liferay.portal.kernel.exception.SystemException { 642 return getPersistence().findByIconImageId(iconImageId); 643 } 644 645 /** 646 * Finds the layout where iconImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 647 * 648 * @param iconImageId the icon image id to search with 649 * @return the matching layout, or <code>null</code> if a matching layout could not be found 650 * @throws SystemException if a system exception occurred 651 */ 652 public static com.liferay.portal.model.Layout fetchByIconImageId( 653 long iconImageId) 654 throws com.liferay.portal.kernel.exception.SystemException { 655 return getPersistence().fetchByIconImageId(iconImageId); 656 } 657 658 /** 659 * Finds the layout where iconImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 660 * 661 * @param iconImageId the icon image id to search with 662 * @return the matching layout, or <code>null</code> if a matching layout could not be found 663 * @throws SystemException if a system exception occurred 664 */ 665 public static com.liferay.portal.model.Layout fetchByIconImageId( 666 long iconImageId, boolean retrieveFromCache) 667 throws com.liferay.portal.kernel.exception.SystemException { 668 return getPersistence() 669 .fetchByIconImageId(iconImageId, retrieveFromCache); 670 } 671 672 /** 673 * Finds all the layouts where groupId = ? and privateLayout = ?. 674 * 675 * @param groupId the group id to search with 676 * @param privateLayout the private layout to search with 677 * @return the matching layouts 678 * @throws SystemException if a system exception occurred 679 */ 680 public static java.util.List<com.liferay.portal.model.Layout> findByG_P( 681 long groupId, boolean privateLayout) 682 throws com.liferay.portal.kernel.exception.SystemException { 683 return getPersistence().findByG_P(groupId, privateLayout); 684 } 685 686 /** 687 * Finds a range of all the layouts where groupId = ? and privateLayout = ?. 688 * 689 * <p> 690 * 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. 691 * </p> 692 * 693 * @param groupId the group id to search with 694 * @param privateLayout the private layout to search with 695 * @param start the lower bound of the range of layouts to return 696 * @param end the upper bound of the range of layouts to return (not inclusive) 697 * @return the range of matching layouts 698 * @throws SystemException if a system exception occurred 699 */ 700 public static java.util.List<com.liferay.portal.model.Layout> findByG_P( 701 long groupId, boolean privateLayout, int start, int end) 702 throws com.liferay.portal.kernel.exception.SystemException { 703 return getPersistence().findByG_P(groupId, privateLayout, start, end); 704 } 705 706 /** 707 * Finds an ordered range of all the layouts where groupId = ? and privateLayout = ?. 708 * 709 * <p> 710 * 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. 711 * </p> 712 * 713 * @param groupId the group id to search with 714 * @param privateLayout the private layout to search with 715 * @param start the lower bound of the range of layouts to return 716 * @param end the upper bound of the range of layouts to return (not inclusive) 717 * @param orderByComparator the comparator to order the results by 718 * @return the ordered range of matching layouts 719 * @throws SystemException if a system exception occurred 720 */ 721 public static java.util.List<com.liferay.portal.model.Layout> findByG_P( 722 long groupId, boolean privateLayout, int start, int end, 723 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 724 throws com.liferay.portal.kernel.exception.SystemException { 725 return getPersistence() 726 .findByG_P(groupId, privateLayout, start, end, 727 orderByComparator); 728 } 729 730 /** 731 * Finds the first layout in the ordered set where groupId = ? and privateLayout = ?. 732 * 733 * <p> 734 * 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. 735 * </p> 736 * 737 * @param groupId the group id to search with 738 * @param privateLayout the private layout to search with 739 * @param orderByComparator the comparator to order the set by 740 * @return the first matching layout 741 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 742 * @throws SystemException if a system exception occurred 743 */ 744 public static com.liferay.portal.model.Layout findByG_P_First( 745 long groupId, boolean privateLayout, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.NoSuchLayoutException, 748 com.liferay.portal.kernel.exception.SystemException { 749 return getPersistence() 750 .findByG_P_First(groupId, privateLayout, orderByComparator); 751 } 752 753 /** 754 * Finds the last layout in the ordered set where groupId = ? and privateLayout = ?. 755 * 756 * <p> 757 * 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. 758 * </p> 759 * 760 * @param groupId the group id to search with 761 * @param privateLayout the private layout to search with 762 * @param orderByComparator the comparator to order the set by 763 * @return the last matching layout 764 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 765 * @throws SystemException if a system exception occurred 766 */ 767 public static com.liferay.portal.model.Layout findByG_P_Last(long groupId, 768 boolean privateLayout, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.NoSuchLayoutException, 771 com.liferay.portal.kernel.exception.SystemException { 772 return getPersistence() 773 .findByG_P_Last(groupId, privateLayout, orderByComparator); 774 } 775 776 /** 777 * Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?. 778 * 779 * <p> 780 * 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. 781 * </p> 782 * 783 * @param plid the primary key of the current layout 784 * @param groupId the group id to search with 785 * @param privateLayout the private layout to search with 786 * @param orderByComparator the comparator to order the set by 787 * @return the previous, current, and next layout 788 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 789 * @throws SystemException if a system exception occurred 790 */ 791 public static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext( 792 long plid, long groupId, boolean privateLayout, 793 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 794 throws com.liferay.portal.NoSuchLayoutException, 795 com.liferay.portal.kernel.exception.SystemException { 796 return getPersistence() 797 .findByG_P_PrevAndNext(plid, groupId, privateLayout, 798 orderByComparator); 799 } 800 801 /** 802 * Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 803 * 804 * @param groupId the group id to search with 805 * @param privateLayout the private layout to search with 806 * @param layoutId the layout id to search with 807 * @return the matching layout 808 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 809 * @throws SystemException if a system exception occurred 810 */ 811 public static com.liferay.portal.model.Layout findByG_P_L(long groupId, 812 boolean privateLayout, long layoutId) 813 throws com.liferay.portal.NoSuchLayoutException, 814 com.liferay.portal.kernel.exception.SystemException { 815 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId); 816 } 817 818 /** 819 * Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 820 * 821 * @param groupId the group id to search with 822 * @param privateLayout the private layout to search with 823 * @param layoutId the layout id to search with 824 * @return the matching layout, or <code>null</code> if a matching layout could not be found 825 * @throws SystemException if a system exception occurred 826 */ 827 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, 828 boolean privateLayout, long layoutId) 829 throws com.liferay.portal.kernel.exception.SystemException { 830 return getPersistence().fetchByG_P_L(groupId, privateLayout, layoutId); 831 } 832 833 /** 834 * Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 835 * 836 * @param groupId the group id to search with 837 * @param privateLayout the private layout to search with 838 * @param layoutId the layout id to search with 839 * @return the matching layout, or <code>null</code> if a matching layout could not be found 840 * @throws SystemException if a system exception occurred 841 */ 842 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, 843 boolean privateLayout, long layoutId, boolean retrieveFromCache) 844 throws com.liferay.portal.kernel.exception.SystemException { 845 return getPersistence() 846 .fetchByG_P_L(groupId, privateLayout, layoutId, 847 retrieveFromCache); 848 } 849 850 /** 851 * Finds all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 852 * 853 * @param groupId the group id to search with 854 * @param privateLayout the private layout to search with 855 * @param parentLayoutId the parent layout id to search with 856 * @return the matching layouts 857 * @throws SystemException if a system exception occurred 858 */ 859 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 860 long groupId, boolean privateLayout, long parentLayoutId) 861 throws com.liferay.portal.kernel.exception.SystemException { 862 return getPersistence() 863 .findByG_P_P(groupId, privateLayout, parentLayoutId); 864 } 865 866 /** 867 * Finds a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 868 * 869 * <p> 870 * 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. 871 * </p> 872 * 873 * @param groupId the group id to search with 874 * @param privateLayout the private layout to search with 875 * @param parentLayoutId the parent layout id to search with 876 * @param start the lower bound of the range of layouts to return 877 * @param end the upper bound of the range of layouts to return (not inclusive) 878 * @return the range of matching layouts 879 * @throws SystemException if a system exception occurred 880 */ 881 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 882 long groupId, boolean privateLayout, long parentLayoutId, int start, 883 int end) throws com.liferay.portal.kernel.exception.SystemException { 884 return getPersistence() 885 .findByG_P_P(groupId, privateLayout, parentLayoutId, start, 886 end); 887 } 888 889 /** 890 * Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 891 * 892 * <p> 893 * 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. 894 * </p> 895 * 896 * @param groupId the group id to search with 897 * @param privateLayout the private layout to search with 898 * @param parentLayoutId the parent layout id to search with 899 * @param start the lower bound of the range of layouts to return 900 * @param end the upper bound of the range of layouts to return (not inclusive) 901 * @param orderByComparator the comparator to order the results by 902 * @return the ordered range of matching layouts 903 * @throws SystemException if a system exception occurred 904 */ 905 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P( 906 long groupId, boolean privateLayout, long parentLayoutId, int start, 907 int end, 908 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 909 throws com.liferay.portal.kernel.exception.SystemException { 910 return getPersistence() 911 .findByG_P_P(groupId, privateLayout, parentLayoutId, start, 912 end, orderByComparator); 913 } 914 915 /** 916 * Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 917 * 918 * <p> 919 * 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. 920 * </p> 921 * 922 * @param groupId the group id to search with 923 * @param privateLayout the private layout to search with 924 * @param parentLayoutId the parent layout id to search with 925 * @param orderByComparator the comparator to order the set by 926 * @return the first matching layout 927 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 928 * @throws SystemException if a system exception occurred 929 */ 930 public static com.liferay.portal.model.Layout findByG_P_P_First( 931 long groupId, boolean privateLayout, long parentLayoutId, 932 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 933 throws com.liferay.portal.NoSuchLayoutException, 934 com.liferay.portal.kernel.exception.SystemException { 935 return getPersistence() 936 .findByG_P_P_First(groupId, privateLayout, parentLayoutId, 937 orderByComparator); 938 } 939 940 /** 941 * Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 942 * 943 * <p> 944 * 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. 945 * </p> 946 * 947 * @param groupId the group id to search with 948 * @param privateLayout the private layout to search with 949 * @param parentLayoutId the parent layout id to search with 950 * @param orderByComparator the comparator to order the set by 951 * @return the last matching layout 952 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 953 * @throws SystemException if a system exception occurred 954 */ 955 public static com.liferay.portal.model.Layout findByG_P_P_Last( 956 long groupId, boolean privateLayout, long parentLayoutId, 957 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 958 throws com.liferay.portal.NoSuchLayoutException, 959 com.liferay.portal.kernel.exception.SystemException { 960 return getPersistence() 961 .findByG_P_P_Last(groupId, privateLayout, parentLayoutId, 962 orderByComparator); 963 } 964 965 /** 966 * Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. 967 * 968 * <p> 969 * 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. 970 * </p> 971 * 972 * @param plid the primary key of the current layout 973 * @param groupId the group id to search with 974 * @param privateLayout the private layout to search with 975 * @param parentLayoutId the parent layout id to search with 976 * @param orderByComparator the comparator to order the set by 977 * @return the previous, current, and next layout 978 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 979 * @throws SystemException if a system exception occurred 980 */ 981 public static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext( 982 long plid, long groupId, boolean privateLayout, long parentLayoutId, 983 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 984 throws com.liferay.portal.NoSuchLayoutException, 985 com.liferay.portal.kernel.exception.SystemException { 986 return getPersistence() 987 .findByG_P_P_PrevAndNext(plid, groupId, privateLayout, 988 parentLayoutId, orderByComparator); 989 } 990 991 /** 992 * Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. 993 * 994 * @param groupId the group id to search with 995 * @param privateLayout the private layout to search with 996 * @param friendlyURL the friendly u r l to search with 997 * @return the matching layout 998 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static com.liferay.portal.model.Layout findByG_P_F(long groupId, 1002 boolean privateLayout, java.lang.String friendlyURL) 1003 throws com.liferay.portal.NoSuchLayoutException, 1004 com.liferay.portal.kernel.exception.SystemException { 1005 return getPersistence().findByG_P_F(groupId, privateLayout, friendlyURL); 1006 } 1007 1008 /** 1009 * Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1010 * 1011 * @param groupId the group id to search with 1012 * @param privateLayout the private layout to search with 1013 * @param friendlyURL the friendly u r l to search with 1014 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1015 * @throws SystemException if a system exception occurred 1016 */ 1017 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, 1018 boolean privateLayout, java.lang.String friendlyURL) 1019 throws com.liferay.portal.kernel.exception.SystemException { 1020 return getPersistence().fetchByG_P_F(groupId, privateLayout, friendlyURL); 1021 } 1022 1023 /** 1024 * Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1025 * 1026 * @param groupId the group id to search with 1027 * @param privateLayout the private layout to search with 1028 * @param friendlyURL the friendly u r l to search with 1029 * @return the matching layout, or <code>null</code> if a matching layout could not be found 1030 * @throws SystemException if a system exception occurred 1031 */ 1032 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, 1033 boolean privateLayout, java.lang.String friendlyURL, 1034 boolean retrieveFromCache) 1035 throws com.liferay.portal.kernel.exception.SystemException { 1036 return getPersistence() 1037 .fetchByG_P_F(groupId, privateLayout, friendlyURL, 1038 retrieveFromCache); 1039 } 1040 1041 /** 1042 * Finds all the layouts where groupId = ? and privateLayout = ? and type = ?. 1043 * 1044 * @param groupId the group id to search with 1045 * @param privateLayout the private layout to search with 1046 * @param type the type to search with 1047 * @return the matching layouts 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1051 long groupId, boolean privateLayout, java.lang.String type) 1052 throws com.liferay.portal.kernel.exception.SystemException { 1053 return getPersistence().findByG_P_T(groupId, privateLayout, type); 1054 } 1055 1056 /** 1057 * Finds a range of all the layouts where groupId = ? and privateLayout = ? and type = ?. 1058 * 1059 * <p> 1060 * 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. 1061 * </p> 1062 * 1063 * @param groupId the group id to search with 1064 * @param privateLayout the private layout to search with 1065 * @param type the type to search with 1066 * @param start the lower bound of the range of layouts to return 1067 * @param end the upper bound of the range of layouts to return (not inclusive) 1068 * @return the range of matching layouts 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1072 long groupId, boolean privateLayout, java.lang.String type, int start, 1073 int end) throws com.liferay.portal.kernel.exception.SystemException { 1074 return getPersistence() 1075 .findByG_P_T(groupId, privateLayout, type, start, end); 1076 } 1077 1078 /** 1079 * Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?. 1080 * 1081 * <p> 1082 * 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. 1083 * </p> 1084 * 1085 * @param groupId the group id to search with 1086 * @param privateLayout the private layout to search with 1087 * @param type the type to search with 1088 * @param start the lower bound of the range of layouts to return 1089 * @param end the upper bound of the range of layouts to return (not inclusive) 1090 * @param orderByComparator the comparator to order the results by 1091 * @return the ordered range of matching layouts 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T( 1095 long groupId, boolean privateLayout, java.lang.String type, int start, 1096 int end, 1097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1098 throws com.liferay.portal.kernel.exception.SystemException { 1099 return getPersistence() 1100 .findByG_P_T(groupId, privateLayout, type, start, end, 1101 orderByComparator); 1102 } 1103 1104 /** 1105 * Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1106 * 1107 * <p> 1108 * 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. 1109 * </p> 1110 * 1111 * @param groupId the group id to search with 1112 * @param privateLayout the private layout to search with 1113 * @param type the type to search with 1114 * @param orderByComparator the comparator to order the set by 1115 * @return the first matching layout 1116 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1117 * @throws SystemException if a system exception occurred 1118 */ 1119 public static com.liferay.portal.model.Layout findByG_P_T_First( 1120 long groupId, boolean privateLayout, java.lang.String type, 1121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1122 throws com.liferay.portal.NoSuchLayoutException, 1123 com.liferay.portal.kernel.exception.SystemException { 1124 return getPersistence() 1125 .findByG_P_T_First(groupId, privateLayout, type, 1126 orderByComparator); 1127 } 1128 1129 /** 1130 * Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1131 * 1132 * <p> 1133 * 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. 1134 * </p> 1135 * 1136 * @param groupId the group id to search with 1137 * @param privateLayout the private layout to search with 1138 * @param type the type to search with 1139 * @param orderByComparator the comparator to order the set by 1140 * @return the last matching layout 1141 * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found 1142 * @throws SystemException if a system exception occurred 1143 */ 1144 public static com.liferay.portal.model.Layout findByG_P_T_Last( 1145 long groupId, boolean privateLayout, java.lang.String type, 1146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1147 throws com.liferay.portal.NoSuchLayoutException, 1148 com.liferay.portal.kernel.exception.SystemException { 1149 return getPersistence() 1150 .findByG_P_T_Last(groupId, privateLayout, type, 1151 orderByComparator); 1152 } 1153 1154 /** 1155 * Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. 1156 * 1157 * <p> 1158 * 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. 1159 * </p> 1160 * 1161 * @param plid the primary key of the current layout 1162 * @param groupId the group id to search with 1163 * @param privateLayout the private layout to search with 1164 * @param type the type to search with 1165 * @param orderByComparator the comparator to order the set by 1166 * @return the previous, current, and next layout 1167 * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found 1168 * @throws SystemException if a system exception occurred 1169 */ 1170 public static com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext( 1171 long plid, long groupId, boolean privateLayout, java.lang.String type, 1172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1173 throws com.liferay.portal.NoSuchLayoutException, 1174 com.liferay.portal.kernel.exception.SystemException { 1175 return getPersistence() 1176 .findByG_P_T_PrevAndNext(plid, groupId, privateLayout, type, 1177 orderByComparator); 1178 } 1179 1180 /** 1181 * Finds all the layouts. 1182 * 1183 * @return the layouts 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public static java.util.List<com.liferay.portal.model.Layout> findAll() 1187 throws com.liferay.portal.kernel.exception.SystemException { 1188 return getPersistence().findAll(); 1189 } 1190 1191 /** 1192 * Finds a range of all the layouts. 1193 * 1194 * <p> 1195 * 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. 1196 * </p> 1197 * 1198 * @param start the lower bound of the range of layouts to return 1199 * @param end the upper bound of the range of layouts to return (not inclusive) 1200 * @return the range of layouts 1201 * @throws SystemException if a system exception occurred 1202 */ 1203 public static java.util.List<com.liferay.portal.model.Layout> findAll( 1204 int start, int end) 1205 throws com.liferay.portal.kernel.exception.SystemException { 1206 return getPersistence().findAll(start, end); 1207 } 1208 1209 /** 1210 * Finds an ordered range of all the layouts. 1211 * 1212 * <p> 1213 * 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. 1214 * </p> 1215 * 1216 * @param start the lower bound of the range of layouts to return 1217 * @param end the upper bound of the range of layouts to return (not inclusive) 1218 * @param orderByComparator the comparator to order the results by 1219 * @return the ordered range of layouts 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static java.util.List<com.liferay.portal.model.Layout> findAll( 1223 int start, int end, 1224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1225 throws com.liferay.portal.kernel.exception.SystemException { 1226 return getPersistence().findAll(start, end, orderByComparator); 1227 } 1228 1229 /** 1230 * Removes all the layouts where uuid = ? from the database. 1231 * 1232 * @param uuid the uuid to search with 1233 * @throws SystemException if a system exception occurred 1234 */ 1235 public static void removeByUuid(java.lang.String uuid) 1236 throws com.liferay.portal.kernel.exception.SystemException { 1237 getPersistence().removeByUuid(uuid); 1238 } 1239 1240 /** 1241 * Removes the layout where uuid = ? and groupId = ? from the database. 1242 * 1243 * @param uuid the uuid to search with 1244 * @param groupId the group id to search with 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1248 throws com.liferay.portal.NoSuchLayoutException, 1249 com.liferay.portal.kernel.exception.SystemException { 1250 getPersistence().removeByUUID_G(uuid, groupId); 1251 } 1252 1253 /** 1254 * Removes all the layouts where groupId = ? from the database. 1255 * 1256 * @param groupId the group id to search with 1257 * @throws SystemException if a system exception occurred 1258 */ 1259 public static void removeByGroupId(long groupId) 1260 throws com.liferay.portal.kernel.exception.SystemException { 1261 getPersistence().removeByGroupId(groupId); 1262 } 1263 1264 /** 1265 * Removes all the layouts where companyId = ? from the database. 1266 * 1267 * @param companyId the company id to search with 1268 * @throws SystemException if a system exception occurred 1269 */ 1270 public static void removeByCompanyId(long companyId) 1271 throws com.liferay.portal.kernel.exception.SystemException { 1272 getPersistence().removeByCompanyId(companyId); 1273 } 1274 1275 /** 1276 * Removes the layout where dlFolderId = ? from the database. 1277 * 1278 * @param dlFolderId the dl folder id to search with 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public static void removeByDLFolderId(long dlFolderId) 1282 throws com.liferay.portal.NoSuchLayoutException, 1283 com.liferay.portal.kernel.exception.SystemException { 1284 getPersistence().removeByDLFolderId(dlFolderId); 1285 } 1286 1287 /** 1288 * Removes the layout where iconImageId = ? from the database. 1289 * 1290 * @param iconImageId the icon image id to search with 1291 * @throws SystemException if a system exception occurred 1292 */ 1293 public static void removeByIconImageId(long iconImageId) 1294 throws com.liferay.portal.NoSuchLayoutException, 1295 com.liferay.portal.kernel.exception.SystemException { 1296 getPersistence().removeByIconImageId(iconImageId); 1297 } 1298 1299 /** 1300 * Removes all the layouts where groupId = ? and privateLayout = ? from the database. 1301 * 1302 * @param groupId the group id to search with 1303 * @param privateLayout the private layout to search with 1304 * @throws SystemException if a system exception occurred 1305 */ 1306 public static void removeByG_P(long groupId, boolean privateLayout) 1307 throws com.liferay.portal.kernel.exception.SystemException { 1308 getPersistence().removeByG_P(groupId, privateLayout); 1309 } 1310 1311 /** 1312 * Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database. 1313 * 1314 * @param groupId the group id to search with 1315 * @param privateLayout the private layout to search with 1316 * @param layoutId the layout id to search with 1317 * @throws SystemException if a system exception occurred 1318 */ 1319 public static void removeByG_P_L(long groupId, boolean privateLayout, 1320 long layoutId) 1321 throws com.liferay.portal.NoSuchLayoutException, 1322 com.liferay.portal.kernel.exception.SystemException { 1323 getPersistence().removeByG_P_L(groupId, privateLayout, layoutId); 1324 } 1325 1326 /** 1327 * Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database. 1328 * 1329 * @param groupId the group id to search with 1330 * @param privateLayout the private layout to search with 1331 * @param parentLayoutId the parent layout id to search with 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 public static void removeByG_P_P(long groupId, boolean privateLayout, 1335 long parentLayoutId) 1336 throws com.liferay.portal.kernel.exception.SystemException { 1337 getPersistence().removeByG_P_P(groupId, privateLayout, parentLayoutId); 1338 } 1339 1340 /** 1341 * Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database. 1342 * 1343 * @param groupId the group id to search with 1344 * @param privateLayout the private layout to search with 1345 * @param friendlyURL the friendly u r l to search with 1346 * @throws SystemException if a system exception occurred 1347 */ 1348 public static void removeByG_P_F(long groupId, boolean privateLayout, 1349 java.lang.String friendlyURL) 1350 throws com.liferay.portal.NoSuchLayoutException, 1351 com.liferay.portal.kernel.exception.SystemException { 1352 getPersistence().removeByG_P_F(groupId, privateLayout, friendlyURL); 1353 } 1354 1355 /** 1356 * Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database. 1357 * 1358 * @param groupId the group id to search with 1359 * @param privateLayout the private layout to search with 1360 * @param type the type to search with 1361 * @throws SystemException if a system exception occurred 1362 */ 1363 public static void removeByG_P_T(long groupId, boolean privateLayout, 1364 java.lang.String type) 1365 throws com.liferay.portal.kernel.exception.SystemException { 1366 getPersistence().removeByG_P_T(groupId, privateLayout, type); 1367 } 1368 1369 /** 1370 * Removes all the layouts from the database. 1371 * 1372 * @throws SystemException if a system exception occurred 1373 */ 1374 public static void removeAll() 1375 throws com.liferay.portal.kernel.exception.SystemException { 1376 getPersistence().removeAll(); 1377 } 1378 1379 /** 1380 * Counts all the layouts where uuid = ?. 1381 * 1382 * @param uuid the uuid to search with 1383 * @return the number of matching layouts 1384 * @throws SystemException if a system exception occurred 1385 */ 1386 public static int countByUuid(java.lang.String uuid) 1387 throws com.liferay.portal.kernel.exception.SystemException { 1388 return getPersistence().countByUuid(uuid); 1389 } 1390 1391 /** 1392 * Counts all the layouts where uuid = ? and groupId = ?. 1393 * 1394 * @param uuid the uuid to search with 1395 * @param groupId the group id to search with 1396 * @return the number of matching layouts 1397 * @throws SystemException if a system exception occurred 1398 */ 1399 public static int countByUUID_G(java.lang.String uuid, long groupId) 1400 throws com.liferay.portal.kernel.exception.SystemException { 1401 return getPersistence().countByUUID_G(uuid, groupId); 1402 } 1403 1404 /** 1405 * Counts all the layouts where groupId = ?. 1406 * 1407 * @param groupId the group id to search with 1408 * @return the number of matching layouts 1409 * @throws SystemException if a system exception occurred 1410 */ 1411 public static int countByGroupId(long groupId) 1412 throws com.liferay.portal.kernel.exception.SystemException { 1413 return getPersistence().countByGroupId(groupId); 1414 } 1415 1416 /** 1417 * Counts all the layouts where companyId = ?. 1418 * 1419 * @param companyId the company id to search with 1420 * @return the number of matching layouts 1421 * @throws SystemException if a system exception occurred 1422 */ 1423 public static int countByCompanyId(long companyId) 1424 throws com.liferay.portal.kernel.exception.SystemException { 1425 return getPersistence().countByCompanyId(companyId); 1426 } 1427 1428 /** 1429 * Counts all the layouts where dlFolderId = ?. 1430 * 1431 * @param dlFolderId the dl folder id to search with 1432 * @return the number of matching layouts 1433 * @throws SystemException if a system exception occurred 1434 */ 1435 public static int countByDLFolderId(long dlFolderId) 1436 throws com.liferay.portal.kernel.exception.SystemException { 1437 return getPersistence().countByDLFolderId(dlFolderId); 1438 } 1439 1440 /** 1441 * Counts all the layouts where iconImageId = ?. 1442 * 1443 * @param iconImageId the icon image id to search with 1444 * @return the number of matching layouts 1445 * @throws SystemException if a system exception occurred 1446 */ 1447 public static int countByIconImageId(long iconImageId) 1448 throws com.liferay.portal.kernel.exception.SystemException { 1449 return getPersistence().countByIconImageId(iconImageId); 1450 } 1451 1452 /** 1453 * Counts all the layouts where groupId = ? and privateLayout = ?. 1454 * 1455 * @param groupId the group id to search with 1456 * @param privateLayout the private layout to search with 1457 * @return the number of matching layouts 1458 * @throws SystemException if a system exception occurred 1459 */ 1460 public static int countByG_P(long groupId, boolean privateLayout) 1461 throws com.liferay.portal.kernel.exception.SystemException { 1462 return getPersistence().countByG_P(groupId, privateLayout); 1463 } 1464 1465 /** 1466 * Counts all the layouts where groupId = ? and privateLayout = ? and layoutId = ?. 1467 * 1468 * @param groupId the group id to search with 1469 * @param privateLayout the private layout to search with 1470 * @param layoutId the layout id to search with 1471 * @return the number of matching layouts 1472 * @throws SystemException if a system exception occurred 1473 */ 1474 public static int countByG_P_L(long groupId, boolean privateLayout, 1475 long layoutId) 1476 throws com.liferay.portal.kernel.exception.SystemException { 1477 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId); 1478 } 1479 1480 /** 1481 * Counts all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. 1482 * 1483 * @param groupId the group id to search with 1484 * @param privateLayout the private layout to search with 1485 * @param parentLayoutId the parent layout id to search with 1486 * @return the number of matching layouts 1487 * @throws SystemException if a system exception occurred 1488 */ 1489 public static int countByG_P_P(long groupId, boolean privateLayout, 1490 long parentLayoutId) 1491 throws com.liferay.portal.kernel.exception.SystemException { 1492 return getPersistence() 1493 .countByG_P_P(groupId, privateLayout, parentLayoutId); 1494 } 1495 1496 /** 1497 * Counts all the layouts where groupId = ? and privateLayout = ? and friendlyURL = ?. 1498 * 1499 * @param groupId the group id to search with 1500 * @param privateLayout the private layout to search with 1501 * @param friendlyURL the friendly u r l to search with 1502 * @return the number of matching layouts 1503 * @throws SystemException if a system exception occurred 1504 */ 1505 public static int countByG_P_F(long groupId, boolean privateLayout, 1506 java.lang.String friendlyURL) 1507 throws com.liferay.portal.kernel.exception.SystemException { 1508 return getPersistence().countByG_P_F(groupId, privateLayout, friendlyURL); 1509 } 1510 1511 /** 1512 * Counts all the layouts where groupId = ? and privateLayout = ? and type = ?. 1513 * 1514 * @param groupId the group id to search with 1515 * @param privateLayout the private layout to search with 1516 * @param type the type to search with 1517 * @return the number of matching layouts 1518 * @throws SystemException if a system exception occurred 1519 */ 1520 public static int countByG_P_T(long groupId, boolean privateLayout, 1521 java.lang.String type) 1522 throws com.liferay.portal.kernel.exception.SystemException { 1523 return getPersistence().countByG_P_T(groupId, privateLayout, type); 1524 } 1525 1526 /** 1527 * Counts all the layouts. 1528 * 1529 * @return the number of layouts 1530 * @throws SystemException if a system exception occurred 1531 */ 1532 public static int countAll() 1533 throws com.liferay.portal.kernel.exception.SystemException { 1534 return getPersistence().countAll(); 1535 } 1536 1537 public static LayoutPersistence getPersistence() { 1538 if (_persistence == null) { 1539 _persistence = (LayoutPersistence)PortalBeanLocatorUtil.locate(LayoutPersistence.class.getName()); 1540 } 1541 1542 return _persistence; 1543 } 1544 1545 public void setPersistence(LayoutPersistence persistence) { 1546 _persistence = persistence; 1547 } 1548 1549 private static LayoutPersistence _persistence; 1550 }