001 /** 002 * Copyright (c) 2000-2013 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.PortletItem; 018 019 /** 020 * The persistence interface for the portlet item 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 PortletItemPersistenceImpl 028 * @see PortletItemUtil 029 * @generated 030 */ 031 public interface PortletItemPersistence extends BasePersistence<PortletItem> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link PortletItemUtil} to access the portlet item persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Returns all the portlet items where groupId = ? and classNameId = ?. 040 * 041 * @param groupId the group ID 042 * @param classNameId the class name ID 043 * @return the matching portlet items 044 * @throws SystemException if a system exception occurred 045 */ 046 public java.util.List<com.liferay.portal.model.PortletItem> findByG_C( 047 long groupId, long classNameId) 048 throws com.liferay.portal.kernel.exception.SystemException; 049 050 /** 051 * Returns a range of all the portlet items where groupId = ? and classNameId = ?. 052 * 053 * <p> 054 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletItemModelImpl}. 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 classNameId the class name ID 059 * @param start the lower bound of the range of portlet items 060 * @param end the upper bound of the range of portlet items (not inclusive) 061 * @return the range of matching portlet items 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portal.model.PortletItem> findByG_C( 065 long groupId, long classNameId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?. 070 * 071 * <p> 072 * 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.PortletItemModelImpl}. 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. 073 * </p> 074 * 075 * @param groupId the group ID 076 * @param classNameId the class name ID 077 * @param start the lower bound of the range of portlet items 078 * @param end the upper bound of the range of portlet items (not inclusive) 079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 080 * @return the ordered range of matching portlet items 081 * @throws SystemException if a system exception occurred 082 */ 083 public java.util.List<com.liferay.portal.model.PortletItem> findByG_C( 084 long groupId, long classNameId, 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 portlet item in the ordered set where groupId = ? and classNameId = ?. 090 * 091 * @param groupId the group ID 092 * @param classNameId the class name ID 093 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 094 * @return the first matching portlet item 095 * @throws com.liferay.portal.NoSuchPortletItemException if a matching portlet item could not be found 096 * @throws SystemException if a system exception occurred 097 */ 098 public com.liferay.portal.model.PortletItem findByG_C_First(long groupId, 099 long classNameId, 100 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 101 throws com.liferay.portal.NoSuchPortletItemException, 102 com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?. 106 * 107 * @param groupId the group ID 108 * @param classNameId the class name ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the first matching portlet item, or <code>null</code> if a matching portlet item could not be found 111 * @throws SystemException if a system exception occurred 112 */ 113 public com.liferay.portal.model.PortletItem fetchByG_C_First(long groupId, 114 long classNameId, 115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?. 120 * 121 * @param groupId the group ID 122 * @param classNameId the class name ID 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching portlet item 125 * @throws com.liferay.portal.NoSuchPortletItemException if a matching portlet item could not be found 126 * @throws SystemException if a system exception occurred 127 */ 128 public com.liferay.portal.model.PortletItem findByG_C_Last(long groupId, 129 long classNameId, 130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 131 throws com.liferay.portal.NoSuchPortletItemException, 132 com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?. 136 * 137 * @param groupId the group ID 138 * @param classNameId the class name ID 139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 140 * @return the last matching portlet item, or <code>null</code> if a matching portlet item could not be found 141 * @throws SystemException if a system exception occurred 142 */ 143 public com.liferay.portal.model.PortletItem fetchByG_C_Last(long groupId, 144 long classNameId, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and classNameId = ?. 150 * 151 * @param portletItemId the primary key of the current portlet item 152 * @param groupId the group ID 153 * @param classNameId the class name ID 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the previous, current, and next portlet item 156 * @throws com.liferay.portal.NoSuchPortletItemException if a portlet item with the primary key could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.PortletItem[] findByG_C_PrevAndNext( 160 long portletItemId, long groupId, long classNameId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchPortletItemException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Removes all the portlet items where groupId = ? and classNameId = ? from the database. 167 * 168 * @param groupId the group ID 169 * @param classNameId the class name ID 170 * @throws SystemException if a system exception occurred 171 */ 172 public void removeByG_C(long groupId, long classNameId) 173 throws com.liferay.portal.kernel.exception.SystemException; 174 175 /** 176 * Returns the number of portlet items where groupId = ? and classNameId = ?. 177 * 178 * @param groupId the group ID 179 * @param classNameId the class name ID 180 * @return the number of matching portlet items 181 * @throws SystemException if a system exception occurred 182 */ 183 public int countByG_C(long groupId, long classNameId) 184 throws com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns all the portlet items where groupId = ? and portletId = ? and classNameId = ?. 188 * 189 * @param groupId the group ID 190 * @param portletId the portlet ID 191 * @param classNameId the class name ID 192 * @return the matching portlet items 193 * @throws SystemException if a system exception occurred 194 */ 195 public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C( 196 long groupId, java.lang.String portletId, long classNameId) 197 throws com.liferay.portal.kernel.exception.SystemException; 198 199 /** 200 * Returns a range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?. 201 * 202 * <p> 203 * 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.PortletItemModelImpl}. 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. 204 * </p> 205 * 206 * @param groupId the group ID 207 * @param portletId the portlet ID 208 * @param classNameId the class name ID 209 * @param start the lower bound of the range of portlet items 210 * @param end the upper bound of the range of portlet items (not inclusive) 211 * @return the range of matching portlet items 212 * @throws SystemException if a system exception occurred 213 */ 214 public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C( 215 long groupId, java.lang.String portletId, long classNameId, int start, 216 int end) throws com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?. 220 * 221 * <p> 222 * 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.PortletItemModelImpl}. 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. 223 * </p> 224 * 225 * @param groupId the group ID 226 * @param portletId the portlet ID 227 * @param classNameId the class name ID 228 * @param start the lower bound of the range of portlet items 229 * @param end the upper bound of the range of portlet items (not inclusive) 230 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 231 * @return the ordered range of matching portlet items 232 * @throws SystemException if a system exception occurred 233 */ 234 public java.util.List<com.liferay.portal.model.PortletItem> findByG_P_C( 235 long groupId, java.lang.String portletId, long classNameId, int start, 236 int end, 237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 238 throws com.liferay.portal.kernel.exception.SystemException; 239 240 /** 241 * Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. 242 * 243 * @param groupId the group ID 244 * @param portletId the portlet ID 245 * @param classNameId the class name ID 246 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 247 * @return the first matching portlet item 248 * @throws com.liferay.portal.NoSuchPortletItemException if a matching portlet item could not be found 249 * @throws SystemException if a system exception occurred 250 */ 251 public com.liferay.portal.model.PortletItem findByG_P_C_First( 252 long groupId, java.lang.String portletId, long classNameId, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.NoSuchPortletItemException, 255 com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. 259 * 260 * @param groupId the group ID 261 * @param portletId the portlet ID 262 * @param classNameId the class name ID 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the first matching portlet item, or <code>null</code> if a matching portlet item could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portal.model.PortletItem fetchByG_P_C_First( 268 long groupId, java.lang.String portletId, long classNameId, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. 274 * 275 * @param groupId the group ID 276 * @param portletId the portlet ID 277 * @param classNameId the class name ID 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the last matching portlet item 280 * @throws com.liferay.portal.NoSuchPortletItemException if a matching portlet item could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public com.liferay.portal.model.PortletItem findByG_P_C_Last(long groupId, 284 java.lang.String portletId, long classNameId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.NoSuchPortletItemException, 287 com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. 291 * 292 * @param groupId the group ID 293 * @param portletId the portlet ID 294 * @param classNameId the class name ID 295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 296 * @return the last matching portlet item, or <code>null</code> if a matching portlet item could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public com.liferay.portal.model.PortletItem fetchByG_P_C_Last( 300 long groupId, java.lang.String portletId, long classNameId, 301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 302 throws com.liferay.portal.kernel.exception.SystemException; 303 304 /** 305 * Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. 306 * 307 * @param portletItemId the primary key of the current portlet item 308 * @param groupId the group ID 309 * @param portletId the portlet ID 310 * @param classNameId the class name ID 311 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 312 * @return the previous, current, and next portlet item 313 * @throws com.liferay.portal.NoSuchPortletItemException if a portlet item with the primary key could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portal.model.PortletItem[] findByG_P_C_PrevAndNext( 317 long portletItemId, long groupId, java.lang.String portletId, 318 long classNameId, 319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 320 throws com.liferay.portal.NoSuchPortletItemException, 321 com.liferay.portal.kernel.exception.SystemException; 322 323 /** 324 * Removes all the portlet items where groupId = ? and portletId = ? and classNameId = ? from the database. 325 * 326 * @param groupId the group ID 327 * @param portletId the portlet ID 328 * @param classNameId the class name ID 329 * @throws SystemException if a system exception occurred 330 */ 331 public void removeByG_P_C(long groupId, java.lang.String portletId, 332 long classNameId) 333 throws com.liferay.portal.kernel.exception.SystemException; 334 335 /** 336 * Returns the number of portlet items where groupId = ? and portletId = ? and classNameId = ?. 337 * 338 * @param groupId the group ID 339 * @param portletId the portlet ID 340 * @param classNameId the class name ID 341 * @return the number of matching portlet items 342 * @throws SystemException if a system exception occurred 343 */ 344 public int countByG_P_C(long groupId, java.lang.String portletId, 345 long classNameId) 346 throws com.liferay.portal.kernel.exception.SystemException; 347 348 /** 349 * Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or throws a {@link com.liferay.portal.NoSuchPortletItemException} if it could not be found. 350 * 351 * @param groupId the group ID 352 * @param name the name 353 * @param portletId the portlet ID 354 * @param classNameId the class name ID 355 * @return the matching portlet item 356 * @throws com.liferay.portal.NoSuchPortletItemException if a matching portlet item could not be found 357 * @throws SystemException if a system exception occurred 358 */ 359 public com.liferay.portal.model.PortletItem findByG_N_P_C(long groupId, 360 java.lang.String name, java.lang.String portletId, long classNameId) 361 throws com.liferay.portal.NoSuchPortletItemException, 362 com.liferay.portal.kernel.exception.SystemException; 363 364 /** 365 * Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 366 * 367 * @param groupId the group ID 368 * @param name the name 369 * @param portletId the portlet ID 370 * @param classNameId the class name ID 371 * @return the matching portlet item, or <code>null</code> if a matching portlet item could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId, 375 java.lang.String name, java.lang.String portletId, long classNameId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 380 * 381 * @param groupId the group ID 382 * @param name the name 383 * @param portletId the portlet ID 384 * @param classNameId the class name ID 385 * @param retrieveFromCache whether to use the finder cache 386 * @return the matching portlet item, or <code>null</code> if a matching portlet item could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public com.liferay.portal.model.PortletItem fetchByG_N_P_C(long groupId, 390 java.lang.String name, java.lang.String portletId, long classNameId, 391 boolean retrieveFromCache) 392 throws com.liferay.portal.kernel.exception.SystemException; 393 394 /** 395 * Removes the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? from the database. 396 * 397 * @param groupId the group ID 398 * @param name the name 399 * @param portletId the portlet ID 400 * @param classNameId the class name ID 401 * @return the portlet item that was removed 402 * @throws SystemException if a system exception occurred 403 */ 404 public com.liferay.portal.model.PortletItem removeByG_N_P_C(long groupId, 405 java.lang.String name, java.lang.String portletId, long classNameId) 406 throws com.liferay.portal.NoSuchPortletItemException, 407 com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Returns the number of portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?. 411 * 412 * @param groupId the group ID 413 * @param name the name 414 * @param portletId the portlet ID 415 * @param classNameId the class name ID 416 * @return the number of matching portlet items 417 * @throws SystemException if a system exception occurred 418 */ 419 public int countByG_N_P_C(long groupId, java.lang.String name, 420 java.lang.String portletId, long classNameId) 421 throws com.liferay.portal.kernel.exception.SystemException; 422 423 /** 424 * Caches the portlet item in the entity cache if it is enabled. 425 * 426 * @param portletItem the portlet item 427 */ 428 public void cacheResult(com.liferay.portal.model.PortletItem portletItem); 429 430 /** 431 * Caches the portlet items in the entity cache if it is enabled. 432 * 433 * @param portletItems the portlet items 434 */ 435 public void cacheResult( 436 java.util.List<com.liferay.portal.model.PortletItem> portletItems); 437 438 /** 439 * Creates a new portlet item with the primary key. Does not add the portlet item to the database. 440 * 441 * @param portletItemId the primary key for the new portlet item 442 * @return the new portlet item 443 */ 444 public com.liferay.portal.model.PortletItem create(long portletItemId); 445 446 /** 447 * Removes the portlet item with the primary key from the database. Also notifies the appropriate model listeners. 448 * 449 * @param portletItemId the primary key of the portlet item 450 * @return the portlet item that was removed 451 * @throws com.liferay.portal.NoSuchPortletItemException if a portlet item with the primary key could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public com.liferay.portal.model.PortletItem remove(long portletItemId) 455 throws com.liferay.portal.NoSuchPortletItemException, 456 com.liferay.portal.kernel.exception.SystemException; 457 458 public com.liferay.portal.model.PortletItem updateImpl( 459 com.liferay.portal.model.PortletItem portletItem) 460 throws com.liferay.portal.kernel.exception.SystemException; 461 462 /** 463 * Returns the portlet item with the primary key or throws a {@link com.liferay.portal.NoSuchPortletItemException} if it could not be found. 464 * 465 * @param portletItemId the primary key of the portlet item 466 * @return the portlet item 467 * @throws com.liferay.portal.NoSuchPortletItemException if a portlet item with the primary key could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public com.liferay.portal.model.PortletItem findByPrimaryKey( 471 long portletItemId) 472 throws com.liferay.portal.NoSuchPortletItemException, 473 com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Returns the portlet item with the primary key or returns <code>null</code> if it could not be found. 477 * 478 * @param portletItemId the primary key of the portlet item 479 * @return the portlet item, or <code>null</code> if a portlet item with the primary key could not be found 480 * @throws SystemException if a system exception occurred 481 */ 482 public com.liferay.portal.model.PortletItem fetchByPrimaryKey( 483 long portletItemId) 484 throws com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Returns all the portlet items. 488 * 489 * @return the portlet items 490 * @throws SystemException if a system exception occurred 491 */ 492 public java.util.List<com.liferay.portal.model.PortletItem> findAll() 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns a range of all the portlet items. 497 * 498 * <p> 499 * 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.PortletItemModelImpl}. 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. 500 * </p> 501 * 502 * @param start the lower bound of the range of portlet items 503 * @param end the upper bound of the range of portlet items (not inclusive) 504 * @return the range of portlet items 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portal.model.PortletItem> findAll( 508 int start, int end) 509 throws com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns an ordered range of all the portlet items. 513 * 514 * <p> 515 * 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.PortletItemModelImpl}. 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. 516 * </p> 517 * 518 * @param start the lower bound of the range of portlet items 519 * @param end the upper bound of the range of portlet items (not inclusive) 520 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 521 * @return the ordered range of portlet items 522 * @throws SystemException if a system exception occurred 523 */ 524 public java.util.List<com.liferay.portal.model.PortletItem> findAll( 525 int start, int end, 526 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 527 throws com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Removes all the portlet items from the database. 531 * 532 * @throws SystemException if a system exception occurred 533 */ 534 public void removeAll() 535 throws com.liferay.portal.kernel.exception.SystemException; 536 537 /** 538 * Returns the number of portlet items. 539 * 540 * @return the number of portlet items 541 * @throws SystemException if a system exception occurred 542 */ 543 public int countAll() 544 throws com.liferay.portal.kernel.exception.SystemException; 545 }