001    /**
002     * Copyright (c) 2000-present 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.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.dynamicdatamapping.service.http.DDMStructureVersionServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.dynamicdatamapping.service.http.DDMStructureVersionServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class DDMStructureVersionSoap implements Serializable {
034            public static DDMStructureVersionSoap toSoapModel(DDMStructureVersion model) {
035                    DDMStructureVersionSoap soapModel = new DDMStructureVersionSoap();
036    
037                    soapModel.setStructureVersionId(model.getStructureVersionId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setStructureId(model.getStructureId());
044                    soapModel.setVersion(model.getVersion());
045                    soapModel.setParentStructureId(model.getParentStructureId());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setDefinition(model.getDefinition());
049                    soapModel.setStorageType(model.getStorageType());
050                    soapModel.setType(model.getType());
051                    soapModel.setStatus(model.getStatus());
052                    soapModel.setStatusByUserId(model.getStatusByUserId());
053                    soapModel.setStatusByUserName(model.getStatusByUserName());
054                    soapModel.setStatusDate(model.getStatusDate());
055    
056                    return soapModel;
057            }
058    
059            public static DDMStructureVersionSoap[] toSoapModels(
060                    DDMStructureVersion[] models) {
061                    DDMStructureVersionSoap[] soapModels = new DDMStructureVersionSoap[models.length];
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModel(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static DDMStructureVersionSoap[][] toSoapModels(
071                    DDMStructureVersion[][] models) {
072                    DDMStructureVersionSoap[][] soapModels = null;
073    
074                    if (models.length > 0) {
075                            soapModels = new DDMStructureVersionSoap[models.length][models[0].length];
076                    }
077                    else {
078                            soapModels = new DDMStructureVersionSoap[0][0];
079                    }
080    
081                    for (int i = 0; i < models.length; i++) {
082                            soapModels[i] = toSoapModels(models[i]);
083                    }
084    
085                    return soapModels;
086            }
087    
088            public static DDMStructureVersionSoap[] toSoapModels(
089                    List<DDMStructureVersion> models) {
090                    List<DDMStructureVersionSoap> soapModels = new ArrayList<DDMStructureVersionSoap>(models.size());
091    
092                    for (DDMStructureVersion model : models) {
093                            soapModels.add(toSoapModel(model));
094                    }
095    
096                    return soapModels.toArray(new DDMStructureVersionSoap[soapModels.size()]);
097            }
098    
099            public DDMStructureVersionSoap() {
100            }
101    
102            public long getPrimaryKey() {
103                    return _structureVersionId;
104            }
105    
106            public void setPrimaryKey(long pk) {
107                    setStructureVersionId(pk);
108            }
109    
110            public long getStructureVersionId() {
111                    return _structureVersionId;
112            }
113    
114            public void setStructureVersionId(long structureVersionId) {
115                    _structureVersionId = structureVersionId;
116            }
117    
118            public long getGroupId() {
119                    return _groupId;
120            }
121    
122            public void setGroupId(long groupId) {
123                    _groupId = groupId;
124            }
125    
126            public long getCompanyId() {
127                    return _companyId;
128            }
129    
130            public void setCompanyId(long companyId) {
131                    _companyId = companyId;
132            }
133    
134            public long getUserId() {
135                    return _userId;
136            }
137    
138            public void setUserId(long userId) {
139                    _userId = userId;
140            }
141    
142            public String getUserName() {
143                    return _userName;
144            }
145    
146            public void setUserName(String userName) {
147                    _userName = userName;
148            }
149    
150            public Date getCreateDate() {
151                    return _createDate;
152            }
153    
154            public void setCreateDate(Date createDate) {
155                    _createDate = createDate;
156            }
157    
158            public long getStructureId() {
159                    return _structureId;
160            }
161    
162            public void setStructureId(long structureId) {
163                    _structureId = structureId;
164            }
165    
166            public String getVersion() {
167                    return _version;
168            }
169    
170            public void setVersion(String version) {
171                    _version = version;
172            }
173    
174            public long getParentStructureId() {
175                    return _parentStructureId;
176            }
177    
178            public void setParentStructureId(long parentStructureId) {
179                    _parentStructureId = parentStructureId;
180            }
181    
182            public String getName() {
183                    return _name;
184            }
185    
186            public void setName(String name) {
187                    _name = name;
188            }
189    
190            public String getDescription() {
191                    return _description;
192            }
193    
194            public void setDescription(String description) {
195                    _description = description;
196            }
197    
198            public String getDefinition() {
199                    return _definition;
200            }
201    
202            public void setDefinition(String definition) {
203                    _definition = definition;
204            }
205    
206            public String getStorageType() {
207                    return _storageType;
208            }
209    
210            public void setStorageType(String storageType) {
211                    _storageType = storageType;
212            }
213    
214            public int getType() {
215                    return _type;
216            }
217    
218            public void setType(int type) {
219                    _type = type;
220            }
221    
222            public int getStatus() {
223                    return _status;
224            }
225    
226            public void setStatus(int status) {
227                    _status = status;
228            }
229    
230            public long getStatusByUserId() {
231                    return _statusByUserId;
232            }
233    
234            public void setStatusByUserId(long statusByUserId) {
235                    _statusByUserId = statusByUserId;
236            }
237    
238            public String getStatusByUserName() {
239                    return _statusByUserName;
240            }
241    
242            public void setStatusByUserName(String statusByUserName) {
243                    _statusByUserName = statusByUserName;
244            }
245    
246            public Date getStatusDate() {
247                    return _statusDate;
248            }
249    
250            public void setStatusDate(Date statusDate) {
251                    _statusDate = statusDate;
252            }
253    
254            private long _structureVersionId;
255            private long _groupId;
256            private long _companyId;
257            private long _userId;
258            private String _userName;
259            private Date _createDate;
260            private long _structureId;
261            private String _version;
262            private long _parentStructureId;
263            private String _name;
264            private String _description;
265            private String _definition;
266            private String _storageType;
267            private int _type;
268            private int _status;
269            private long _statusByUserId;
270            private String _statusByUserName;
271            private Date _statusDate;
272    }