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