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