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 all the password policies where companyId = &#63;.
477            *
478            * @param companyId the company ID
479            * @return the matching password policies
480            * @throws SystemException if a system exception occurred
481            */
482            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId(
483                    long companyId)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns a range of all the password policies where companyId = &#63;.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param companyId the company ID
494            * @param start the lower bound of the range of password policies
495            * @param end the upper bound of the range of password policies (not inclusive)
496            * @return the range of matching password policies
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId(
500                    long companyId, int start, int end)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns an ordered range of all the password policies where companyId = &#63;.
505            *
506            * <p>
507            * 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.
508            * </p>
509            *
510            * @param companyId the company ID
511            * @param start the lower bound of the range of password policies
512            * @param end the upper bound of the range of password policies (not inclusive)
513            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
514            * @return the ordered range of matching password policies
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId(
518                    long companyId, int start, int end,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the first password policy in the ordered set where companyId = &#63;.
524            *
525            * @param companyId the company ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the first matching password policy
528            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
529            * @throws SystemException if a system exception occurred
530            */
531            public com.liferay.portal.model.PasswordPolicy findByCompanyId_First(
532                    long companyId,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.NoSuchPasswordPolicyException,
535                            com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns the first password policy in the ordered set where companyId = &#63;.
539            *
540            * @param companyId the company ID
541            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
542            * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portal.model.PasswordPolicy fetchByCompanyId_First(
546                    long companyId,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the last password policy in the ordered set where companyId = &#63;.
552            *
553            * @param companyId the company ID
554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
555            * @return the last matching password policy
556            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portal.model.PasswordPolicy findByCompanyId_Last(
560                    long companyId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.NoSuchPasswordPolicyException,
563                            com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the last password policy in the ordered set where companyId = &#63;.
567            *
568            * @param companyId the company ID
569            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
570            * @return the last 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 fetchByCompanyId_Last(
574                    long companyId,
575                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * Returns the password policies before and after the current password policy in the ordered set where companyId = &#63;.
580            *
581            * @param passwordPolicyId the primary key of the current password policy
582            * @param companyId the company ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the previous, current, and next password policy
585            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portal.model.PasswordPolicy[] findByCompanyId_PrevAndNext(
589                    long passwordPolicyId, long companyId,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.NoSuchPasswordPolicyException,
592                            com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns all the password policies that the user has permission to view where companyId = &#63;.
596            *
597            * @param companyId the company ID
598            * @return the matching password policies that the user has permission to view
599            * @throws SystemException if a system exception occurred
600            */
601            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId(
602                    long companyId)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns a range of all the password policies that the user has permission to view where companyId = &#63;.
607            *
608            * <p>
609            * 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.
610            * </p>
611            *
612            * @param companyId the company ID
613            * @param start the lower bound of the range of password policies
614            * @param end the upper bound of the range of password policies (not inclusive)
615            * @return the range of matching password policies that the user has permission to view
616            * @throws SystemException if a system exception occurred
617            */
618            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId(
619                    long companyId, int start, int end)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns an ordered range of all the password policies that the user has permissions to view where companyId = &#63;.
624            *
625            * <p>
626            * 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.
627            * </p>
628            *
629            * @param companyId the company ID
630            * @param start the lower bound of the range of password policies
631            * @param end the upper bound of the range of password policies (not inclusive)
632            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
633            * @return the ordered range of matching password policies that the user has permission to view
634            * @throws SystemException if a system exception occurred
635            */
636            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId(
637                    long companyId, int start, int end,
638                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * 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 companyId = &#63;.
643            *
644            * @param passwordPolicyId the primary key of the current password policy
645            * @param companyId the company ID
646            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
647            * @return the previous, current, and next password policy
648            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
649            * @throws SystemException if a system exception occurred
650            */
651            public com.liferay.portal.model.PasswordPolicy[] filterFindByCompanyId_PrevAndNext(
652                    long passwordPolicyId, long companyId,
653                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
654                    throws com.liferay.portal.NoSuchPasswordPolicyException,
655                            com.liferay.portal.kernel.exception.SystemException;
656    
657            /**
658            * Removes all the password policies where companyId = &#63; from the database.
659            *
660            * @param companyId the company ID
661            * @throws SystemException if a system exception occurred
662            */
663            public void removeByCompanyId(long companyId)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Returns the number of password policies where companyId = &#63;.
668            *
669            * @param companyId the company ID
670            * @return the number of matching password policies
671            * @throws SystemException if a system exception occurred
672            */
673            public int countByCompanyId(long companyId)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns the number of password policies that the user has permission to view where companyId = &#63;.
678            *
679            * @param companyId the company ID
680            * @return the number of matching password policies that the user has permission to view
681            * @throws SystemException if a system exception occurred
682            */
683            public int filterCountByCompanyId(long companyId)
684                    throws com.liferay.portal.kernel.exception.SystemException;
685    
686            /**
687            * Returns the password policy where companyId = &#63; and defaultPolicy = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
688            *
689            * @param companyId the company ID
690            * @param defaultPolicy the default policy
691            * @return the matching password policy
692            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId,
696                    boolean defaultPolicy)
697                    throws com.liferay.portal.NoSuchPasswordPolicyException,
698                            com.liferay.portal.kernel.exception.SystemException;
699    
700            /**
701            * 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.
702            *
703            * @param companyId the company ID
704            * @param defaultPolicy the default policy
705            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
706            * @throws SystemException if a system exception occurred
707            */
708            public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
709                    boolean defaultPolicy)
710                    throws com.liferay.portal.kernel.exception.SystemException;
711    
712            /**
713            * 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.
714            *
715            * @param companyId the company ID
716            * @param defaultPolicy the default policy
717            * @param retrieveFromCache whether to use the finder cache
718            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
719            * @throws SystemException if a system exception occurred
720            */
721            public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
722                    boolean defaultPolicy, boolean retrieveFromCache)
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    
725            /**
726            * Removes the password policy where companyId = &#63; and defaultPolicy = &#63; from the database.
727            *
728            * @param companyId the company ID
729            * @param defaultPolicy the default policy
730            * @return the password policy that was removed
731            * @throws SystemException if a system exception occurred
732            */
733            public com.liferay.portal.model.PasswordPolicy removeByC_DP(
734                    long companyId, boolean defaultPolicy)
735                    throws com.liferay.portal.NoSuchPasswordPolicyException,
736                            com.liferay.portal.kernel.exception.SystemException;
737    
738            /**
739            * Returns the number of password policies where companyId = &#63; and defaultPolicy = &#63;.
740            *
741            * @param companyId the company ID
742            * @param defaultPolicy the default policy
743            * @return the number of matching password policies
744            * @throws SystemException if a system exception occurred
745            */
746            public int countByC_DP(long companyId, boolean defaultPolicy)
747                    throws com.liferay.portal.kernel.exception.SystemException;
748    
749            /**
750            * Returns the password policy where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
751            *
752            * @param companyId the company ID
753            * @param name the name
754            * @return the matching password policy
755            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
756            * @throws SystemException if a system exception occurred
757            */
758            public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId,
759                    java.lang.String name)
760                    throws com.liferay.portal.NoSuchPasswordPolicyException,
761                            com.liferay.portal.kernel.exception.SystemException;
762    
763            /**
764            * 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.
765            *
766            * @param companyId the company ID
767            * @param name the name
768            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
769            * @throws SystemException if a system exception occurred
770            */
771            public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
772                    java.lang.String name)
773                    throws com.liferay.portal.kernel.exception.SystemException;
774    
775            /**
776            * 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.
777            *
778            * @param companyId the company ID
779            * @param name the name
780            * @param retrieveFromCache whether to use the finder cache
781            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
782            * @throws SystemException if a system exception occurred
783            */
784            public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
785                    java.lang.String name, boolean retrieveFromCache)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Removes the password policy where companyId = &#63; and name = &#63; from the database.
790            *
791            * @param companyId the company ID
792            * @param name the name
793            * @return the password policy that was removed
794            * @throws SystemException if a system exception occurred
795            */
796            public com.liferay.portal.model.PasswordPolicy removeByC_N(long companyId,
797                    java.lang.String name)
798                    throws com.liferay.portal.NoSuchPasswordPolicyException,
799                            com.liferay.portal.kernel.exception.SystemException;
800    
801            /**
802            * Returns the number of password policies where companyId = &#63; and name = &#63;.
803            *
804            * @param companyId the company ID
805            * @param name the name
806            * @return the number of matching password policies
807            * @throws SystemException if a system exception occurred
808            */
809            public int countByC_N(long companyId, java.lang.String name)
810                    throws com.liferay.portal.kernel.exception.SystemException;
811    
812            /**
813            * Caches the password policy in the entity cache if it is enabled.
814            *
815            * @param passwordPolicy the password policy
816            */
817            public void cacheResult(
818                    com.liferay.portal.model.PasswordPolicy passwordPolicy);
819    
820            /**
821            * Caches the password policies in the entity cache if it is enabled.
822            *
823            * @param passwordPolicies the password policies
824            */
825            public void cacheResult(
826                    java.util.List<com.liferay.portal.model.PasswordPolicy> passwordPolicies);
827    
828            /**
829            * Creates a new password policy with the primary key. Does not add the password policy to the database.
830            *
831            * @param passwordPolicyId the primary key for the new password policy
832            * @return the new password policy
833            */
834            public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId);
835    
836            /**
837            * Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.
838            *
839            * @param passwordPolicyId the primary key of the password policy
840            * @return the password policy that was removed
841            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
842            * @throws SystemException if a system exception occurred
843            */
844            public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
845                    throws com.liferay.portal.NoSuchPasswordPolicyException,
846                            com.liferay.portal.kernel.exception.SystemException;
847    
848            public com.liferay.portal.model.PasswordPolicy updateImpl(
849                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
850                    throws com.liferay.portal.kernel.exception.SystemException;
851    
852            /**
853            * Returns the password policy with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
854            *
855            * @param passwordPolicyId the primary key of the password policy
856            * @return the password policy
857            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
858            * @throws SystemException if a system exception occurred
859            */
860            public com.liferay.portal.model.PasswordPolicy findByPrimaryKey(
861                    long passwordPolicyId)
862                    throws com.liferay.portal.NoSuchPasswordPolicyException,
863                            com.liferay.portal.kernel.exception.SystemException;
864    
865            /**
866            * Returns the password policy with the primary key or returns <code>null</code> if it could not be found.
867            *
868            * @param passwordPolicyId the primary key of the password policy
869            * @return the password policy, or <code>null</code> if a password policy with the primary key could not be found
870            * @throws SystemException if a system exception occurred
871            */
872            public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(
873                    long passwordPolicyId)
874                    throws com.liferay.portal.kernel.exception.SystemException;
875    
876            /**
877            * Returns all the password policies.
878            *
879            * @return the password policies
880            * @throws SystemException if a system exception occurred
881            */
882            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll()
883                    throws com.liferay.portal.kernel.exception.SystemException;
884    
885            /**
886            * Returns a range of all the password policies.
887            *
888            * <p>
889            * 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.
890            * </p>
891            *
892            * @param start the lower bound of the range of password policies
893            * @param end the upper bound of the range of password policies (not inclusive)
894            * @return the range of password policies
895            * @throws SystemException if a system exception occurred
896            */
897            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
898                    int start, int end)
899                    throws com.liferay.portal.kernel.exception.SystemException;
900    
901            /**
902            * Returns an ordered range of all the password policies.
903            *
904            * <p>
905            * 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.
906            * </p>
907            *
908            * @param start the lower bound of the range of password policies
909            * @param end the upper bound of the range of password policies (not inclusive)
910            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
911            * @return the ordered range of password policies
912            * @throws SystemException if a system exception occurred
913            */
914            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
915                    int start, int end,
916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
917                    throws com.liferay.portal.kernel.exception.SystemException;
918    
919            /**
920            * Removes all the password policies from the database.
921            *
922            * @throws SystemException if a system exception occurred
923            */
924            public void removeAll()
925                    throws com.liferay.portal.kernel.exception.SystemException;
926    
927            /**
928            * Returns the number of password policies.
929            *
930            * @return the number of password policies
931            * @throws SystemException if a system exception occurred
932            */
933            public int countAll()
934                    throws com.liferay.portal.kernel.exception.SystemException;
935    }