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