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