001    /**
002     * Copyright (c) 2000-2011 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.dynamicdatalists.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link DDLRecordLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DDLRecordLocalService
024     * @generated
025     */
026    public class DDLRecordLocalServiceWrapper implements DDLRecordLocalService {
027            public DDLRecordLocalServiceWrapper(
028                    DDLRecordLocalService ddlRecordLocalService) {
029                    _ddlRecordLocalService = ddlRecordLocalService;
030            }
031    
032            /**
033            * Adds the d d l record to the database. Also notifies the appropriate model listeners.
034            *
035            * @param ddlRecord the d d l record
036            * @return the d d l record that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addDDLRecord(
040                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _ddlRecordLocalService.addDDLRecord(ddlRecord);
043            }
044    
045            /**
046            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
047            *
048            * @param recordId the primary key for the new d d l record
049            * @return the new d d l record
050            */
051            public com.liferay.portlet.dynamicdatalists.model.DDLRecord createDDLRecord(
052                    long recordId) {
053                    return _ddlRecordLocalService.createDDLRecord(recordId);
054            }
055    
056            /**
057            * Deletes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param recordId the primary key of the d d l record
060            * @throws PortalException if a d d l record with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteDDLRecord(long recordId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _ddlRecordLocalService.deleteDDLRecord(recordId);
067            }
068    
069            /**
070            * Deletes the d d l record from the database. Also notifies the appropriate model listeners.
071            *
072            * @param ddlRecord the d d l record
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteDDLRecord(
076                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _ddlRecordLocalService.deleteDDLRecord(ddlRecord);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _ddlRecordLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _ddlRecordLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _ddlRecordLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _ddlRecordLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the d d l record with the primary key.
154            *
155            * @param recordId the primary key of the d d l record
156            * @return the d d l record
157            * @throws PortalException if a d d l record with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecord(
161                    long recordId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _ddlRecordLocalService.getDDLRecord(recordId);
165            }
166    
167            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _ddlRecordLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the d d l record with the UUID in the group.
176            *
177            * @param uuid the UUID of d d l record
178            * @param groupId the group id of the d d l record
179            * @return the d d l record
180            * @throws PortalException if a d d l record with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecordByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _ddlRecordLocalService.getDDLRecordByUuidAndGroupId(uuid, groupId);
188            }
189    
190            /**
191            * Returns a range of all the d d l records.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of d d l records
198            * @param end the upper bound of the range of d d l records (not inclusive)
199            * @return the range of d d l records
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getDDLRecords(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _ddlRecordLocalService.getDDLRecords(start, end);
206            }
207    
208            /**
209            * Returns the number of d d l records.
210            *
211            * @return the number of d d l records
212            * @throws SystemException if a system exception occurred
213            */
214            public int getDDLRecordsCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _ddlRecordLocalService.getDDLRecordsCount();
217            }
218    
219            /**
220            * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param ddlRecord the d d l record
223            * @return the d d l record that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
227                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _ddlRecordLocalService.updateDDLRecord(ddlRecord);
230            }
231    
232            /**
233            * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param ddlRecord the d d l record
236            * @param merge whether to merge the d d l record 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.
237            * @return the d d l record that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
241                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord,
242                    boolean merge)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _ddlRecordLocalService.updateDDLRecord(ddlRecord, merge);
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            public java.lang.String getBeanIdentifier() {
253                    return _ddlRecordLocalService.getBeanIdentifier();
254            }
255    
256            /**
257            * Sets the Spring bean ID for this bean.
258            *
259            * @param beanIdentifier the Spring bean ID for this bean
260            */
261            public void setBeanIdentifier(java.lang.String beanIdentifier) {
262                    _ddlRecordLocalService.setBeanIdentifier(beanIdentifier);
263            }
264    
265            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
266                    long userId, long groupId, long recordSetId, int displayIndex,
267                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
268                    com.liferay.portal.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _ddlRecordLocalService.addRecord(userId, groupId, recordSetId,
272                            displayIndex, fields, serviceContext);
273            }
274    
275            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
276                    long userId, long groupId, long recordSetId, int displayIndex,
277                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _ddlRecordLocalService.addRecord(userId, groupId, recordSetId,
282                            displayIndex, fieldsMap, serviceContext);
283            }
284    
285            public void deleteRecord(
286                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _ddlRecordLocalService.deleteRecord(record);
290            }
291    
292            public void deleteRecord(long recordId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _ddlRecordLocalService.deleteRecord(recordId);
296            }
297    
298            public void deleteRecords(long recordSetId)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _ddlRecordLocalService.deleteRecords(recordSetId);
302            }
303    
304            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(
305                    long recordId)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _ddlRecordLocalService.fetchRecord(recordId);
308            }
309    
310            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(
311                    long recordId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _ddlRecordLocalService.getLatestRecordVersion(recordId);
315            }
316    
317            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
318                    long recordId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _ddlRecordLocalService.getRecord(recordId);
322            }
323    
324            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
325                    long recordSetId)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _ddlRecordLocalService.getRecords(recordSetId);
328            }
329    
330            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
331                    long recordSetId, int status, int start, int end,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _ddlRecordLocalService.getRecords(recordSetId, status, start,
335                            end, orderByComparator);
336            }
337    
338            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
339                    long recordSetId, long userId)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return _ddlRecordLocalService.getRecords(recordSetId, userId);
342            }
343    
344            public int getRecordsCount(long recordSetId, int status)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _ddlRecordLocalService.getRecordsCount(recordSetId, status);
347            }
348    
349            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
350                    long recordVersionId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _ddlRecordLocalService.getRecordVersion(recordVersionId);
354            }
355    
356            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
357                    long recordId, java.lang.String version)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _ddlRecordLocalService.getRecordVersion(recordId, version);
361            }
362    
363            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
364                    long recordId, int start, int end,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _ddlRecordLocalService.getRecordVersions(recordId, start, end,
368                            orderByComparator);
369            }
370    
371            public int getRecordVersionsCount(long recordId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _ddlRecordLocalService.getRecordVersionsCount(recordId);
374            }
375    
376            public void revertRecordVersion(long userId, long recordId,
377                    java.lang.String version,
378                    com.liferay.portal.service.ServiceContext serviceContext)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    _ddlRecordLocalService.revertRecordVersion(userId, recordId, version,
382                            serviceContext);
383            }
384    
385            public void updateAsset(long userId,
386                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
387                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
388                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
389                    java.util.Locale locale)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    _ddlRecordLocalService.updateAsset(userId, record, recordVersion,
393                            assetCategoryIds, assetTagNames, locale);
394            }
395    
396            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
397                    long userId, long recordId, boolean majorVersion, int displayIndex,
398                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
399                    boolean mergeFields,
400                    com.liferay.portal.service.ServiceContext serviceContext)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException {
403                    return _ddlRecordLocalService.updateRecord(userId, recordId,
404                            majorVersion, displayIndex, fields, mergeFields, serviceContext);
405            }
406    
407            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
408                    long userId, long recordId, int displayIndex,
409                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
410                    boolean mergeFields,
411                    com.liferay.portal.service.ServiceContext serviceContext)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    return _ddlRecordLocalService.updateRecord(userId, recordId,
415                            displayIndex, fieldsMap, mergeFields, serviceContext);
416            }
417    
418            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(
419                    long userId, long recordVersionId, int status,
420                    com.liferay.portal.service.ServiceContext serviceContext)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    return _ddlRecordLocalService.updateStatus(userId, recordVersionId,
424                            status, serviceContext);
425            }
426    
427            public DDLRecordLocalService getWrappedDDLRecordLocalService() {
428                    return _ddlRecordLocalService;
429            }
430    
431            public void setWrappedDDLRecordLocalService(
432                    DDLRecordLocalService ddlRecordLocalService) {
433                    _ddlRecordLocalService = ddlRecordLocalService;
434            }
435    
436            private DDLRecordLocalService _ddlRecordLocalService;
437    }