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.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class ExpandoRowSoap implements Serializable {
033            public static ExpandoRowSoap toSoapModel(ExpandoRow model) {
034                    ExpandoRowSoap soapModel = new ExpandoRowSoap();
035    
036                    soapModel.setRowId(model.getRowId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setModifiedDate(model.getModifiedDate());
039                    soapModel.setTableId(model.getTableId());
040                    soapModel.setClassPK(model.getClassPK());
041    
042                    return soapModel;
043            }
044    
045            public static ExpandoRowSoap[] toSoapModels(ExpandoRow[] models) {
046                    ExpandoRowSoap[] soapModels = new ExpandoRowSoap[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 ExpandoRowSoap[][] toSoapModels(ExpandoRow[][] models) {
056                    ExpandoRowSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new ExpandoRowSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new ExpandoRowSoap[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 ExpandoRowSoap[] toSoapModels(List<ExpandoRow> models) {
073                    List<ExpandoRowSoap> soapModels = new ArrayList<ExpandoRowSoap>(models.size());
074    
075                    for (ExpandoRow model : models) {
076                            soapModels.add(toSoapModel(model));
077                    }
078    
079                    return soapModels.toArray(new ExpandoRowSoap[soapModels.size()]);
080            }
081    
082            public ExpandoRowSoap() {
083            }
084    
085            public long getPrimaryKey() {
086                    return _rowId;
087            }
088    
089            public void setPrimaryKey(long pk) {
090                    setRowId(pk);
091            }
092    
093            public long getRowId() {
094                    return _rowId;
095            }
096    
097            public void setRowId(long rowId) {
098                    _rowId = rowId;
099            }
100    
101            public long getCompanyId() {
102                    return _companyId;
103            }
104    
105            public void setCompanyId(long companyId) {
106                    _companyId = companyId;
107            }
108    
109            public Date getModifiedDate() {
110                    return _modifiedDate;
111            }
112    
113            public void setModifiedDate(Date modifiedDate) {
114                    _modifiedDate = modifiedDate;
115            }
116    
117            public long getTableId() {
118                    return _tableId;
119            }
120    
121            public void setTableId(long tableId) {
122                    _tableId = tableId;
123            }
124    
125            public long getClassPK() {
126                    return _classPK;
127            }
128    
129            public void setClassPK(long classPK) {
130                    _classPK = classPK;
131            }
132    
133            private long _rowId;
134            private long _companyId;
135            private Date _modifiedDate;
136            private long _tableId;
137            private long _classPK;
138    }