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