1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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  
56          return soapModel;
57      }
58  
59      public static DLFileVersionSoap[] toSoapModels(DLFileVersion[] models) {
60          DLFileVersionSoap[] soapModels = new DLFileVersionSoap[models.length];
61  
62          for (int i = 0; i < models.length; i++) {
63              soapModels[i] = toSoapModel(models[i]);
64          }
65  
66          return soapModels;
67      }
68  
69      public static DLFileVersionSoap[][] toSoapModels(DLFileVersion[][] models) {
70          DLFileVersionSoap[][] soapModels = null;
71  
72          if (models.length > 0) {
73              soapModels = new DLFileVersionSoap[models.length][models[0].length];
74          }
75          else {
76              soapModels = new DLFileVersionSoap[0][0];
77          }
78  
79          for (int i = 0; i < models.length; i++) {
80              soapModels[i] = toSoapModels(models[i]);
81          }
82  
83          return soapModels;
84      }
85  
86      public static DLFileVersionSoap[] toSoapModels(List<DLFileVersion> models) {
87          List<DLFileVersionSoap> soapModels = new ArrayList<DLFileVersionSoap>(models.size());
88  
89          for (DLFileVersion model : models) {
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return soapModels.toArray(new DLFileVersionSoap[soapModels.size()]);
94      }
95  
96      public DLFileVersionSoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _fileVersionId;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setFileVersionId(pk);
105     }
106 
107     public long getFileVersionId() {
108         return _fileVersionId;
109     }
110 
111     public void setFileVersionId(long fileVersionId) {
112         _fileVersionId = fileVersionId;
113     }
114 
115     public long getGroupId() {
116         return _groupId;
117     }
118 
119     public void setGroupId(long groupId) {
120         _groupId = groupId;
121     }
122 
123     public long getCompanyId() {
124         return _companyId;
125     }
126 
127     public void setCompanyId(long companyId) {
128         _companyId = companyId;
129     }
130 
131     public long getUserId() {
132         return _userId;
133     }
134 
135     public void setUserId(long userId) {
136         _userId = userId;
137     }
138 
139     public String getUserName() {
140         return _userName;
141     }
142 
143     public void setUserName(String userName) {
144         _userName = userName;
145     }
146 
147     public Date getCreateDate() {
148         return _createDate;
149     }
150 
151     public void setCreateDate(Date createDate) {
152         _createDate = createDate;
153     }
154 
155     public long getFolderId() {
156         return _folderId;
157     }
158 
159     public void setFolderId(long folderId) {
160         _folderId = folderId;
161     }
162 
163     public String getName() {
164         return _name;
165     }
166 
167     public void setName(String name) {
168         _name = name;
169     }
170 
171     public String getDescription() {
172         return _description;
173     }
174 
175     public void setDescription(String description) {
176         _description = description;
177     }
178 
179     public double getVersion() {
180         return _version;
181     }
182 
183     public void setVersion(double version) {
184         _version = version;
185     }
186 
187     public int getSize() {
188         return _size;
189     }
190 
191     public void setSize(int size) {
192         _size = size;
193     }
194 
195     private long _fileVersionId;
196     private long _groupId;
197     private long _companyId;
198     private long _userId;
199     private String _userName;
200     private Date _createDate;
201     private long _folderId;
202     private String _name;
203     private String _description;
204     private double _version;
205     private int _size;
206 }