001    /**
002     * Copyright (c) 2000-2012 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.PasswordPolicyRel;
018    
019    /**
020     * The persistence interface for the password policy rel 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 PasswordPolicyRelPersistenceImpl
028     * @see PasswordPolicyRelUtil
029     * @generated
030     */
031    public interface PasswordPolicyRelPersistence extends BasePersistence<PasswordPolicyRel> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * 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.
036             */
037    
038            /**
039            * Caches the password policy rel in the entity cache if it is enabled.
040            *
041            * @param passwordPolicyRel the password policy rel
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel);
045    
046            /**
047            * Caches the password policy rels in the entity cache if it is enabled.
048            *
049            * @param passwordPolicyRels the password policy rels
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels);
053    
054            /**
055            * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database.
056            *
057            * @param passwordPolicyRelId the primary key for the new password policy rel
058            * @return the new password policy rel
059            */
060            public com.liferay.portal.model.PasswordPolicyRel create(
061                    long passwordPolicyRelId);
062    
063            /**
064            * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param passwordPolicyRelId the primary key of the password policy rel
067            * @return the password policy rel that was removed
068            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.PasswordPolicyRel remove(
072                    long passwordPolicyRelId)
073                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.PasswordPolicyRel updateImpl(
077                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found.
082            *
083            * @param passwordPolicyRelId the primary key of the password policy rel
084            * @return the password policy rel
085            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
089                    long passwordPolicyRelId)
090                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Returns the password policy rel with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param passwordPolicyRelId the primary key of the password policy rel
097            * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
101                    long passwordPolicyRelId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the password policy rels where passwordPolicyId = &#63;.
106            *
107            * @param passwordPolicyId the password policy ID
108            * @return the matching password policy rels
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
112                    long passwordPolicyId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the password policy rels where passwordPolicyId = &#63;.
117            *
118            * <p>
119            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
120            * </p>
121            *
122            * @param passwordPolicyId the password policy ID
123            * @param start the lower bound of the range of password policy rels
124            * @param end the upper bound of the range of password policy rels (not inclusive)
125            * @return the range of matching password policy rels
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
129                    long passwordPolicyId, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the password policy rels where passwordPolicyId = &#63;.
134            *
135            * <p>
136            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
137            * </p>
138            *
139            * @param passwordPolicyId the password policy ID
140            * @param start the lower bound of the range of password policy rels
141            * @param end the upper bound of the range of password policy rels (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching password policy rels
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
147                    long passwordPolicyId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first password policy rel in the ordered set where passwordPolicyId = &#63;.
153            *
154            * @param passwordPolicyId the password policy ID
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching password policy rel
157            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
161                    long passwordPolicyId,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the first password policy rel in the ordered set where passwordPolicyId = &#63;.
168            *
169            * @param passwordPolicyId the password policy ID
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_First(
175                    long passwordPolicyId,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last password policy rel in the ordered set where passwordPolicyId = &#63;.
181            *
182            * @param passwordPolicyId the password policy ID
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching password policy rel
185            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
189                    long passwordPolicyId,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            /**
195            * Returns the last password policy rel in the ordered set where passwordPolicyId = &#63;.
196            *
197            * @param passwordPolicyId the password policy ID
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_Last(
203                    long passwordPolicyId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = &#63;.
209            *
210            * @param passwordPolicyRelId the primary key of the current password policy rel
211            * @param passwordPolicyId the password policy ID
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next password policy rel
214            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
218                    long passwordPolicyRelId, long passwordPolicyId,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns the password policy rel where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found.
225            *
226            * @param classNameId the class name ID
227            * @param classPK the class p k
228            * @return the matching password policy rel
229            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.PasswordPolicyRel findByC_C(
233                    long classNameId, long classPK)
234                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
235                            com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Returns 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.
239            *
240            * @param classNameId the class name ID
241            * @param classPK the class p k
242            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
246                    long classNameId, long classPK)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns 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.
251            *
252            * @param classNameId the class name ID
253            * @param classPK the class p k
254            * @param retrieveFromCache whether to use the finder cache
255            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
259                    long classNameId, long classPK, boolean retrieveFromCache)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns 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.
264            *
265            * @param passwordPolicyId the password policy ID
266            * @param classNameId the class name ID
267            * @param classPK the class p k
268            * @return the matching password policy rel
269            * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
273                    long passwordPolicyId, long classNameId, long classPK)
274                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
275                            com.liferay.portal.kernel.exception.SystemException;
276    
277            /**
278            * Returns 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.
279            *
280            * @param passwordPolicyId the password policy ID
281            * @param classNameId the class name ID
282            * @param classPK the class p k
283            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
287                    long passwordPolicyId, long classNameId, long classPK)
288                    throws com.liferay.portal.kernel.exception.SystemException;
289    
290            /**
291            * Returns 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.
292            *
293            * @param passwordPolicyId the password policy ID
294            * @param classNameId the class name ID
295            * @param classPK the class p k
296            * @param retrieveFromCache whether to use the finder cache
297            * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
301                    long passwordPolicyId, long classNameId, long classPK,
302                    boolean retrieveFromCache)
303                    throws com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Returns all the password policy rels.
307            *
308            * @return the password policy rels
309            * @throws SystemException if a system exception occurred
310            */
311            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns a range of all the password policy rels.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param start the lower bound of the range of password policy rels
322            * @param end the upper bound of the range of password policy rels (not inclusive)
323            * @return the 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                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Returns an ordered range of all the password policy rels.
332            *
333            * <p>
334            * 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.
335            * </p>
336            *
337            * @param start the lower bound of the range of password policy rels
338            * @param end the upper bound of the range of password policy rels (not inclusive)
339            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
340            * @return the ordered range of password policy rels
341            * @throws SystemException if a system exception occurred
342            */
343            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
344                    int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Removes all the password policy rels where passwordPolicyId = &#63; from the database.
350            *
351            * @param passwordPolicyId the password policy ID
352            * @throws SystemException if a system exception occurred
353            */
354            public void removeByPasswordPolicyId(long passwordPolicyId)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Removes the password policy rel where classNameId = &#63; and classPK = &#63; from the database.
359            *
360            * @param classNameId the class name ID
361            * @param classPK the class p k
362            * @return the password policy rel that was removed
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portal.model.PasswordPolicyRel removeByC_C(
366                    long classNameId, long classPK)
367                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
368                            com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Removes the password policy rel where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
372            *
373            * @param passwordPolicyId the password policy ID
374            * @param classNameId the class name ID
375            * @param classPK the class p k
376            * @return the password policy rel that was removed
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portal.model.PasswordPolicyRel removeByP_C_C(
380                    long passwordPolicyId, long classNameId, long classPK)
381                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Removes all the password policy rels from the database.
386            *
387            * @throws SystemException if a system exception occurred
388            */
389            public void removeAll()
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns the number of password policy rels where passwordPolicyId = &#63;.
394            *
395            * @param passwordPolicyId the password policy ID
396            * @return the number of matching password policy rels
397            * @throws SystemException if a system exception occurred
398            */
399            public int countByPasswordPolicyId(long passwordPolicyId)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns the number of password policy rels where classNameId = &#63; and classPK = &#63;.
404            *
405            * @param classNameId the class name ID
406            * @param classPK the class p k
407            * @return the number of matching password policy rels
408            * @throws SystemException if a system exception occurred
409            */
410            public int countByC_C(long classNameId, long classPK)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns the number of password policy rels where passwordPolicyId = &#63; and classNameId = &#63; and classPK = &#63;.
415            *
416            * @param passwordPolicyId the password policy ID
417            * @param classNameId the class name ID
418            * @param classPK the class p k
419            * @return the number of matching password policy rels
420            * @throws SystemException if a system exception occurred
421            */
422            public int countByP_C_C(long passwordPolicyId, long classNameId,
423                    long classPK)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the number of password policy rels.
428            *
429            * @return the number of password policy rels
430            * @throws SystemException if a system exception occurred
431            */
432            public int countAll()
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    }