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