001    /**
002     * Copyright (c) 2000-2010 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.softwarecatalog.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    /**
024     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap
031     * @generated
032     */
033    public class SCProductVersionSoap implements Serializable {
034            public static SCProductVersionSoap toSoapModel(SCProductVersion model) {
035                    SCProductVersionSoap soapModel = new SCProductVersionSoap();
036    
037                    soapModel.setProductVersionId(model.getProductVersionId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setUserName(model.getUserName());
041                    soapModel.setCreateDate(model.getCreateDate());
042                    soapModel.setModifiedDate(model.getModifiedDate());
043                    soapModel.setProductEntryId(model.getProductEntryId());
044                    soapModel.setVersion(model.getVersion());
045                    soapModel.setChangeLog(model.getChangeLog());
046                    soapModel.setDownloadPageURL(model.getDownloadPageURL());
047                    soapModel.setDirectDownloadURL(model.getDirectDownloadURL());
048                    soapModel.setRepoStoreArtifact(model.getRepoStoreArtifact());
049    
050                    return soapModel;
051            }
052    
053            public static SCProductVersionSoap[] toSoapModels(SCProductVersion[] models) {
054                    SCProductVersionSoap[] soapModels = new SCProductVersionSoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static SCProductVersionSoap[][] toSoapModels(
064                    SCProductVersion[][] models) {
065                    SCProductVersionSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new SCProductVersionSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new SCProductVersionSoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static SCProductVersionSoap[] toSoapModels(
082                    List<SCProductVersion> models) {
083                    List<SCProductVersionSoap> soapModels = new ArrayList<SCProductVersionSoap>(models.size());
084    
085                    for (SCProductVersion model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new SCProductVersionSoap[soapModels.size()]);
090            }
091    
092            public SCProductVersionSoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _productVersionId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setProductVersionId(pk);
101            }
102    
103            public long getProductVersionId() {
104                    return _productVersionId;
105            }
106    
107            public void setProductVersionId(long productVersionId) {
108                    _productVersionId = productVersionId;
109            }
110    
111            public long getCompanyId() {
112                    return _companyId;
113            }
114    
115            public void setCompanyId(long companyId) {
116                    _companyId = companyId;
117            }
118    
119            public long getUserId() {
120                    return _userId;
121            }
122    
123            public void setUserId(long userId) {
124                    _userId = userId;
125            }
126    
127            public String getUserName() {
128                    return _userName;
129            }
130    
131            public void setUserName(String userName) {
132                    _userName = userName;
133            }
134    
135            public Date getCreateDate() {
136                    return _createDate;
137            }
138    
139            public void setCreateDate(Date createDate) {
140                    _createDate = createDate;
141            }
142    
143            public Date getModifiedDate() {
144                    return _modifiedDate;
145            }
146    
147            public void setModifiedDate(Date modifiedDate) {
148                    _modifiedDate = modifiedDate;
149            }
150    
151            public long getProductEntryId() {
152                    return _productEntryId;
153            }
154    
155            public void setProductEntryId(long productEntryId) {
156                    _productEntryId = productEntryId;
157            }
158    
159            public String getVersion() {
160                    return _version;
161            }
162    
163            public void setVersion(String version) {
164                    _version = version;
165            }
166    
167            public String getChangeLog() {
168                    return _changeLog;
169            }
170    
171            public void setChangeLog(String changeLog) {
172                    _changeLog = changeLog;
173            }
174    
175            public String getDownloadPageURL() {
176                    return _downloadPageURL;
177            }
178    
179            public void setDownloadPageURL(String downloadPageURL) {
180                    _downloadPageURL = downloadPageURL;
181            }
182    
183            public String getDirectDownloadURL() {
184                    return _directDownloadURL;
185            }
186    
187            public void setDirectDownloadURL(String directDownloadURL) {
188                    _directDownloadURL = directDownloadURL;
189            }
190    
191            public boolean getRepoStoreArtifact() {
192                    return _repoStoreArtifact;
193            }
194    
195            public boolean isRepoStoreArtifact() {
196                    return _repoStoreArtifact;
197            }
198    
199            public void setRepoStoreArtifact(boolean repoStoreArtifact) {
200                    _repoStoreArtifact = repoStoreArtifact;
201            }
202    
203            private long _productVersionId;
204            private long _companyId;
205            private long _userId;
206            private String _userName;
207            private Date _createDate;
208            private Date _modifiedDate;
209            private long _productEntryId;
210            private String _version;
211            private String _changeLog;
212            private String _downloadPageURL;
213            private String _directDownloadURL;
214            private boolean _repoStoreArtifact;
215    }