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