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. 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.ClassNameModelImpl}. 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.
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. 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.ClassNameModelImpl}. 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.
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. 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.ClassNameModelImpl}. 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.
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            * Returns the Spring bean ID for this bean.
228            *
229            * @return the Spring bean ID for this bean
230            */
231            public java.lang.String getBeanIdentifier() {
232                    return _classNameLocalService.getBeanIdentifier();
233            }
234    
235            /**
236            * Sets the Spring bean ID for this bean.
237            *
238            * @param beanIdentifier the Spring bean ID for this bean
239            */
240            public void setBeanIdentifier(java.lang.String beanIdentifier) {
241                    _classNameLocalService.setBeanIdentifier(beanIdentifier);
242            }
243    
244            public com.liferay.portal.model.ClassName addClassName(
245                    java.lang.String value)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _classNameLocalService.addClassName(value);
248            }
249    
250            public void checkClassNames()
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    _classNameLocalService.checkClassNames();
253            }
254    
255            public com.liferay.portal.model.ClassName fetchClassName(
256                    java.lang.String value)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _classNameLocalService.fetchClassName(value);
259            }
260    
261            public long fetchClassNameId(java.lang.Class<?> clazz) {
262                    return _classNameLocalService.fetchClassNameId(clazz);
263            }
264    
265            public long fetchClassNameId(java.lang.String value) {
266                    return _classNameLocalService.fetchClassNameId(value);
267            }
268    
269            public com.liferay.portal.model.ClassName getClassName(
270                    java.lang.String value)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return _classNameLocalService.getClassName(value);
273            }
274    
275            public long getClassNameId(java.lang.Class<?> clazz) {
276                    return _classNameLocalService.getClassNameId(clazz);
277            }
278    
279            public long getClassNameId(java.lang.String value) {
280                    return _classNameLocalService.getClassNameId(value);
281            }
282    
283            public java.lang.String getRegistryName() {
284                    return _classNameLocalService.getRegistryName();
285            }
286    
287            public void invalidate() {
288                    _classNameLocalService.invalidate();
289            }
290    
291            /**
292             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
293             */
294            public ClassNameLocalService getWrappedClassNameLocalService() {
295                    return _classNameLocalService;
296            }
297    
298            /**
299             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
300             */
301            public void setWrappedClassNameLocalService(
302                    ClassNameLocalService classNameLocalService) {
303                    _classNameLocalService = classNameLocalService;
304            }
305    
306            public ClassNameLocalService getWrappedService() {
307                    return _classNameLocalService;
308            }
309    
310            public void setWrappedService(ClassNameLocalService classNameLocalService) {
311                    _classNameLocalService = classNameLocalService;
312            }
313    
314            private ClassNameLocalService _classNameLocalService;
315    }