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