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.portal.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 ServiceComponentSoap implements Serializable {
032            public static ServiceComponentSoap toSoapModel(ServiceComponent model) {
033                    ServiceComponentSoap soapModel = new ServiceComponentSoap();
034    
035                    soapModel.setMvccVersion(model.getMvccVersion());
036                    soapModel.setServiceComponentId(model.getServiceComponentId());
037                    soapModel.setBuildNamespace(model.getBuildNamespace());
038                    soapModel.setBuildNumber(model.getBuildNumber());
039                    soapModel.setBuildDate(model.getBuildDate());
040                    soapModel.setData(model.getData());
041    
042                    return soapModel;
043            }
044    
045            public static ServiceComponentSoap[] toSoapModels(ServiceComponent[] models) {
046                    ServiceComponentSoap[] soapModels = new ServiceComponentSoap[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 ServiceComponentSoap[][] toSoapModels(
056                    ServiceComponent[][] models) {
057                    ServiceComponentSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new ServiceComponentSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new ServiceComponentSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static ServiceComponentSoap[] toSoapModels(
074                    List<ServiceComponent> models) {
075                    List<ServiceComponentSoap> soapModels = new ArrayList<ServiceComponentSoap>(models.size());
076    
077                    for (ServiceComponent model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new ServiceComponentSoap[soapModels.size()]);
082            }
083    
084            public ServiceComponentSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _serviceComponentId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setServiceComponentId(pk);
093            }
094    
095            public long getMvccVersion() {
096                    return _mvccVersion;
097            }
098    
099            public void setMvccVersion(long mvccVersion) {
100                    _mvccVersion = mvccVersion;
101            }
102    
103            public long getServiceComponentId() {
104                    return _serviceComponentId;
105            }
106    
107            public void setServiceComponentId(long serviceComponentId) {
108                    _serviceComponentId = serviceComponentId;
109            }
110    
111            public String getBuildNamespace() {
112                    return _buildNamespace;
113            }
114    
115            public void setBuildNamespace(String buildNamespace) {
116                    _buildNamespace = buildNamespace;
117            }
118    
119            public long getBuildNumber() {
120                    return _buildNumber;
121            }
122    
123            public void setBuildNumber(long buildNumber) {
124                    _buildNumber = buildNumber;
125            }
126    
127            public long getBuildDate() {
128                    return _buildDate;
129            }
130    
131            public void setBuildDate(long buildDate) {
132                    _buildDate = buildDate;
133            }
134    
135            public String getData() {
136                    return _data;
137            }
138    
139            public void setData(String data) {
140                    _data = data;
141            }
142    
143            private long _mvccVersion;
144            private long _serviceComponentId;
145            private String _buildNamespace;
146            private long _buildNumber;
147            private long _buildDate;
148            private String _data;
149    }