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