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.ExpandoValueServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portlet.expando.service.http.ExpandoValueServiceSoap
027     * @generated
028     */
029    public class ExpandoValueSoap implements Serializable {
030            public static ExpandoValueSoap toSoapModel(ExpandoValue model) {
031                    ExpandoValueSoap soapModel = new ExpandoValueSoap();
032    
033                    soapModel.setValueId(model.getValueId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setTableId(model.getTableId());
036                    soapModel.setColumnId(model.getColumnId());
037                    soapModel.setRowId(model.getRowId());
038                    soapModel.setClassNameId(model.getClassNameId());
039                    soapModel.setClassPK(model.getClassPK());
040                    soapModel.setData(model.getData());
041    
042                    return soapModel;
043            }
044    
045            public static ExpandoValueSoap[] toSoapModels(ExpandoValue[] models) {
046                    ExpandoValueSoap[] soapModels = new ExpandoValueSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static ExpandoValueSoap[][] toSoapModels(ExpandoValue[][] models) {
056                    ExpandoValueSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new ExpandoValueSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new ExpandoValueSoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static ExpandoValueSoap[] toSoapModels(List<ExpandoValue> models) {
073                    List<ExpandoValueSoap> soapModels = new ArrayList<ExpandoValueSoap>(models.size());
074    
075                    for (ExpandoValue model : models) {
076                            soapModels.add(toSoapModel(model));
077                    }
078    
079                    return soapModels.toArray(new ExpandoValueSoap[soapModels.size()]);
080            }
081    
082            public ExpandoValueSoap() {
083            }
084    
085            public long getPrimaryKey() {
086                    return _valueId;
087            }
088    
089            public void setPrimaryKey(long pk) {
090                    setValueId(pk);
091            }
092    
093            public long getValueId() {
094                    return _valueId;
095            }
096    
097            public void setValueId(long valueId) {
098                    _valueId = valueId;
099            }
100    
101            public long getCompanyId() {
102                    return _companyId;
103            }
104    
105            public void setCompanyId(long companyId) {
106                    _companyId = companyId;
107            }
108    
109            public long getTableId() {
110                    return _tableId;
111            }
112    
113            public void setTableId(long tableId) {
114                    _tableId = tableId;
115            }
116    
117            public long getColumnId() {
118                    return _columnId;
119            }
120    
121            public void setColumnId(long columnId) {
122                    _columnId = columnId;
123            }
124    
125            public long getRowId() {
126                    return _rowId;
127            }
128    
129            public void setRowId(long rowId) {
130                    _rowId = rowId;
131            }
132    
133            public long getClassNameId() {
134                    return _classNameId;
135            }
136    
137            public void setClassNameId(long classNameId) {
138                    _classNameId = classNameId;
139            }
140    
141            public long getClassPK() {
142                    return _classPK;
143            }
144    
145            public void setClassPK(long classPK) {
146                    _classPK = classPK;
147            }
148    
149            public String getData() {
150                    return _data;
151            }
152    
153            public void setData(String data) {
154                    _data = data;
155            }
156    
157            private long _valueId;
158            private long _companyId;
159            private long _tableId;
160            private long _columnId;
161            private long _rowId;
162            private long _classNameId;
163            private long _classPK;
164            private String _data;
165    }