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.exception.NoSuchLayoutSetException; 020 import com.liferay.portal.model.LayoutSet; 021 022 /** 023 * The persistence interface for the layout set service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see com.liferay.portal.service.persistence.impl.LayoutSetPersistenceImpl 031 * @see LayoutSetUtil 032 * @generated 033 */ 034 @ProviderType 035 public interface LayoutSetPersistence extends BasePersistence<LayoutSet> { 036 /* 037 * NOTE FOR DEVELOPERS: 038 * 039 * 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. 040 */ 041 042 /** 043 * Returns all the layout sets where groupId = ?. 044 * 045 * @param groupId the group ID 046 * @return the matching layout sets 047 */ 048 public java.util.List<LayoutSet> findByGroupId(long groupId); 049 050 /** 051 * Returns a range of all the layout sets where groupId = ?. 052 * 053 * <p> 054 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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. 055 * </p> 056 * 057 * @param groupId the group ID 058 * @param start the lower bound of the range of layout sets 059 * @param end the upper bound of the range of layout sets (not inclusive) 060 * @return the range of matching layout sets 061 */ 062 public java.util.List<LayoutSet> findByGroupId(long groupId, int start, 063 int end); 064 065 /** 066 * Returns an ordered range of all the layout sets where groupId = ?. 067 * 068 * <p> 069 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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. 070 * </p> 071 * 072 * @param groupId the group ID 073 * @param start the lower bound of the range of layout sets 074 * @param end the upper bound of the range of layout sets (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching layout sets 077 */ 078 public java.util.List<LayoutSet> findByGroupId(long groupId, int start, 079 int end, 080 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator); 081 082 /** 083 * Returns an ordered range of all the layout sets where groupId = ?. 084 * 085 * <p> 086 * 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. 087 * </p> 088 * 089 * @param groupId the group ID 090 * @param start the lower bound of the range of layout sets 091 * @param end the upper bound of the range of layout sets (not inclusive) 092 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 093 * @param retrieveFromCache whether to retrieve from the finder cache 094 * @return the ordered range of matching layout sets 095 */ 096 public java.util.List<LayoutSet> findByGroupId(long groupId, int start, 097 int end, 098 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator, 099 boolean retrieveFromCache); 100 101 /** 102 * Returns the first layout set in the ordered set where groupId = ?. 103 * 104 * @param groupId the group ID 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching layout set 107 * @throws NoSuchLayoutSetException if a matching layout set could not be found 108 */ 109 public LayoutSet findByGroupId_First(long groupId, 110 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator) 111 throws NoSuchLayoutSetException; 112 113 /** 114 * Returns the first 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 first matching layout set, or <code>null</code> if a matching layout set could not be found 119 */ 120 public LayoutSet fetchByGroupId_First(long groupId, 121 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator); 122 123 /** 124 * Returns the last layout set in the ordered set where groupId = ?. 125 * 126 * @param groupId the group ID 127 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 128 * @return the last matching layout set 129 * @throws NoSuchLayoutSetException if a matching layout set could not be found 130 */ 131 public LayoutSet findByGroupId_Last(long groupId, 132 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator) 133 throws NoSuchLayoutSetException; 134 135 /** 136 * Returns the last layout set in the ordered set where groupId = ?. 137 * 138 * @param groupId the group ID 139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 140 * @return the last matching layout set, or <code>null</code> if a matching layout set could not be found 141 */ 142 public LayoutSet fetchByGroupId_Last(long groupId, 143 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator); 144 145 /** 146 * Returns the layout sets before and after the current layout set in the ordered set where groupId = ?. 147 * 148 * @param layoutSetId the primary key of the current layout set 149 * @param groupId the group ID 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the previous, current, and next layout set 152 * @throws NoSuchLayoutSetException if a layout set with the primary key could not be found 153 */ 154 public LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, 155 long groupId, 156 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator) 157 throws NoSuchLayoutSetException; 158 159 /** 160 * Removes all the layout sets where groupId = ? from the database. 161 * 162 * @param groupId the group ID 163 */ 164 public void removeByGroupId(long groupId); 165 166 /** 167 * Returns the number of layout sets where groupId = ?. 168 * 169 * @param groupId the group ID 170 * @return the number of matching layout sets 171 */ 172 public int countByGroupId(long groupId); 173 174 /** 175 * Returns all the layout sets where layoutSetPrototypeUuid = ?. 176 * 177 * @param layoutSetPrototypeUuid the layout set prototype uuid 178 * @return the matching layout sets 179 */ 180 public java.util.List<LayoutSet> findByLayoutSetPrototypeUuid( 181 java.lang.String layoutSetPrototypeUuid); 182 183 /** 184 * Returns a range of all the layout sets where layoutSetPrototypeUuid = ?. 185 * 186 * <p> 187 * 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. 188 * </p> 189 * 190 * @param layoutSetPrototypeUuid the layout set prototype uuid 191 * @param start the lower bound of the range of layout sets 192 * @param end the upper bound of the range of layout sets (not inclusive) 193 * @return the range of matching layout sets 194 */ 195 public java.util.List<LayoutSet> findByLayoutSetPrototypeUuid( 196 java.lang.String layoutSetPrototypeUuid, int start, int end); 197 198 /** 199 * Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?. 200 * 201 * <p> 202 * 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. 203 * </p> 204 * 205 * @param layoutSetPrototypeUuid the layout set prototype uuid 206 * @param start the lower bound of the range of layout sets 207 * @param end the upper bound of the range of layout sets (not inclusive) 208 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 209 * @return the ordered range of matching layout sets 210 */ 211 public java.util.List<LayoutSet> findByLayoutSetPrototypeUuid( 212 java.lang.String layoutSetPrototypeUuid, int start, int end, 213 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator); 214 215 /** 216 * Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param layoutSetPrototypeUuid the layout set prototype uuid 223 * @param start the lower bound of the range of layout sets 224 * @param end the upper bound of the range of layout sets (not inclusive) 225 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 226 * @param retrieveFromCache whether to retrieve from the finder cache 227 * @return the ordered range of matching layout sets 228 */ 229 public java.util.List<LayoutSet> findByLayoutSetPrototypeUuid( 230 java.lang.String layoutSetPrototypeUuid, int start, int end, 231 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator, 232 boolean retrieveFromCache); 233 234 /** 235 * Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?. 236 * 237 * @param layoutSetPrototypeUuid the layout set prototype uuid 238 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 239 * @return the first matching layout set 240 * @throws NoSuchLayoutSetException if a matching layout set could not be found 241 */ 242 public LayoutSet findByLayoutSetPrototypeUuid_First( 243 java.lang.String layoutSetPrototypeUuid, 244 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator) 245 throws NoSuchLayoutSetException; 246 247 /** 248 * Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?. 249 * 250 * @param layoutSetPrototypeUuid the layout set prototype uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching layout set, or <code>null</code> if a matching layout set could not be found 253 */ 254 public LayoutSet fetchByLayoutSetPrototypeUuid_First( 255 java.lang.String layoutSetPrototypeUuid, 256 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator); 257 258 /** 259 * Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?. 260 * 261 * @param layoutSetPrototypeUuid the layout set prototype uuid 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the last matching layout set 264 * @throws NoSuchLayoutSetException if a matching layout set could not be found 265 */ 266 public LayoutSet findByLayoutSetPrototypeUuid_Last( 267 java.lang.String layoutSetPrototypeUuid, 268 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator) 269 throws NoSuchLayoutSetException; 270 271 /** 272 * Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?. 273 * 274 * @param layoutSetPrototypeUuid the layout set prototype uuid 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the last matching layout set, or <code>null</code> if a matching layout set could not be found 277 */ 278 public LayoutSet fetchByLayoutSetPrototypeUuid_Last( 279 java.lang.String layoutSetPrototypeUuid, 280 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator); 281 282 /** 283 * Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?. 284 * 285 * @param layoutSetId the primary key of the current layout set 286 * @param layoutSetPrototypeUuid the layout set prototype uuid 287 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 288 * @return the previous, current, and next layout set 289 * @throws NoSuchLayoutSetException if a layout set with the primary key could not be found 290 */ 291 public LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext( 292 long layoutSetId, java.lang.String layoutSetPrototypeUuid, 293 com.liferay.portal.kernel.util.OrderByComparator<LayoutSet> orderByComparator) 294 throws NoSuchLayoutSetException; 295 296 /** 297 * Removes all the layout sets where layoutSetPrototypeUuid = ? from the database. 298 * 299 * @param layoutSetPrototypeUuid the layout set prototype uuid 300 */ 301 public void removeByLayoutSetPrototypeUuid( 302 java.lang.String layoutSetPrototypeUuid); 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 */ 310 public int countByLayoutSetPrototypeUuid( 311 java.lang.String layoutSetPrototypeUuid); 312 313 /** 314 * Returns the layout set where groupId = ? and privateLayout = ? or throws a {@link NoSuchLayoutSetException} if it could not be found. 315 * 316 * @param groupId the group ID 317 * @param privateLayout the private layout 318 * @return the matching layout set 319 * @throws NoSuchLayoutSetException if a matching layout set could not be found 320 */ 321 public LayoutSet findByG_P(long groupId, boolean privateLayout) 322 throws NoSuchLayoutSetException; 323 324 /** 325 * Returns the layout set where groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 326 * 327 * @param groupId the group ID 328 * @param privateLayout the private layout 329 * @return the matching layout set, or <code>null</code> if a matching layout set could not be found 330 */ 331 public LayoutSet fetchByG_P(long groupId, boolean privateLayout); 332 333 /** 334 * Returns the layout set where groupId = ? and privateLayout = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 335 * 336 * @param groupId the group ID 337 * @param privateLayout the private layout 338 * @param retrieveFromCache whether to retrieve from the finder cache 339 * @return the matching layout set, or <code>null</code> if a matching layout set could not be found 340 */ 341 public LayoutSet fetchByG_P(long groupId, boolean privateLayout, 342 boolean retrieveFromCache); 343 344 /** 345 * Removes the layout set where groupId = ? and privateLayout = ? from the database. 346 * 347 * @param groupId the group ID 348 * @param privateLayout the private layout 349 * @return the layout set that was removed 350 */ 351 public LayoutSet removeByG_P(long groupId, boolean privateLayout) 352 throws NoSuchLayoutSetException; 353 354 /** 355 * Returns the number of layout sets where groupId = ? and privateLayout = ?. 356 * 357 * @param groupId the group ID 358 * @param privateLayout the private layout 359 * @return the number of matching layout sets 360 */ 361 public int countByG_P(long groupId, boolean privateLayout); 362 363 /** 364 * Caches the layout set in the entity cache if it is enabled. 365 * 366 * @param layoutSet the layout set 367 */ 368 public void cacheResult(LayoutSet layoutSet); 369 370 /** 371 * Caches the layout sets in the entity cache if it is enabled. 372 * 373 * @param layoutSets the layout sets 374 */ 375 public void cacheResult(java.util.List<LayoutSet> layoutSets); 376 377 /** 378 * Creates a new layout set with the primary key. Does not add the layout set to the database. 379 * 380 * @param layoutSetId the primary key for the new layout set 381 * @return the new layout set 382 */ 383 public LayoutSet create(long layoutSetId); 384 385 /** 386 * Removes the layout set with the primary key from the database. Also notifies the appropriate model listeners. 387 * 388 * @param layoutSetId the primary key of the layout set 389 * @return the layout set that was removed 390 * @throws NoSuchLayoutSetException if a layout set with the primary key could not be found 391 */ 392 public LayoutSet remove(long layoutSetId) throws 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 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 }