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 DDMStructureLinkLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMStructureLinkLocalService
026     * @generated
027     */
028    public class DDMStructureLinkLocalServiceWrapper
029            implements DDMStructureLinkLocalService,
030                    ServiceWrapper<DDMStructureLinkLocalService> {
031            public DDMStructureLinkLocalServiceWrapper(
032                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
033                    _ddmStructureLinkLocalService = ddmStructureLinkLocalService;
034            }
035    
036            /**
037            * Adds the d d m structure link to the database. Also notifies the appropriate model listeners.
038            *
039            * @param ddmStructureLink the d d m structure link
040            * @return the d d m structure link that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink addDDMStructureLink(
044                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _ddmStructureLinkLocalService.addDDMStructureLink(ddmStructureLink);
047            }
048    
049            /**
050            * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.
051            *
052            * @param structureLinkId the primary key for the new d d m structure link
053            * @return the new d d m structure link
054            */
055            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink createDDMStructureLink(
056                    long structureLinkId) {
057                    return _ddmStructureLinkLocalService.createDDMStructureLink(structureLinkId);
058            }
059    
060            /**
061            * Deletes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param structureLinkId the primary key of the d d m structure link
064            * @throws PortalException if a d d m structure link with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteDDMStructureLink(long structureLinkId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _ddmStructureLinkLocalService.deleteDDMStructureLink(structureLinkId);
071            }
072    
073            /**
074            * Deletes the d d m structure link from the database. Also notifies the appropriate model listeners.
075            *
076            * @param ddmStructureLink the d d m structure link
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteDDMStructureLink(
080                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _ddmStructureLinkLocalService.deleteDDMStructureLink(ddmStructureLink);
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 _ddmStructureLinkLocalService.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 _ddmStructureLinkLocalService.dynamicQuery(dynamicQuery, start,
117                            end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _ddmStructureLinkLocalService.dynamicQuery(dynamicQuery, start,
141                            end, orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _ddmStructureLinkLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchDDMStructureLink(
158                    long structureLinkId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _ddmStructureLinkLocalService.fetchDDMStructureLink(structureLinkId);
161            }
162    
163            /**
164            * Returns the d d m structure link with the primary key.
165            *
166            * @param structureLinkId the primary key of the d d m structure link
167            * @return the d d m structure link
168            * @throws PortalException if a d d m structure link with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getDDMStructureLink(
172                    long structureLinkId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _ddmStructureLinkLocalService.getDDMStructureLink(structureLinkId);
176            }
177    
178            public com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _ddmStructureLinkLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the d d m structure links.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of d d m structure links
193            * @param end the upper bound of the range of d d m structure links (not inclusive)
194            * @return the range of d d m structure links
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> getDDMStructureLinks(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _ddmStructureLinkLocalService.getDDMStructureLinks(start, end);
201            }
202    
203            /**
204            * Returns the number of d d m structure links.
205            *
206            * @return the number of d d m structure links
207            * @throws SystemException if a system exception occurred
208            */
209            public int getDDMStructureLinksCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _ddmStructureLinkLocalService.getDDMStructureLinksCount();
212            }
213    
214            /**
215            * Updates the d d m structure link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
216            *
217            * @param ddmStructureLink the d d m structure link
218            * @return the d d m structure link that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateDDMStructureLink(
222                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _ddmStructureLinkLocalService.updateDDMStructureLink(ddmStructureLink);
225            }
226    
227            /**
228            * Updates the d d m structure link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
229            *
230            * @param ddmStructureLink the d d m structure link
231            * @param merge whether to merge the d d m structure 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.
232            * @return the d d m structure link that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateDDMStructureLink(
236                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _ddmStructureLinkLocalService.updateDDMStructureLink(ddmStructureLink,
240                            merge);
241            }
242    
243            /**
244            * Returns the Spring bean ID for this bean.
245            *
246            * @return the Spring bean ID for this bean
247            */
248            public java.lang.String getBeanIdentifier() {
249                    return _ddmStructureLinkLocalService.getBeanIdentifier();
250            }
251    
252            /**
253            * Sets the Spring bean ID for this bean.
254            *
255            * @param beanIdentifier the Spring bean ID for this bean
256            */
257            public void setBeanIdentifier(java.lang.String beanIdentifier) {
258                    _ddmStructureLinkLocalService.setBeanIdentifier(beanIdentifier);
259            }
260    
261            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink addStructureLink(
262                    long classNameId, long classPK, long structureId,
263                    com.liferay.portal.service.ServiceContext serviceContext)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return _ddmStructureLinkLocalService.addStructureLink(classNameId,
266                            classPK, structureId, serviceContext);
267            }
268    
269            public void deleteClassStructureLink(long classPK)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _ddmStructureLinkLocalService.deleteClassStructureLink(classPK);
273            }
274    
275            public void deleteStructureLink(
276                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink structureLink)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    _ddmStructureLinkLocalService.deleteStructureLink(structureLink);
279            }
280    
281            public void deleteStructureLink(long structureLinkId)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _ddmStructureLinkLocalService.deleteStructureLink(structureLinkId);
285            }
286    
287            public void deleteStructureStructureLinks(long structureId)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    _ddmStructureLinkLocalService.deleteStructureStructureLinks(structureId);
290            }
291    
292            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getClassStructureLink(
293                    long classPK)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return _ddmStructureLinkLocalService.getClassStructureLink(classPK);
297            }
298    
299            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> getClassStructureLinks(
300                    long classNameId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _ddmStructureLinkLocalService.getClassStructureLinks(classNameId);
303            }
304    
305            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getStructureLink(
306                    long structureLinkId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _ddmStructureLinkLocalService.getStructureLink(structureLinkId);
310            }
311    
312            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> getStructureLinks(
313                    long structureId, int start, int end)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _ddmStructureLinkLocalService.getStructureLinks(structureId,
316                            start, end);
317            }
318    
319            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateStructureLink(
320                    long structureLinkId, long classNameId, long classPK, long structureId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _ddmStructureLinkLocalService.updateStructureLink(structureLinkId,
324                            classNameId, classPK, structureId);
325            }
326    
327            /**
328             * @deprecated Renamed to {@link #getWrappedService}
329             */
330            public DDMStructureLinkLocalService getWrappedDDMStructureLinkLocalService() {
331                    return _ddmStructureLinkLocalService;
332            }
333    
334            /**
335             * @deprecated Renamed to {@link #setWrappedService}
336             */
337            public void setWrappedDDMStructureLinkLocalService(
338                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
339                    _ddmStructureLinkLocalService = ddmStructureLinkLocalService;
340            }
341    
342            public DDMStructureLinkLocalService getWrappedService() {
343                    return _ddmStructureLinkLocalService;
344            }
345    
346            public void setWrappedService(
347                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
348                    _ddmStructureLinkLocalService = ddmStructureLinkLocalService;
349            }
350    
351            private DDMStructureLinkLocalService _ddmStructureLinkLocalService;
352    }