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.messageboards.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="MBBanSoap.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.messageboards.service.http.MBBanServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.messageboards.service.http.MBBanServiceSoap
38   * @generated
39   */
40  public class MBBanSoap implements Serializable {
41      public static MBBanSoap toSoapModel(MBBan model) {
42          MBBanSoap soapModel = new MBBanSoap();
43  
44          soapModel.setBanId(model.getBanId());
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.setModifiedDate(model.getModifiedDate());
51          soapModel.setBanUserId(model.getBanUserId());
52  
53          return soapModel;
54      }
55  
56      public static MBBanSoap[] toSoapModels(MBBan[] models) {
57          MBBanSoap[] soapModels = new MBBanSoap[models.length];
58  
59          for (int i = 0; i < models.length; i++) {
60              soapModels[i] = toSoapModel(models[i]);
61          }
62  
63          return soapModels;
64      }
65  
66      public static MBBanSoap[][] toSoapModels(MBBan[][] models) {
67          MBBanSoap[][] soapModels = null;
68  
69          if (models.length > 0) {
70              soapModels = new MBBanSoap[models.length][models[0].length];
71          }
72          else {
73              soapModels = new MBBanSoap[0][0];
74          }
75  
76          for (int i = 0; i < models.length; i++) {
77              soapModels[i] = toSoapModels(models[i]);
78          }
79  
80          return soapModels;
81      }
82  
83      public static MBBanSoap[] toSoapModels(List<MBBan> models) {
84          List<MBBanSoap> soapModels = new ArrayList<MBBanSoap>(models.size());
85  
86          for (MBBan model : models) {
87              soapModels.add(toSoapModel(model));
88          }
89  
90          return soapModels.toArray(new MBBanSoap[soapModels.size()]);
91      }
92  
93      public MBBanSoap() {
94      }
95  
96      public long getPrimaryKey() {
97          return _banId;
98      }
99  
100     public void setPrimaryKey(long pk) {
101         setBanId(pk);
102     }
103 
104     public long getBanId() {
105         return _banId;
106     }
107 
108     public void setBanId(long banId) {
109         _banId = banId;
110     }
111 
112     public long getGroupId() {
113         return _groupId;
114     }
115 
116     public void setGroupId(long groupId) {
117         _groupId = groupId;
118     }
119 
120     public long getCompanyId() {
121         return _companyId;
122     }
123 
124     public void setCompanyId(long companyId) {
125         _companyId = companyId;
126     }
127 
128     public long getUserId() {
129         return _userId;
130     }
131 
132     public void setUserId(long userId) {
133         _userId = userId;
134     }
135 
136     public String getUserName() {
137         return _userName;
138     }
139 
140     public void setUserName(String userName) {
141         _userName = userName;
142     }
143 
144     public Date getCreateDate() {
145         return _createDate;
146     }
147 
148     public void setCreateDate(Date createDate) {
149         _createDate = createDate;
150     }
151 
152     public Date getModifiedDate() {
153         return _modifiedDate;
154     }
155 
156     public void setModifiedDate(Date modifiedDate) {
157         _modifiedDate = modifiedDate;
158     }
159 
160     public long getBanUserId() {
161         return _banUserId;
162     }
163 
164     public void setBanUserId(long banUserId) {
165         _banUserId = banUserId;
166     }
167 
168     private long _banId;
169     private long _groupId;
170     private long _companyId;
171     private long _userId;
172     private String _userName;
173     private Date _createDate;
174     private Date _modifiedDate;
175     private long _banUserId;
176 }