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