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.ratings.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="RatingsEntrySoap.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.ratings.service.http.RatingsEntryServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.ratings.service.http.RatingsEntryServiceSoap
045: *
046: */
047: public class RatingsEntrySoap implements Serializable {
048: public static RatingsEntrySoap toSoapModel(RatingsEntry model) {
049: RatingsEntrySoap soapModel = new RatingsEntrySoap();
050:
051: soapModel.setEntryId(model.getEntryId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setUserName(model.getUserName());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setClassNameId(model.getClassNameId());
058: soapModel.setClassPK(model.getClassPK());
059: soapModel.setScore(model.getScore());
060:
061: return soapModel;
062: }
063:
064: public static RatingsEntrySoap[] toSoapModels(List models) {
065: List soapModels = new ArrayList(models.size());
066:
067: for (int i = 0; i < models.size(); i++) {
068: RatingsEntry model = (RatingsEntry) models.get(i);
069:
070: soapModels.add(toSoapModel(model));
071: }
072:
073: return (RatingsEntrySoap[]) soapModels
074: .toArray(new RatingsEntrySoap[0]);
075: }
076:
077: public RatingsEntrySoap() {
078: }
079:
080: public long getPrimaryKey() {
081: return _entryId;
082: }
083:
084: public void setPrimaryKey(long pk) {
085: setEntryId(pk);
086: }
087:
088: public long getEntryId() {
089: return _entryId;
090: }
091:
092: public void setEntryId(long entryId) {
093: _entryId = entryId;
094: }
095:
096: public long getCompanyId() {
097: return _companyId;
098: }
099:
100: public void setCompanyId(long companyId) {
101: _companyId = companyId;
102: }
103:
104: public long getUserId() {
105: return _userId;
106: }
107:
108: public void setUserId(long userId) {
109: _userId = userId;
110: }
111:
112: public String getUserName() {
113: return _userName;
114: }
115:
116: public void setUserName(String userName) {
117: _userName = userName;
118: }
119:
120: public Date getCreateDate() {
121: return _createDate;
122: }
123:
124: public void setCreateDate(Date createDate) {
125: _createDate = createDate;
126: }
127:
128: public Date getModifiedDate() {
129: return _modifiedDate;
130: }
131:
132: public void setModifiedDate(Date modifiedDate) {
133: _modifiedDate = modifiedDate;
134: }
135:
136: public long getClassNameId() {
137: return _classNameId;
138: }
139:
140: public void setClassNameId(long classNameId) {
141: _classNameId = classNameId;
142: }
143:
144: public long getClassPK() {
145: return _classPK;
146: }
147:
148: public void setClassPK(long classPK) {
149: _classPK = classPK;
150: }
151:
152: public double getScore() {
153: return _score;
154: }
155:
156: public void setScore(double score) {
157: _score = score;
158: }
159:
160: private long _entryId;
161: private long _companyId;
162: private long _userId;
163: private String _userName;
164: private Date _createDate;
165: private Date _modifiedDate;
166: private long _classNameId;
167: private long _classPK;
168: private double _score;
169: }
|