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