001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.PortletPreferences;
020    
021    /**
022     * The persistence interface for the portlet preferences 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 PortletPreferencesPersistenceImpl
030     * @see PortletPreferencesUtil
031     * @generated
032     */
033    @ProviderType
034    public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns all the portlet preferenceses where plid = &#63;.
043            *
044            * @param plid the plid
045            * @return the matching portlet preferenceses
046            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
049                    long plid) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the portlet preferenceses where plid = &#63;.
053            *
054            * <p>
055            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param plid the plid
059            * @param start the lower bound of the range of portlet preferenceses
060            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
061            * @return the range of matching portlet preferenceses
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
065                    long plid, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the portlet preferenceses where plid = &#63;.
070            *
071            * <p>
072            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
073            * </p>
074            *
075            * @param plid the plid
076            * @param start the lower bound of the range of portlet preferenceses
077            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching portlet preferenceses
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
083                    long plid, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first portlet preferences in the ordered set where plid = &#63;.
089            *
090            * @param plid the plid
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching portlet preferences
093            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portal.model.PortletPreferences findByPlid_First(
097                    long plid,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.NoSuchPortletPreferencesException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            /**
103            * Returns the first portlet preferences in the ordered set where plid = &#63;.
104            *
105            * @param plid the plid
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portal.model.PortletPreferences fetchByPlid_First(
111                    long plid,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last portlet preferences in the ordered set where plid = &#63;.
117            *
118            * @param plid the plid
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching portlet preferences
121            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portal.model.PortletPreferences findByPlid_Last(
125                    long plid,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.NoSuchPortletPreferencesException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Returns the last portlet preferences in the ordered set where plid = &#63;.
132            *
133            * @param plid the plid
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portal.model.PortletPreferences fetchByPlid_Last(
139                    long plid,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63;.
145            *
146            * @param portletPreferencesId the primary key of the current portlet preferences
147            * @param plid the plid
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next portlet preferences
150            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
154                    long portletPreferencesId, long plid,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.NoSuchPortletPreferencesException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            /**
160            * Removes all the portlet preferenceses where plid = &#63; from the database.
161            *
162            * @param plid the plid
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByPlid(long plid)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of portlet preferenceses where plid = &#63;.
170            *
171            * @param plid the plid
172            * @return the number of matching portlet preferenceses
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByPlid(long plid)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns all the portlet preferenceses where portletId = &#63;.
180            *
181            * @param portletId the portlet ID
182            * @return the matching portlet preferenceses
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
186                    java.lang.String portletId)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns a range of all the portlet preferenceses where portletId = &#63;.
191            *
192            * <p>
193            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
194            * </p>
195            *
196            * @param portletId the portlet ID
197            * @param start the lower bound of the range of portlet preferenceses
198            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
199            * @return the range of matching portlet preferenceses
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
203                    java.lang.String portletId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the portlet preferenceses where portletId = &#63;.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
211            * </p>
212            *
213            * @param portletId the portlet ID
214            * @param start the lower bound of the range of portlet preferenceses
215            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
217            * @return the ordered range of matching portlet preferenceses
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
221                    java.lang.String portletId, int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Returns the first portlet preferences in the ordered set where portletId = &#63;.
227            *
228            * @param portletId the portlet ID
229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
230            * @return the first matching portlet preferences
231            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.PortletPreferences findByPortletId_First(
235                    java.lang.String portletId,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.NoSuchPortletPreferencesException,
238                            com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Returns the first portlet preferences in the ordered set where portletId = &#63;.
242            *
243            * @param portletId the portlet ID
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portal.model.PortletPreferences fetchByPortletId_First(
249                    java.lang.String portletId,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns the last portlet preferences in the ordered set where portletId = &#63;.
255            *
256            * @param portletId the portlet ID
257            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
258            * @return the last matching portlet preferences
259            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portal.model.PortletPreferences findByPortletId_Last(
263                    java.lang.String portletId,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.NoSuchPortletPreferencesException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * Returns the last portlet preferences in the ordered set where portletId = &#63;.
270            *
271            * @param portletId the portlet ID
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            public com.liferay.portal.model.PortletPreferences fetchByPortletId_Last(
277                    java.lang.String portletId,
278                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = &#63;.
283            *
284            * @param portletPreferencesId the primary key of the current portlet preferences
285            * @param portletId the portlet ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the previous, current, and next portlet preferences
288            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portal.model.PortletPreferences[] findByPortletId_PrevAndNext(
292                    long portletPreferencesId, java.lang.String portletId,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.NoSuchPortletPreferencesException,
295                            com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * Removes all the portlet preferenceses where portletId = &#63; from the database.
299            *
300            * @param portletId the portlet ID
301            * @throws SystemException if a system exception occurred
302            */
303            public void removeByPortletId(java.lang.String portletId)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Returns the number of portlet preferenceses where portletId = &#63;.
308            *
309            * @param portletId the portlet ID
310            * @return the number of matching portlet preferenceses
311            * @throws SystemException if a system exception occurred
312            */
313            public int countByPortletId(java.lang.String portletId)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns all the portlet preferenceses where ownerType = &#63; and portletId = &#63;.
318            *
319            * @param ownerType the owner type
320            * @param portletId the portlet ID
321            * @return the matching portlet preferenceses
322            * @throws SystemException if a system exception occurred
323            */
324            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P(
325                    int ownerType, java.lang.String portletId)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Returns a range of all the portlet preferenceses where ownerType = &#63; and portletId = &#63;.
330            *
331            * <p>
332            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
333            * </p>
334            *
335            * @param ownerType the owner type
336            * @param portletId the portlet ID
337            * @param start the lower bound of the range of portlet preferenceses
338            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
339            * @return the range of matching portlet preferenceses
340            * @throws SystemException if a system exception occurred
341            */
342            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P(
343                    int ownerType, java.lang.String portletId, int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            /**
347            * Returns an ordered range of all the portlet preferenceses where ownerType = &#63; and portletId = &#63;.
348            *
349            * <p>
350            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
351            * </p>
352            *
353            * @param ownerType the owner type
354            * @param portletId the portlet ID
355            * @param start the lower bound of the range of portlet preferenceses
356            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @return the ordered range of matching portlet preferenceses
359            * @throws SystemException if a system exception occurred
360            */
361            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P(
362                    int ownerType, java.lang.String portletId, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
368            *
369            * @param ownerType the owner type
370            * @param portletId the portlet ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the first matching portlet preferences
373            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portal.model.PortletPreferences findByO_P_First(
377                    int ownerType, java.lang.String portletId,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.NoSuchPortletPreferencesException,
380                            com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
384            *
385            * @param ownerType the owner type
386            * @param portletId the portlet ID
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
389            * @throws SystemException if a system exception occurred
390            */
391            public com.liferay.portal.model.PortletPreferences fetchByO_P_First(
392                    int ownerType, java.lang.String portletId,
393                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
398            *
399            * @param ownerType the owner type
400            * @param portletId the portlet ID
401            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
402            * @return the last matching portlet preferences
403            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
404            * @throws SystemException if a system exception occurred
405            */
406            public com.liferay.portal.model.PortletPreferences findByO_P_Last(
407                    int ownerType, java.lang.String portletId,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.NoSuchPortletPreferencesException,
410                            com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
414            *
415            * @param ownerType the owner type
416            * @param portletId the portlet ID
417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
418            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
419            * @throws SystemException if a system exception occurred
420            */
421            public com.liferay.portal.model.PortletPreferences fetchByO_P_Last(
422                    int ownerType, java.lang.String portletId,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
428            *
429            * @param portletPreferencesId the primary key of the current portlet preferences
430            * @param ownerType the owner type
431            * @param portletId the portlet ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next portlet preferences
434            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.PortletPreferences[] findByO_P_PrevAndNext(
438                    long portletPreferencesId, int ownerType, java.lang.String portletId,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.NoSuchPortletPreferencesException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Removes all the portlet preferenceses where ownerType = &#63; and portletId = &#63; from the database.
445            *
446            * @param ownerType the owner type
447            * @param portletId the portlet ID
448            * @throws SystemException if a system exception occurred
449            */
450            public void removeByO_P(int ownerType, java.lang.String portletId)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns the number of portlet preferenceses where ownerType = &#63; and portletId = &#63;.
455            *
456            * @param ownerType the owner type
457            * @param portletId the portlet ID
458            * @return the number of matching portlet preferenceses
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByO_P(int ownerType, java.lang.String portletId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns all the portlet preferenceses where plid = &#63; and portletId = &#63;.
466            *
467            * @param plid the plid
468            * @param portletId the portlet ID
469            * @return the matching portlet preferenceses
470            * @throws SystemException if a system exception occurred
471            */
472            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
473                    long plid, java.lang.String portletId)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            /**
477            * Returns a range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
478            *
479            * <p>
480            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
481            * </p>
482            *
483            * @param plid the plid
484            * @param portletId the portlet ID
485            * @param start the lower bound of the range of portlet preferenceses
486            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
487            * @return the range of matching portlet preferenceses
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
491                    long plid, java.lang.String portletId, int start, int end)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns an ordered range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
496            *
497            * <p>
498            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
499            * </p>
500            *
501            * @param plid the plid
502            * @param portletId the portlet ID
503            * @param start the lower bound of the range of portlet preferenceses
504            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
505            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
506            * @return the ordered range of matching portlet preferenceses
507            * @throws SystemException if a system exception occurred
508            */
509            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
510                    long plid, java.lang.String portletId, int start, int end,
511                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
516            *
517            * @param plid the plid
518            * @param portletId the portlet ID
519            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
520            * @return the first matching portlet preferences
521            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portal.model.PortletPreferences findByP_P_First(
525                    long plid, java.lang.String portletId,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.NoSuchPortletPreferencesException,
528                            com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
532            *
533            * @param plid the plid
534            * @param portletId the portlet ID
535            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
536            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public com.liferay.portal.model.PortletPreferences fetchByP_P_First(
540                    long plid, java.lang.String portletId,
541                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
546            *
547            * @param plid the plid
548            * @param portletId the portlet ID
549            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
550            * @return the last matching portlet preferences
551            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
552            * @throws SystemException if a system exception occurred
553            */
554            public com.liferay.portal.model.PortletPreferences findByP_P_Last(
555                    long plid, java.lang.String portletId,
556                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
557                    throws com.liferay.portal.NoSuchPortletPreferencesException,
558                            com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
562            *
563            * @param plid the plid
564            * @param portletId the portlet ID
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portal.model.PortletPreferences fetchByP_P_Last(
570                    long plid, java.lang.String portletId,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            /**
575            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
576            *
577            * @param portletPreferencesId the primary key of the current portlet preferences
578            * @param plid the plid
579            * @param portletId the portlet ID
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the previous, current, and next portlet preferences
582            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
586                    long portletPreferencesId, long plid, java.lang.String portletId,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.NoSuchPortletPreferencesException,
589                            com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
593            *
594            * @param plid the plid
595            * @param portletId the portlet ID
596            * @throws SystemException if a system exception occurred
597            */
598            public void removeByP_P(long plid, java.lang.String portletId)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
603            *
604            * @param plid the plid
605            * @param portletId the portlet ID
606            * @return the number of matching portlet preferenceses
607            * @throws SystemException if a system exception occurred
608            */
609            public int countByP_P(long plid, java.lang.String portletId)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
614            *
615            * @param ownerId the owner ID
616            * @param ownerType the owner type
617            * @param plid the plid
618            * @return the matching portlet preferenceses
619            * @throws SystemException if a system exception occurred
620            */
621            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
622                    long ownerId, int ownerType, long plid)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
627            *
628            * <p>
629            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
630            * </p>
631            *
632            * @param ownerId the owner ID
633            * @param ownerType the owner type
634            * @param plid the plid
635            * @param start the lower bound of the range of portlet preferenceses
636            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
637            * @return the range of matching portlet preferenceses
638            * @throws SystemException if a system exception occurred
639            */
640            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
641                    long ownerId, int ownerType, long plid, int start, int end)
642                    throws com.liferay.portal.kernel.exception.SystemException;
643    
644            /**
645            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
646            *
647            * <p>
648            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
649            * </p>
650            *
651            * @param ownerId the owner ID
652            * @param ownerType the owner type
653            * @param plid the plid
654            * @param start the lower bound of the range of portlet preferenceses
655            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
656            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
657            * @return the ordered range of matching portlet preferenceses
658            * @throws SystemException if a system exception occurred
659            */
660            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
661                    long ownerId, int ownerType, long plid, int start, int end,
662                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
663                    throws com.liferay.portal.kernel.exception.SystemException;
664    
665            /**
666            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
667            *
668            * @param ownerId the owner ID
669            * @param ownerType the owner type
670            * @param plid the plid
671            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
672            * @return the first matching portlet preferences
673            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
674            * @throws SystemException if a system exception occurred
675            */
676            public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
677                    long ownerId, int ownerType, long plid,
678                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
679                    throws com.liferay.portal.NoSuchPortletPreferencesException,
680                            com.liferay.portal.kernel.exception.SystemException;
681    
682            /**
683            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
684            *
685            * @param ownerId the owner ID
686            * @param ownerType the owner type
687            * @param plid the plid
688            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
689            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
690            * @throws SystemException if a system exception occurred
691            */
692            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_First(
693                    long ownerId, int ownerType, long plid,
694                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
695                    throws com.liferay.portal.kernel.exception.SystemException;
696    
697            /**
698            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
699            *
700            * @param ownerId the owner ID
701            * @param ownerType the owner type
702            * @param plid the plid
703            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
704            * @return the last matching portlet preferences
705            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
706            * @throws SystemException if a system exception occurred
707            */
708            public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
709                    long ownerId, int ownerType, long plid,
710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
711                    throws com.liferay.portal.NoSuchPortletPreferencesException,
712                            com.liferay.portal.kernel.exception.SystemException;
713    
714            /**
715            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
716            *
717            * @param ownerId the owner ID
718            * @param ownerType the owner type
719            * @param plid the plid
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_Last(
725                    long ownerId, int ownerType, long plid,
726                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
727                    throws com.liferay.portal.kernel.exception.SystemException;
728    
729            /**
730            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
731            *
732            * @param portletPreferencesId the primary key of the current portlet preferences
733            * @param ownerId the owner ID
734            * @param ownerType the owner type
735            * @param plid the plid
736            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
737            * @return the previous, current, and next portlet preferences
738            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
739            * @throws SystemException if a system exception occurred
740            */
741            public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
742                    long portletPreferencesId, long ownerId, int ownerType, long plid,
743                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
744                    throws com.liferay.portal.NoSuchPortletPreferencesException,
745                            com.liferay.portal.kernel.exception.SystemException;
746    
747            /**
748            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
749            *
750            * @param ownerId the owner ID
751            * @param ownerType the owner type
752            * @param plid the plid
753            * @throws SystemException if a system exception occurred
754            */
755            public void removeByO_O_P(long ownerId, int ownerType, long plid)
756                    throws com.liferay.portal.kernel.exception.SystemException;
757    
758            /**
759            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
760            *
761            * @param ownerId the owner ID
762            * @param ownerType the owner type
763            * @param plid the plid
764            * @return the number of matching portlet preferenceses
765            * @throws SystemException if a system exception occurred
766            */
767            public int countByO_O_P(long ownerId, int ownerType, long plid)
768                    throws com.liferay.portal.kernel.exception.SystemException;
769    
770            /**
771            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
772            *
773            * @param ownerId the owner ID
774            * @param ownerType the owner type
775            * @param portletId the portlet ID
776            * @return the matching portlet preferenceses
777            * @throws SystemException if a system exception occurred
778            */
779            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_PI(
780                    long ownerId, int ownerType, java.lang.String portletId)
781                    throws com.liferay.portal.kernel.exception.SystemException;
782    
783            /**
784            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
785            *
786            * <p>
787            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
788            * </p>
789            *
790            * @param ownerId the owner ID
791            * @param ownerType the owner type
792            * @param portletId the portlet ID
793            * @param start the lower bound of the range of portlet preferenceses
794            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
795            * @return the range of matching portlet preferenceses
796            * @throws SystemException if a system exception occurred
797            */
798            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_PI(
799                    long ownerId, int ownerType, java.lang.String portletId, int start,
800                    int end) throws com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
804            *
805            * <p>
806            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
807            * </p>
808            *
809            * @param ownerId the owner ID
810            * @param ownerType the owner type
811            * @param portletId the portlet ID
812            * @param start the lower bound of the range of portlet preferenceses
813            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
814            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
815            * @return the ordered range of matching portlet preferenceses
816            * @throws SystemException if a system exception occurred
817            */
818            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_PI(
819                    long ownerId, int ownerType, java.lang.String portletId, int start,
820                    int end,
821                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
822                    throws com.liferay.portal.kernel.exception.SystemException;
823    
824            /**
825            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
826            *
827            * @param ownerId the owner ID
828            * @param ownerType the owner type
829            * @param portletId the portlet ID
830            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
831            * @return the first matching portlet preferences
832            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
833            * @throws SystemException if a system exception occurred
834            */
835            public com.liferay.portal.model.PortletPreferences findByO_O_PI_First(
836                    long ownerId, int ownerType, java.lang.String portletId,
837                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
838                    throws com.liferay.portal.NoSuchPortletPreferencesException,
839                            com.liferay.portal.kernel.exception.SystemException;
840    
841            /**
842            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
843            *
844            * @param ownerId the owner ID
845            * @param ownerType the owner type
846            * @param portletId the portlet ID
847            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
848            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
849            * @throws SystemException if a system exception occurred
850            */
851            public com.liferay.portal.model.PortletPreferences fetchByO_O_PI_First(
852                    long ownerId, int ownerType, java.lang.String portletId,
853                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
854                    throws com.liferay.portal.kernel.exception.SystemException;
855    
856            /**
857            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
858            *
859            * @param ownerId the owner ID
860            * @param ownerType the owner type
861            * @param portletId the portlet ID
862            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
863            * @return the last matching portlet preferences
864            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
865            * @throws SystemException if a system exception occurred
866            */
867            public com.liferay.portal.model.PortletPreferences findByO_O_PI_Last(
868                    long ownerId, int ownerType, java.lang.String portletId,
869                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
870                    throws com.liferay.portal.NoSuchPortletPreferencesException,
871                            com.liferay.portal.kernel.exception.SystemException;
872    
873            /**
874            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
875            *
876            * @param ownerId the owner ID
877            * @param ownerType the owner type
878            * @param portletId the portlet ID
879            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
880            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
881            * @throws SystemException if a system exception occurred
882            */
883            public com.liferay.portal.model.PortletPreferences fetchByO_O_PI_Last(
884                    long ownerId, int ownerType, java.lang.String portletId,
885                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
890            *
891            * @param portletPreferencesId the primary key of the current portlet preferences
892            * @param ownerId the owner ID
893            * @param ownerType the owner type
894            * @param portletId the portlet ID
895            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
896            * @return the previous, current, and next portlet preferences
897            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
898            * @throws SystemException if a system exception occurred
899            */
900            public com.liferay.portal.model.PortletPreferences[] findByO_O_PI_PrevAndNext(
901                    long portletPreferencesId, long ownerId, int ownerType,
902                    java.lang.String portletId,
903                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
904                    throws com.liferay.portal.NoSuchPortletPreferencesException,
905                            com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63; from the database.
909            *
910            * @param ownerId the owner ID
911            * @param ownerType the owner type
912            * @param portletId the portlet ID
913            * @throws SystemException if a system exception occurred
914            */
915            public void removeByO_O_PI(long ownerId, int ownerType,
916                    java.lang.String portletId)
917                    throws com.liferay.portal.kernel.exception.SystemException;
918    
919            /**
920            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
921            *
922            * @param ownerId the owner ID
923            * @param ownerType the owner type
924            * @param portletId the portlet ID
925            * @return the number of matching portlet preferenceses
926            * @throws SystemException if a system exception occurred
927            */
928            public int countByO_O_PI(long ownerId, int ownerType,
929                    java.lang.String portletId)
930                    throws com.liferay.portal.kernel.exception.SystemException;
931    
932            /**
933            * Returns all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
934            *
935            * @param ownerType the owner type
936            * @param plid the plid
937            * @param portletId the portlet ID
938            * @return the matching portlet preferenceses
939            * @throws SystemException if a system exception occurred
940            */
941            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
942                    int ownerType, long plid, java.lang.String portletId)
943                    throws com.liferay.portal.kernel.exception.SystemException;
944    
945            /**
946            * Returns a range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
947            *
948            * <p>
949            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
950            * </p>
951            *
952            * @param ownerType the owner type
953            * @param plid the plid
954            * @param portletId the portlet ID
955            * @param start the lower bound of the range of portlet preferenceses
956            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
957            * @return the range of matching portlet preferenceses
958            * @throws SystemException if a system exception occurred
959            */
960            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
961                    int ownerType, long plid, java.lang.String portletId, int start, int end)
962                    throws com.liferay.portal.kernel.exception.SystemException;
963    
964            /**
965            * Returns an ordered range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
966            *
967            * <p>
968            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
969            * </p>
970            *
971            * @param ownerType the owner type
972            * @param plid the plid
973            * @param portletId the portlet ID
974            * @param start the lower bound of the range of portlet preferenceses
975            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
976            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
977            * @return the ordered range of matching portlet preferenceses
978            * @throws SystemException if a system exception occurred
979            */
980            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
981                    int ownerType, long plid, java.lang.String portletId, int start,
982                    int end,
983                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
984                    throws com.liferay.portal.kernel.exception.SystemException;
985    
986            /**
987            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
988            *
989            * @param ownerType the owner type
990            * @param plid the plid
991            * @param portletId the portlet ID
992            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
993            * @return the first matching portlet preferences
994            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
995            * @throws SystemException if a system exception occurred
996            */
997            public com.liferay.portal.model.PortletPreferences findByO_P_P_First(
998                    int ownerType, long plid, java.lang.String portletId,
999                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1000                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1001                            com.liferay.portal.kernel.exception.SystemException;
1002    
1003            /**
1004            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1005            *
1006            * @param ownerType the owner type
1007            * @param plid the plid
1008            * @param portletId the portlet ID
1009            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1010            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1011            * @throws SystemException if a system exception occurred
1012            */
1013            public com.liferay.portal.model.PortletPreferences fetchByO_P_P_First(
1014                    int ownerType, long plid, java.lang.String portletId,
1015                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1016                    throws com.liferay.portal.kernel.exception.SystemException;
1017    
1018            /**
1019            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1020            *
1021            * @param ownerType the owner type
1022            * @param plid the plid
1023            * @param portletId the portlet ID
1024            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1025            * @return the last matching portlet preferences
1026            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public com.liferay.portal.model.PortletPreferences findByO_P_P_Last(
1030                    int ownerType, long plid, java.lang.String portletId,
1031                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1032                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1033                            com.liferay.portal.kernel.exception.SystemException;
1034    
1035            /**
1036            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1037            *
1038            * @param ownerType the owner type
1039            * @param plid the plid
1040            * @param portletId the portlet ID
1041            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1042            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public com.liferay.portal.model.PortletPreferences fetchByO_P_P_Last(
1046                    int ownerType, long plid, java.lang.String portletId,
1047                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1048                    throws com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1052            *
1053            * @param portletPreferencesId the primary key of the current portlet preferences
1054            * @param ownerType the owner type
1055            * @param plid the plid
1056            * @param portletId the portlet ID
1057            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1058            * @return the previous, current, and next portlet preferences
1059            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext(
1063                    long portletPreferencesId, int ownerType, long plid,
1064                    java.lang.String portletId,
1065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1066                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1067                            com.liferay.portal.kernel.exception.SystemException;
1068    
1069            /**
1070            * Removes all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
1071            *
1072            * @param ownerType the owner type
1073            * @param plid the plid
1074            * @param portletId the portlet ID
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public void removeByO_P_P(int ownerType, long plid,
1078                    java.lang.String portletId)
1079                    throws com.liferay.portal.kernel.exception.SystemException;
1080    
1081            /**
1082            * Returns the number of portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1083            *
1084            * @param ownerType the owner type
1085            * @param plid the plid
1086            * @param portletId the portlet ID
1087            * @return the number of matching portlet preferenceses
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public int countByO_P_P(int ownerType, long plid, java.lang.String portletId)
1091                    throws com.liferay.portal.kernel.exception.SystemException;
1092    
1093            /**
1094            * 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.
1095            *
1096            * @param ownerId the owner ID
1097            * @param ownerType the owner type
1098            * @param plid the plid
1099            * @param portletId the portlet ID
1100            * @return the matching portlet preferences
1101            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
1105                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1106                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1107                            com.liferay.portal.kernel.exception.SystemException;
1108    
1109            /**
1110            * 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.
1111            *
1112            * @param ownerId the owner ID
1113            * @param ownerType the owner type
1114            * @param plid the plid
1115            * @param portletId the portlet ID
1116            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1117            * @throws SystemException if a system exception occurred
1118            */
1119            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
1120                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1121                    throws com.liferay.portal.kernel.exception.SystemException;
1122    
1123            /**
1124            * 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.
1125            *
1126            * @param ownerId the owner ID
1127            * @param ownerType the owner type
1128            * @param plid the plid
1129            * @param portletId the portlet ID
1130            * @param retrieveFromCache whether to use the finder cache
1131            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1132            * @throws SystemException if a system exception occurred
1133            */
1134            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
1135                    long ownerId, int ownerType, long plid, java.lang.String portletId,
1136                    boolean retrieveFromCache)
1137                    throws com.liferay.portal.kernel.exception.SystemException;
1138    
1139            /**
1140            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
1141            *
1142            * @param ownerId the owner ID
1143            * @param ownerType the owner type
1144            * @param plid the plid
1145            * @param portletId the portlet ID
1146            * @return the portlet preferences that was removed
1147            * @throws SystemException if a system exception occurred
1148            */
1149            public com.liferay.portal.model.PortletPreferences removeByO_O_P_P(
1150                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1151                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1152                            com.liferay.portal.kernel.exception.SystemException;
1153    
1154            /**
1155            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
1156            *
1157            * @param ownerId the owner ID
1158            * @param ownerType the owner type
1159            * @param plid the plid
1160            * @param portletId the portlet ID
1161            * @return the number of matching portlet preferenceses
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public int countByO_O_P_P(long ownerId, int ownerType, long plid,
1165                    java.lang.String portletId)
1166                    throws com.liferay.portal.kernel.exception.SystemException;
1167    
1168            /**
1169            * Caches the portlet preferences in the entity cache if it is enabled.
1170            *
1171            * @param portletPreferences the portlet preferences
1172            */
1173            public void cacheResult(
1174                    com.liferay.portal.model.PortletPreferences portletPreferences);
1175    
1176            /**
1177            * Caches the portlet preferenceses in the entity cache if it is enabled.
1178            *
1179            * @param portletPreferenceses the portlet preferenceses
1180            */
1181            public void cacheResult(
1182                    java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses);
1183    
1184            /**
1185            * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.
1186            *
1187            * @param portletPreferencesId the primary key for the new portlet preferences
1188            * @return the new portlet preferences
1189            */
1190            public com.liferay.portal.model.PortletPreferences create(
1191                    long portletPreferencesId);
1192    
1193            /**
1194            * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.
1195            *
1196            * @param portletPreferencesId the primary key of the portlet preferences
1197            * @return the portlet preferences that was removed
1198            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1199            * @throws SystemException if a system exception occurred
1200            */
1201            public com.liferay.portal.model.PortletPreferences remove(
1202                    long portletPreferencesId)
1203                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1204                            com.liferay.portal.kernel.exception.SystemException;
1205    
1206            public com.liferay.portal.model.PortletPreferences updateImpl(
1207                    com.liferay.portal.model.PortletPreferences portletPreferences)
1208                    throws com.liferay.portal.kernel.exception.SystemException;
1209    
1210            /**
1211            * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
1212            *
1213            * @param portletPreferencesId the primary key of the portlet preferences
1214            * @return the portlet preferences
1215            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
1219                    long portletPreferencesId)
1220                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1221                            com.liferay.portal.kernel.exception.SystemException;
1222    
1223            /**
1224            * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found.
1225            *
1226            * @param portletPreferencesId the primary key of the portlet preferences
1227            * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found
1228            * @throws SystemException if a system exception occurred
1229            */
1230            public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
1231                    long portletPreferencesId)
1232                    throws com.liferay.portal.kernel.exception.SystemException;
1233    
1234            /**
1235            * Returns all the portlet preferenceses.
1236            *
1237            * @return the portlet preferenceses
1238            * @throws SystemException if a system exception occurred
1239            */
1240            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
1241                    throws com.liferay.portal.kernel.exception.SystemException;
1242    
1243            /**
1244            * Returns a range of all the portlet preferenceses.
1245            *
1246            * <p>
1247            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
1248            * </p>
1249            *
1250            * @param start the lower bound of the range of portlet preferenceses
1251            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1252            * @return the range of portlet preferenceses
1253            * @throws SystemException if a system exception occurred
1254            */
1255            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
1256                    int start, int end)
1257                    throws com.liferay.portal.kernel.exception.SystemException;
1258    
1259            /**
1260            * Returns an ordered range of all the portlet preferenceses.
1261            *
1262            * <p>
1263            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PortletPreferencesModelImpl}. 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.
1264            * </p>
1265            *
1266            * @param start the lower bound of the range of portlet preferenceses
1267            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1268            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1269            * @return the ordered range of portlet preferenceses
1270            * @throws SystemException if a system exception occurred
1271            */
1272            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
1273                    int start, int end,
1274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1275                    throws com.liferay.portal.kernel.exception.SystemException;
1276    
1277            /**
1278            * Removes all the portlet preferenceses from the database.
1279            *
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public void removeAll()
1283                    throws com.liferay.portal.kernel.exception.SystemException;
1284    
1285            /**
1286            * Returns the number of portlet preferenceses.
1287            *
1288            * @return the number of portlet preferenceses
1289            * @throws SystemException if a system exception occurred
1290            */
1291            public int countAll()
1292                    throws com.liferay.portal.kernel.exception.SystemException;
1293    }