1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.tasks.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="TasksProposalSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap
38   * @generated
39   */
40  public class TasksProposalSoap implements Serializable {
41      public static TasksProposalSoap toSoapModel(TasksProposal model) {
42          TasksProposalSoap soapModel = new TasksProposalSoap();
43  
44          soapModel.setProposalId(model.getProposalId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setClassNameId(model.getClassNameId());
52          soapModel.setClassPK(model.getClassPK());
53          soapModel.setName(model.getName());
54          soapModel.setDescription(model.getDescription());
55          soapModel.setPublishDate(model.getPublishDate());
56          soapModel.setDueDate(model.getDueDate());
57  
58          return soapModel;
59      }
60  
61      public static TasksProposalSoap[] toSoapModels(TasksProposal[] models) {
62          TasksProposalSoap[] soapModels = new TasksProposalSoap[models.length];
63  
64          for (int i = 0; i < models.length; i++) {
65              soapModels[i] = toSoapModel(models[i]);
66          }
67  
68          return soapModels;
69      }
70  
71      public static TasksProposalSoap[][] toSoapModels(TasksProposal[][] models) {
72          TasksProposalSoap[][] soapModels = null;
73  
74          if (models.length > 0) {
75              soapModels = new TasksProposalSoap[models.length][models[0].length];
76          }
77          else {
78              soapModels = new TasksProposalSoap[0][0];
79          }
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModels(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static TasksProposalSoap[] toSoapModels(List<TasksProposal> models) {
89          List<TasksProposalSoap> soapModels = new ArrayList<TasksProposalSoap>(models.size());
90  
91          for (TasksProposal model : models) {
92              soapModels.add(toSoapModel(model));
93          }
94  
95          return soapModels.toArray(new TasksProposalSoap[soapModels.size()]);
96      }
97  
98      public TasksProposalSoap() {
99      }
100 
101     public long getPrimaryKey() {
102         return _proposalId;
103     }
104 
105     public void setPrimaryKey(long pk) {
106         setProposalId(pk);
107     }
108 
109     public long getProposalId() {
110         return _proposalId;
111     }
112 
113     public void setProposalId(long proposalId) {
114         _proposalId = proposalId;
115     }
116 
117     public long getGroupId() {
118         return _groupId;
119     }
120 
121     public void setGroupId(long groupId) {
122         _groupId = groupId;
123     }
124 
125     public long getCompanyId() {
126         return _companyId;
127     }
128 
129     public void setCompanyId(long companyId) {
130         _companyId = companyId;
131     }
132 
133     public long getUserId() {
134         return _userId;
135     }
136 
137     public void setUserId(long userId) {
138         _userId = userId;
139     }
140 
141     public String getUserName() {
142         return _userName;
143     }
144 
145     public void setUserName(String userName) {
146         _userName = userName;
147     }
148 
149     public Date getCreateDate() {
150         return _createDate;
151     }
152 
153     public void setCreateDate(Date createDate) {
154         _createDate = createDate;
155     }
156 
157     public Date getModifiedDate() {
158         return _modifiedDate;
159     }
160 
161     public void setModifiedDate(Date modifiedDate) {
162         _modifiedDate = modifiedDate;
163     }
164 
165     public long getClassNameId() {
166         return _classNameId;
167     }
168 
169     public void setClassNameId(long classNameId) {
170         _classNameId = classNameId;
171     }
172 
173     public String getClassPK() {
174         return _classPK;
175     }
176 
177     public void setClassPK(String classPK) {
178         _classPK = classPK;
179     }
180 
181     public String getName() {
182         return _name;
183     }
184 
185     public void setName(String name) {
186         _name = name;
187     }
188 
189     public String getDescription() {
190         return _description;
191     }
192 
193     public void setDescription(String description) {
194         _description = description;
195     }
196 
197     public Date getPublishDate() {
198         return _publishDate;
199     }
200 
201     public void setPublishDate(Date publishDate) {
202         _publishDate = publishDate;
203     }
204 
205     public Date getDueDate() {
206         return _dueDate;
207     }
208 
209     public void setDueDate(Date dueDate) {
210         _dueDate = dueDate;
211     }
212 
213     private long _proposalId;
214     private long _groupId;
215     private long _companyId;
216     private long _userId;
217     private String _userName;
218     private Date _createDate;
219     private Date _modifiedDate;
220     private long _classNameId;
221     private String _classPK;
222     private String _name;
223     private String _description;
224     private Date _publishDate;
225     private Date _dueDate;
226 }