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