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