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