001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.SCProductEntryServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap
031     * @generated
032     */
033    public class SCProductEntrySoap implements Serializable {
034            public static SCProductEntrySoap toSoapModel(SCProductEntry model) {
035                    SCProductEntrySoap soapModel = new SCProductEntrySoap();
036    
037                    soapModel.setProductEntryId(model.getProductEntryId());
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.setModifiedDate(model.getModifiedDate());
044                    soapModel.setName(model.getName());
045                    soapModel.setType(model.getType());
046                    soapModel.setTags(model.getTags());
047                    soapModel.setShortDescription(model.getShortDescription());
048                    soapModel.setLongDescription(model.getLongDescription());
049                    soapModel.setPageURL(model.getPageURL());
050                    soapModel.setAuthor(model.getAuthor());
051                    soapModel.setRepoGroupId(model.getRepoGroupId());
052                    soapModel.setRepoArtifactId(model.getRepoArtifactId());
053    
054                    return soapModel;
055            }
056    
057            public static SCProductEntrySoap[] toSoapModels(SCProductEntry[] models) {
058                    SCProductEntrySoap[] soapModels = new SCProductEntrySoap[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 SCProductEntrySoap[][] toSoapModels(SCProductEntry[][] models) {
068                    SCProductEntrySoap[][] soapModels = null;
069    
070                    if (models.length > 0) {
071                            soapModels = new SCProductEntrySoap[models.length][models[0].length];
072                    }
073                    else {
074                            soapModels = new SCProductEntrySoap[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 SCProductEntrySoap[] toSoapModels(List<SCProductEntry> models) {
085                    List<SCProductEntrySoap> soapModels = new ArrayList<SCProductEntrySoap>(models.size());
086    
087                    for (SCProductEntry model : models) {
088                            soapModels.add(toSoapModel(model));
089                    }
090    
091                    return soapModels.toArray(new SCProductEntrySoap[soapModels.size()]);
092            }
093    
094            public SCProductEntrySoap() {
095            }
096    
097            public long getPrimaryKey() {
098                    return _productEntryId;
099            }
100    
101            public void setPrimaryKey(long pk) {
102                    setProductEntryId(pk);
103            }
104    
105            public long getProductEntryId() {
106                    return _productEntryId;
107            }
108    
109            public void setProductEntryId(long productEntryId) {
110                    _productEntryId = productEntryId;
111            }
112    
113            public long getGroupId() {
114                    return _groupId;
115            }
116    
117            public void setGroupId(long groupId) {
118                    _groupId = groupId;
119            }
120    
121            public long getCompanyId() {
122                    return _companyId;
123            }
124    
125            public void setCompanyId(long companyId) {
126                    _companyId = companyId;
127            }
128    
129            public long getUserId() {
130                    return _userId;
131            }
132    
133            public void setUserId(long userId) {
134                    _userId = userId;
135            }
136    
137            public String getUserName() {
138                    return _userName;
139            }
140    
141            public void setUserName(String userName) {
142                    _userName = userName;
143            }
144    
145            public Date getCreateDate() {
146                    return _createDate;
147            }
148    
149            public void setCreateDate(Date createDate) {
150                    _createDate = createDate;
151            }
152    
153            public Date getModifiedDate() {
154                    return _modifiedDate;
155            }
156    
157            public void setModifiedDate(Date modifiedDate) {
158                    _modifiedDate = modifiedDate;
159            }
160    
161            public String getName() {
162                    return _name;
163            }
164    
165            public void setName(String name) {
166                    _name = name;
167            }
168    
169            public String getType() {
170                    return _type;
171            }
172    
173            public void setType(String type) {
174                    _type = type;
175            }
176    
177            public String getTags() {
178                    return _tags;
179            }
180    
181            public void setTags(String tags) {
182                    _tags = tags;
183            }
184    
185            public String getShortDescription() {
186                    return _shortDescription;
187            }
188    
189            public void setShortDescription(String shortDescription) {
190                    _shortDescription = shortDescription;
191            }
192    
193            public String getLongDescription() {
194                    return _longDescription;
195            }
196    
197            public void setLongDescription(String longDescription) {
198                    _longDescription = longDescription;
199            }
200    
201            public String getPageURL() {
202                    return _pageURL;
203            }
204    
205            public void setPageURL(String pageURL) {
206                    _pageURL = pageURL;
207            }
208    
209            public String getAuthor() {
210                    return _author;
211            }
212    
213            public void setAuthor(String author) {
214                    _author = author;
215            }
216    
217            public String getRepoGroupId() {
218                    return _repoGroupId;
219            }
220    
221            public void setRepoGroupId(String repoGroupId) {
222                    _repoGroupId = repoGroupId;
223            }
224    
225            public String getRepoArtifactId() {
226                    return _repoArtifactId;
227            }
228    
229            public void setRepoArtifactId(String repoArtifactId) {
230                    _repoArtifactId = repoArtifactId;
231            }
232    
233            private long _productEntryId;
234            private long _groupId;
235            private long _companyId;
236            private long _userId;
237            private String _userName;
238            private Date _createDate;
239            private Date _modifiedDate;
240            private String _name;
241            private String _type;
242            private String _tags;
243            private String _shortDescription;
244            private String _longDescription;
245            private String _pageURL;
246            private String _author;
247            private String _repoGroupId;
248            private String _repoArtifactId;
249    }