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