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