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