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