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