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            * @throws PortalException if a password policy rel with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deletePasswordPolicyRel(long passwordPolicyRelId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyRelId);
069            }
070    
071            /**
072            * Deletes the password policy rel from the database. Also notifies the appropriate model listeners.
073            *
074            * @param passwordPolicyRel the password policy rel
075            * @throws SystemException if a system exception occurred
076            */
077            public void deletePasswordPolicyRel(
078                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyRel);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * 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.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery, start,
115                            end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _passwordPolicyRelLocalService.dynamicQuery(dynamicQuery, start,
139                            end, orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _passwordPolicyRelLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
156                    long passwordPolicyRelId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _passwordPolicyRelLocalService.fetchPasswordPolicyRel(passwordPolicyRelId);
159            }
160    
161            /**
162            * Returns the password policy rel with the primary key.
163            *
164            * @param passwordPolicyRelId the primary key of the password policy rel
165            * @return the password policy rel
166            * @throws PortalException if a password policy rel with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
170                    long passwordPolicyRelId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(passwordPolicyRelId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _passwordPolicyRelLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the password policy rels.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of password policy rels
191            * @param end the upper bound of the range of password policy rels (not inclusive)
192            * @return the range of password policy rels
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.PasswordPolicyRel> getPasswordPolicyRels(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _passwordPolicyRelLocalService.getPasswordPolicyRels(start, end);
199            }
200    
201            /**
202            * Returns the number of password policy rels.
203            *
204            * @return the number of password policy rels
205            * @throws SystemException if a system exception occurred
206            */
207            public int getPasswordPolicyRelsCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _passwordPolicyRelLocalService.getPasswordPolicyRelsCount();
210            }
211    
212            /**
213            * Updates the password policy rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param passwordPolicyRel the password policy rel
216            * @return the password policy rel that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
220                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _passwordPolicyRelLocalService.updatePasswordPolicyRel(passwordPolicyRel);
223            }
224    
225            /**
226            * Updates the password policy rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param passwordPolicyRel the password policy rel
229            * @param merge whether to merge the password policy rel with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
230            * @return the password policy rel that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
234                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
235                    boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _passwordPolicyRelLocalService.updatePasswordPolicyRel(passwordPolicyRel,
238                            merge);
239            }
240    
241            /**
242            * Returns the Spring bean ID for this bean.
243            *
244            * @return the Spring bean ID for this bean
245            */
246            public java.lang.String getBeanIdentifier() {
247                    return _passwordPolicyRelLocalService.getBeanIdentifier();
248            }
249    
250            /**
251            * Sets the Spring bean ID for this bean.
252            *
253            * @param beanIdentifier the Spring bean ID for this bean
254            */
255            public void setBeanIdentifier(java.lang.String beanIdentifier) {
256                    _passwordPolicyRelLocalService.setBeanIdentifier(beanIdentifier);
257            }
258    
259            public com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
260                    long passwordPolicyId, java.lang.String className, long classPK)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return _passwordPolicyRelLocalService.addPasswordPolicyRel(passwordPolicyId,
263                            className, classPK);
264            }
265    
266            public void addPasswordPolicyRels(long passwordPolicyId,
267                    java.lang.String className, long[] classPKs)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    _passwordPolicyRelLocalService.addPasswordPolicyRels(passwordPolicyId,
270                            className, classPKs);
271            }
272    
273            public void deletePasswordPolicyRel(long passwordPolicyId,
274                    java.lang.String className, long classPK)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(passwordPolicyId,
277                            className, classPK);
278            }
279    
280            public void deletePasswordPolicyRel(java.lang.String className, long classPK)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    _passwordPolicyRelLocalService.deletePasswordPolicyRel(className,
283                            classPK);
284            }
285    
286            public void deletePasswordPolicyRels(long passwordPolicyId)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _passwordPolicyRelLocalService.deletePasswordPolicyRels(passwordPolicyId);
289            }
290    
291            public void deletePasswordPolicyRels(long passwordPolicyId,
292                    java.lang.String className, long[] classPKs)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    _passwordPolicyRelLocalService.deletePasswordPolicyRels(passwordPolicyId,
295                            className, classPKs);
296            }
297    
298            public com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel(
299                    java.lang.String className, long classPK)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _passwordPolicyRelLocalService.fetchPasswordPolicyRel(className,
302                            classPK);
303            }
304    
305            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
306                    long passwordPolicyId, java.lang.String className, long classPK)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(passwordPolicyId,
310                            className, classPK);
311            }
312    
313            public com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
314                    java.lang.String className, long classPK)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    return _passwordPolicyRelLocalService.getPasswordPolicyRel(className,
318                            classPK);
319            }
320    
321            public boolean hasPasswordPolicyRel(long passwordPolicyId,
322                    java.lang.String className, long classPK)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _passwordPolicyRelLocalService.hasPasswordPolicyRel(passwordPolicyId,
325                            className, classPK);
326            }
327    
328            /**
329             * @deprecated Renamed to {@link #getWrappedService}
330             */
331            public PasswordPolicyRelLocalService getWrappedPasswordPolicyRelLocalService() {
332                    return _passwordPolicyRelLocalService;
333            }
334    
335            /**
336             * @deprecated Renamed to {@link #setWrappedService}
337             */
338            public void setWrappedPasswordPolicyRelLocalService(
339                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
340                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
341            }
342    
343            public PasswordPolicyRelLocalService getWrappedService() {
344                    return _passwordPolicyRelLocalService;
345            }
346    
347            public void setWrappedService(
348                    PasswordPolicyRelLocalService passwordPolicyRelLocalService) {
349                    _passwordPolicyRelLocalService = passwordPolicyRelLocalService;
350            }
351    
352            private PasswordPolicyRelLocalService _passwordPolicyRelLocalService;
353    }