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 DDMTemplateVersionLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DDMTemplateVersionLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DDMTemplateVersionLocalServiceWrapper
030            implements DDMTemplateVersionLocalService,
031                    ServiceWrapper<DDMTemplateVersionLocalService> {
032            public DDMTemplateVersionLocalServiceWrapper(
033                    DDMTemplateVersionLocalService ddmTemplateVersionLocalService) {
034                    _ddmTemplateVersionLocalService = ddmTemplateVersionLocalService;
035            }
036    
037            /**
038            * Adds the d d m template version to the database. Also notifies the appropriate model listeners.
039            *
040            * @param ddmTemplateVersion the d d m template version
041            * @return the d d m template version that was added
042            */
043            @Override
044            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion addDDMTemplateVersion(
045                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion ddmTemplateVersion) {
046                    return _ddmTemplateVersionLocalService.addDDMTemplateVersion(ddmTemplateVersion);
047            }
048    
049            /**
050            * Creates a new d d m template version with the primary key. Does not add the d d m template version to the database.
051            *
052            * @param templateVersionId the primary key for the new d d m template version
053            * @return the new d d m template version
054            */
055            @Override
056            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion createDDMTemplateVersion(
057                    long templateVersionId) {
058                    return _ddmTemplateVersionLocalService.createDDMTemplateVersion(templateVersionId);
059            }
060    
061            /**
062            * Deletes the d d m template version from the database. Also notifies the appropriate model listeners.
063            *
064            * @param ddmTemplateVersion the d d m template version
065            * @return the d d m template version that was removed
066            */
067            @Override
068            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion deleteDDMTemplateVersion(
069                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion ddmTemplateVersion) {
070                    return _ddmTemplateVersionLocalService.deleteDDMTemplateVersion(ddmTemplateVersion);
071            }
072    
073            /**
074            * Deletes the d d m template version with the primary key from the database. Also notifies the appropriate model listeners.
075            *
076            * @param templateVersionId the primary key of the d d m template version
077            * @return the d d m template version that was removed
078            * @throws PortalException if a d d m template version with the primary key could not be found
079            */
080            @Override
081            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion deleteDDMTemplateVersion(
082                    long templateVersionId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _ddmTemplateVersionLocalService.deleteDDMTemplateVersion(templateVersionId);
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 _ddmTemplateVersionLocalService.deletePersistedModel(persistedModel);
095            }
096    
097            @Override
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099                    return _ddmTemplateVersionLocalService.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 _ddmTemplateVersionLocalService.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.DDMTemplateVersionModelImpl}. 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 _ddmTemplateVersionLocalService.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.DDMTemplateVersionModelImpl}. 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 _ddmTemplateVersionLocalService.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 _ddmTemplateVersionLocalService.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 _ddmTemplateVersionLocalService.dynamicQueryCount(dynamicQuery,
180                            projection);
181            }
182    
183            @Override
184            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion fetchDDMTemplateVersion(
185                    long templateVersionId) {
186                    return _ddmTemplateVersionLocalService.fetchDDMTemplateVersion(templateVersionId);
187            }
188    
189            @Override
190            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
191                    return _ddmTemplateVersionLocalService.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 _ddmTemplateVersionLocalService.getBeanIdentifier();
202            }
203    
204            /**
205            * Returns the d d m template version with the primary key.
206            *
207            * @param templateVersionId the primary key of the d d m template version
208            * @return the d d m template version
209            * @throws PortalException if a d d m template version with the primary key could not be found
210            */
211            @Override
212            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion getDDMTemplateVersion(
213                    long templateVersionId)
214                    throws com.liferay.portal.kernel.exception.PortalException {
215                    return _ddmTemplateVersionLocalService.getDDMTemplateVersion(templateVersionId);
216            }
217    
218            /**
219            * Returns a range of all the d d m template 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.DDMTemplateVersionModelImpl}. 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 template versions
226            * @param end the upper bound of the range of d d m template versions (not inclusive)
227            * @return the range of d d m template versions
228            */
229            @Override
230            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion> getDDMTemplateVersions(
231                    int start, int end) {
232                    return _ddmTemplateVersionLocalService.getDDMTemplateVersions(start, end);
233            }
234    
235            /**
236            * Returns the number of d d m template versions.
237            *
238            * @return the number of d d m template versions
239            */
240            @Override
241            public int getDDMTemplateVersionsCount() {
242                    return _ddmTemplateVersionLocalService.getDDMTemplateVersionsCount();
243            }
244    
245            @Override
246            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion getLatestTemplateVersion(
247                    long templateId)
248                    throws com.liferay.portal.kernel.exception.PortalException {
249                    return _ddmTemplateVersionLocalService.getLatestTemplateVersion(templateId);
250            }
251    
252            @Override
253            public com.liferay.portal.model.PersistedModel getPersistedModel(
254                    java.io.Serializable primaryKeyObj)
255                    throws com.liferay.portal.kernel.exception.PortalException {
256                    return _ddmTemplateVersionLocalService.getPersistedModel(primaryKeyObj);
257            }
258    
259            @Override
260            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion getTemplateVersion(
261                    long templateId, java.lang.String version)
262                    throws com.liferay.portal.kernel.exception.PortalException {
263                    return _ddmTemplateVersionLocalService.getTemplateVersion(templateId,
264                            version);
265            }
266    
267            @Override
268            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion getTemplateVersion(
269                    long templateVersionId)
270                    throws com.liferay.portal.kernel.exception.PortalException {
271                    return _ddmTemplateVersionLocalService.getTemplateVersion(templateVersionId);
272            }
273    
274            @Override
275            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion> getTemplateVersions(
276                    long templateId, int start, int end,
277                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion> orderByComparator) {
278                    return _ddmTemplateVersionLocalService.getTemplateVersions(templateId,
279                            start, end, orderByComparator);
280            }
281    
282            @Override
283            public int getTemplateVersionsCount(long templateId) {
284                    return _ddmTemplateVersionLocalService.getTemplateVersionsCount(templateId);
285            }
286    
287            /**
288            * Sets the Spring bean ID for this bean.
289            *
290            * @param beanIdentifier the Spring bean ID for this bean
291            */
292            @Override
293            public void setBeanIdentifier(java.lang.String beanIdentifier) {
294                    _ddmTemplateVersionLocalService.setBeanIdentifier(beanIdentifier);
295            }
296    
297            /**
298            * Updates the d d m template version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
299            *
300            * @param ddmTemplateVersion the d d m template version
301            * @return the d d m template version that was updated
302            */
303            @Override
304            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion updateDDMTemplateVersion(
305                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersion ddmTemplateVersion) {
306                    return _ddmTemplateVersionLocalService.updateDDMTemplateVersion(ddmTemplateVersion);
307            }
308    
309            /**
310             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
311             */
312            @Deprecated
313            public DDMTemplateVersionLocalService getWrappedDDMTemplateVersionLocalService() {
314                    return _ddmTemplateVersionLocalService;
315            }
316    
317            /**
318             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
319             */
320            @Deprecated
321            public void setWrappedDDMTemplateVersionLocalService(
322                    DDMTemplateVersionLocalService ddmTemplateVersionLocalService) {
323                    _ddmTemplateVersionLocalService = ddmTemplateVersionLocalService;
324            }
325    
326            @Override
327            public DDMTemplateVersionLocalService getWrappedService() {
328                    return _ddmTemplateVersionLocalService;
329            }
330    
331            @Override
332            public void setWrappedService(
333                    DDMTemplateVersionLocalService ddmTemplateVersionLocalService) {
334                    _ddmTemplateVersionLocalService = ddmTemplateVersionLocalService;
335            }
336    
337            private DDMTemplateVersionLocalService _ddmTemplateVersionLocalService;
338    }