001    /**
002     * Copyright (c) 2000-2013 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.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.dynamicdatalists.service.http.DDLRecordSetServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.dynamicdatalists.service.http.DDLRecordSetServiceSoap
028     * @generated
029     */
030    public class DDLRecordSetSoap implements Serializable {
031            public static DDLRecordSetSoap toSoapModel(DDLRecordSet model) {
032                    DDLRecordSetSoap soapModel = new DDLRecordSetSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setRecordSetId(model.getRecordSetId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setDDMStructureId(model.getDDMStructureId());
043                    soapModel.setRecordSetKey(model.getRecordSetKey());
044                    soapModel.setName(model.getName());
045                    soapModel.setDescription(model.getDescription());
046                    soapModel.setMinDisplayRows(model.getMinDisplayRows());
047                    soapModel.setScope(model.getScope());
048    
049                    return soapModel;
050            }
051    
052            public static DDLRecordSetSoap[] toSoapModels(DDLRecordSet[] models) {
053                    DDLRecordSetSoap[] soapModels = new DDLRecordSetSoap[models.length];
054    
055                    for (int i = 0; i < models.length; i++) {
056                            soapModels[i] = toSoapModel(models[i]);
057                    }
058    
059                    return soapModels;
060            }
061    
062            public static DDLRecordSetSoap[][] toSoapModels(DDLRecordSet[][] models) {
063                    DDLRecordSetSoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new DDLRecordSetSoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new DDLRecordSetSoap[0][0];
070                    }
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModels(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static DDLRecordSetSoap[] toSoapModels(List<DDLRecordSet> models) {
080                    List<DDLRecordSetSoap> soapModels = new ArrayList<DDLRecordSetSoap>(models.size());
081    
082                    for (DDLRecordSet model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new DDLRecordSetSoap[soapModels.size()]);
087            }
088    
089            public DDLRecordSetSoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _recordSetId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setRecordSetId(pk);
098            }
099    
100            public String getUuid() {
101                    return _uuid;
102            }
103    
104            public void setUuid(String uuid) {
105                    _uuid = uuid;
106            }
107    
108            public long getRecordSetId() {
109                    return _recordSetId;
110            }
111    
112            public void setRecordSetId(long recordSetId) {
113                    _recordSetId = recordSetId;
114            }
115    
116            public long getGroupId() {
117                    return _groupId;
118            }
119    
120            public void setGroupId(long groupId) {
121                    _groupId = groupId;
122            }
123    
124            public long getCompanyId() {
125                    return _companyId;
126            }
127    
128            public void setCompanyId(long companyId) {
129                    _companyId = companyId;
130            }
131    
132            public long getUserId() {
133                    return _userId;
134            }
135    
136            public void setUserId(long userId) {
137                    _userId = userId;
138            }
139    
140            public String getUserName() {
141                    return _userName;
142            }
143    
144            public void setUserName(String userName) {
145                    _userName = userName;
146            }
147    
148            public Date getCreateDate() {
149                    return _createDate;
150            }
151    
152            public void setCreateDate(Date createDate) {
153                    _createDate = createDate;
154            }
155    
156            public Date getModifiedDate() {
157                    return _modifiedDate;
158            }
159    
160            public void setModifiedDate(Date modifiedDate) {
161                    _modifiedDate = modifiedDate;
162            }
163    
164            public long getDDMStructureId() {
165                    return _DDMStructureId;
166            }
167    
168            public void setDDMStructureId(long DDMStructureId) {
169                    _DDMStructureId = DDMStructureId;
170            }
171    
172            public String getRecordSetKey() {
173                    return _recordSetKey;
174            }
175    
176            public void setRecordSetKey(String recordSetKey) {
177                    _recordSetKey = recordSetKey;
178            }
179    
180            public String getName() {
181                    return _name;
182            }
183    
184            public void setName(String name) {
185                    _name = name;
186            }
187    
188            public String getDescription() {
189                    return _description;
190            }
191    
192            public void setDescription(String description) {
193                    _description = description;
194            }
195    
196            public int getMinDisplayRows() {
197                    return _minDisplayRows;
198            }
199    
200            public void setMinDisplayRows(int minDisplayRows) {
201                    _minDisplayRows = minDisplayRows;
202            }
203    
204            public int getScope() {
205                    return _scope;
206            }
207    
208            public void setScope(int scope) {
209                    _scope = scope;
210            }
211    
212            private String _uuid;
213            private long _recordSetId;
214            private long _groupId;
215            private long _companyId;
216            private long _userId;
217            private String _userName;
218            private Date _createDate;
219            private Date _modifiedDate;
220            private long _DDMStructureId;
221            private String _recordSetKey;
222            private String _name;
223            private String _description;
224            private int _minDisplayRows;
225            private int _scope;
226    }