001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.polls.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="PollsQuestionSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.polls.service.http.PollsQuestionServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.polls.service.http.PollsQuestionServiceSoap
045: *
046: */
047: public class PollsQuestionSoap implements Serializable {
048: public static PollsQuestionSoap toSoapModel(PollsQuestion model) {
049: PollsQuestionSoap soapModel = new PollsQuestionSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setQuestionId(model.getQuestionId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setUserName(model.getUserName());
057: soapModel.setCreateDate(model.getCreateDate());
058: soapModel.setModifiedDate(model.getModifiedDate());
059: soapModel.setTitle(model.getTitle());
060: soapModel.setDescription(model.getDescription());
061: soapModel.setExpirationDate(model.getExpirationDate());
062: soapModel.setLastVoteDate(model.getLastVoteDate());
063:
064: return soapModel;
065: }
066:
067: public static PollsQuestionSoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: PollsQuestion model = (PollsQuestion) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (PollsQuestionSoap[]) soapModels
077: .toArray(new PollsQuestionSoap[0]);
078: }
079:
080: public PollsQuestionSoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _questionId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setQuestionId(pk);
089: }
090:
091: public String getUuid() {
092: return _uuid;
093: }
094:
095: public void setUuid(String uuid) {
096: _uuid = uuid;
097: }
098:
099: public long getQuestionId() {
100: return _questionId;
101: }
102:
103: public void setQuestionId(long questionId) {
104: _questionId = questionId;
105: }
106:
107: public long getGroupId() {
108: return _groupId;
109: }
110:
111: public void setGroupId(long groupId) {
112: _groupId = groupId;
113: }
114:
115: public long getCompanyId() {
116: return _companyId;
117: }
118:
119: public void setCompanyId(long companyId) {
120: _companyId = companyId;
121: }
122:
123: public long getUserId() {
124: return _userId;
125: }
126:
127: public void setUserId(long userId) {
128: _userId = userId;
129: }
130:
131: public String getUserName() {
132: return _userName;
133: }
134:
135: public void setUserName(String userName) {
136: _userName = userName;
137: }
138:
139: public Date getCreateDate() {
140: return _createDate;
141: }
142:
143: public void setCreateDate(Date createDate) {
144: _createDate = createDate;
145: }
146:
147: public Date getModifiedDate() {
148: return _modifiedDate;
149: }
150:
151: public void setModifiedDate(Date modifiedDate) {
152: _modifiedDate = modifiedDate;
153: }
154:
155: public String getTitle() {
156: return _title;
157: }
158:
159: public void setTitle(String title) {
160: _title = title;
161: }
162:
163: public String getDescription() {
164: return _description;
165: }
166:
167: public void setDescription(String description) {
168: _description = description;
169: }
170:
171: public Date getExpirationDate() {
172: return _expirationDate;
173: }
174:
175: public void setExpirationDate(Date expirationDate) {
176: _expirationDate = expirationDate;
177: }
178:
179: public Date getLastVoteDate() {
180: return _lastVoteDate;
181: }
182:
183: public void setLastVoteDate(Date lastVoteDate) {
184: _lastVoteDate = lastVoteDate;
185: }
186:
187: private String _uuid;
188: private long _questionId;
189: private long _groupId;
190: private long _companyId;
191: private long _userId;
192: private String _userName;
193: private Date _createDate;
194: private Date _modifiedDate;
195: private String _title;
196: private String _description;
197: private Date _expirationDate;
198: private Date _lastVoteDate;
199: }
|