001    /**
002     * Copyright (c) 2000-present 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.ratings.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.ratings.service.http.RatingsEntryServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.ratings.service.http.RatingsEntryServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class RatingsEntrySoap implements Serializable {
034            public static RatingsEntrySoap toSoapModel(RatingsEntry model) {
035                    RatingsEntrySoap soapModel = new RatingsEntrySoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setEntryId(model.getEntryId());
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.setScore(model.getScore());
047    
048                    return soapModel;
049            }
050    
051            public static RatingsEntrySoap[] toSoapModels(RatingsEntry[] models) {
052                    RatingsEntrySoap[] soapModels = new RatingsEntrySoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static RatingsEntrySoap[][] toSoapModels(RatingsEntry[][] models) {
062                    RatingsEntrySoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new RatingsEntrySoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new RatingsEntrySoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static RatingsEntrySoap[] toSoapModels(List<RatingsEntry> models) {
079                    List<RatingsEntrySoap> soapModels = new ArrayList<RatingsEntrySoap>(models.size());
080    
081                    for (RatingsEntry model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new RatingsEntrySoap[soapModels.size()]);
086            }
087    
088            public RatingsEntrySoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _entryId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setEntryId(pk);
097            }
098    
099            public String getUuid() {
100                    return _uuid;
101            }
102    
103            public void setUuid(String uuid) {
104                    _uuid = uuid;
105            }
106    
107            public long getEntryId() {
108                    return _entryId;
109            }
110    
111            public void setEntryId(long entryId) {
112                    _entryId = entryId;
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 long getClassNameId() {
156                    return _classNameId;
157            }
158    
159            public void setClassNameId(long classNameId) {
160                    _classNameId = classNameId;
161            }
162    
163            public long getClassPK() {
164                    return _classPK;
165            }
166    
167            public void setClassPK(long classPK) {
168                    _classPK = classPK;
169            }
170    
171            public double getScore() {
172                    return _score;
173            }
174    
175            public void setScore(double score) {
176                    _score = score;
177            }
178    
179            private String _uuid;
180            private long _entryId;
181            private long _companyId;
182            private long _userId;
183            private String _userName;
184            private Date _createDate;
185            private Date _modifiedDate;
186            private long _classNameId;
187            private long _classPK;
188            private double _score;
189    }