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.DDMTemplateVersionServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.dynamicdatamapping.service.http.DDMTemplateVersionServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class DDMTemplateVersionSoap implements Serializable {
034            public static DDMTemplateVersionSoap toSoapModel(DDMTemplateVersion model) {
035                    DDMTemplateVersionSoap soapModel = new DDMTemplateVersionSoap();
036    
037                    soapModel.setTemplateVersionId(model.getTemplateVersionId());
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.setClassNameId(model.getClassNameId());
044                    soapModel.setClassPK(model.getClassPK());
045                    soapModel.setTemplateId(model.getTemplateId());
046                    soapModel.setVersion(model.getVersion());
047                    soapModel.setName(model.getName());
048                    soapModel.setDescription(model.getDescription());
049                    soapModel.setLanguage(model.getLanguage());
050                    soapModel.setScript(model.getScript());
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 DDMTemplateVersionSoap[] toSoapModels(
060                    DDMTemplateVersion[] models) {
061                    DDMTemplateVersionSoap[] soapModels = new DDMTemplateVersionSoap[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 DDMTemplateVersionSoap[][] toSoapModels(
071                    DDMTemplateVersion[][] models) {
072                    DDMTemplateVersionSoap[][] soapModels = null;
073    
074                    if (models.length > 0) {
075                            soapModels = new DDMTemplateVersionSoap[models.length][models[0].length];
076                    }
077                    else {
078                            soapModels = new DDMTemplateVersionSoap[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 DDMTemplateVersionSoap[] toSoapModels(
089                    List<DDMTemplateVersion> models) {
090                    List<DDMTemplateVersionSoap> soapModels = new ArrayList<DDMTemplateVersionSoap>(models.size());
091    
092                    for (DDMTemplateVersion model : models) {
093                            soapModels.add(toSoapModel(model));
094                    }
095    
096                    return soapModels.toArray(new DDMTemplateVersionSoap[soapModels.size()]);
097            }
098    
099            public DDMTemplateVersionSoap() {
100            }
101    
102            public long getPrimaryKey() {
103                    return _templateVersionId;
104            }
105    
106            public void setPrimaryKey(long pk) {
107                    setTemplateVersionId(pk);
108            }
109    
110            public long getTemplateVersionId() {
111                    return _templateVersionId;
112            }
113    
114            public void setTemplateVersionId(long templateVersionId) {
115                    _templateVersionId = templateVersionId;
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 getClassNameId() {
159                    return _classNameId;
160            }
161    
162            public void setClassNameId(long classNameId) {
163                    _classNameId = classNameId;
164            }
165    
166            public long getClassPK() {
167                    return _classPK;
168            }
169    
170            public void setClassPK(long classPK) {
171                    _classPK = classPK;
172            }
173    
174            public long getTemplateId() {
175                    return _templateId;
176            }
177    
178            public void setTemplateId(long templateId) {
179                    _templateId = templateId;
180            }
181    
182            public String getVersion() {
183                    return _version;
184            }
185    
186            public void setVersion(String version) {
187                    _version = version;
188            }
189    
190            public String getName() {
191                    return _name;
192            }
193    
194            public void setName(String name) {
195                    _name = name;
196            }
197    
198            public String getDescription() {
199                    return _description;
200            }
201    
202            public void setDescription(String description) {
203                    _description = description;
204            }
205    
206            public String getLanguage() {
207                    return _language;
208            }
209    
210            public void setLanguage(String language) {
211                    _language = language;
212            }
213    
214            public String getScript() {
215                    return _script;
216            }
217    
218            public void setScript(String script) {
219                    _script = script;
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 _templateVersionId;
255            private long _groupId;
256            private long _companyId;
257            private long _userId;
258            private String _userName;
259            private Date _createDate;
260            private long _classNameId;
261            private long _classPK;
262            private long _templateId;
263            private String _version;
264            private String _name;
265            private String _description;
266            private String _language;
267            private String _script;
268            private int _status;
269            private long _statusByUserId;
270            private String _statusByUserName;
271            private Date _statusDate;
272    }