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.DDMStructureServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.dynamicdatamapping.service.http.DDMStructureServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class DDMStructureSoap implements Serializable {
034            public static DDMStructureSoap toSoapModel(DDMStructure model) {
035                    DDMStructureSoap soapModel = new DDMStructureSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setStructureId(model.getStructureId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setVersionUserId(model.getVersionUserId());
044                    soapModel.setVersionUserName(model.getVersionUserName());
045                    soapModel.setCreateDate(model.getCreateDate());
046                    soapModel.setModifiedDate(model.getModifiedDate());
047                    soapModel.setParentStructureId(model.getParentStructureId());
048                    soapModel.setClassNameId(model.getClassNameId());
049                    soapModel.setStructureKey(model.getStructureKey());
050                    soapModel.setVersion(model.getVersion());
051                    soapModel.setName(model.getName());
052                    soapModel.setDescription(model.getDescription());
053                    soapModel.setDefinition(model.getDefinition());
054                    soapModel.setStorageType(model.getStorageType());
055                    soapModel.setType(model.getType());
056    
057                    return soapModel;
058            }
059    
060            public static DDMStructureSoap[] toSoapModels(DDMStructure[] models) {
061                    DDMStructureSoap[] soapModels = new DDMStructureSoap[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 DDMStructureSoap[][] toSoapModels(DDMStructure[][] models) {
071                    DDMStructureSoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new DDMStructureSoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new DDMStructureSoap[0][0];
078                    }
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModels(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static DDMStructureSoap[] toSoapModels(List<DDMStructure> models) {
088                    List<DDMStructureSoap> soapModels = new ArrayList<DDMStructureSoap>(models.size());
089    
090                    for (DDMStructure model : models) {
091                            soapModels.add(toSoapModel(model));
092                    }
093    
094                    return soapModels.toArray(new DDMStructureSoap[soapModels.size()]);
095            }
096    
097            public DDMStructureSoap() {
098            }
099    
100            public long getPrimaryKey() {
101                    return _structureId;
102            }
103    
104            public void setPrimaryKey(long pk) {
105                    setStructureId(pk);
106            }
107    
108            public String getUuid() {
109                    return _uuid;
110            }
111    
112            public void setUuid(String uuid) {
113                    _uuid = uuid;
114            }
115    
116            public long getStructureId() {
117                    return _structureId;
118            }
119    
120            public void setStructureId(long structureId) {
121                    _structureId = structureId;
122            }
123    
124            public long getGroupId() {
125                    return _groupId;
126            }
127    
128            public void setGroupId(long groupId) {
129                    _groupId = groupId;
130            }
131    
132            public long getCompanyId() {
133                    return _companyId;
134            }
135    
136            public void setCompanyId(long companyId) {
137                    _companyId = companyId;
138            }
139    
140            public long getUserId() {
141                    return _userId;
142            }
143    
144            public void setUserId(long userId) {
145                    _userId = userId;
146            }
147    
148            public String getUserName() {
149                    return _userName;
150            }
151    
152            public void setUserName(String userName) {
153                    _userName = userName;
154            }
155    
156            public long getVersionUserId() {
157                    return _versionUserId;
158            }
159    
160            public void setVersionUserId(long versionUserId) {
161                    _versionUserId = versionUserId;
162            }
163    
164            public String getVersionUserName() {
165                    return _versionUserName;
166            }
167    
168            public void setVersionUserName(String versionUserName) {
169                    _versionUserName = versionUserName;
170            }
171    
172            public Date getCreateDate() {
173                    return _createDate;
174            }
175    
176            public void setCreateDate(Date createDate) {
177                    _createDate = createDate;
178            }
179    
180            public Date getModifiedDate() {
181                    return _modifiedDate;
182            }
183    
184            public void setModifiedDate(Date modifiedDate) {
185                    _modifiedDate = modifiedDate;
186            }
187    
188            public long getParentStructureId() {
189                    return _parentStructureId;
190            }
191    
192            public void setParentStructureId(long parentStructureId) {
193                    _parentStructureId = parentStructureId;
194            }
195    
196            public long getClassNameId() {
197                    return _classNameId;
198            }
199    
200            public void setClassNameId(long classNameId) {
201                    _classNameId = classNameId;
202            }
203    
204            public String getStructureKey() {
205                    return _structureKey;
206            }
207    
208            public void setStructureKey(String structureKey) {
209                    _structureKey = structureKey;
210            }
211    
212            public String getVersion() {
213                    return _version;
214            }
215    
216            public void setVersion(String version) {
217                    _version = version;
218            }
219    
220            public String getName() {
221                    return _name;
222            }
223    
224            public void setName(String name) {
225                    _name = name;
226            }
227    
228            public String getDescription() {
229                    return _description;
230            }
231    
232            public void setDescription(String description) {
233                    _description = description;
234            }
235    
236            public String getDefinition() {
237                    return _definition;
238            }
239    
240            public void setDefinition(String definition) {
241                    _definition = definition;
242            }
243    
244            public String getStorageType() {
245                    return _storageType;
246            }
247    
248            public void setStorageType(String storageType) {
249                    _storageType = storageType;
250            }
251    
252            public int getType() {
253                    return _type;
254            }
255    
256            public void setType(int type) {
257                    _type = type;
258            }
259    
260            private String _uuid;
261            private long _structureId;
262            private long _groupId;
263            private long _companyId;
264            private long _userId;
265            private String _userName;
266            private long _versionUserId;
267            private String _versionUserName;
268            private Date _createDate;
269            private Date _modifiedDate;
270            private long _parentStructureId;
271            private long _classNameId;
272            private String _structureKey;
273            private String _version;
274            private String _name;
275            private String _description;
276            private String _definition;
277            private String _storageType;
278            private int _type;
279    }