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