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