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