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