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.PasswordPolicy;
018    
019    /**
020     * The persistence interface for the password policy 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 PasswordPolicyPersistenceImpl
028     * @see PasswordPolicyUtil
029     * @generated
030     */
031    public interface PasswordPolicyPersistence extends BasePersistence<PasswordPolicy> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link PasswordPolicyUtil} to access the password policy persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Returns all the password policies where uuid = &#63;.
040            *
041            * @param uuid the uuid
042            * @return the matching password policies
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid(
046                    java.lang.String uuid)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the password policies where uuid = &#63;.
051            *
052            * <p>
053            * 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.PasswordPolicyModelImpl}. 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.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of password policies
058            * @param end the upper bound of the range of password policies (not inclusive)
059            * @return the range of matching password policies
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid(
063                    java.lang.String uuid, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the password policies where uuid = &#63;.
068            *
069            * <p>
070            * 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.PasswordPolicyModelImpl}. 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.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of password policies
075            * @param end the upper bound of the range of password policies (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching password policies
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first password policy in the ordered set where uuid = &#63;.
087            *
088            * @param uuid the uuid
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching password policy
091            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.PasswordPolicy findByUuid_First(
095                    java.lang.String uuid,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchPasswordPolicyException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first password policy in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.PasswordPolicy fetchByUuid_First(
109                    java.lang.String uuid,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last password policy in the ordered set where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching password policy
119            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.PasswordPolicy findByUuid_Last(
123                    java.lang.String uuid,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchPasswordPolicyException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last password policy in the ordered set where uuid = &#63;.
130            *
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.PasswordPolicy fetchByUuid_Last(
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the password policies before and after the current password policy in the ordered set where uuid = &#63;.
143            *
144            * @param passwordPolicyId the primary key of the current password policy
145            * @param uuid the uuid
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next password policy
148            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.PasswordPolicy[] findByUuid_PrevAndNext(
152                    long passwordPolicyId, java.lang.String uuid,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchPasswordPolicyException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Returns all the password policies that the user has permission to view where uuid = &#63;.
159            *
160            * @param uuid the uuid
161            * @return the matching password policies that the user has permission to view
162            * @throws SystemException if a system exception occurred
163            */
164            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid(
165                    java.lang.String uuid)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns a range of all the password policies that the user has permission to view where uuid = &#63;.
170            *
171            * <p>
172            * 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.PasswordPolicyModelImpl}. 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.
173            * </p>
174            *
175            * @param uuid the uuid
176            * @param start the lower bound of the range of password policies
177            * @param end the upper bound of the range of password policies (not inclusive)
178            * @return the range of matching password policies that the user has permission to view
179            * @throws SystemException if a system exception occurred
180            */
181            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid(
182                    java.lang.String uuid, int start, int end)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            /**
186            * Returns an ordered range of all the password policies that the user has permissions to view where uuid = &#63;.
187            *
188            * <p>
189            * 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.PasswordPolicyModelImpl}. 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.
190            * </p>
191            *
192            * @param uuid the uuid
193            * @param start the lower bound of the range of password policies
194            * @param end the upper bound of the range of password policies (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching password policies that the user has permission to view
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid(
200                    java.lang.String uuid, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            /**
205            * Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = &#63;.
206            *
207            * @param passwordPolicyId the primary key of the current password policy
208            * @param uuid the uuid
209            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
210            * @return the previous, current, and next password policy
211            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.PasswordPolicy[] filterFindByUuid_PrevAndNext(
215                    long passwordPolicyId, java.lang.String uuid,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.NoSuchPasswordPolicyException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes all the password policies where uuid = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @throws SystemException if a system exception occurred
225            */
226            public void removeByUuid(java.lang.String uuid)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the number of password policies where uuid = &#63;.
231            *
232            * @param uuid the uuid
233            * @return the number of matching password policies
234            * @throws SystemException if a system exception occurred
235            */
236            public int countByUuid(java.lang.String uuid)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns the number of password policies that the user has permission to view where uuid = &#63;.
241            *
242            * @param uuid the uuid
243            * @return the number of matching password policies that the user has permission to view
244            * @throws SystemException if a system exception occurred
245            */
246            public int filterCountByUuid(java.lang.String uuid)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns all the password policies where uuid = &#63; and companyId = &#63;.
251            *
252            * @param uuid the uuid
253            * @param companyId the company ID
254            * @return the matching password policies
255            * @throws SystemException if a system exception occurred
256            */
257            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C(
258                    java.lang.String uuid, long companyId)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns a range of all the password policies where uuid = &#63; and companyId = &#63;.
263            *
264            * <p>
265            * 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.PasswordPolicyModelImpl}. 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.
266            * </p>
267            *
268            * @param uuid the uuid
269            * @param companyId the company ID
270            * @param start the lower bound of the range of password policies
271            * @param end the upper bound of the range of password policies (not inclusive)
272            * @return the range of matching password policies
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C(
276                    java.lang.String uuid, long companyId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the password policies where uuid = &#63; and companyId = &#63;.
281            *
282            * <p>
283            * 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.PasswordPolicyModelImpl}. 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.
284            * </p>
285            *
286            * @param uuid the uuid
287            * @param companyId the company ID
288            * @param start the lower bound of the range of password policies
289            * @param end the upper bound of the range of password policies (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @return the ordered range of matching password policies
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C(
295                    java.lang.String uuid, long companyId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns the first password policy in the ordered set where uuid = &#63; and companyId = &#63;.
301            *
302            * @param uuid the uuid
303            * @param companyId the company ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching password policy
306            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portal.model.PasswordPolicy findByUuid_C_First(
310                    java.lang.String uuid, long companyId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.NoSuchPasswordPolicyException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * Returns the first password policy in the ordered set where uuid = &#63; and companyId = &#63;.
317            *
318            * @param uuid the uuid
319            * @param companyId the company ID
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portal.model.PasswordPolicy fetchByUuid_C_First(
325                    java.lang.String uuid, long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns the last password policy in the ordered set where uuid = &#63; and companyId = &#63;.
331            *
332            * @param uuid the uuid
333            * @param companyId the company ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the last matching password policy
336            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portal.model.PasswordPolicy findByUuid_C_Last(
340                    java.lang.String uuid, long companyId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.NoSuchPasswordPolicyException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Returns the last password policy in the ordered set where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
351            * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public com.liferay.portal.model.PasswordPolicy fetchByUuid_C_Last(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the password policies before and after the current password policy in the ordered set where uuid = &#63; and companyId = &#63;.
361            *
362            * @param passwordPolicyId the primary key of the current password policy
363            * @param uuid the uuid
364            * @param companyId the company ID
365            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
366            * @return the previous, current, and next password policy
367            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public com.liferay.portal.model.PasswordPolicy[] findByUuid_C_PrevAndNext(
371                    long passwordPolicyId, java.lang.String uuid, long companyId,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.NoSuchPasswordPolicyException,
374                            com.liferay.portal.kernel.exception.SystemException;
375    
376            /**
377            * Returns all the password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
378            *
379            * @param uuid the uuid
380            * @param companyId the company ID
381            * @return the matching password policies that the user has permission to view
382            * @throws SystemException if a system exception occurred
383            */
384            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C(
385                    java.lang.String uuid, long companyId)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            /**
389            * Returns a range of all the password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
390            *
391            * <p>
392            * 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.PasswordPolicyModelImpl}. 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.
393            * </p>
394            *
395            * @param uuid the uuid
396            * @param companyId the company ID
397            * @param start the lower bound of the range of password policies
398            * @param end the upper bound of the range of password policies (not inclusive)
399            * @return the range of matching password policies that the user has permission to view
400            * @throws SystemException if a system exception occurred
401            */
402            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C(
403                    java.lang.String uuid, long companyId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            /**
407            * Returns an ordered range of all the password policies that the user has permissions to view where uuid = &#63; and companyId = &#63;.
408            *
409            * <p>
410            * 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.PasswordPolicyModelImpl}. 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.
411            * </p>
412            *
413            * @param uuid the uuid
414            * @param companyId the company ID
415            * @param start the lower bound of the range of password policies
416            * @param end the upper bound of the range of password policies (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching password policies that the user has permission to view
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C(
422                    java.lang.String uuid, long companyId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
428            *
429            * @param passwordPolicyId the primary key of the current password policy
430            * @param uuid the uuid
431            * @param companyId the company ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next password policy
434            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.PasswordPolicy[] filterFindByUuid_C_PrevAndNext(
438                    long passwordPolicyId, java.lang.String uuid, long companyId,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.NoSuchPasswordPolicyException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Removes all the password policies where uuid = &#63; and companyId = &#63; from the database.
445            *
446            * @param uuid the uuid
447            * @param companyId the company ID
448            * @throws SystemException if a system exception occurred
449            */
450            public void removeByUuid_C(java.lang.String uuid, long companyId)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns the number of password policies where uuid = &#63; and companyId = &#63;.
455            *
456            * @param uuid the uuid
457            * @param companyId the company ID
458            * @return the number of matching password policies
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByUuid_C(java.lang.String uuid, long companyId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns the number of password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
466            *
467            * @param uuid the uuid
468            * @param companyId the company ID
469            * @return the number of matching password policies that the user has permission to view
470            * @throws SystemException if a system exception occurred
471            */
472            public int filterCountByUuid_C(java.lang.String uuid, long companyId)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns the password policy where companyId = &#63; and defaultPolicy = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
477            *
478            * @param companyId the company ID
479            * @param defaultPolicy the default policy
480            * @return the matching password policy
481            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
482            * @throws SystemException if a system exception occurred
483            */
484            public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId,
485                    boolean defaultPolicy)
486                    throws com.liferay.portal.NoSuchPasswordPolicyException,
487                            com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Returns the password policy where companyId = &#63; and defaultPolicy = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
491            *
492            * @param companyId the company ID
493            * @param defaultPolicy the default policy
494            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
495            * @throws SystemException if a system exception occurred
496            */
497            public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
498                    boolean defaultPolicy)
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * Returns the password policy where companyId = &#63; and defaultPolicy = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
503            *
504            * @param companyId the company ID
505            * @param defaultPolicy the default policy
506            * @param retrieveFromCache whether to use the finder cache
507            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
508            * @throws SystemException if a system exception occurred
509            */
510            public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
511                    boolean defaultPolicy, boolean retrieveFromCache)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Removes the password policy where companyId = &#63; and defaultPolicy = &#63; from the database.
516            *
517            * @param companyId the company ID
518            * @param defaultPolicy the default policy
519            * @return the password policy that was removed
520            * @throws SystemException if a system exception occurred
521            */
522            public com.liferay.portal.model.PasswordPolicy removeByC_DP(
523                    long companyId, boolean defaultPolicy)
524                    throws com.liferay.portal.NoSuchPasswordPolicyException,
525                            com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns the number of password policies where companyId = &#63; and defaultPolicy = &#63;.
529            *
530            * @param companyId the company ID
531            * @param defaultPolicy the default policy
532            * @return the number of matching password policies
533            * @throws SystemException if a system exception occurred
534            */
535            public int countByC_DP(long companyId, boolean defaultPolicy)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns the password policy where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
540            *
541            * @param companyId the company ID
542            * @param name the name
543            * @return the matching password policy
544            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
545            * @throws SystemException if a system exception occurred
546            */
547            public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId,
548                    java.lang.String name)
549                    throws com.liferay.portal.NoSuchPasswordPolicyException,
550                            com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Returns the password policy where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
554            *
555            * @param companyId the company ID
556            * @param name the name
557            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
558            * @throws SystemException if a system exception occurred
559            */
560            public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
561                    java.lang.String name)
562                    throws com.liferay.portal.kernel.exception.SystemException;
563    
564            /**
565            * Returns the password policy where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
566            *
567            * @param companyId the company ID
568            * @param name the name
569            * @param retrieveFromCache whether to use the finder cache
570            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
571            * @throws SystemException if a system exception occurred
572            */
573            public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
574                    java.lang.String name, boolean retrieveFromCache)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            /**
578            * Removes the password policy where companyId = &#63; and name = &#63; from the database.
579            *
580            * @param companyId the company ID
581            * @param name the name
582            * @return the password policy that was removed
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portal.model.PasswordPolicy removeByC_N(long companyId,
586                    java.lang.String name)
587                    throws com.liferay.portal.NoSuchPasswordPolicyException,
588                            com.liferay.portal.kernel.exception.SystemException;
589    
590            /**
591            * Returns the number of password policies where companyId = &#63; and name = &#63;.
592            *
593            * @param companyId the company ID
594            * @param name the name
595            * @return the number of matching password policies
596            * @throws SystemException if a system exception occurred
597            */
598            public int countByC_N(long companyId, java.lang.String name)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Caches the password policy in the entity cache if it is enabled.
603            *
604            * @param passwordPolicy the password policy
605            */
606            public void cacheResult(
607                    com.liferay.portal.model.PasswordPolicy passwordPolicy);
608    
609            /**
610            * Caches the password policies in the entity cache if it is enabled.
611            *
612            * @param passwordPolicies the password policies
613            */
614            public void cacheResult(
615                    java.util.List<com.liferay.portal.model.PasswordPolicy> passwordPolicies);
616    
617            /**
618            * Creates a new password policy with the primary key. Does not add the password policy to the database.
619            *
620            * @param passwordPolicyId the primary key for the new password policy
621            * @return the new password policy
622            */
623            public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId);
624    
625            /**
626            * Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.
627            *
628            * @param passwordPolicyId the primary key of the password policy
629            * @return the password policy that was removed
630            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
631            * @throws SystemException if a system exception occurred
632            */
633            public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
634                    throws com.liferay.portal.NoSuchPasswordPolicyException,
635                            com.liferay.portal.kernel.exception.SystemException;
636    
637            public com.liferay.portal.model.PasswordPolicy updateImpl(
638                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * Returns the password policy with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
643            *
644            * @param passwordPolicyId the primary key of the password policy
645            * @return the password policy
646            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
647            * @throws SystemException if a system exception occurred
648            */
649            public com.liferay.portal.model.PasswordPolicy findByPrimaryKey(
650                    long passwordPolicyId)
651                    throws com.liferay.portal.NoSuchPasswordPolicyException,
652                            com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Returns the password policy with the primary key or returns <code>null</code> if it could not be found.
656            *
657            * @param passwordPolicyId the primary key of the password policy
658            * @return the password policy, or <code>null</code> if a password policy with the primary key could not be found
659            * @throws SystemException if a system exception occurred
660            */
661            public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(
662                    long passwordPolicyId)
663                    throws com.liferay.portal.kernel.exception.SystemException;
664    
665            /**
666            * Returns all the password policies.
667            *
668            * @return the password policies
669            * @throws SystemException if a system exception occurred
670            */
671            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll()
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            /**
675            * Returns a range of all the password policies.
676            *
677            * <p>
678            * 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.PasswordPolicyModelImpl}. 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.
679            * </p>
680            *
681            * @param start the lower bound of the range of password policies
682            * @param end the upper bound of the range of password policies (not inclusive)
683            * @return the range of password policies
684            * @throws SystemException if a system exception occurred
685            */
686            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
687                    int start, int end)
688                    throws com.liferay.portal.kernel.exception.SystemException;
689    
690            /**
691            * Returns an ordered range of all the password policies.
692            *
693            * <p>
694            * 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.PasswordPolicyModelImpl}. 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.
695            * </p>
696            *
697            * @param start the lower bound of the range of password policies
698            * @param end the upper bound of the range of password policies (not inclusive)
699            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
700            * @return the ordered range of password policies
701            * @throws SystemException if a system exception occurred
702            */
703            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
704                    int start, int end,
705                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
706                    throws com.liferay.portal.kernel.exception.SystemException;
707    
708            /**
709            * Removes all the password policies from the database.
710            *
711            * @throws SystemException if a system exception occurred
712            */
713            public void removeAll()
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Returns the number of password policies.
718            *
719            * @return the number of password policies
720            * @throws SystemException if a system exception occurred
721            */
722            public int countAll()
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    }