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