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