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