001    /**
002     * Copyright (c) 2000-2010 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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.model.PasswordPolicyRel;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * @author    Brian Wing Shun Chan
028     * @see       PasswordPolicyRelPersistence
029     * @see       PasswordPolicyRelPersistenceImpl
030     * @generated
031     */
032    public class PasswordPolicyRelUtil {
033            /**
034             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
035             */
036            public static void clearCache() {
037                    getPersistence().clearCache();
038            }
039    
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
042             */
043            public static void clearCache(PasswordPolicyRel passwordPolicyRel) {
044                    getPersistence().clearCache(passwordPolicyRel);
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
049             */
050            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051                    throws SystemException {
052                    return getPersistence().countWithDynamicQuery(dynamicQuery);
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
057             */
058            public static List<PasswordPolicyRel> findWithDynamicQuery(
059                    DynamicQuery dynamicQuery) throws SystemException {
060                    return getPersistence().findWithDynamicQuery(dynamicQuery);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
065             */
066            public static List<PasswordPolicyRel> findWithDynamicQuery(
067                    DynamicQuery dynamicQuery, int start, int end)
068                    throws SystemException {
069                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
074             */
075            public static List<PasswordPolicyRel> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery, int start, int end,
077                    OrderByComparator orderByComparator) throws SystemException {
078                    return getPersistence()
079                                       .findWithDynamicQuery(dynamicQuery, start, end,
080                            orderByComparator);
081            }
082    
083            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
085             */
086            public static PasswordPolicyRel remove(PasswordPolicyRel passwordPolicyRel)
087                    throws SystemException {
088                    return getPersistence().remove(passwordPolicyRel);
089            }
090    
091            /**
092             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
093             */
094            public static PasswordPolicyRel update(
095                    PasswordPolicyRel passwordPolicyRel, boolean merge)
096                    throws SystemException {
097                    return getPersistence().update(passwordPolicyRel, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static PasswordPolicyRel update(
104                    PasswordPolicyRel passwordPolicyRel, boolean merge,
105                    ServiceContext serviceContext) throws SystemException {
106                    return getPersistence().update(passwordPolicyRel, merge, serviceContext);
107            }
108    
109            public static void cacheResult(
110                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
111                    getPersistence().cacheResult(passwordPolicyRel);
112            }
113    
114            public static void cacheResult(
115                    java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels) {
116                    getPersistence().cacheResult(passwordPolicyRels);
117            }
118    
119            public static com.liferay.portal.model.PasswordPolicyRel create(
120                    long passwordPolicyRelId) {
121                    return getPersistence().create(passwordPolicyRelId);
122            }
123    
124            public static com.liferay.portal.model.PasswordPolicyRel remove(
125                    long passwordPolicyRelId)
126                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    return getPersistence().remove(passwordPolicyRelId);
129            }
130    
131            public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
132                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
133                    boolean merge)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return getPersistence().updateImpl(passwordPolicyRel, merge);
136            }
137    
138            public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
139                    long passwordPolicyRelId)
140                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    return getPersistence().findByPrimaryKey(passwordPolicyRelId);
143            }
144    
145            public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
146                    long passwordPolicyRelId)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
149            }
150    
151            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
152                    long passwordPolicyId)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getPersistence().findByPasswordPolicyId(passwordPolicyId);
155            }
156    
157            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
158                    long passwordPolicyId, int start, int end)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getPersistence()
161                                       .findByPasswordPolicyId(passwordPolicyId, start, end);
162            }
163    
164            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
165                    long passwordPolicyId, int start, int end,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getPersistence()
169                                       .findByPasswordPolicyId(passwordPolicyId, start, end,
170                            orderByComparator);
171            }
172    
173            public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
174                    long passwordPolicyId,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return getPersistence()
179                                       .findByPasswordPolicyId_First(passwordPolicyId,
180                            orderByComparator);
181            }
182    
183            public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
184                    long passwordPolicyId,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return getPersistence()
189                                       .findByPasswordPolicyId_Last(passwordPolicyId,
190                            orderByComparator);
191            }
192    
193            public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
194                    long passwordPolicyRelId, long passwordPolicyId,
195                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence()
199                                       .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId,
200                            passwordPolicyId, orderByComparator);
201            }
202    
203            public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
204                    long classNameId, long classPK)
205                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return getPersistence().findByC_C(classNameId, classPK);
208            }
209    
210            public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
211                    long classNameId, long classPK)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return getPersistence().fetchByC_C(classNameId, classPK);
214            }
215    
216            public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
217                    long classNameId, long classPK, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getPersistence()
220                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
221            }
222    
223            public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
224                    long passwordPolicyId, long classNameId, long classPK)
225                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
226                            com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence()
228                                       .findByP_C_C(passwordPolicyId, classNameId, classPK);
229            }
230    
231            public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
232                    long passwordPolicyId, long classNameId, long classPK)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return getPersistence()
235                                       .fetchByP_C_C(passwordPolicyId, classNameId, classPK);
236            }
237    
238            public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
239                    long passwordPolicyId, long classNameId, long classPK,
240                    boolean retrieveFromCache)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence()
243                                       .fetchByP_C_C(passwordPolicyId, classNameId, classPK,
244                            retrieveFromCache);
245            }
246    
247            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return getPersistence().findAll();
250            }
251    
252            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
253                    int start, int end)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getPersistence().findAll(start, end);
256            }
257    
258            public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
259                    int start, int end,
260                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getPersistence().findAll(start, end, orderByComparator);
263            }
264    
265            public static void removeByPasswordPolicyId(long passwordPolicyId)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    getPersistence().removeByPasswordPolicyId(passwordPolicyId);
268            }
269    
270            public static void removeByC_C(long classNameId, long classPK)
271                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    getPersistence().removeByC_C(classNameId, classPK);
274            }
275    
276            public static void removeByP_C_C(long passwordPolicyId, long classNameId,
277                    long classPK)
278                    throws com.liferay.portal.NoSuchPasswordPolicyRelException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
281            }
282    
283            public static void removeAll()
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    getPersistence().removeAll();
286            }
287    
288            public static int countByPasswordPolicyId(long passwordPolicyId)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    return getPersistence().countByPasswordPolicyId(passwordPolicyId);
291            }
292    
293            public static int countByC_C(long classNameId, long classPK)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    return getPersistence().countByC_C(classNameId, classPK);
296            }
297    
298            public static int countByP_C_C(long passwordPolicyId, long classNameId,
299                    long classPK)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getPersistence()
302                                       .countByP_C_C(passwordPolicyId, classNameId, classPK);
303            }
304    
305            public static int countAll()
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().countAll();
308            }
309    
310            public static PasswordPolicyRelPersistence getPersistence() {
311                    if (_persistence == null) {
312                            _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName());
313                    }
314    
315                    return _persistence;
316            }
317    
318            public void setPersistence(PasswordPolicyRelPersistence persistence) {
319                    _persistence = persistence;
320            }
321    
322            private static PasswordPolicyRelPersistence _persistence;
323    }