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.expando.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.expando.service.http.ExpandoColumnServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portlet.expando.service.http.ExpandoColumnServiceSoap
027     * @generated
028     */
029    public class ExpandoColumnSoap implements Serializable {
030            public static ExpandoColumnSoap toSoapModel(ExpandoColumn model) {
031                    ExpandoColumnSoap soapModel = new ExpandoColumnSoap();
032    
033                    soapModel.setColumnId(model.getColumnId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setTableId(model.getTableId());
036                    soapModel.setName(model.getName());
037                    soapModel.setType(model.getType());
038                    soapModel.setDefaultData(model.getDefaultData());
039                    soapModel.setTypeSettings(model.getTypeSettings());
040    
041                    return soapModel;
042            }
043    
044            public static ExpandoColumnSoap[] toSoapModels(ExpandoColumn[] models) {
045                    ExpandoColumnSoap[] soapModels = new ExpandoColumnSoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static ExpandoColumnSoap[][] toSoapModels(ExpandoColumn[][] models) {
055                    ExpandoColumnSoap[][] soapModels = null;
056    
057                    if (models.length > 0) {
058                            soapModels = new ExpandoColumnSoap[models.length][models[0].length];
059                    }
060                    else {
061                            soapModels = new ExpandoColumnSoap[0][0];
062                    }
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModels(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static ExpandoColumnSoap[] toSoapModels(List<ExpandoColumn> models) {
072                    List<ExpandoColumnSoap> soapModels = new ArrayList<ExpandoColumnSoap>(models.size());
073    
074                    for (ExpandoColumn model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new ExpandoColumnSoap[soapModels.size()]);
079            }
080    
081            public ExpandoColumnSoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _columnId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setColumnId(pk);
090            }
091    
092            public long getColumnId() {
093                    return _columnId;
094            }
095    
096            public void setColumnId(long columnId) {
097                    _columnId = columnId;
098            }
099    
100            public long getCompanyId() {
101                    return _companyId;
102            }
103    
104            public void setCompanyId(long companyId) {
105                    _companyId = companyId;
106            }
107    
108            public long getTableId() {
109                    return _tableId;
110            }
111    
112            public void setTableId(long tableId) {
113                    _tableId = tableId;
114            }
115    
116            public String getName() {
117                    return _name;
118            }
119    
120            public void setName(String name) {
121                    _name = name;
122            }
123    
124            public int getType() {
125                    return _type;
126            }
127    
128            public void setType(int type) {
129                    _type = type;
130            }
131    
132            public String getDefaultData() {
133                    return _defaultData;
134            }
135    
136            public void setDefaultData(String defaultData) {
137                    _defaultData = defaultData;
138            }
139    
140            public String getTypeSettings() {
141                    return _typeSettings;
142            }
143    
144            public void setTypeSettings(String typeSettings) {
145                    _typeSettings = typeSettings;
146            }
147    
148            private long _columnId;
149            private long _companyId;
150            private long _tableId;
151            private String _name;
152            private int _type;
153            private String _defaultData;
154            private String _typeSettings;
155    }