1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="SCProductEntrySoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap
47   *
48   */
49  public class SCProductEntrySoap implements Serializable {
50      public static SCProductEntrySoap toSoapModel(SCProductEntry model) {
51          SCProductEntrySoap soapModel = new SCProductEntrySoap();
52  
53          soapModel.setProductEntryId(model.getProductEntryId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setName(model.getName());
61          soapModel.setType(model.getType());
62          soapModel.setTags(model.getTags());
63          soapModel.setShortDescription(model.getShortDescription());
64          soapModel.setLongDescription(model.getLongDescription());
65          soapModel.setPageURL(model.getPageURL());
66          soapModel.setAuthor(model.getAuthor());
67          soapModel.setRepoGroupId(model.getRepoGroupId());
68          soapModel.setRepoArtifactId(model.getRepoArtifactId());
69  
70          return soapModel;
71      }
72  
73      public static SCProductEntrySoap[] toSoapModels(SCProductEntry[] models) {
74          SCProductEntrySoap[] soapModels = new SCProductEntrySoap[models.length];
75  
76          for (int i = 0; i < models.length; i++) {
77              soapModels[i] = toSoapModel(models[i]);
78          }
79  
80          return soapModels;
81      }
82  
83      public static SCProductEntrySoap[][] toSoapModels(SCProductEntry[][] models) {
84          SCProductEntrySoap[][] soapModels = null;
85  
86          if (models.length > 0) {
87              soapModels = new SCProductEntrySoap[models.length][models[0].length];
88          }
89          else {
90              soapModels = new SCProductEntrySoap[0][0];
91          }
92  
93          for (int i = 0; i < models.length; i++) {
94              soapModels[i] = toSoapModels(models[i]);
95          }
96  
97          return soapModels;
98      }
99  
100     public static SCProductEntrySoap[] toSoapModels(List<SCProductEntry> models) {
101         List<SCProductEntrySoap> soapModels = new ArrayList<SCProductEntrySoap>(models.size());
102 
103         for (SCProductEntry model : models) {
104             soapModels.add(toSoapModel(model));
105         }
106 
107         return soapModels.toArray(new SCProductEntrySoap[soapModels.size()]);
108     }
109 
110     public SCProductEntrySoap() {
111     }
112 
113     public long getPrimaryKey() {
114         return _productEntryId;
115     }
116 
117     public void setPrimaryKey(long pk) {
118         setProductEntryId(pk);
119     }
120 
121     public long getProductEntryId() {
122         return _productEntryId;
123     }
124 
125     public void setProductEntryId(long productEntryId) {
126         _productEntryId = productEntryId;
127     }
128 
129     public long getGroupId() {
130         return _groupId;
131     }
132 
133     public void setGroupId(long groupId) {
134         _groupId = groupId;
135     }
136 
137     public long getCompanyId() {
138         return _companyId;
139     }
140 
141     public void setCompanyId(long companyId) {
142         _companyId = companyId;
143     }
144 
145     public long getUserId() {
146         return _userId;
147     }
148 
149     public void setUserId(long userId) {
150         _userId = userId;
151     }
152 
153     public String getUserName() {
154         return _userName;
155     }
156 
157     public void setUserName(String userName) {
158         _userName = userName;
159     }
160 
161     public Date getCreateDate() {
162         return _createDate;
163     }
164 
165     public void setCreateDate(Date createDate) {
166         _createDate = createDate;
167     }
168 
169     public Date getModifiedDate() {
170         return _modifiedDate;
171     }
172 
173     public void setModifiedDate(Date modifiedDate) {
174         _modifiedDate = modifiedDate;
175     }
176 
177     public String getName() {
178         return _name;
179     }
180 
181     public void setName(String name) {
182         _name = name;
183     }
184 
185     public String getType() {
186         return _type;
187     }
188 
189     public void setType(String type) {
190         _type = type;
191     }
192 
193     public String getTags() {
194         return _tags;
195     }
196 
197     public void setTags(String tags) {
198         _tags = tags;
199     }
200 
201     public String getShortDescription() {
202         return _shortDescription;
203     }
204 
205     public void setShortDescription(String shortDescription) {
206         _shortDescription = shortDescription;
207     }
208 
209     public String getLongDescription() {
210         return _longDescription;
211     }
212 
213     public void setLongDescription(String longDescription) {
214         _longDescription = longDescription;
215     }
216 
217     public String getPageURL() {
218         return _pageURL;
219     }
220 
221     public void setPageURL(String pageURL) {
222         _pageURL = pageURL;
223     }
224 
225     public String getAuthor() {
226         return _author;
227     }
228 
229     public void setAuthor(String author) {
230         _author = author;
231     }
232 
233     public String getRepoGroupId() {
234         return _repoGroupId;
235     }
236 
237     public void setRepoGroupId(String repoGroupId) {
238         _repoGroupId = repoGroupId;
239     }
240 
241     public String getRepoArtifactId() {
242         return _repoArtifactId;
243     }
244 
245     public void setRepoArtifactId(String repoArtifactId) {
246         _repoArtifactId = repoArtifactId;
247     }
248 
249     private long _productEntryId;
250     private long _groupId;
251     private long _companyId;
252     private long _userId;
253     private String _userName;
254     private Date _createDate;
255     private Date _modifiedDate;
256     private String _name;
257     private String _type;
258     private String _tags;
259     private String _shortDescription;
260     private String _longDescription;
261     private String _pageURL;
262     private String _author;
263     private String _repoGroupId;
264     private String _repoArtifactId;
265 }