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     * <p>
019     * This class is a wrapper for {@link ClassNameLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ClassNameLocalService
024     * @generated
025     */
026    public class ClassNameLocalServiceWrapper implements ClassNameLocalService,
027            ServiceWrapper<ClassNameLocalService> {
028            public ClassNameLocalServiceWrapper(
029                    ClassNameLocalService classNameLocalService) {
030                    _classNameLocalService = classNameLocalService;
031            }
032    
033            /**
034            * Adds the class name to the database. Also notifies the appropriate model listeners.
035            *
036            * @param className the class name
037            * @return the class name that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.ClassName addClassName(
041                    com.liferay.portal.model.ClassName className)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _classNameLocalService.addClassName(className);
044            }
045    
046            /**
047            * Creates a new class name with the primary key. Does not add the class name to the database.
048            *
049            * @param classNameId the primary key for the new class name
050            * @return the new class name
051            */
052            public com.liferay.portal.model.ClassName createClassName(long classNameId) {
053                    return _classNameLocalService.createClassName(classNameId);
054            }
055    
056            /**
057            * Deletes the class name with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param classNameId the primary key of the class name
060            * @return the class name that was removed
061            * @throws PortalException if a class name with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public com.liferay.portal.model.ClassName deleteClassName(long classNameId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _classNameLocalService.deleteClassName(classNameId);
068            }
069    
070            /**
071            * Deletes the class name from the database. Also notifies the appropriate model listeners.
072            *
073            * @param className the class name
074            * @return the class name that was removed
075            * @throws SystemException if a system exception occurred
076            */
077            public com.liferay.portal.model.ClassName deleteClassName(
078                    com.liferay.portal.model.ClassName className)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return _classNameLocalService.deleteClassName(className);
081            }
082    
083            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
084                    return _classNameLocalService.dynamicQuery();
085            }
086    
087            /**
088            * Performs a dynamic query on the database and returns the matching rows.
089            *
090            * @param dynamicQuery the dynamic query
091            * @return the matching rows
092            * @throws SystemException if a system exception occurred
093            */
094            @SuppressWarnings("rawtypes")
095            public java.util.List dynamicQuery(
096                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return _classNameLocalService.dynamicQuery(dynamicQuery);
099            }
100    
101            /**
102            * Performs a dynamic query on the database and returns a range of the matching rows.
103            *
104            * <p>
105            * 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.
106            * </p>
107            *
108            * @param dynamicQuery the dynamic query
109            * @param start the lower bound of the range of model instances
110            * @param end the upper bound of the range of model instances (not inclusive)
111            * @return the range of matching rows
112            * @throws SystemException if a system exception occurred
113            */
114            @SuppressWarnings("rawtypes")
115            public java.util.List dynamicQuery(
116                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
117                    int end) throws com.liferay.portal.kernel.exception.SystemException {
118                    return _classNameLocalService.dynamicQuery(dynamicQuery, start, end);
119            }
120    
121            /**
122            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
123            *
124            * <p>
125            * 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.
126            * </p>
127            *
128            * @param dynamicQuery the dynamic query
129            * @param start the lower bound of the range of model instances
130            * @param end the upper bound of the range of model instances (not inclusive)
131            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
132            * @return the ordered range of matching rows
133            * @throws SystemException if a system exception occurred
134            */
135            @SuppressWarnings("rawtypes")
136            public java.util.List dynamicQuery(
137                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138                    int end,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return _classNameLocalService.dynamicQuery(dynamicQuery, start, end,
142                            orderByComparator);
143            }
144    
145            /**
146            * Returns the number of rows that match the dynamic query.
147            *
148            * @param dynamicQuery the dynamic query
149            * @return the number of rows that match the dynamic query
150            * @throws SystemException if a system exception occurred
151            */
152            public long dynamicQueryCount(
153                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _classNameLocalService.dynamicQueryCount(dynamicQuery);
156            }
157    
158            public com.liferay.portal.model.ClassName fetchClassName(long classNameId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _classNameLocalService.fetchClassName(classNameId);
161            }
162    
163            /**
164            * Returns the class name with the primary key.
165            *
166            * @param classNameId the primary key of the class name
167            * @return the class name
168            * @throws PortalException if a class name with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portal.model.ClassName getClassName(long classNameId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _classNameLocalService.getClassName(classNameId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _classNameLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the class names.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of class names
192            * @param end the upper bound of the range of class names (not inclusive)
193            * @return the range of class names
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portal.model.ClassName> getClassNames(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _classNameLocalService.getClassNames(start, end);
200            }
201    
202            /**
203            * Returns the number of class names.
204            *
205            * @return the number of class names
206            * @throws SystemException if a system exception occurred
207            */
208            public int getClassNamesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _classNameLocalService.getClassNamesCount();
211            }
212    
213            /**
214            * Updates the class name in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param className the class name
217            * @return the class name that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.ClassName updateClassName(
221                    com.liferay.portal.model.ClassName className)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _classNameLocalService.updateClassName(className);
224            }
225    
226            /**
227            * Updates the class name in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param className the class name
230            * @param merge whether to merge the class name 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.
231            * @return the class name that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.ClassName updateClassName(
235                    com.liferay.portal.model.ClassName className, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _classNameLocalService.updateClassName(className, merge);
238            }
239    
240            /**
241            * Returns the Spring bean ID for this bean.
242            *
243            * @return the Spring bean ID for this bean
244            */
245            public java.lang.String getBeanIdentifier() {
246                    return _classNameLocalService.getBeanIdentifier();
247            }
248    
249            /**
250            * Sets the Spring bean ID for this bean.
251            *
252            * @param beanIdentifier the Spring bean ID for this bean
253            */
254            public void setBeanIdentifier(java.lang.String beanIdentifier) {
255                    _classNameLocalService.setBeanIdentifier(beanIdentifier);
256            }
257    
258            public com.liferay.portal.model.ClassName addClassName(
259                    java.lang.String value)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _classNameLocalService.addClassName(value);
262            }
263    
264            public void checkClassNames()
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    _classNameLocalService.checkClassNames();
267            }
268    
269            public com.liferay.portal.model.ClassName fetchClassName(
270                    java.lang.String value)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return _classNameLocalService.fetchClassName(value);
273            }
274    
275            public long fetchClassNameId(java.lang.Class<?> clazz) {
276                    return _classNameLocalService.fetchClassNameId(clazz);
277            }
278    
279            public long fetchClassNameId(java.lang.String value) {
280                    return _classNameLocalService.fetchClassNameId(value);
281            }
282    
283            public com.liferay.portal.model.ClassName getClassName(
284                    java.lang.String value)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return _classNameLocalService.getClassName(value);
287            }
288    
289            public long getClassNameId(java.lang.Class<?> clazz) {
290                    return _classNameLocalService.getClassNameId(clazz);
291            }
292    
293            public long getClassNameId(java.lang.String value) {
294                    return _classNameLocalService.getClassNameId(value);
295            }
296    
297            public java.lang.String getRegistryName() {
298                    return _classNameLocalService.getRegistryName();
299            }
300    
301            public void invalidate() {
302                    _classNameLocalService.invalidate();
303            }
304    
305            /**
306             * @deprecated Renamed to {@link #getWrappedService}
307             */
308            public ClassNameLocalService getWrappedClassNameLocalService() {
309                    return _classNameLocalService;
310            }
311    
312            /**
313             * @deprecated Renamed to {@link #setWrappedService}
314             */
315            public void setWrappedClassNameLocalService(
316                    ClassNameLocalService classNameLocalService) {
317                    _classNameLocalService = classNameLocalService;
318            }
319    
320            public ClassNameLocalService getWrappedService() {
321                    return _classNameLocalService;
322            }
323    
324            public void setWrappedService(ClassNameLocalService classNameLocalService) {
325                    _classNameLocalService = classNameLocalService;
326            }
327    
328            private ClassNameLocalService _classNameLocalService;
329    }