001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.PasswordPolicyRel;
018    
019    /**
020     * The persistence interface for the password policy rel service.
021     *
022     * <p>
023     * Never modify or reference this interface directly. Always use {@link PasswordPolicyRelUtil} to access the password policy rel persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see PasswordPolicyRelPersistenceImpl
032     * @see PasswordPolicyRelUtil
033     * @generated
034     */
035    public interface PasswordPolicyRelPersistence extends BasePersistence<PasswordPolicyRel> {
036            /**
037            * Caches the password policy rel in the entity cache if it is enabled.
038            *
039            * @param passwordPolicyRel the password policy rel to cache
040            */
041            public void cacheResult(
042                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel);
043    
044            /**
045            * Caches the password policy rels in the entity cache if it is enabled.
046            *
047            * @param passwordPolicyRels the password policy rels to cache
048            */
049            public void cacheResult(
050                    java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels);
051    
052            /**
053            * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database.
054            *
055            * @param passwordPolicyRelId the primary key for the new password policy rel
056            * @return the new password policy rel
057            */
058            public com.liferay.portal.model.PasswordPolicyRel create(
059                    long passwordPolicyRelId);
060    
061            /**
062            * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param passwordPolicyRelId the primary key of the password policy rel to remove
065            * @return the password policy rel that was removed
066            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public com.liferay.portal.model.PasswordPolicyRel remove(
070                    long passwordPolicyRelId)
071                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.PasswordPolicyRel updateImpl(
075                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
076                    boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Finds the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found.
081            *
082            * @param passwordPolicyRelId the primary key of the password policy rel to find
083            * @return the password policy rel
084            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
088                    long passwordPolicyRelId)
089                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            /**
093            * Finds the password policy rel with the primary key or returns <code>null</code> if it could not be found.
094            *
095            * @param passwordPolicyRelId the primary key of the password policy rel to find
096            * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
100                    long passwordPolicyRelId)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Finds all the password policy rels where passwordPolicyId = &#63;.
105            *
106            * @param passwordPolicyId the password policy id to search with
107            * @return the matching password policy rels
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
111                    long passwordPolicyId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Finds a range of all the password policy rels where passwordPolicyId = &#63;.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param passwordPolicyId the password policy id to search with
122            * @param start the lower bound of the range of password policy rels to return
123            * @param end the upper bound of the range of password policy rels to return (not inclusive)
124            * @return the range of matching password policy rels
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
128                    long passwordPolicyId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Finds an ordered range of all the password policy rels where passwordPolicyId = &#63;.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param passwordPolicyId the password policy id to search with
139            * @param start the lower bound of the range of password policy rels to return
140            * @param end the upper bound of the range of password policy rels to return (not inclusive)
141            * @param orderByComparator the comparator to order the results by
142            * @return the ordered range of matching password policy rels
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
146                    long passwordPolicyId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Finds the first password policy rel in the ordered set where passwordPolicyId = &#63;.
152            *
153            * <p>
154            * 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.
155            * </p>
156            *
157            * @param passwordPolicyId the password policy id to search with
158            * @param orderByComparator the comparator to order the set by
159            * @return the first matching password policy rel
160            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
164                    long passwordPolicyId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Finds the last password policy rel in the ordered set where passwordPolicyId = &#63;.
171            *
172            * <p>
173            * 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.
174            * </p>
175            *
176            * @param passwordPolicyId the password policy id to search with
177            * @param orderByComparator the comparator to order the set by
178            * @return the last matching password policy rel
179            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
183                    long passwordPolicyId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Finds the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = &#63;.
190            *
191            * <p>
192            * 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.
193            * </p>
194            *
195            * @param passwordPolicyRelId the primary key of the current password policy rel
196            * @param passwordPolicyId the password policy id to search with
197            * @param orderByComparator the comparator to order the set by
198            * @return the previous, current, and next password policy rel
199            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
203                    long passwordPolicyRelId, long passwordPolicyId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Finds the password policy rel where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found.
210            *
211            * @param classNameId the class name id to search with
212            * @param classPK the class p k to search with
213            * @return the matching password policy rel
214            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.PasswordPolicyRel findByC_C(
218                    long classNameId, long classPK)
219                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
220                            com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Finds the password policy rel where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
224            *
225            * @param classNameId the class name id to search with
226            * @param classPK the class p k to search with
227            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
228            * @throws SystemException if a system exception occurred
229            */
230            public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
231                    long classNameId, long classPK)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Finds the password policy rel where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
236            *
237            * @param classNameId the class name id to search with
238            * @param classPK the class p k to search with
239            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
243                    long classNameId, long classPK, boolean retrieveFromCache)
244                    throws com.liferay.portal.kernel.exception.SystemException;
245    
246            /**
247            * Finds the password policy rel where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found.
248            *
249            * @param passwordPolicyId the password policy id to search with
250            * @param classNameId the class name id to search with
251            * @param classPK the class p k to search with
252            * @return the matching password policy rel
253            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
257                    long passwordPolicyId, long classNameId, long classPK)
258                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
259                            com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Finds the password policy rel where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
263            *
264            * @param passwordPolicyId the password policy id to search with
265            * @param classNameId the class name id to search with
266            * @param classPK the class p k to search with
267            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
271                    long passwordPolicyId, long classNameId, long classPK)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Finds the password policy rel where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
276            *
277            * @param passwordPolicyId the password policy id to search with
278            * @param classNameId the class name id to search with
279            * @param classPK the class p k to search with
280            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
281            * @throws SystemException if a system exception occurred
282            */
283            public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
284                    long passwordPolicyId, long classNameId, long classPK,
285                    boolean retrieveFromCache)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            /**
289            * Finds all the password policy rels.
290            *
291            * @return the password policy rels
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * Finds a range of all the password policy rels.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param start the lower bound of the range of password policy rels to return
305            * @param end the upper bound of the range of password policy rels to return (not inclusive)
306            * @return the range of password policy rels
307            * @throws SystemException if a system exception occurred
308            */
309            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
310                    int start, int end)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Finds an ordered range of all the password policy rels.
315            *
316            * <p>
317            * 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.
318            * </p>
319            *
320            * @param start the lower bound of the range of password policy rels to return
321            * @param end the upper bound of the range of password policy rels to return (not inclusive)
322            * @param orderByComparator the comparator to order the results by
323            * @return the ordered range of password policy rels
324            * @throws SystemException if a system exception occurred
325            */
326            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
327                    int start, int end,
328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            /**
332            * Removes all the password policy rels where passwordPolicyId = &#63; from the database.
333            *
334            * @param passwordPolicyId the password policy id to search with
335            * @throws SystemException if a system exception occurred
336            */
337            public void removeByPasswordPolicyId(long passwordPolicyId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Removes the password policy rel where classNameId = &#63; and classPK = &#63; from the database.
342            *
343            * @param classNameId the class name id to search with
344            * @param classPK the class p k to search with
345            * @throws SystemException if a system exception occurred
346            */
347            public void removeByC_C(long classNameId, long classPK)
348                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
349                            com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * Removes the password policy rel where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
353            *
354            * @param passwordPolicyId the password policy id to search with
355            * @param classNameId the class name id to search with
356            * @param classPK the class p k to search with
357            * @throws SystemException if a system exception occurred
358            */
359            public void removeByP_C_C(long passwordPolicyId, long classNameId,
360                    long classPK)
361                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
362                            com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Removes all the password policy rels from the database.
366            *
367            * @throws SystemException if a system exception occurred
368            */
369            public void removeAll()
370                    throws com.liferay.portal.kernel.exception.SystemException;
371    
372            /**
373            * Counts all the password policy rels where passwordPolicyId = &#63;.
374            *
375            * @param passwordPolicyId the password policy id to search with
376            * @return the number of matching password policy rels
377            * @throws SystemException if a system exception occurred
378            */
379            public int countByPasswordPolicyId(long passwordPolicyId)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Counts all the password policy rels where classNameId = &#63; and classPK = &#63;.
384            *
385            * @param classNameId the class name id to search with
386            * @param classPK the class p k to search with
387            * @return the number of matching password policy rels
388            * @throws SystemException if a system exception occurred
389            */
390            public int countByC_C(long classNameId, long classPK)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Counts all the password policy rels where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63;.
395            *
396            * @param passwordPolicyId the password policy id to search with
397            * @param classNameId the class name id to search with
398            * @param classPK the class p k to search with
399            * @return the number of matching password policy rels
400            * @throws SystemException if a system exception occurred
401            */
402            public int countByP_C_C(long passwordPolicyId, long classNameId,
403                    long classPK)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            /**
407            * Counts all the password policy rels.
408            *
409            * @return the number of password policy rels
410            * @throws SystemException if a system exception occurred
411            */
412            public int countAll()
413                    throws com.liferay.portal.kernel.exception.SystemException;
414    }