001    /**
002     * Copyright (c) 2000-2013 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.messageboards.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.messageboards.service.http.MBBanServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.messageboards.service.http.MBBanServiceSoap
028     * @generated
029     */
030    public class MBBanSoap implements Serializable {
031            public static MBBanSoap toSoapModel(MBBan model) {
032                    MBBanSoap soapModel = new MBBanSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setBanId(model.getBanId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setBanUserId(model.getBanUserId());
043    
044                    return soapModel;
045            }
046    
047            public static MBBanSoap[] toSoapModels(MBBan[] models) {
048                    MBBanSoap[] soapModels = new MBBanSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static MBBanSoap[][] toSoapModels(MBBan[][] models) {
058                    MBBanSoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new MBBanSoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new MBBanSoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static MBBanSoap[] toSoapModels(List<MBBan> models) {
075                    List<MBBanSoap> soapModels = new ArrayList<MBBanSoap>(models.size());
076    
077                    for (MBBan model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new MBBanSoap[soapModels.size()]);
082            }
083    
084            public MBBanSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _banId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setBanId(pk);
093            }
094    
095            public String getUuid() {
096                    return _uuid;
097            }
098    
099            public void setUuid(String uuid) {
100                    _uuid = uuid;
101            }
102    
103            public long getBanId() {
104                    return _banId;
105            }
106    
107            public void setBanId(long banId) {
108                    _banId = banId;
109            }
110    
111            public long getGroupId() {
112                    return _groupId;
113            }
114    
115            public void setGroupId(long groupId) {
116                    _groupId = groupId;
117            }
118    
119            public long getCompanyId() {
120                    return _companyId;
121            }
122    
123            public void setCompanyId(long companyId) {
124                    _companyId = companyId;
125            }
126    
127            public long getUserId() {
128                    return _userId;
129            }
130    
131            public void setUserId(long userId) {
132                    _userId = userId;
133            }
134    
135            public String getUserName() {
136                    return _userName;
137            }
138    
139            public void setUserName(String userName) {
140                    _userName = userName;
141            }
142    
143            public Date getCreateDate() {
144                    return _createDate;
145            }
146    
147            public void setCreateDate(Date createDate) {
148                    _createDate = createDate;
149            }
150    
151            public Date getModifiedDate() {
152                    return _modifiedDate;
153            }
154    
155            public void setModifiedDate(Date modifiedDate) {
156                    _modifiedDate = modifiedDate;
157            }
158    
159            public long getBanUserId() {
160                    return _banUserId;
161            }
162    
163            public void setBanUserId(long banUserId) {
164                    _banUserId = banUserId;
165            }
166    
167            private String _uuid;
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    }