001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.LayoutSet; 018 019 /** 020 * The persistence interface for the layout set service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see LayoutSetPersistenceImpl 028 * @see LayoutSetUtil 029 * @generated 030 */ 031 public interface LayoutSetPersistence extends BasePersistence<LayoutSet> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link LayoutSetUtil} to access the layout set persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Returns all the layout sets where groupId = ?. 040 * 041 * @param groupId the group ID 042 * @return the matching layout sets 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId( 046 long groupId) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the layout sets where groupId = ?. 051 * 052 * <p> 053 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 054 * </p> 055 * 056 * @param groupId the group ID 057 * @param start the lower bound of the range of layout sets 058 * @param end the upper bound of the range of layout sets (not inclusive) 059 * @return the range of matching layout sets 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId( 063 long groupId, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the layout sets where groupId = ?. 068 * 069 * <p> 070 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param groupId the group ID 074 * @param start the lower bound of the range of layout sets 075 * @param end the upper bound of the range of layout sets (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching layout sets 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId( 081 long groupId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first layout set in the ordered set where groupId = ?. 087 * 088 * @param groupId the group ID 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching layout set 091 * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.LayoutSet findByGroupId_First( 095 long groupId, 096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 097 throws com.liferay.portal.NoSuchLayoutSetException, 098 com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Returns the first layout set in the ordered set where groupId = ?. 102 * 103 * @param groupId the group ID 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching layout set, or <code>null</code> if a matching layout set could not be found 106 * @throws SystemException if a system exception occurred 107 */ 108 public com.liferay.portal.model.LayoutSet fetchByGroupId_First( 109 long groupId, 110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Returns the last layout set in the ordered set where groupId = ?. 115 * 116 * @param groupId the group ID 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the last matching layout set 119 * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found 120 * @throws SystemException if a system exception occurred 121 */ 122 public com.liferay.portal.model.LayoutSet findByGroupId_Last(long groupId, 123 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 124 throws com.liferay.portal.NoSuchLayoutSetException, 125 com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Returns the last layout set in the ordered set where groupId = ?. 129 * 130 * @param groupId the group ID 131 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 132 * @return the last matching layout set, or <code>null</code> if a matching layout set could not be found 133 * @throws SystemException if a system exception occurred 134 */ 135 public com.liferay.portal.model.LayoutSet fetchByGroupId_Last( 136 long groupId, 137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 138 throws com.liferay.portal.kernel.exception.SystemException; 139 140 /** 141 * Returns the layout sets before and after the current layout set in the ordered set where groupId = ?. 142 * 143 * @param layoutSetId the primary key of the current layout set 144 * @param groupId the group ID 145 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 146 * @return the previous, current, and next layout set 147 * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found 148 * @throws SystemException if a system exception occurred 149 */ 150 public com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext( 151 long layoutSetId, long groupId, 152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 153 throws com.liferay.portal.NoSuchLayoutSetException, 154 com.liferay.portal.kernel.exception.SystemException; 155 156 /** 157 * Removes all the layout sets where groupId = ? from the database. 158 * 159 * @param groupId the group ID 160 * @throws SystemException if a system exception occurred 161 */ 162 public void removeByGroupId(long groupId) 163 throws com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Returns the number of layout sets where groupId = ?. 167 * 168 * @param groupId the group ID 169 * @return the number of matching layout sets 170 * @throws SystemException if a system exception occurred 171 */ 172 public int countByGroupId(long groupId) 173 throws com.liferay.portal.kernel.exception.SystemException; 174 175 /** 176 * Returns all the layout sets where layoutSetPrototypeUuid = ?. 177 * 178 * @param layoutSetPrototypeUuid the layout set prototype uuid 179 * @return the matching layout sets 180 * @throws SystemException if a system exception occurred 181 */ 182 public java.util.List<com.liferay.portal.model.LayoutSet> findByLayoutSetPrototypeUuid( 183 java.lang.String layoutSetPrototypeUuid) 184 throws com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns a range of all the layout sets where layoutSetPrototypeUuid = ?. 188 * 189 * <p> 190 * 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.LayoutSetModelImpl}. 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. 191 * </p> 192 * 193 * @param layoutSetPrototypeUuid the layout set prototype uuid 194 * @param start the lower bound of the range of layout sets 195 * @param end the upper bound of the range of layout sets (not inclusive) 196 * @return the range of matching layout sets 197 * @throws SystemException if a system exception occurred 198 */ 199 public java.util.List<com.liferay.portal.model.LayoutSet> findByLayoutSetPrototypeUuid( 200 java.lang.String layoutSetPrototypeUuid, int start, int end) 201 throws com.liferay.portal.kernel.exception.SystemException; 202 203 /** 204 * Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?. 205 * 206 * <p> 207 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.LayoutSetModelImpl}. 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. 208 * </p> 209 * 210 * @param layoutSetPrototypeUuid the layout set prototype uuid 211 * @param start the lower bound of the range of layout sets 212 * @param end the upper bound of the range of layout sets (not inclusive) 213 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 214 * @return the ordered range of matching layout sets 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portal.model.LayoutSet> findByLayoutSetPrototypeUuid( 218 java.lang.String layoutSetPrototypeUuid, int start, int end, 219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 220 throws com.liferay.portal.kernel.exception.SystemException; 221 222 /** 223 * Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?. 224 * 225 * @param layoutSetPrototypeUuid the layout set prototype uuid 226 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 227 * @return the first matching layout set 228 * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found 229 * @throws SystemException if a system exception occurred 230 */ 231 public com.liferay.portal.model.LayoutSet findByLayoutSetPrototypeUuid_First( 232 java.lang.String layoutSetPrototypeUuid, 233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 234 throws com.liferay.portal.NoSuchLayoutSetException, 235 com.liferay.portal.kernel.exception.SystemException; 236 237 /** 238 * Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?. 239 * 240 * @param layoutSetPrototypeUuid the layout set prototype uuid 241 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 242 * @return the first matching layout set, or <code>null</code> if a matching layout set could not be found 243 * @throws SystemException if a system exception occurred 244 */ 245 public com.liferay.portal.model.LayoutSet fetchByLayoutSetPrototypeUuid_First( 246 java.lang.String layoutSetPrototypeUuid, 247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?. 252 * 253 * @param layoutSetPrototypeUuid the layout set prototype uuid 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the last matching layout set 256 * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public com.liferay.portal.model.LayoutSet findByLayoutSetPrototypeUuid_Last( 260 java.lang.String layoutSetPrototypeUuid, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.NoSuchLayoutSetException, 263 com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?. 267 * 268 * @param layoutSetPrototypeUuid the layout set prototype uuid 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the last matching layout set, or <code>null</code> if a matching layout set could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portal.model.LayoutSet fetchByLayoutSetPrototypeUuid_Last( 274 java.lang.String layoutSetPrototypeUuid, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException; 277 278 /** 279 * Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?. 280 * 281 * @param layoutSetId the primary key of the current layout set 282 * @param layoutSetPrototypeUuid the layout set prototype uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the previous, current, and next layout set 285 * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public com.liferay.portal.model.LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext( 289 long layoutSetId, java.lang.String layoutSetPrototypeUuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.NoSuchLayoutSetException, 292 com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Removes all the layout sets where layoutSetPrototypeUuid = ? from the database. 296 * 297 * @param layoutSetPrototypeUuid the layout set prototype uuid 298 * @throws SystemException if a system exception occurred 299 */ 300 public void removeByLayoutSetPrototypeUuid( 301 java.lang.String layoutSetPrototypeUuid) 302 throws com.liferay.portal.kernel.exception.SystemException; 303 304 /** 305 * Returns the number of layout sets where layoutSetPrototypeUuid = ?. 306 * 307 * @param layoutSetPrototypeUuid the layout set prototype uuid 308 * @return the number of matching layout sets 309 * @throws SystemException if a system exception occurred 310 */ 311 public int countByLayoutSetPrototypeUuid( 312 java.lang.String layoutSetPrototypeUuid) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the layout set where groupId = ? and privateLayout = ? or throws a {@link com.liferay.portal.NoSuchLayoutSetException} if it could not be found. 317 * 318 * @param groupId the group ID 319 * @param privateLayout the private layout 320 * @return the matching layout set 321 * @throws com.liferay.portal.NoSuchLayoutSetException if a matching layout set could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portal.model.LayoutSet findByG_P(long groupId, 325 boolean privateLayout) 326 throws com.liferay.portal.NoSuchLayoutSetException, 327 com.liferay.portal.kernel.exception.SystemException; 328 329 /** 330 * Returns the layout set where groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param groupId the group ID 333 * @param privateLayout the private layout 334 * @return the matching layout set, or <code>null</code> if a matching layout set could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId, 338 boolean privateLayout) 339 throws com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * Returns the layout set where groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 343 * 344 * @param groupId the group ID 345 * @param privateLayout the private layout 346 * @param retrieveFromCache whether to use the finder cache 347 * @return the matching layout set, or <code>null</code> if a matching layout set could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portal.model.LayoutSet fetchByG_P(long groupId, 351 boolean privateLayout, boolean retrieveFromCache) 352 throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Removes the layout set where groupId = ? and privateLayout = ? from the database. 356 * 357 * @param groupId the group ID 358 * @param privateLayout the private layout 359 * @return the layout set that was removed 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portal.model.LayoutSet removeByG_P(long groupId, 363 boolean privateLayout) 364 throws com.liferay.portal.NoSuchLayoutSetException, 365 com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns the number of layout sets where groupId = ? and privateLayout = ?. 369 * 370 * @param groupId the group ID 371 * @param privateLayout the private layout 372 * @return the number of matching layout sets 373 * @throws SystemException if a system exception occurred 374 */ 375 public int countByG_P(long groupId, boolean privateLayout) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Caches the layout set in the entity cache if it is enabled. 380 * 381 * @param layoutSet the layout set 382 */ 383 public void cacheResult(com.liferay.portal.model.LayoutSet layoutSet); 384 385 /** 386 * Caches the layout sets in the entity cache if it is enabled. 387 * 388 * @param layoutSets the layout sets 389 */ 390 public void cacheResult( 391 java.util.List<com.liferay.portal.model.LayoutSet> layoutSets); 392 393 /** 394 * Creates a new layout set with the primary key. Does not add the layout set to the database. 395 * 396 * @param layoutSetId the primary key for the new layout set 397 * @return the new layout set 398 */ 399 public com.liferay.portal.model.LayoutSet create(long layoutSetId); 400 401 /** 402 * Removes the layout set with the primary key from the database. Also notifies the appropriate model listeners. 403 * 404 * @param layoutSetId the primary key of the layout set 405 * @return the layout set that was removed 406 * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public com.liferay.portal.model.LayoutSet remove(long layoutSetId) 410 throws com.liferay.portal.NoSuchLayoutSetException, 411 com.liferay.portal.kernel.exception.SystemException; 412 413 public com.liferay.portal.model.LayoutSet updateImpl( 414 com.liferay.portal.model.LayoutSet layoutSet) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns the layout set with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetException} if it could not be found. 419 * 420 * @param layoutSetId the primary key of the layout set 421 * @return the layout set 422 * @throws com.liferay.portal.NoSuchLayoutSetException if a layout set with the primary key could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public com.liferay.portal.model.LayoutSet findByPrimaryKey(long layoutSetId) 426 throws com.liferay.portal.NoSuchLayoutSetException, 427 com.liferay.portal.kernel.exception.SystemException; 428 429 /** 430 * Returns the layout set with the primary key or returns <code>null</code> if it could not be found. 431 * 432 * @param layoutSetId the primary key of the layout set 433 * @return the layout set, or <code>null</code> if a layout set with the primary key could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public com.liferay.portal.model.LayoutSet fetchByPrimaryKey( 437 long layoutSetId) 438 throws com.liferay.portal.kernel.exception.SystemException; 439 440 /** 441 * Returns all the layout sets. 442 * 443 * @return the layout sets 444 * @throws SystemException if a system exception occurred 445 */ 446 public java.util.List<com.liferay.portal.model.LayoutSet> findAll() 447 throws com.liferay.portal.kernel.exception.SystemException; 448 449 /** 450 * Returns a range of all the layout sets. 451 * 452 * <p> 453 * 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.LayoutSetModelImpl}. 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. 454 * </p> 455 * 456 * @param start the lower bound of the range of layout sets 457 * @param end the upper bound of the range of layout sets (not inclusive) 458 * @return the range of layout sets 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portal.model.LayoutSet> findAll( 462 int start, int end) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Returns an ordered range of all the layout sets. 467 * 468 * <p> 469 * 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.LayoutSetModelImpl}. 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. 470 * </p> 471 * 472 * @param start the lower bound of the range of layout sets 473 * @param end the upper bound of the range of layout sets (not inclusive) 474 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 475 * @return the ordered range of layout sets 476 * @throws SystemException if a system exception occurred 477 */ 478 public java.util.List<com.liferay.portal.model.LayoutSet> findAll( 479 int start, int end, 480 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 481 throws com.liferay.portal.kernel.exception.SystemException; 482 483 /** 484 * Removes all the layout sets from the database. 485 * 486 * @throws SystemException if a system exception occurred 487 */ 488 public void removeAll() 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns the number of layout sets. 493 * 494 * @return the number of layout sets 495 * @throws SystemException if a system exception occurred 496 */ 497 public int countAll() 498 throws com.liferay.portal.kernel.exception.SystemException; 499 }