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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.PasswordPolicy;
020    
021    /**
022     * The persistence interface for the password policy service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see PasswordPolicyPersistenceImpl
030     * @see PasswordPolicyUtil
031     * @generated
032     */
033    @ProviderType
034    public interface PasswordPolicyPersistence extends BasePersistence<PasswordPolicy> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns all the password policies where uuid = &#63;.
043            *
044            * @param uuid the uuid
045            * @return the matching password policies
046            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid(
049                    java.lang.String uuid)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the password policies where uuid = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of password policies
061            * @param end the upper bound of the range of password policies (not inclusive)
062            * @return the range of matching password policies
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid(
066                    java.lang.String uuid, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the password policies where uuid = &#63;.
071            *
072            * <p>
073            * 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.
074            * </p>
075            *
076            * @param uuid the uuid
077            * @param start the lower bound of the range of password policies
078            * @param end the upper bound of the range of password policies (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching password policies
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid(
084                    java.lang.String uuid, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first password policy in the ordered set where uuid = &#63;.
090            *
091            * @param uuid the uuid
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching password policy
094            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.PasswordPolicy findByUuid_First(
098                    java.lang.String uuid,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchPasswordPolicyException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first password policy in the ordered set where uuid = &#63;.
105            *
106            * @param uuid the uuid
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.PasswordPolicy fetchByUuid_First(
112                    java.lang.String uuid,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last password policy in the ordered set where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching password policy
122            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.PasswordPolicy findByUuid_Last(
126                    java.lang.String uuid,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchPasswordPolicyException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns the last password policy in the ordered set where uuid = &#63;.
133            *
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found
137            * @throws SystemException if a system exception occurred
138            */
139            public com.liferay.portal.model.PasswordPolicy fetchByUuid_Last(
140                    java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the password policies before and after the current password policy in the ordered set where uuid = &#63;.
146            *
147            * @param passwordPolicyId the primary key of the current password policy
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next password policy
151            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.PasswordPolicy[] findByUuid_PrevAndNext(
155                    long passwordPolicyId, java.lang.String uuid,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchPasswordPolicyException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Returns all the password policies that the user has permission to view where uuid = &#63;.
162            *
163            * @param uuid the uuid
164            * @return the matching password policies that the user has permission to view
165            * @throws SystemException if a system exception occurred
166            */
167            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid(
168                    java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns a range of all the password policies that the user has permission to view where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid
179            * @param start the lower bound of the range of password policies
180            * @param end the upper bound of the range of password policies (not inclusive)
181            * @return the range of matching password policies that the user has permission to view
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid(
185                    java.lang.String uuid, int start, int end)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns an ordered range of all the password policies that the user has permissions to view where uuid = &#63;.
190            *
191            * <p>
192            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.
193            * </p>
194            *
195            * @param uuid the uuid
196            * @param start the lower bound of the range of password policies
197            * @param end the upper bound of the range of password policies (not inclusive)
198            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
199            * @return the ordered range of matching password policies that the user has permission to view
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid(
203                    java.lang.String uuid, int start, int end,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * 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;.
209            *
210            * @param passwordPolicyId the primary key of the current password policy
211            * @param uuid the uuid
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next password policy
214            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.PasswordPolicy[] filterFindByUuid_PrevAndNext(
218                    long passwordPolicyId, java.lang.String uuid,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.NoSuchPasswordPolicyException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Removes all the password policies where uuid = &#63; from the database.
225            *
226            * @param uuid the uuid
227            * @throws SystemException if a system exception occurred
228            */
229            public void removeByUuid(java.lang.String uuid)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            /**
233            * Returns the number of password policies where uuid = &#63;.
234            *
235            * @param uuid the uuid
236            * @return the number of matching password policies
237            * @throws SystemException if a system exception occurred
238            */
239            public int countByUuid(java.lang.String uuid)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns the number of password policies that the user has permission to view where uuid = &#63;.
244            *
245            * @param uuid the uuid
246            * @return the number of matching password policies that the user has permission to view
247            * @throws SystemException if a system exception occurred
248            */
249            public int filterCountByUuid(java.lang.String uuid)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Returns all the password policies where uuid = &#63; and companyId = &#63;.
254            *
255            * @param uuid the uuid
256            * @param companyId the company ID
257            * @return the matching password policies
258            * @throws SystemException if a system exception occurred
259            */
260            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C(
261                    java.lang.String uuid, long companyId)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns a range of all the password policies where uuid = &#63; and companyId = &#63;.
266            *
267            * <p>
268            * 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.
269            * </p>
270            *
271            * @param uuid the uuid
272            * @param companyId the company ID
273            * @param start the lower bound of the range of password policies
274            * @param end the upper bound of the range of password policies (not inclusive)
275            * @return the range of matching password policies
276            * @throws SystemException if a system exception occurred
277            */
278            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C(
279                    java.lang.String uuid, long companyId, int start, int end)
280                    throws com.liferay.portal.kernel.exception.SystemException;
281    
282            /**
283            * Returns an ordered range of all the password policies where uuid = &#63; and companyId = &#63;.
284            *
285            * <p>
286            * 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.
287            * </p>
288            *
289            * @param uuid the uuid
290            * @param companyId the company ID
291            * @param start the lower bound of the range of password policies
292            * @param end the upper bound of the range of password policies (not inclusive)
293            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
294            * @return the ordered range of matching password policies
295            * @throws SystemException if a system exception occurred
296            */
297            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C(
298                    java.lang.String uuid, long companyId, int start, int end,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            /**
303            * Returns the first password policy in the ordered set where uuid = &#63; and companyId = &#63;.
304            *
305            * @param uuid the uuid
306            * @param companyId the company ID
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308            * @return the first matching password policy
309            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public com.liferay.portal.model.PasswordPolicy findByUuid_C_First(
313                    java.lang.String uuid, long companyId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.NoSuchPasswordPolicyException,
316                            com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns the first password policy in the ordered set where uuid = &#63; and companyId = &#63;.
320            *
321            * @param uuid the uuid
322            * @param companyId the company ID
323            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
324            * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portal.model.PasswordPolicy fetchByUuid_C_First(
328                    java.lang.String uuid, long companyId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.kernel.exception.SystemException;
331    
332            /**
333            * Returns the last password policy in the ordered set where uuid = &#63; and companyId = &#63;.
334            *
335            * @param uuid the uuid
336            * @param companyId the company ID
337            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
338            * @return the last matching password policy
339            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
340            * @throws SystemException if a system exception occurred
341            */
342            public com.liferay.portal.model.PasswordPolicy findByUuid_C_Last(
343                    java.lang.String uuid, long companyId,
344                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
345                    throws com.liferay.portal.NoSuchPasswordPolicyException,
346                            com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Returns the last password policy in the ordered set where uuid = &#63; and companyId = &#63;.
350            *
351            * @param uuid the uuid
352            * @param companyId the company ID
353            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
354            * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found
355            * @throws SystemException if a system exception occurred
356            */
357            public com.liferay.portal.model.PasswordPolicy fetchByUuid_C_Last(
358                    java.lang.String uuid, long companyId,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Returns the password policies before and after the current password policy in the ordered set where uuid = &#63; and companyId = &#63;.
364            *
365            * @param passwordPolicyId the primary key of the current password policy
366            * @param uuid the uuid
367            * @param companyId the company ID
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the previous, current, and next password policy
370            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
371            * @throws SystemException if a system exception occurred
372            */
373            public com.liferay.portal.model.PasswordPolicy[] findByUuid_C_PrevAndNext(
374                    long passwordPolicyId, java.lang.String uuid, long companyId,
375                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376                    throws com.liferay.portal.NoSuchPasswordPolicyException,
377                            com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * Returns all the password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
381            *
382            * @param uuid the uuid
383            * @param companyId the company ID
384            * @return the matching password policies that the user has permission to view
385            * @throws SystemException if a system exception occurred
386            */
387            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C(
388                    java.lang.String uuid, long companyId)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns a range of all the password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
393            *
394            * <p>
395            * 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.
396            * </p>
397            *
398            * @param uuid the uuid
399            * @param companyId the company ID
400            * @param start the lower bound of the range of password policies
401            * @param end the upper bound of the range of password policies (not inclusive)
402            * @return the range of matching password policies that the user has permission to view
403            * @throws SystemException if a system exception occurred
404            */
405            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C(
406                    java.lang.String uuid, long companyId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            /**
410            * Returns an ordered range of all the password policies that the user has permissions to view where uuid = &#63; and companyId = &#63;.
411            *
412            * <p>
413            * 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.
414            * </p>
415            *
416            * @param uuid the uuid
417            * @param companyId the company ID
418            * @param start the lower bound of the range of password policies
419            * @param end the upper bound of the range of password policies (not inclusive)
420            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
421            * @return the ordered range of matching password policies that the user has permission to view
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C(
425                    java.lang.String uuid, long companyId, int start, int end,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * 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;.
431            *
432            * @param passwordPolicyId the primary key of the current password policy
433            * @param uuid the uuid
434            * @param companyId the company ID
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the previous, current, and next password policy
437            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public com.liferay.portal.model.PasswordPolicy[] filterFindByUuid_C_PrevAndNext(
441                    long passwordPolicyId, java.lang.String uuid, long companyId,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.NoSuchPasswordPolicyException,
444                            com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Removes all the password policies where uuid = &#63; and companyId = &#63; from the database.
448            *
449            * @param uuid the uuid
450            * @param companyId the company ID
451            * @throws SystemException if a system exception occurred
452            */
453            public void removeByUuid_C(java.lang.String uuid, long companyId)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Returns the number of password policies where uuid = &#63; and companyId = &#63;.
458            *
459            * @param uuid the uuid
460            * @param companyId the company ID
461            * @return the number of matching password policies
462            * @throws SystemException if a system exception occurred
463            */
464            public int countByUuid_C(java.lang.String uuid, long companyId)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the number of password policies that the user has permission to view where uuid = &#63; and companyId = &#63;.
469            *
470            * @param uuid the uuid
471            * @param companyId the company ID
472            * @return the number of matching password policies that the user has permission to view
473            * @throws SystemException if a system exception occurred
474            */
475            public int filterCountByUuid_C(java.lang.String uuid, long companyId)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Returns all the password policies where companyId = &#63;.
480            *
481            * @param companyId the company ID
482            * @return the matching password policies
483            * @throws SystemException if a system exception occurred
484            */
485            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId(
486                    long companyId)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Returns a range of all the password policies where companyId = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param companyId the company ID
497            * @param start the lower bound of the range of password policies
498            * @param end the upper bound of the range of password policies (not inclusive)
499            * @return the range of matching password policies
500            * @throws SystemException if a system exception occurred
501            */
502            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId(
503                    long companyId, int start, int end)
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Returns an ordered range of all the password policies where companyId = &#63;.
508            *
509            * <p>
510            * 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.
511            * </p>
512            *
513            * @param companyId the company ID
514            * @param start the lower bound of the range of password policies
515            * @param end the upper bound of the range of password policies (not inclusive)
516            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
517            * @return the ordered range of matching password policies
518            * @throws SystemException if a system exception occurred
519            */
520            public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId(
521                    long companyId, int start, int end,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Returns the first password policy in the ordered set where companyId = &#63;.
527            *
528            * @param companyId the company ID
529            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
530            * @return the first matching password policy
531            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
532            * @throws SystemException if a system exception occurred
533            */
534            public com.liferay.portal.model.PasswordPolicy findByCompanyId_First(
535                    long companyId,
536                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
537                    throws com.liferay.portal.NoSuchPasswordPolicyException,
538                            com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Returns the first password policy in the ordered set where companyId = &#63;.
542            *
543            * @param companyId the company ID
544            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
545            * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found
546            * @throws SystemException if a system exception occurred
547            */
548            public com.liferay.portal.model.PasswordPolicy fetchByCompanyId_First(
549                    long companyId,
550                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    
553            /**
554            * Returns the last password policy in the ordered set where companyId = &#63;.
555            *
556            * @param companyId the company ID
557            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
558            * @return the last matching password policy
559            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
560            * @throws SystemException if a system exception occurred
561            */
562            public com.liferay.portal.model.PasswordPolicy findByCompanyId_Last(
563                    long companyId,
564                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
565                    throws com.liferay.portal.NoSuchPasswordPolicyException,
566                            com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Returns the last password policy in the ordered set where companyId = &#63;.
570            *
571            * @param companyId the company ID
572            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
573            * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found
574            * @throws SystemException if a system exception occurred
575            */
576            public com.liferay.portal.model.PasswordPolicy fetchByCompanyId_Last(
577                    long companyId,
578                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * Returns the password policies before and after the current password policy in the ordered set where companyId = &#63;.
583            *
584            * @param passwordPolicyId the primary key of the current password policy
585            * @param companyId the company ID
586            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
587            * @return the previous, current, and next password policy
588            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
589            * @throws SystemException if a system exception occurred
590            */
591            public com.liferay.portal.model.PasswordPolicy[] findByCompanyId_PrevAndNext(
592                    long passwordPolicyId, long companyId,
593                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
594                    throws com.liferay.portal.NoSuchPasswordPolicyException,
595                            com.liferay.portal.kernel.exception.SystemException;
596    
597            /**
598            * Returns all the password policies that the user has permission to view where companyId = &#63;.
599            *
600            * @param companyId the company ID
601            * @return the matching password policies that the user has permission to view
602            * @throws SystemException if a system exception occurred
603            */
604            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId(
605                    long companyId)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Returns a range of all the password policies that the user has permission to view where companyId = &#63;.
610            *
611            * <p>
612            * 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.
613            * </p>
614            *
615            * @param companyId the company ID
616            * @param start the lower bound of the range of password policies
617            * @param end the upper bound of the range of password policies (not inclusive)
618            * @return the range of matching password policies that the user has permission to view
619            * @throws SystemException if a system exception occurred
620            */
621            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId(
622                    long companyId, int start, int end)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns an ordered range of all the password policies that the user has permissions to view where companyId = &#63;.
627            *
628            * <p>
629            * 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.
630            * </p>
631            *
632            * @param companyId the company ID
633            * @param start the lower bound of the range of password policies
634            * @param end the upper bound of the range of password policies (not inclusive)
635            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
636            * @return the ordered range of matching password policies that the user has permission to view
637            * @throws SystemException if a system exception occurred
638            */
639            public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId(
640                    long companyId, int start, int end,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException;
643    
644            /**
645            * 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;.
646            *
647            * @param passwordPolicyId the primary key of the current password policy
648            * @param companyId the company ID
649            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
650            * @return the previous, current, and next password policy
651            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
652            * @throws SystemException if a system exception occurred
653            */
654            public com.liferay.portal.model.PasswordPolicy[] filterFindByCompanyId_PrevAndNext(
655                    long passwordPolicyId, long companyId,
656                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
657                    throws com.liferay.portal.NoSuchPasswordPolicyException,
658                            com.liferay.portal.kernel.exception.SystemException;
659    
660            /**
661            * Removes all the password policies where companyId = &#63; from the database.
662            *
663            * @param companyId the company ID
664            * @throws SystemException if a system exception occurred
665            */
666            public void removeByCompanyId(long companyId)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            /**
670            * Returns the number of password policies where companyId = &#63;.
671            *
672            * @param companyId the company ID
673            * @return the number of matching password policies
674            * @throws SystemException if a system exception occurred
675            */
676            public int countByCompanyId(long companyId)
677                    throws com.liferay.portal.kernel.exception.SystemException;
678    
679            /**
680            * Returns the number of password policies that the user has permission to view where companyId = &#63;.
681            *
682            * @param companyId the company ID
683            * @return the number of matching password policies that the user has permission to view
684            * @throws SystemException if a system exception occurred
685            */
686            public int filterCountByCompanyId(long companyId)
687                    throws com.liferay.portal.kernel.exception.SystemException;
688    
689            /**
690            * Returns the password policy where companyId = &#63; and defaultPolicy = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
691            *
692            * @param companyId the company ID
693            * @param defaultPolicy the default policy
694            * @return the matching password policy
695            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
696            * @throws SystemException if a system exception occurred
697            */
698            public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId,
699                    boolean defaultPolicy)
700                    throws com.liferay.portal.NoSuchPasswordPolicyException,
701                            com.liferay.portal.kernel.exception.SystemException;
702    
703            /**
704            * 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.
705            *
706            * @param companyId the company ID
707            * @param defaultPolicy the default policy
708            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
709            * @throws SystemException if a system exception occurred
710            */
711            public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
712                    boolean defaultPolicy)
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * 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.
717            *
718            * @param companyId the company ID
719            * @param defaultPolicy the default policy
720            * @param retrieveFromCache whether to use the finder cache
721            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId,
725                    boolean defaultPolicy, boolean retrieveFromCache)
726                    throws com.liferay.portal.kernel.exception.SystemException;
727    
728            /**
729            * Removes the password policy where companyId = &#63; and defaultPolicy = &#63; from the database.
730            *
731            * @param companyId the company ID
732            * @param defaultPolicy the default policy
733            * @return the password policy that was removed
734            * @throws SystemException if a system exception occurred
735            */
736            public com.liferay.portal.model.PasswordPolicy removeByC_DP(
737                    long companyId, boolean defaultPolicy)
738                    throws com.liferay.portal.NoSuchPasswordPolicyException,
739                            com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns the number of password policies where companyId = &#63; and defaultPolicy = &#63;.
743            *
744            * @param companyId the company ID
745            * @param defaultPolicy the default policy
746            * @return the number of matching password policies
747            * @throws SystemException if a system exception occurred
748            */
749            public int countByC_DP(long companyId, boolean defaultPolicy)
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Returns the password policy where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
754            *
755            * @param companyId the company ID
756            * @param name the name
757            * @return the matching password policy
758            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found
759            * @throws SystemException if a system exception occurred
760            */
761            public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId,
762                    java.lang.String name)
763                    throws com.liferay.portal.NoSuchPasswordPolicyException,
764                            com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * 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.
768            *
769            * @param companyId the company ID
770            * @param name the name
771            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
772            * @throws SystemException if a system exception occurred
773            */
774            public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
775                    java.lang.String name)
776                    throws com.liferay.portal.kernel.exception.SystemException;
777    
778            /**
779            * 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.
780            *
781            * @param companyId the company ID
782            * @param name the name
783            * @param retrieveFromCache whether to use the finder cache
784            * @return the matching password policy, or <code>null</code> if a matching password policy could not be found
785            * @throws SystemException if a system exception occurred
786            */
787            public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId,
788                    java.lang.String name, boolean retrieveFromCache)
789                    throws com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Removes the password policy where companyId = &#63; and name = &#63; from the database.
793            *
794            * @param companyId the company ID
795            * @param name the name
796            * @return the password policy that was removed
797            * @throws SystemException if a system exception occurred
798            */
799            public com.liferay.portal.model.PasswordPolicy removeByC_N(long companyId,
800                    java.lang.String name)
801                    throws com.liferay.portal.NoSuchPasswordPolicyException,
802                            com.liferay.portal.kernel.exception.SystemException;
803    
804            /**
805            * Returns the number of password policies where companyId = &#63; and name = &#63;.
806            *
807            * @param companyId the company ID
808            * @param name the name
809            * @return the number of matching password policies
810            * @throws SystemException if a system exception occurred
811            */
812            public int countByC_N(long companyId, java.lang.String name)
813                    throws com.liferay.portal.kernel.exception.SystemException;
814    
815            /**
816            * Caches the password policy in the entity cache if it is enabled.
817            *
818            * @param passwordPolicy the password policy
819            */
820            public void cacheResult(
821                    com.liferay.portal.model.PasswordPolicy passwordPolicy);
822    
823            /**
824            * Caches the password policies in the entity cache if it is enabled.
825            *
826            * @param passwordPolicies the password policies
827            */
828            public void cacheResult(
829                    java.util.List<com.liferay.portal.model.PasswordPolicy> passwordPolicies);
830    
831            /**
832            * Creates a new password policy with the primary key. Does not add the password policy to the database.
833            *
834            * @param passwordPolicyId the primary key for the new password policy
835            * @return the new password policy
836            */
837            public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId);
838    
839            /**
840            * Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.
841            *
842            * @param passwordPolicyId the primary key of the password policy
843            * @return the password policy that was removed
844            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId)
848                    throws com.liferay.portal.NoSuchPasswordPolicyException,
849                            com.liferay.portal.kernel.exception.SystemException;
850    
851            public com.liferay.portal.model.PasswordPolicy updateImpl(
852                    com.liferay.portal.model.PasswordPolicy passwordPolicy)
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Returns the password policy with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found.
857            *
858            * @param passwordPolicyId the primary key of the password policy
859            * @return the password policy
860            * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found
861            * @throws SystemException if a system exception occurred
862            */
863            public com.liferay.portal.model.PasswordPolicy findByPrimaryKey(
864                    long passwordPolicyId)
865                    throws com.liferay.portal.NoSuchPasswordPolicyException,
866                            com.liferay.portal.kernel.exception.SystemException;
867    
868            /**
869            * Returns the password policy with the primary key or returns <code>null</code> if it could not be found.
870            *
871            * @param passwordPolicyId the primary key of the password policy
872            * @return the password policy, or <code>null</code> if a password policy with the primary key could not be found
873            * @throws SystemException if a system exception occurred
874            */
875            public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey(
876                    long passwordPolicyId)
877                    throws com.liferay.portal.kernel.exception.SystemException;
878    
879            /**
880            * Returns all the password policies.
881            *
882            * @return the password policies
883            * @throws SystemException if a system exception occurred
884            */
885            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll()
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Returns a range of all the password policies.
890            *
891            * <p>
892            * 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.
893            * </p>
894            *
895            * @param start the lower bound of the range of password policies
896            * @param end the upper bound of the range of password policies (not inclusive)
897            * @return the range of password policies
898            * @throws SystemException if a system exception occurred
899            */
900            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
901                    int start, int end)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Returns an ordered range of all the password policies.
906            *
907            * <p>
908            * 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.
909            * </p>
910            *
911            * @param start the lower bound of the range of password policies
912            * @param end the upper bound of the range of password policies (not inclusive)
913            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
914            * @return the ordered range of password policies
915            * @throws SystemException if a system exception occurred
916            */
917            public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(
918                    int start, int end,
919                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
920                    throws com.liferay.portal.kernel.exception.SystemException;
921    
922            /**
923            * Removes all the password policies from the database.
924            *
925            * @throws SystemException if a system exception occurred
926            */
927            public void removeAll()
928                    throws com.liferay.portal.kernel.exception.SystemException;
929    
930            /**
931            * Returns the number of password policies.
932            *
933            * @return the number of password policies
934            * @throws SystemException if a system exception occurred
935            */
936            public int countAll()
937                    throws com.liferay.portal.kernel.exception.SystemException;
938    }