001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PasswordPolicyRelLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PasswordPolicyRelLocalService
024     * @generated
025     */
026    public class PasswordPolicyRelLocalServiceWrapper
027            implements PasswordPolicyRelLocalService,
028                    ServiceWrapper<PasswordPolicyRelLocalService> {
029            public PasswordPolicyRelLocalServiceWrapper(
030                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
031                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
032            }
033    
034            /**
035            * Adds the password policy rel to the database. Also notifies the appropriate model listeners.
036            *
037            * @param passwordPolicyRel the password policy rel
038            * @return the password policy rel that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
042                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _passwordPolicyRelLocalService.addPasswordPolicyRel(passwordPolicyRel);
045            }
046    
047            /**
048            * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database.
049            *
050            * @param passwordPolicyRelId the primary key for the new password policy rel
051            * @return the new password policy rel
052            */
053            public com.liferay.portal.model.PasswordPolicyRel createPasswordPolicyRel(
054                    long passwordPolicyRelId) {
055                    return _passwordPolicyRelLocalService.createPasswordPolicyRel(passwordPolicyRelId);
056            }
057    
058            /**
059            * Deletes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param passwordPolicyRelId the primary key of the password policy rel
062            * @return the password policy rel that was removed
063            * @throws PortalException if a password policy rel with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel(
067                    long passwordPolicyRelId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyRelId);
071            }
072    
073            /**
074            * Deletes the password policy rel from the database. Also notifies the appropriate model listeners.
075            *
076            * @param passwordPolicyRel the password policy rel
077            * @return the password policy rel that was removed
078            * @throws SystemException if a system exception occurred
079            */
080            public com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel(
081                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyRel);
084            }
085    
086            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
087                    return _passwordPolicyRelLocalService.dynamicQuery();
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * 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.PasswordPolicyRelModelImpl}. 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.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery, start,
122                            end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.PasswordPolicyRelModelImpl}. 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery, start,
146                            end, orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _passwordPolicyRelLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
163                    long passwordPolicyRelId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _passwordPolicyRelLocalService.fetchPasswordPolicyRel(passwordPolicyRelId);
166            }
167    
168            /**
169            * Returns the password policy rel with the primary key.
170            *
171            * @param passwordPolicyRelId the primary key of the password policy rel
172            * @return the password policy rel
173            * @throws PortalException if a password policy rel with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
177                    long passwordPolicyRelId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(passwordPolicyRelId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _passwordPolicyRelLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the password policy rels.
192            *
193            * <p>
194            * 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.PasswordPolicyRelModelImpl}. 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of password policy rels
198            * @param end the upper bound of the range of password policy rels (not inclusive)
199            * @return the range of password policy rels
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> getPasswordPolicyRels(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _passwordPolicyRelLocalService.getPasswordPolicyRels(start, end);
206            }
207    
208            /**
209            * Returns the number of password policy rels.
210            *
211            * @return the number of password policy rels
212            * @throws SystemException if a system exception occurred
213            */
214            public int getPasswordPolicyRelsCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _passwordPolicyRelLocalService.getPasswordPolicyRelsCount();
217            }
218    
219            /**
220            * Updates the password policy rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param passwordPolicyRel the password policy rel
223            * @return the password policy rel that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
227                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _passwordPolicyRelLocalService.updatePasswordPolicyRel(passwordPolicyRel);
230            }
231    
232            /**
233            * Returns the Spring bean ID for this bean.
234            *
235            * @return the Spring bean ID for this bean
236            */
237            public java.lang.String getBeanIdentifier() {
238                    return _passwordPolicyRelLocalService.getBeanIdentifier();
239            }
240    
241            /**
242            * Sets the Spring bean ID for this bean.
243            *
244            * @param beanIdentifier the Spring bean ID for this bean
245            */
246            public void setBeanIdentifier(java.lang.String beanIdentifier) {
247                    _passwordPolicyRelLocalService.setBeanIdentifier(beanIdentifier);
248            }
249    
250            public com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
251                    long passwordPolicyId, java.lang.String className, long classPK)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    return _passwordPolicyRelLocalService.addPasswordPolicyRel(passwordPolicyId,
254                            className, classPK);
255            }
256    
257            public void addPasswordPolicyRels(long passwordPolicyId,
258                    java.lang.String className, long[] classPKs)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    _passwordPolicyRelLocalService.addPasswordPolicyRels(passwordPolicyId,
261                            className, classPKs);
262            }
263    
264            public void deletePasswordPolicyRel(long passwordPolicyId,
265                    java.lang.String className, long classPK)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyId,
268                            className, classPK);
269            }
270    
271            public void deletePasswordPolicyRel(java.lang.String className, long classPK)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(className,
274                            classPK);
275            }
276    
277            public void deletePasswordPolicyRels(long passwordPolicyId)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _passwordPolicyRelLocalService.deletePasswordPolicyRels(passwordPolicyId);
280            }
281    
282            public void deletePasswordPolicyRels(long passwordPolicyId,
283                    java.lang.String className, long[] classPKs)
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    _passwordPolicyRelLocalService.deletePasswordPolicyRels(passwordPolicyId,
286                            className, classPKs);
287            }
288    
289            public com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
290                    java.lang.String className, long classPK)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    return _passwordPolicyRelLocalService.fetchPasswordPolicyRel(className,
293                            classPK);
294            }
295    
296            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
297                    long passwordPolicyId, java.lang.String className, long classPK)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(passwordPolicyId,
301                            className, classPK);
302            }
303    
304            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
305                    java.lang.String className, long classPK)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(className,
309                            classPK);
310            }
311    
312            public boolean hasPasswordPolicyRel(long passwordPolicyId,
313                    java.lang.String className, long classPK)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _passwordPolicyRelLocalService.hasPasswordPolicyRel(passwordPolicyId,
316                            className, classPK);
317            }
318    
319            /**
320             * @deprecated Renamed to {@link #getWrappedService}
321             */
322            public PasswordPolicyRelLocalService getWrappedPasswordPolicyRelLocalService() {
323                    return _passwordPolicyRelLocalService;
324            }
325    
326            /**
327             * @deprecated Renamed to {@link #setWrappedService}
328             */
329            public void setWrappedPasswordPolicyRelLocalService(
330                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
331                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
332            }
333    
334            public PasswordPolicyRelLocalService getWrappedService() {
335                    return _passwordPolicyRelLocalService;
336            }
337    
338            public void setWrappedService(
339                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
340                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
341            }
342    
343            private PasswordPolicyRelLocalService _passwordPolicyRelLocalService;
344    }