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