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;
016    
017    /**
018     * Provides a wrapper for {@link PasswordPolicyRelLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see PasswordPolicyRelLocalService
022     * @generated
023     */
024    public class PasswordPolicyRelLocalServiceWrapper
025            implements PasswordPolicyRelLocalService,
026                    ServiceWrapper<PasswordPolicyRelLocalService> {
027            public PasswordPolicyRelLocalServiceWrapper(
028                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
029                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
030            }
031    
032            /**
033            * Adds the password policy rel to the database. Also notifies the appropriate model listeners.
034            *
035            * @param passwordPolicyRel the password policy rel
036            * @return the password policy rel that was added
037            * @throws SystemException if a system exception occurred
038            */
039            @Override
040            public com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
041                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _passwordPolicyRelLocalService.addPasswordPolicyRel(passwordPolicyRel);
044            }
045    
046            /**
047            * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database.
048            *
049            * @param passwordPolicyRelId the primary key for the new password policy rel
050            * @return the new password policy rel
051            */
052            @Override
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            @Override
067            public com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel(
068                    long passwordPolicyRelId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyRelId);
072            }
073    
074            /**
075            * Deletes the password policy rel from the database. Also notifies the appropriate model listeners.
076            *
077            * @param passwordPolicyRel the password policy rel
078            * @return the password policy rel that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            @Override
082            public com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel(
083                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyRel);
086            }
087    
088            @Override
089            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
090                    return _passwordPolicyRelLocalService.dynamicQuery();
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns the matching rows.
095            *
096            * @param dynamicQuery the dynamic query
097            * @return the matching rows
098            * @throws SystemException if a system exception occurred
099            */
100            @Override
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery);
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            * @throws SystemException if a system exception occurred
120            */
121            @Override
122            @SuppressWarnings("rawtypes")
123            public java.util.List dynamicQuery(
124                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
125                    int end) throws com.liferay.portal.kernel.exception.SystemException {
126                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery, start,
127                            end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery, start,
152                            end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _passwordPolicyRelLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _passwordPolicyRelLocalService.dynamicQueryCount(dynamicQuery,
183                            projection);
184            }
185    
186            @Override
187            public com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
188                    long passwordPolicyRelId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _passwordPolicyRelLocalService.fetchPasswordPolicyRel(passwordPolicyRelId);
191            }
192    
193            /**
194            * Returns the password policy rel with the primary key.
195            *
196            * @param passwordPolicyRelId the primary key of the password policy rel
197            * @return the password policy rel
198            * @throws PortalException if a password policy rel with the primary key could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Override
202            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
203                    long passwordPolicyRelId)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(passwordPolicyRelId);
207            }
208    
209            @Override
210            public com.liferay.portal.model.PersistedModel getPersistedModel(
211                    java.io.Serializable primaryKeyObj)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return _passwordPolicyRelLocalService.getPersistedModel(primaryKeyObj);
215            }
216    
217            /**
218            * Returns a range of all the password policy rels.
219            *
220            * <p>
221            * 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.
222            * </p>
223            *
224            * @param start the lower bound of the range of password policy rels
225            * @param end the upper bound of the range of password policy rels (not inclusive)
226            * @return the range of password policy rels
227            * @throws SystemException if a system exception occurred
228            */
229            @Override
230            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> getPasswordPolicyRels(
231                    int start, int end)
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _passwordPolicyRelLocalService.getPasswordPolicyRels(start, end);
234            }
235    
236            /**
237            * Returns the number of password policy rels.
238            *
239            * @return the number of password policy rels
240            * @throws SystemException if a system exception occurred
241            */
242            @Override
243            public int getPasswordPolicyRelsCount()
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _passwordPolicyRelLocalService.getPasswordPolicyRelsCount();
246            }
247    
248            /**
249            * Updates the password policy rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
250            *
251            * @param passwordPolicyRel the password policy rel
252            * @return the password policy rel that was updated
253            * @throws SystemException if a system exception occurred
254            */
255            @Override
256            public com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
257                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return _passwordPolicyRelLocalService.updatePasswordPolicyRel(passwordPolicyRel);
260            }
261    
262            /**
263            * Returns the Spring bean ID for this bean.
264            *
265            * @return the Spring bean ID for this bean
266            */
267            @Override
268            public java.lang.String getBeanIdentifier() {
269                    return _passwordPolicyRelLocalService.getBeanIdentifier();
270            }
271    
272            /**
273            * Sets the Spring bean ID for this bean.
274            *
275            * @param beanIdentifier the Spring bean ID for this bean
276            */
277            @Override
278            public void setBeanIdentifier(java.lang.String beanIdentifier) {
279                    _passwordPolicyRelLocalService.setBeanIdentifier(beanIdentifier);
280            }
281    
282            @Override
283            public com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
284                    long passwordPolicyId, java.lang.String className, long classPK)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return _passwordPolicyRelLocalService.addPasswordPolicyRel(passwordPolicyId,
287                            className, classPK);
288            }
289    
290            @Override
291            public void addPasswordPolicyRels(long passwordPolicyId,
292                    java.lang.String className, long[] classPKs)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    _passwordPolicyRelLocalService.addPasswordPolicyRels(passwordPolicyId,
295                            className, classPKs);
296            }
297    
298            @Override
299            public void deletePasswordPolicyRel(long passwordPolicyId,
300                    java.lang.String className, long classPK)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyId,
303                            className, classPK);
304            }
305    
306            @Override
307            public void deletePasswordPolicyRel(java.lang.String className, long classPK)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(className,
310                            classPK);
311            }
312    
313            @Override
314            public void deletePasswordPolicyRels(long passwordPolicyId)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    _passwordPolicyRelLocalService.deletePasswordPolicyRels(passwordPolicyId);
317            }
318    
319            @Override
320            public void deletePasswordPolicyRels(long passwordPolicyId,
321                    java.lang.String className, long[] classPKs)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    _passwordPolicyRelLocalService.deletePasswordPolicyRels(passwordPolicyId,
324                            className, classPKs);
325            }
326    
327            @Override
328            public com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
329                    java.lang.String className, long classPK)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _passwordPolicyRelLocalService.fetchPasswordPolicyRel(className,
332                            classPK);
333            }
334    
335            @Override
336            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
337                    long passwordPolicyId, java.lang.String className, long classPK)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(passwordPolicyId,
341                            className, classPK);
342            }
343    
344            @Override
345            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
346                    java.lang.String className, long classPK)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(className,
350                            classPK);
351            }
352    
353            @Override
354            public boolean hasPasswordPolicyRel(long passwordPolicyId,
355                    java.lang.String className, long classPK)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _passwordPolicyRelLocalService.hasPasswordPolicyRel(passwordPolicyId,
358                            className, classPK);
359            }
360    
361            /**
362             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
363             */
364            public PasswordPolicyRelLocalService getWrappedPasswordPolicyRelLocalService() {
365                    return _passwordPolicyRelLocalService;
366            }
367    
368            /**
369             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
370             */
371            public void setWrappedPasswordPolicyRelLocalService(
372                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
373                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
374            }
375    
376            @Override
377            public PasswordPolicyRelLocalService getWrappedService() {
378                    return _passwordPolicyRelLocalService;
379            }
380    
381            @Override
382            public void setWrappedService(
383                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
384                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
385            }
386    
387            private PasswordPolicyRelLocalService _passwordPolicyRelLocalService;
388    }