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 DDLRecordService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DDLRecordService
024     * @generated
025     */
026    public class DDLRecordServiceWrapper implements DDLRecordService {
027            public DDLRecordServiceWrapper(DDLRecordService ddlRecordService) {
028                    _ddlRecordService = ddlRecordService;
029            }
030    
031            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
032                    long groupId, long recordSetId, int displayIndex,
033                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
034                    com.liferay.portal.service.ServiceContext serviceContext)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex,
038                            fields, serviceContext);
039            }
040    
041            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
042                    long groupId, long recordSetId, int displayIndex,
043                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
044                    com.liferay.portal.service.ServiceContext serviceContext)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex,
048                            fieldsMap, serviceContext);
049            }
050    
051            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
052                    long recordId, boolean majorVersion, int displayIndex,
053                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
054                    boolean mergeFields,
055                    com.liferay.portal.service.ServiceContext serviceContext)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _ddlRecordService.updateRecord(recordId, majorVersion,
059                            displayIndex, fields, mergeFields, serviceContext);
060            }
061    
062            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
063                    long recordId, int displayIndex,
064                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
065                    boolean mergeFields,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _ddlRecordService.updateRecord(recordId, displayIndex,
070                            fieldsMap, mergeFields, serviceContext);
071            }
072    
073            public DDLRecordService getWrappedDDLRecordService() {
074                    return _ddlRecordService;
075            }
076    
077            public void setWrappedDDLRecordService(DDLRecordService ddlRecordService) {
078                    _ddlRecordService = ddlRecordService;
079            }
080    
081            private DDLRecordService _ddlRecordService;
082    }