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.tasks.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.tasks.service.http.TasksProposalServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.tasks.service.http.TasksProposalServiceSoap
031     * @generated
032     */
033    public class TasksProposalSoap implements Serializable {
034            public static TasksProposalSoap toSoapModel(TasksProposal model) {
035                    TasksProposalSoap soapModel = new TasksProposalSoap();
036    
037                    soapModel.setProposalId(model.getProposalId());
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.setClassNameId(model.getClassNameId());
045                    soapModel.setClassPK(model.getClassPK());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setPublishDate(model.getPublishDate());
049                    soapModel.setDueDate(model.getDueDate());
050    
051                    return soapModel;
052            }
053    
054            public static TasksProposalSoap[] toSoapModels(TasksProposal[] models) {
055                    TasksProposalSoap[] soapModels = new TasksProposalSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static TasksProposalSoap[][] toSoapModels(TasksProposal[][] models) {
065                    TasksProposalSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new TasksProposalSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new TasksProposalSoap[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 TasksProposalSoap[] toSoapModels(List<TasksProposal> models) {
082                    List<TasksProposalSoap> soapModels = new ArrayList<TasksProposalSoap>(models.size());
083    
084                    for (TasksProposal model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new TasksProposalSoap[soapModels.size()]);
089            }
090    
091            public TasksProposalSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _proposalId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setProposalId(pk);
100            }
101    
102            public long getProposalId() {
103                    return _proposalId;
104            }
105    
106            public void setProposalId(long proposalId) {
107                    _proposalId = proposalId;
108            }
109    
110            public long getGroupId() {
111                    return _groupId;
112            }
113    
114            public void setGroupId(long groupId) {
115                    _groupId = groupId;
116            }
117    
118            public long getCompanyId() {
119                    return _companyId;
120            }
121    
122            public void setCompanyId(long companyId) {
123                    _companyId = companyId;
124            }
125    
126            public long getUserId() {
127                    return _userId;
128            }
129    
130            public void setUserId(long userId) {
131                    _userId = userId;
132            }
133    
134            public String getUserName() {
135                    return _userName;
136            }
137    
138            public void setUserName(String userName) {
139                    _userName = userName;
140            }
141    
142            public Date getCreateDate() {
143                    return _createDate;
144            }
145    
146            public void setCreateDate(Date createDate) {
147                    _createDate = createDate;
148            }
149    
150            public Date getModifiedDate() {
151                    return _modifiedDate;
152            }
153    
154            public void setModifiedDate(Date modifiedDate) {
155                    _modifiedDate = modifiedDate;
156            }
157    
158            public long getClassNameId() {
159                    return _classNameId;
160            }
161    
162            public void setClassNameId(long classNameId) {
163                    _classNameId = classNameId;
164            }
165    
166            public String getClassPK() {
167                    return _classPK;
168            }
169    
170            public void setClassPK(String classPK) {
171                    _classPK = classPK;
172            }
173    
174            public String getName() {
175                    return _name;
176            }
177    
178            public void setName(String name) {
179                    _name = name;
180            }
181    
182            public String getDescription() {
183                    return _description;
184            }
185    
186            public void setDescription(String description) {
187                    _description = description;
188            }
189    
190            public Date getPublishDate() {
191                    return _publishDate;
192            }
193    
194            public void setPublishDate(Date publishDate) {
195                    _publishDate = publishDate;
196            }
197    
198            public Date getDueDate() {
199                    return _dueDate;
200            }
201    
202            public void setDueDate(Date dueDate) {
203                    _dueDate = dueDate;
204            }
205    
206            private long _proposalId;
207            private long _groupId;
208            private long _companyId;
209            private long _userId;
210            private String _userName;
211            private Date _createDate;
212            private Date _modifiedDate;
213            private long _classNameId;
214            private String _classPK;
215            private String _name;
216            private String _description;
217            private Date _publishDate;
218            private Date _dueDate;
219    }