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.documentlibrary.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="DLFileVersionSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.documentlibrary.service.http.DLFileVersionServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.documentlibrary.service.http.DLFileVersionServiceSoap
38   * @generated
39   */
40  public class DLFileVersionSoap implements Serializable {
41      public static DLFileVersionSoap toSoapModel(DLFileVersion model) {
42          DLFileVersionSoap soapModel = new DLFileVersionSoap();
43  
44          soapModel.setFileVersionId(model.getFileVersionId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setFolderId(model.getFolderId());
51          soapModel.setName(model.getName());
52          soapModel.setDescription(model.getDescription());
53          soapModel.setVersion(model.getVersion());
54          soapModel.setSize(model.getSize());
55          soapModel.setStatus(model.getStatus());
56          soapModel.setStatusByUserId(model.getStatusByUserId());
57          soapModel.setStatusByUserName(model.getStatusByUserName());
58          soapModel.setStatusDate(model.getStatusDate());
59  
60          return soapModel;
61      }
62  
63      public static DLFileVersionSoap[] toSoapModels(DLFileVersion[] models) {
64          DLFileVersionSoap[] soapModels = new DLFileVersionSoap[models.length];
65  
66          for (int i = 0; i < models.length; i++) {
67              soapModels[i] = toSoapModel(models[i]);
68          }
69  
70          return soapModels;
71      }
72  
73      public static DLFileVersionSoap[][] toSoapModels(DLFileVersion[][] models) {
74          DLFileVersionSoap[][] soapModels = null;
75  
76          if (models.length > 0) {
77              soapModels = new DLFileVersionSoap[models.length][models[0].length];
78          }
79          else {
80              soapModels = new DLFileVersionSoap[0][0];
81          }
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModels(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static DLFileVersionSoap[] toSoapModels(List<DLFileVersion> models) {
91          List<DLFileVersionSoap> soapModels = new ArrayList<DLFileVersionSoap>(models.size());
92  
93          for (DLFileVersion model : models) {
94              soapModels.add(toSoapModel(model));
95          }
96  
97          return soapModels.toArray(new DLFileVersionSoap[soapModels.size()]);
98      }
99  
100     public DLFileVersionSoap() {
101     }
102 
103     public long getPrimaryKey() {
104         return _fileVersionId;
105     }
106 
107     public void setPrimaryKey(long pk) {
108         setFileVersionId(pk);
109     }
110 
111     public long getFileVersionId() {
112         return _fileVersionId;
113     }
114 
115     public void setFileVersionId(long fileVersionId) {
116         _fileVersionId = fileVersionId;
117     }
118 
119     public long getGroupId() {
120         return _groupId;
121     }
122 
123     public void setGroupId(long groupId) {
124         _groupId = groupId;
125     }
126 
127     public long getCompanyId() {
128         return _companyId;
129     }
130 
131     public void setCompanyId(long companyId) {
132         _companyId = companyId;
133     }
134 
135     public long getUserId() {
136         return _userId;
137     }
138 
139     public void setUserId(long userId) {
140         _userId = userId;
141     }
142 
143     public String getUserName() {
144         return _userName;
145     }
146 
147     public void setUserName(String userName) {
148         _userName = userName;
149     }
150 
151     public Date getCreateDate() {
152         return _createDate;
153     }
154 
155     public void setCreateDate(Date createDate) {
156         _createDate = createDate;
157     }
158 
159     public long getFolderId() {
160         return _folderId;
161     }
162 
163     public void setFolderId(long folderId) {
164         _folderId = folderId;
165     }
166 
167     public String getName() {
168         return _name;
169     }
170 
171     public void setName(String name) {
172         _name = name;
173     }
174 
175     public String getDescription() {
176         return _description;
177     }
178 
179     public void setDescription(String description) {
180         _description = description;
181     }
182 
183     public String getVersion() {
184         return _version;
185     }
186 
187     public void setVersion(String version) {
188         _version = version;
189     }
190 
191     public int getSize() {
192         return _size;
193     }
194 
195     public void setSize(int size) {
196         _size = size;
197     }
198 
199     public int getStatus() {
200         return _status;
201     }
202 
203     public void setStatus(int status) {
204         _status = status;
205     }
206 
207     public long getStatusByUserId() {
208         return _statusByUserId;
209     }
210 
211     public void setStatusByUserId(long statusByUserId) {
212         _statusByUserId = statusByUserId;
213     }
214 
215     public String getStatusByUserName() {
216         return _statusByUserName;
217     }
218 
219     public void setStatusByUserName(String statusByUserName) {
220         _statusByUserName = statusByUserName;
221     }
222 
223     public Date getStatusDate() {
224         return _statusDate;
225     }
226 
227     public void setStatusDate(Date statusDate) {
228         _statusDate = statusDate;
229     }
230 
231     private long _fileVersionId;
232     private long _groupId;
233     private long _companyId;
234     private long _userId;
235     private String _userName;
236     private Date _createDate;
237     private long _folderId;
238     private String _name;
239     private String _description;
240     private String _version;
241     private int _size;
242     private int _status;
243     private long _statusByUserId;
244     private String _statusByUserName;
245     private Date _statusDate;
246 }