001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.PortletPreferences;
018    
019    /**
020     * The persistence interface for the portlet preferences service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see PortletPreferencesPersistenceImpl
028     * @see PortletPreferencesUtil
029     * @generated
030     */
031    public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link PortletPreferencesUtil} to access the portlet preferences persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Caches the portlet preferences in the entity cache if it is enabled.
040            *
041            * @param portletPreferences the portlet preferences
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.PortletPreferences portletPreferences);
045    
046            /**
047            * Caches the portlet preferenceses in the entity cache if it is enabled.
048            *
049            * @param portletPreferenceses the portlet preferenceses
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses);
053    
054            /**
055            * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.
056            *
057            * @param portletPreferencesId the primary key for the new portlet preferences
058            * @return the new portlet preferences
059            */
060            public com.liferay.portal.model.PortletPreferences create(
061                    long portletPreferencesId);
062    
063            /**
064            * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param portletPreferencesId the primary key of the portlet preferences
067            * @return the portlet preferences that was removed
068            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.PortletPreferences remove(
072                    long portletPreferencesId)
073                    throws com.liferay.portal.NoSuchPortletPreferencesException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.PortletPreferences updateImpl(
077                    com.liferay.portal.model.PortletPreferences portletPreferences,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
083            *
084            * @param portletPreferencesId the primary key of the portlet preferences
085            * @return the portlet preferences
086            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
090                    long portletPreferencesId)
091                    throws com.liferay.portal.NoSuchPortletPreferencesException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param portletPreferencesId the primary key of the portlet preferences
098            * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
102                    long portletPreferencesId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the portlet preferenceses where plid = &#63;.
107            *
108            * @param plid the plid
109            * @return the matching portlet preferenceses
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
113                    long plid) throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the portlet preferenceses where plid = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param plid the plid
123            * @param start the lower bound of the range of portlet preferenceses
124            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
125            * @return the range of matching portlet preferenceses
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
129                    long plid, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the portlet preferenceses where plid = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param plid the plid
140            * @param start the lower bound of the range of portlet preferenceses
141            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching portlet preferenceses
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
147                    long plid, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first portlet preferences in the ordered set where plid = &#63;.
153            *
154            * @param plid the plid
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching portlet preferences
157            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portal.model.PortletPreferences findByPlid_First(
161                    long plid,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.NoSuchPortletPreferencesException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the first portlet preferences in the ordered set where plid = &#63;.
168            *
169            * @param plid the plid
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portal.model.PortletPreferences fetchByPlid_First(
175                    long plid,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last portlet preferences in the ordered set where plid = &#63;.
181            *
182            * @param plid the plid
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching portlet preferences
185            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portal.model.PortletPreferences findByPlid_Last(
189                    long plid,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.NoSuchPortletPreferencesException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Returns the last portlet preferences in the ordered set where plid = &#63;.
196            *
197            * @param plid the plid
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.PortletPreferences fetchByPlid_Last(
203                    long plid,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63;.
209            *
210            * @param portletPreferencesId the primary key of the current portlet preferences
211            * @param plid the plid
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next portlet preferences
214            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
218                    long portletPreferencesId, long plid,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.NoSuchPortletPreferencesException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns all the portlet preferenceses where portletId = &#63;.
225            *
226            * @param portletId the portlet ID
227            * @return the matching portlet preferenceses
228            * @throws SystemException if a system exception occurred
229            */
230            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
231                    java.lang.String portletId)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns a range of all the portlet preferenceses where portletId = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param portletId the portlet ID
242            * @param start the lower bound of the range of portlet preferenceses
243            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
244            * @return the range of matching portlet preferenceses
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
248                    java.lang.String portletId, int start, int end)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns an ordered range of all the portlet preferenceses where portletId = &#63;.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param portletId the portlet ID
259            * @param start the lower bound of the range of portlet preferenceses
260            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
261            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
262            * @return the ordered range of matching portlet preferenceses
263            * @throws SystemException if a system exception occurred
264            */
265            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
266                    java.lang.String portletId, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * Returns the first portlet preferences in the ordered set where portletId = &#63;.
272            *
273            * @param portletId the portlet ID
274            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
275            * @return the first matching portlet preferences
276            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
277            * @throws SystemException if a system exception occurred
278            */
279            public com.liferay.portal.model.PortletPreferences findByPortletId_First(
280                    java.lang.String portletId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.NoSuchPortletPreferencesException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Returns the first portlet preferences in the ordered set where portletId = &#63;.
287            *
288            * @param portletId the portlet ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portal.model.PortletPreferences fetchByPortletId_First(
294                    java.lang.String portletId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the last portlet preferences in the ordered set where portletId = &#63;.
300            *
301            * @param portletId the portlet ID
302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
303            * @return the last matching portlet preferences
304            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public com.liferay.portal.model.PortletPreferences findByPortletId_Last(
308                    java.lang.String portletId,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.NoSuchPortletPreferencesException,
311                            com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the last portlet preferences in the ordered set where portletId = &#63;.
315            *
316            * @param portletId the portlet ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portal.model.PortletPreferences fetchByPortletId_Last(
322                    java.lang.String portletId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = &#63;.
328            *
329            * @param portletPreferencesId the primary key of the current portlet preferences
330            * @param portletId the portlet ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the previous, current, and next portlet preferences
333            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portal.model.PortletPreferences[] findByPortletId_PrevAndNext(
337                    long portletPreferencesId, java.lang.String portletId,
338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339                    throws com.liferay.portal.NoSuchPortletPreferencesException,
340                            com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns all the portlet preferenceses where plid = &#63; and portletId = &#63;.
344            *
345            * @param plid the plid
346            * @param portletId the portlet ID
347            * @return the matching portlet preferenceses
348            * @throws SystemException if a system exception occurred
349            */
350            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
351                    long plid, java.lang.String portletId)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns a range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
356            *
357            * <p>
358            * 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.
359            * </p>
360            *
361            * @param plid the plid
362            * @param portletId the portlet ID
363            * @param start the lower bound of the range of portlet preferenceses
364            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
365            * @return the range of matching portlet preferenceses
366            * @throws SystemException if a system exception occurred
367            */
368            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
369                    long plid, java.lang.String portletId, int start, int end)
370                    throws com.liferay.portal.kernel.exception.SystemException;
371    
372            /**
373            * Returns an ordered range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
374            *
375            * <p>
376            * 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.
377            * </p>
378            *
379            * @param plid the plid
380            * @param portletId the portlet ID
381            * @param start the lower bound of the range of portlet preferenceses
382            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
383            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
384            * @return the ordered range of matching portlet preferenceses
385            * @throws SystemException if a system exception occurred
386            */
387            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
388                    long plid, java.lang.String portletId, int start, int end,
389                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
394            *
395            * @param plid the plid
396            * @param portletId the portlet ID
397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
398            * @return the first matching portlet preferences
399            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
400            * @throws SystemException if a system exception occurred
401            */
402            public com.liferay.portal.model.PortletPreferences findByP_P_First(
403                    long plid, java.lang.String portletId,
404                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405                    throws com.liferay.portal.NoSuchPortletPreferencesException,
406                            com.liferay.portal.kernel.exception.SystemException;
407    
408            /**
409            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
410            *
411            * @param plid the plid
412            * @param portletId the portlet ID
413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
414            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public com.liferay.portal.model.PortletPreferences fetchByP_P_First(
418                    long plid, java.lang.String portletId,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException;
421    
422            /**
423            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
424            *
425            * @param plid the plid
426            * @param portletId the portlet ID
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the last matching portlet preferences
429            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public com.liferay.portal.model.PortletPreferences findByP_P_Last(
433                    long plid, java.lang.String portletId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.NoSuchPortletPreferencesException,
436                            com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
440            *
441            * @param plid the plid
442            * @param portletId the portlet ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portal.model.PortletPreferences fetchByP_P_Last(
448                    long plid, java.lang.String portletId,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            /**
453            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
454            *
455            * @param portletPreferencesId the primary key of the current portlet preferences
456            * @param plid the plid
457            * @param portletId the portlet ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the previous, current, and next portlet preferences
460            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
464                    long portletPreferencesId, long plid, java.lang.String portletId,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.NoSuchPortletPreferencesException,
467                            com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
471            *
472            * @param ownerId the owner ID
473            * @param ownerType the owner type
474            * @param plid the plid
475            * @return the matching portlet preferenceses
476            * @throws SystemException if a system exception occurred
477            */
478            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
479                    long ownerId, int ownerType, long plid)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
484            *
485            * <p>
486            * 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.
487            * </p>
488            *
489            * @param ownerId the owner ID
490            * @param ownerType the owner type
491            * @param plid the plid
492            * @param start the lower bound of the range of portlet preferenceses
493            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
494            * @return the range of matching portlet preferenceses
495            * @throws SystemException if a system exception occurred
496            */
497            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
498                    long ownerId, int ownerType, long plid, int start, int end)
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
503            *
504            * <p>
505            * 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.
506            * </p>
507            *
508            * @param ownerId the owner ID
509            * @param ownerType the owner type
510            * @param plid the plid
511            * @param start the lower bound of the range of portlet preferenceses
512            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
513            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
514            * @return the ordered range of matching portlet preferenceses
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
518                    long ownerId, int ownerType, long plid, int start, int end,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
524            *
525            * @param ownerId the owner ID
526            * @param ownerType the owner type
527            * @param plid the plid
528            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
529            * @return the first matching portlet preferences
530            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
534                    long ownerId, int ownerType, long plid,
535                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
536                    throws com.liferay.portal.NoSuchPortletPreferencesException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
541            *
542            * @param ownerId the owner ID
543            * @param ownerType the owner type
544            * @param plid the plid
545            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
546            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
547            * @throws SystemException if a system exception occurred
548            */
549            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_First(
550                    long ownerId, int ownerType, long plid,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
556            *
557            * @param ownerId the owner ID
558            * @param ownerType the owner type
559            * @param plid the plid
560            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
561            * @return the last matching portlet preferences
562            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
563            * @throws SystemException if a system exception occurred
564            */
565            public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
566                    long ownerId, int ownerType, long plid,
567                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
568                    throws com.liferay.portal.NoSuchPortletPreferencesException,
569                            com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
573            *
574            * @param ownerId the owner ID
575            * @param ownerType the owner type
576            * @param plid the plid
577            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
578            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
579            * @throws SystemException if a system exception occurred
580            */
581            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_Last(
582                    long ownerId, int ownerType, long plid,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
588            *
589            * @param portletPreferencesId the primary key of the current portlet preferences
590            * @param ownerId the owner ID
591            * @param ownerType the owner type
592            * @param plid the plid
593            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
594            * @return the previous, current, and next portlet preferences
595            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
596            * @throws SystemException if a system exception occurred
597            */
598            public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
599                    long portletPreferencesId, long ownerId, int ownerType, long plid,
600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
601                    throws com.liferay.portal.NoSuchPortletPreferencesException,
602                            com.liferay.portal.kernel.exception.SystemException;
603    
604            /**
605            * Returns all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
606            *
607            * @param ownerType the owner type
608            * @param plid the plid
609            * @param portletId the portlet ID
610            * @return the matching portlet preferenceses
611            * @throws SystemException if a system exception occurred
612            */
613            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
614                    int ownerType, long plid, java.lang.String portletId)
615                    throws com.liferay.portal.kernel.exception.SystemException;
616    
617            /**
618            * Returns a range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
619            *
620            * <p>
621            * 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.
622            * </p>
623            *
624            * @param ownerType the owner type
625            * @param plid the plid
626            * @param portletId the portlet ID
627            * @param start the lower bound of the range of portlet preferenceses
628            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
629            * @return the range of matching portlet preferenceses
630            * @throws SystemException if a system exception occurred
631            */
632            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
633                    int ownerType, long plid, java.lang.String portletId, int start, int end)
634                    throws com.liferay.portal.kernel.exception.SystemException;
635    
636            /**
637            * Returns an ordered range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
638            *
639            * <p>
640            * 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.
641            * </p>
642            *
643            * @param ownerType the owner type
644            * @param plid the plid
645            * @param portletId the portlet ID
646            * @param start the lower bound of the range of portlet preferenceses
647            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
648            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
649            * @return the ordered range of matching portlet preferenceses
650            * @throws SystemException if a system exception occurred
651            */
652            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
653                    int ownerType, long plid, java.lang.String portletId, int start,
654                    int end,
655                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
660            *
661            * @param ownerType the owner type
662            * @param plid the plid
663            * @param portletId the portlet ID
664            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
665            * @return the first matching portlet preferences
666            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
667            * @throws SystemException if a system exception occurred
668            */
669            public com.liferay.portal.model.PortletPreferences findByO_P_P_First(
670                    int ownerType, long plid, java.lang.String portletId,
671                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
672                    throws com.liferay.portal.NoSuchPortletPreferencesException,
673                            com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
677            *
678            * @param ownerType the owner type
679            * @param plid the plid
680            * @param portletId the portlet ID
681            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
682            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
683            * @throws SystemException if a system exception occurred
684            */
685            public com.liferay.portal.model.PortletPreferences fetchByO_P_P_First(
686                    int ownerType, long plid, java.lang.String portletId,
687                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
688                    throws com.liferay.portal.kernel.exception.SystemException;
689    
690            /**
691            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
692            *
693            * @param ownerType the owner type
694            * @param plid the plid
695            * @param portletId the portlet ID
696            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
697            * @return the last matching portlet preferences
698            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portal.model.PortletPreferences findByO_P_P_Last(
702                    int ownerType, long plid, java.lang.String portletId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.NoSuchPortletPreferencesException,
705                            com.liferay.portal.kernel.exception.SystemException;
706    
707            /**
708            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
709            *
710            * @param ownerType the owner type
711            * @param plid the plid
712            * @param portletId the portlet ID
713            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
714            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
715            * @throws SystemException if a system exception occurred
716            */
717            public com.liferay.portal.model.PortletPreferences fetchByO_P_P_Last(
718                    int ownerType, long plid, java.lang.String portletId,
719                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
724            *
725            * @param portletPreferencesId the primary key of the current portlet preferences
726            * @param ownerType the owner type
727            * @param plid the plid
728            * @param portletId the portlet ID
729            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
730            * @return the previous, current, and next portlet preferences
731            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
732            * @throws SystemException if a system exception occurred
733            */
734            public com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext(
735                    long portletPreferencesId, int ownerType, long plid,
736                    java.lang.String portletId,
737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
738                    throws com.liferay.portal.NoSuchPortletPreferencesException,
739                            com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
743            *
744            * @param ownerId the owner ID
745            * @param ownerType the owner type
746            * @param plid the plid
747            * @param portletId the portlet ID
748            * @return the matching portlet preferences
749            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
750            * @throws SystemException if a system exception occurred
751            */
752            public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
753                    long ownerId, int ownerType, long plid, java.lang.String portletId)
754                    throws com.liferay.portal.NoSuchPortletPreferencesException,
755                            com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * Returns the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
759            *
760            * @param ownerId the owner ID
761            * @param ownerType the owner type
762            * @param plid the plid
763            * @param portletId the portlet ID
764            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
765            * @throws SystemException if a system exception occurred
766            */
767            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
768                    long ownerId, int ownerType, long plid, java.lang.String portletId)
769                    throws com.liferay.portal.kernel.exception.SystemException;
770    
771            /**
772            * Returns the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
773            *
774            * @param ownerId the owner ID
775            * @param ownerType the owner type
776            * @param plid the plid
777            * @param portletId the portlet ID
778            * @param retrieveFromCache whether to use the finder cache
779            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
780            * @throws SystemException if a system exception occurred
781            */
782            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
783                    long ownerId, int ownerType, long plid, java.lang.String portletId,
784                    boolean retrieveFromCache)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Returns all the portlet preferenceses.
789            *
790            * @return the portlet preferenceses
791            * @throws SystemException if a system exception occurred
792            */
793            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
794                    throws com.liferay.portal.kernel.exception.SystemException;
795    
796            /**
797            * Returns a range of all the portlet preferenceses.
798            *
799            * <p>
800            * 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.
801            * </p>
802            *
803            * @param start the lower bound of the range of portlet preferenceses
804            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
805            * @return the range of portlet preferenceses
806            * @throws SystemException if a system exception occurred
807            */
808            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
809                    int start, int end)
810                    throws com.liferay.portal.kernel.exception.SystemException;
811    
812            /**
813            * Returns an ordered range of all the portlet preferenceses.
814            *
815            * <p>
816            * 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.
817            * </p>
818            *
819            * @param start the lower bound of the range of portlet preferenceses
820            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
821            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
822            * @return the ordered range of portlet preferenceses
823            * @throws SystemException if a system exception occurred
824            */
825            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
826                    int start, int end,
827                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
828                    throws com.liferay.portal.kernel.exception.SystemException;
829    
830            /**
831            * Removes all the portlet preferenceses where plid = &#63; from the database.
832            *
833            * @param plid the plid
834            * @throws SystemException if a system exception occurred
835            */
836            public void removeByPlid(long plid)
837                    throws com.liferay.portal.kernel.exception.SystemException;
838    
839            /**
840            * Removes all the portlet preferenceses where portletId = &#63; from the database.
841            *
842            * @param portletId the portlet ID
843            * @throws SystemException if a system exception occurred
844            */
845            public void removeByPortletId(java.lang.String portletId)
846                    throws com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
850            *
851            * @param plid the plid
852            * @param portletId the portlet ID
853            * @throws SystemException if a system exception occurred
854            */
855            public void removeByP_P(long plid, java.lang.String portletId)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
860            *
861            * @param ownerId the owner ID
862            * @param ownerType the owner type
863            * @param plid the plid
864            * @throws SystemException if a system exception occurred
865            */
866            public void removeByO_O_P(long ownerId, int ownerType, long plid)
867                    throws com.liferay.portal.kernel.exception.SystemException;
868    
869            /**
870            * Removes all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
871            *
872            * @param ownerType the owner type
873            * @param plid the plid
874            * @param portletId the portlet ID
875            * @throws SystemException if a system exception occurred
876            */
877            public void removeByO_P_P(int ownerType, long plid,
878                    java.lang.String portletId)
879                    throws com.liferay.portal.kernel.exception.SystemException;
880    
881            /**
882            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
883            *
884            * @param ownerId the owner ID
885            * @param ownerType the owner type
886            * @param plid the plid
887            * @param portletId the portlet ID
888            * @return the portlet preferences that was removed
889            * @throws SystemException if a system exception occurred
890            */
891            public com.liferay.portal.model.PortletPreferences removeByO_O_P_P(
892                    long ownerId, int ownerType, long plid, java.lang.String portletId)
893                    throws com.liferay.portal.NoSuchPortletPreferencesException,
894                            com.liferay.portal.kernel.exception.SystemException;
895    
896            /**
897            * Removes all the portlet preferenceses from the database.
898            *
899            * @throws SystemException if a system exception occurred
900            */
901            public void removeAll()
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Returns the number of portlet preferenceses where plid = &#63;.
906            *
907            * @param plid the plid
908            * @return the number of matching portlet preferenceses
909            * @throws SystemException if a system exception occurred
910            */
911            public int countByPlid(long plid)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Returns the number of portlet preferenceses where portletId = &#63;.
916            *
917            * @param portletId the portlet ID
918            * @return the number of matching portlet preferenceses
919            * @throws SystemException if a system exception occurred
920            */
921            public int countByPortletId(java.lang.String portletId)
922                    throws com.liferay.portal.kernel.exception.SystemException;
923    
924            /**
925            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
926            *
927            * @param plid the plid
928            * @param portletId the portlet ID
929            * @return the number of matching portlet preferenceses
930            * @throws SystemException if a system exception occurred
931            */
932            public int countByP_P(long plid, java.lang.String portletId)
933                    throws com.liferay.portal.kernel.exception.SystemException;
934    
935            /**
936            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
937            *
938            * @param ownerId the owner ID
939            * @param ownerType the owner type
940            * @param plid the plid
941            * @return the number of matching portlet preferenceses
942            * @throws SystemException if a system exception occurred
943            */
944            public int countByO_O_P(long ownerId, int ownerType, long plid)
945                    throws com.liferay.portal.kernel.exception.SystemException;
946    
947            /**
948            * Returns the number of portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
949            *
950            * @param ownerType the owner type
951            * @param plid the plid
952            * @param portletId the portlet ID
953            * @return the number of matching portlet preferenceses
954            * @throws SystemException if a system exception occurred
955            */
956            public int countByO_P_P(int ownerType, long plid, java.lang.String portletId)
957                    throws com.liferay.portal.kernel.exception.SystemException;
958    
959            /**
960            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
961            *
962            * @param ownerId the owner ID
963            * @param ownerType the owner type
964            * @param plid the plid
965            * @param portletId the portlet ID
966            * @return the number of matching portlet preferenceses
967            * @throws SystemException if a system exception occurred
968            */
969            public int countByO_O_P_P(long ownerId, int ownerType, long plid,
970                    java.lang.String portletId)
971                    throws com.liferay.portal.kernel.exception.SystemException;
972    
973            /**
974            * Returns the number of portlet preferenceses.
975            *
976            * @return the number of portlet preferenceses
977            * @throws SystemException if a system exception occurred
978            */
979            public int countAll()
980                    throws com.liferay.portal.kernel.exception.SystemException;
981    }