001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class ExpandoTableSoap implements Serializable {
032            public static ExpandoTableSoap toSoapModel(ExpandoTable model) {
033                    ExpandoTableSoap soapModel = new ExpandoTableSoap();
034    
035                    soapModel.setTableId(model.getTableId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setClassNameId(model.getClassNameId());
038                    soapModel.setName(model.getName());
039    
040                    return soapModel;
041            }
042    
043            public static ExpandoTableSoap[] toSoapModels(ExpandoTable[] models) {
044                    ExpandoTableSoap[] soapModels = new ExpandoTableSoap[models.length];
045    
046                    for (int i = 0; i < models.length; i++) {
047                            soapModels[i] = toSoapModel(models[i]);
048                    }
049    
050                    return soapModels;
051            }
052    
053            public static ExpandoTableSoap[][] toSoapModels(ExpandoTable[][] models) {
054                    ExpandoTableSoap[][] soapModels = null;
055    
056                    if (models.length > 0) {
057                            soapModels = new ExpandoTableSoap[models.length][models[0].length];
058                    }
059                    else {
060                            soapModels = new ExpandoTableSoap[0][0];
061                    }
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModels(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static ExpandoTableSoap[] toSoapModels(List<ExpandoTable> models) {
071                    List<ExpandoTableSoap> soapModels = new ArrayList<ExpandoTableSoap>(models.size());
072    
073                    for (ExpandoTable model : models) {
074                            soapModels.add(toSoapModel(model));
075                    }
076    
077                    return soapModels.toArray(new ExpandoTableSoap[soapModels.size()]);
078            }
079    
080            public ExpandoTableSoap() {
081            }
082    
083            public long getPrimaryKey() {
084                    return _tableId;
085            }
086    
087            public void setPrimaryKey(long pk) {
088                    setTableId(pk);
089            }
090    
091            public long getTableId() {
092                    return _tableId;
093            }
094    
095            public void setTableId(long tableId) {
096                    _tableId = tableId;
097            }
098    
099            public long getCompanyId() {
100                    return _companyId;
101            }
102    
103            public void setCompanyId(long companyId) {
104                    _companyId = companyId;
105            }
106    
107            public long getClassNameId() {
108                    return _classNameId;
109            }
110    
111            public void setClassNameId(long classNameId) {
112                    _classNameId = classNameId;
113            }
114    
115            public String getName() {
116                    return _name;
117            }
118    
119            public void setName(String name) {
120                    _name = name;
121            }
122    
123            private long _tableId;
124            private long _companyId;
125            private long _classNameId;
126            private String _name;
127    }