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