001
014
015 package com.liferay.portal.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
030 public class AddressSoap implements Serializable {
031 public static AddressSoap toSoapModel(Address model) {
032 AddressSoap soapModel = new AddressSoap();
033
034 soapModel.setAddressId(model.getAddressId());
035 soapModel.setCompanyId(model.getCompanyId());
036 soapModel.setUserId(model.getUserId());
037 soapModel.setUserName(model.getUserName());
038 soapModel.setCreateDate(model.getCreateDate());
039 soapModel.setModifiedDate(model.getModifiedDate());
040 soapModel.setClassNameId(model.getClassNameId());
041 soapModel.setClassPK(model.getClassPK());
042 soapModel.setStreet1(model.getStreet1());
043 soapModel.setStreet2(model.getStreet2());
044 soapModel.setStreet3(model.getStreet3());
045 soapModel.setCity(model.getCity());
046 soapModel.setZip(model.getZip());
047 soapModel.setRegionId(model.getRegionId());
048 soapModel.setCountryId(model.getCountryId());
049 soapModel.setTypeId(model.getTypeId());
050 soapModel.setMailing(model.getMailing());
051 soapModel.setPrimary(model.getPrimary());
052
053 return soapModel;
054 }
055
056 public static AddressSoap[] toSoapModels(Address[] models) {
057 AddressSoap[] soapModels = new AddressSoap[models.length];
058
059 for (int i = 0; i < models.length; i++) {
060 soapModels[i] = toSoapModel(models[i]);
061 }
062
063 return soapModels;
064 }
065
066 public static AddressSoap[][] toSoapModels(Address[][] models) {
067 AddressSoap[][] soapModels = null;
068
069 if (models.length > 0) {
070 soapModels = new AddressSoap[models.length][models[0].length];
071 }
072 else {
073 soapModels = new AddressSoap[0][0];
074 }
075
076 for (int i = 0; i < models.length; i++) {
077 soapModels[i] = toSoapModels(models[i]);
078 }
079
080 return soapModels;
081 }
082
083 public static AddressSoap[] toSoapModels(List<Address> models) {
084 List<AddressSoap> soapModels = new ArrayList<AddressSoap>(models.size());
085
086 for (Address model : models) {
087 soapModels.add(toSoapModel(model));
088 }
089
090 return soapModels.toArray(new AddressSoap[soapModels.size()]);
091 }
092
093 public AddressSoap() {
094 }
095
096 public long getPrimaryKey() {
097 return _addressId;
098 }
099
100 public void setPrimaryKey(long pk) {
101 setAddressId(pk);
102 }
103
104 public long getAddressId() {
105 return _addressId;
106 }
107
108 public void setAddressId(long addressId) {
109 _addressId = addressId;
110 }
111
112 public long getCompanyId() {
113 return _companyId;
114 }
115
116 public void setCompanyId(long companyId) {
117 _companyId = companyId;
118 }
119
120 public long getUserId() {
121 return _userId;
122 }
123
124 public void setUserId(long userId) {
125 _userId = userId;
126 }
127
128 public String getUserName() {
129 return _userName;
130 }
131
132 public void setUserName(String userName) {
133 _userName = userName;
134 }
135
136 public Date getCreateDate() {
137 return _createDate;
138 }
139
140 public void setCreateDate(Date createDate) {
141 _createDate = createDate;
142 }
143
144 public Date getModifiedDate() {
145 return _modifiedDate;
146 }
147
148 public void setModifiedDate(Date modifiedDate) {
149 _modifiedDate = modifiedDate;
150 }
151
152 public long getClassNameId() {
153 return _classNameId;
154 }
155
156 public void setClassNameId(long classNameId) {
157 _classNameId = classNameId;
158 }
159
160 public long getClassPK() {
161 return _classPK;
162 }
163
164 public void setClassPK(long classPK) {
165 _classPK = classPK;
166 }
167
168 public String getStreet1() {
169 return _street1;
170 }
171
172 public void setStreet1(String street1) {
173 _street1 = street1;
174 }
175
176 public String getStreet2() {
177 return _street2;
178 }
179
180 public void setStreet2(String street2) {
181 _street2 = street2;
182 }
183
184 public String getStreet3() {
185 return _street3;
186 }
187
188 public void setStreet3(String street3) {
189 _street3 = street3;
190 }
191
192 public String getCity() {
193 return _city;
194 }
195
196 public void setCity(String city) {
197 _city = city;
198 }
199
200 public String getZip() {
201 return _zip;
202 }
203
204 public void setZip(String zip) {
205 _zip = zip;
206 }
207
208 public long getRegionId() {
209 return _regionId;
210 }
211
212 public void setRegionId(long regionId) {
213 _regionId = regionId;
214 }
215
216 public long getCountryId() {
217 return _countryId;
218 }
219
220 public void setCountryId(long countryId) {
221 _countryId = countryId;
222 }
223
224 public int getTypeId() {
225 return _typeId;
226 }
227
228 public void setTypeId(int typeId) {
229 _typeId = typeId;
230 }
231
232 public boolean getMailing() {
233 return _mailing;
234 }
235
236 public boolean isMailing() {
237 return _mailing;
238 }
239
240 public void setMailing(boolean mailing) {
241 _mailing = mailing;
242 }
243
244 public boolean getPrimary() {
245 return _primary;
246 }
247
248 public boolean isPrimary() {
249 return _primary;
250 }
251
252 public void setPrimary(boolean primary) {
253 _primary = primary;
254 }
255
256 private long _addressId;
257 private long _companyId;
258 private long _userId;
259 private String _userName;
260 private Date _createDate;
261 private Date _modifiedDate;
262 private long _classNameId;
263 private long _classPK;
264 private String _street1;
265 private String _street2;
266 private String _street3;
267 private String _city;
268 private String _zip;
269 private long _regionId;
270 private long _countryId;
271 private int _typeId;
272 private boolean _mailing;
273 private boolean _primary;
274 }