1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="SocialRequestSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.social.service.http.SocialRequestServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.social.service.http.SocialRequestServiceSoap
37   * @generated
38   */
39  public class SocialRequestSoap implements Serializable {
40      public static SocialRequestSoap toSoapModel(SocialRequest model) {
41          SocialRequestSoap soapModel = new SocialRequestSoap();
42  
43          soapModel.setUuid(model.getUuid());
44          soapModel.setRequestId(model.getRequestId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setCreateDate(model.getCreateDate());
49          soapModel.setModifiedDate(model.getModifiedDate());
50          soapModel.setClassNameId(model.getClassNameId());
51          soapModel.setClassPK(model.getClassPK());
52          soapModel.setType(model.getType());
53          soapModel.setExtraData(model.getExtraData());
54          soapModel.setReceiverUserId(model.getReceiverUserId());
55          soapModel.setStatus(model.getStatus());
56  
57          return soapModel;
58      }
59  
60      public static SocialRequestSoap[] toSoapModels(SocialRequest[] models) {
61          SocialRequestSoap[] soapModels = new SocialRequestSoap[models.length];
62  
63          for (int i = 0; i < models.length; i++) {
64              soapModels[i] = toSoapModel(models[i]);
65          }
66  
67          return soapModels;
68      }
69  
70      public static SocialRequestSoap[][] toSoapModels(SocialRequest[][] models) {
71          SocialRequestSoap[][] soapModels = null;
72  
73          if (models.length > 0) {
74              soapModels = new SocialRequestSoap[models.length][models[0].length];
75          }
76          else {
77              soapModels = new SocialRequestSoap[0][0];
78          }
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModels(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static SocialRequestSoap[] toSoapModels(List<SocialRequest> models) {
88          List<SocialRequestSoap> soapModels = new ArrayList<SocialRequestSoap>(models.size());
89  
90          for (SocialRequest model : models) {
91              soapModels.add(toSoapModel(model));
92          }
93  
94          return soapModels.toArray(new SocialRequestSoap[soapModels.size()]);
95      }
96  
97      public SocialRequestSoap() {
98      }
99  
100     public long getPrimaryKey() {
101         return _requestId;
102     }
103 
104     public void setPrimaryKey(long pk) {
105         setRequestId(pk);
106     }
107 
108     public String getUuid() {
109         return _uuid;
110     }
111 
112     public void setUuid(String uuid) {
113         _uuid = uuid;
114     }
115 
116     public long getRequestId() {
117         return _requestId;
118     }
119 
120     public void setRequestId(long requestId) {
121         _requestId = requestId;
122     }
123 
124     public long getGroupId() {
125         return _groupId;
126     }
127 
128     public void setGroupId(long groupId) {
129         _groupId = groupId;
130     }
131 
132     public long getCompanyId() {
133         return _companyId;
134     }
135 
136     public void setCompanyId(long companyId) {
137         _companyId = companyId;
138     }
139 
140     public long getUserId() {
141         return _userId;
142     }
143 
144     public void setUserId(long userId) {
145         _userId = userId;
146     }
147 
148     public long getCreateDate() {
149         return _createDate;
150     }
151 
152     public void setCreateDate(long createDate) {
153         _createDate = createDate;
154     }
155 
156     public long getModifiedDate() {
157         return _modifiedDate;
158     }
159 
160     public void setModifiedDate(long modifiedDate) {
161         _modifiedDate = modifiedDate;
162     }
163 
164     public long getClassNameId() {
165         return _classNameId;
166     }
167 
168     public void setClassNameId(long classNameId) {
169         _classNameId = classNameId;
170     }
171 
172     public long getClassPK() {
173         return _classPK;
174     }
175 
176     public void setClassPK(long classPK) {
177         _classPK = classPK;
178     }
179 
180     public int getType() {
181         return _type;
182     }
183 
184     public void setType(int type) {
185         _type = type;
186     }
187 
188     public String getExtraData() {
189         return _extraData;
190     }
191 
192     public void setExtraData(String extraData) {
193         _extraData = extraData;
194     }
195 
196     public long getReceiverUserId() {
197         return _receiverUserId;
198     }
199 
200     public void setReceiverUserId(long receiverUserId) {
201         _receiverUserId = receiverUserId;
202     }
203 
204     public int getStatus() {
205         return _status;
206     }
207 
208     public void setStatus(int status) {
209         _status = status;
210     }
211 
212     private String _uuid;
213     private long _requestId;
214     private long _groupId;
215     private long _companyId;
216     private long _userId;
217     private long _createDate;
218     private long _modifiedDate;
219     private long _classNameId;
220     private long _classPK;
221     private int _type;
222     private String _extraData;
223     private long _receiverUserId;
224     private int _status;
225 }