1
22
23 package com.liferay.portlet.ratings.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
49 public class RatingsEntrySoap implements Serializable {
50 public static RatingsEntrySoap toSoapModel(RatingsEntry model) {
51 RatingsEntrySoap soapModel = new RatingsEntrySoap();
52
53 soapModel.setEntryId(model.getEntryId());
54 soapModel.setCompanyId(model.getCompanyId());
55 soapModel.setUserId(model.getUserId());
56 soapModel.setUserName(model.getUserName());
57 soapModel.setCreateDate(model.getCreateDate());
58 soapModel.setModifiedDate(model.getModifiedDate());
59 soapModel.setClassNameId(model.getClassNameId());
60 soapModel.setClassPK(model.getClassPK());
61 soapModel.setScore(model.getScore());
62
63 return soapModel;
64 }
65
66 public static RatingsEntrySoap[] toSoapModels(List models) {
67 List soapModels = new ArrayList(models.size());
68
69 for (int i = 0; i < models.size(); i++) {
70 RatingsEntry model = (RatingsEntry)models.get(i);
71
72 soapModels.add(toSoapModel(model));
73 }
74
75 return (RatingsEntrySoap[])soapModels.toArray(new RatingsEntrySoap[0]);
76 }
77
78 public RatingsEntrySoap() {
79 }
80
81 public long getPrimaryKey() {
82 return _entryId;
83 }
84
85 public void setPrimaryKey(long pk) {
86 setEntryId(pk);
87 }
88
89 public long getEntryId() {
90 return _entryId;
91 }
92
93 public void setEntryId(long entryId) {
94 _entryId = entryId;
95 }
96
97 public long getCompanyId() {
98 return _companyId;
99 }
100
101 public void setCompanyId(long companyId) {
102 _companyId = companyId;
103 }
104
105 public long getUserId() {
106 return _userId;
107 }
108
109 public void setUserId(long userId) {
110 _userId = userId;
111 }
112
113 public String getUserName() {
114 return _userName;
115 }
116
117 public void setUserName(String userName) {
118 _userName = userName;
119 }
120
121 public Date getCreateDate() {
122 return _createDate;
123 }
124
125 public void setCreateDate(Date createDate) {
126 _createDate = createDate;
127 }
128
129 public Date getModifiedDate() {
130 return _modifiedDate;
131 }
132
133 public void setModifiedDate(Date modifiedDate) {
134 _modifiedDate = modifiedDate;
135 }
136
137 public long getClassNameId() {
138 return _classNameId;
139 }
140
141 public void setClassNameId(long classNameId) {
142 _classNameId = classNameId;
143 }
144
145 public long getClassPK() {
146 return _classPK;
147 }
148
149 public void setClassPK(long classPK) {
150 _classPK = classPK;
151 }
152
153 public double getScore() {
154 return _score;
155 }
156
157 public void setScore(double score) {
158 _score = score;
159 }
160
161 private long _entryId;
162 private long _companyId;
163 private long _userId;
164 private String _userName;
165 private Date _createDate;
166 private Date _modifiedDate;
167 private long _classNameId;
168 private long _classPK;
169 private double _score;
170 }