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.portlet.dynamicdatamapping.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link DDMStructureVersionLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DDMStructureVersionLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DDMStructureVersionLocalServiceWrapper
030            implements DDMStructureVersionLocalService,
031                    ServiceWrapper<DDMStructureVersionLocalService> {
032            public DDMStructureVersionLocalServiceWrapper(
033                    DDMStructureVersionLocalService ddmStructureVersionLocalService) {
034                    _ddmStructureVersionLocalService = ddmStructureVersionLocalService;
035            }
036    
037            /**
038            * Adds the d d m structure version to the database. Also notifies the appropriate model listeners.
039            *
040            * @param ddmStructureVersion the d d m structure version
041            * @return the d d m structure version that was added
042            */
043            @Override
044            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion addDDMStructureVersion(
045                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion ddmStructureVersion) {
046                    return _ddmStructureVersionLocalService.addDDMStructureVersion(ddmStructureVersion);
047            }
048    
049            /**
050            * Creates a new d d m structure version with the primary key. Does not add the d d m structure version to the database.
051            *
052            * @param structureVersionId the primary key for the new d d m structure version
053            * @return the new d d m structure version
054            */
055            @Override
056            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion createDDMStructureVersion(
057                    long structureVersionId) {
058                    return _ddmStructureVersionLocalService.createDDMStructureVersion(structureVersionId);
059            }
060    
061            /**
062            * Deletes the d d m structure version from the database. Also notifies the appropriate model listeners.
063            *
064            * @param ddmStructureVersion the d d m structure version
065            * @return the d d m structure version that was removed
066            */
067            @Override
068            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion deleteDDMStructureVersion(
069                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion ddmStructureVersion) {
070                    return _ddmStructureVersionLocalService.deleteDDMStructureVersion(ddmStructureVersion);
071            }
072    
073            /**
074            * Deletes the d d m structure version with the primary key from the database. Also notifies the appropriate model listeners.
075            *
076            * @param structureVersionId the primary key of the d d m structure version
077            * @return the d d m structure version that was removed
078            * @throws PortalException if a d d m structure version with the primary key could not be found
079            */
080            @Override
081            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion deleteDDMStructureVersion(
082                    long structureVersionId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _ddmStructureVersionLocalService.deleteDDMStructureVersion(structureVersionId);
085            }
086    
087            /**
088            * @throws PortalException
089            */
090            @Override
091            public com.liferay.portal.model.PersistedModel deletePersistedModel(
092                    com.liferay.portal.model.PersistedModel persistedModel)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _ddmStructureVersionLocalService.deletePersistedModel(persistedModel);
095            }
096    
097            @Override
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099                    return _ddmStructureVersionLocalService.dynamicQuery();
100            }
101    
102            /**
103            * Performs a dynamic query on the database and returns the matching rows.
104            *
105            * @param dynamicQuery the dynamic query
106            * @return the matching rows
107            */
108            @Override
109            public <T> java.util.List<T> dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
111                    return _ddmStructureVersionLocalService.dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a 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. 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.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl}. 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.
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            * @return the range of matching rows
125            */
126            @Override
127            public <T> java.util.List<T> dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end) {
130                    return _ddmStructureVersionLocalService.dynamicQuery(dynamicQuery,
131                            start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl}. 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            */
147            @Override
148            public <T> java.util.List<T> dynamicQuery(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
150                    int end,
151                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
152                    return _ddmStructureVersionLocalService.dynamicQuery(dynamicQuery,
153                            start, end, orderByComparator);
154            }
155    
156            /**
157            * Returns the number of rows matching the dynamic query.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the number of rows matching the dynamic query
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
165                    return _ddmStructureVersionLocalService.dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows matching the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows matching the dynamic query
174            */
175            @Override
176            public long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection) {
179                    return _ddmStructureVersionLocalService.dynamicQueryCount(dynamicQuery,
180                            projection);
181            }
182    
183            @Override
184            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion fetchDDMStructureVersion(
185                    long structureVersionId) {
186                    return _ddmStructureVersionLocalService.fetchDDMStructureVersion(structureVersionId);
187            }
188    
189            @Override
190            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
191                    return _ddmStructureVersionLocalService.getActionableDynamicQuery();
192            }
193    
194            /**
195            * Returns the Spring bean ID for this bean.
196            *
197            * @return the Spring bean ID for this bean
198            */
199            @Override
200            public java.lang.String getBeanIdentifier() {
201                    return _ddmStructureVersionLocalService.getBeanIdentifier();
202            }
203    
204            /**
205            * Returns the d d m structure version with the primary key.
206            *
207            * @param structureVersionId the primary key of the d d m structure version
208            * @return the d d m structure version
209            * @throws PortalException if a d d m structure version with the primary key could not be found
210            */
211            @Override
212            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion getDDMStructureVersion(
213                    long structureVersionId)
214                    throws com.liferay.portal.kernel.exception.PortalException {
215                    return _ddmStructureVersionLocalService.getDDMStructureVersion(structureVersionId);
216            }
217    
218            /**
219            * Returns a range of all the d d m structure versions.
220            *
221            * <p>
222            * 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.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl}. 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.
223            * </p>
224            *
225            * @param start the lower bound of the range of d d m structure versions
226            * @param end the upper bound of the range of d d m structure versions (not inclusive)
227            * @return the range of d d m structure versions
228            */
229            @Override
230            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> getDDMStructureVersions(
231                    int start, int end) {
232                    return _ddmStructureVersionLocalService.getDDMStructureVersions(start,
233                            end);
234            }
235    
236            /**
237            * Returns the number of d d m structure versions.
238            *
239            * @return the number of d d m structure versions
240            */
241            @Override
242            public int getDDMStructureVersionsCount() {
243                    return _ddmStructureVersionLocalService.getDDMStructureVersionsCount();
244            }
245    
246            @Override
247            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion getLatestStructureVersion(
248                    long structureId)
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    return _ddmStructureVersionLocalService.getLatestStructureVersion(structureId);
251            }
252    
253            @Override
254            public com.liferay.portal.model.PersistedModel getPersistedModel(
255                    java.io.Serializable primaryKeyObj)
256                    throws com.liferay.portal.kernel.exception.PortalException {
257                    return _ddmStructureVersionLocalService.getPersistedModel(primaryKeyObj);
258            }
259    
260            @Override
261            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion getStructureVersion(
262                    long structureId, java.lang.String version)
263                    throws com.liferay.portal.kernel.exception.PortalException {
264                    return _ddmStructureVersionLocalService.getStructureVersion(structureId,
265                            version);
266            }
267    
268            @Override
269            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion getStructureVersion(
270                    long structureVersionId)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return _ddmStructureVersionLocalService.getStructureVersion(structureVersionId);
273            }
274    
275            @Override
276            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> getStructureVersions(
277                    long structureId) {
278                    return _ddmStructureVersionLocalService.getStructureVersions(structureId);
279            }
280    
281            @Override
282            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> getStructureVersions(
283                    long structureId, int start, int end,
284                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> orderByComparator) {
285                    return _ddmStructureVersionLocalService.getStructureVersions(structureId,
286                            start, end, orderByComparator);
287            }
288    
289            @Override
290            public int getStructureVersionsCount(long structureId) {
291                    return _ddmStructureVersionLocalService.getStructureVersionsCount(structureId);
292            }
293    
294            /**
295            * Sets the Spring bean ID for this bean.
296            *
297            * @param beanIdentifier the Spring bean ID for this bean
298            */
299            @Override
300            public void setBeanIdentifier(java.lang.String beanIdentifier) {
301                    _ddmStructureVersionLocalService.setBeanIdentifier(beanIdentifier);
302            }
303    
304            /**
305            * Updates the d d m structure version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
306            *
307            * @param ddmStructureVersion the d d m structure version
308            * @return the d d m structure version that was updated
309            */
310            @Override
311            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion updateDDMStructureVersion(
312                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion ddmStructureVersion) {
313                    return _ddmStructureVersionLocalService.updateDDMStructureVersion(ddmStructureVersion);
314            }
315    
316            /**
317             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
318             */
319            @Deprecated
320            public DDMStructureVersionLocalService getWrappedDDMStructureVersionLocalService() {
321                    return _ddmStructureVersionLocalService;
322            }
323    
324            /**
325             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
326             */
327            @Deprecated
328            public void setWrappedDDMStructureVersionLocalService(
329                    DDMStructureVersionLocalService ddmStructureVersionLocalService) {
330                    _ddmStructureVersionLocalService = ddmStructureVersionLocalService;
331            }
332    
333            @Override
334            public DDMStructureVersionLocalService getWrappedService() {
335                    return _ddmStructureVersionLocalService;
336            }
337    
338            @Override
339            public void setWrappedService(
340                    DDMStructureVersionLocalService ddmStructureVersionLocalService) {
341                    _ddmStructureVersionLocalService = ddmStructureVersionLocalService;
342            }
343    
344            private DDMStructureVersionLocalService _ddmStructureVersionLocalService;
345    }