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