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