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