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