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.dynamicdatamapping.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 DDMStorageLinkSoap implements Serializable {
029            public static DDMStorageLinkSoap toSoapModel(DDMStorageLink model) {
030                    DDMStorageLinkSoap soapModel = new DDMStorageLinkSoap();
031    
032                    soapModel.setUuid(model.getUuid());
033                    soapModel.setStorageLinkId(model.getStorageLinkId());
034                    soapModel.setClassNameId(model.getClassNameId());
035                    soapModel.setClassPK(model.getClassPK());
036                    soapModel.setStructureId(model.getStructureId());
037    
038                    return soapModel;
039            }
040    
041            public static DDMStorageLinkSoap[] toSoapModels(DDMStorageLink[] models) {
042                    DDMStorageLinkSoap[] soapModels = new DDMStorageLinkSoap[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 DDMStorageLinkSoap[][] toSoapModels(DDMStorageLink[][] models) {
052                    DDMStorageLinkSoap[][] soapModels = null;
053    
054                    if (models.length > 0) {
055                            soapModels = new DDMStorageLinkSoap[models.length][models[0].length];
056                    }
057                    else {
058                            soapModels = new DDMStorageLinkSoap[0][0];
059                    }
060    
061                    for (int i = 0; i < models.length; i++) {
062                            soapModels[i] = toSoapModels(models[i]);
063                    }
064    
065                    return soapModels;
066            }
067    
068            public static DDMStorageLinkSoap[] toSoapModels(List<DDMStorageLink> models) {
069                    List<DDMStorageLinkSoap> soapModels = new ArrayList<DDMStorageLinkSoap>(models.size());
070    
071                    for (DDMStorageLink model : models) {
072                            soapModels.add(toSoapModel(model));
073                    }
074    
075                    return soapModels.toArray(new DDMStorageLinkSoap[soapModels.size()]);
076            }
077    
078            public DDMStorageLinkSoap() {
079            }
080    
081            public long getPrimaryKey() {
082                    return _storageLinkId;
083            }
084    
085            public void setPrimaryKey(long pk) {
086                    setStorageLinkId(pk);
087            }
088    
089            public String getUuid() {
090                    return _uuid;
091            }
092    
093            public void setUuid(String uuid) {
094                    _uuid = uuid;
095            }
096    
097            public long getStorageLinkId() {
098                    return _storageLinkId;
099            }
100    
101            public void setStorageLinkId(long storageLinkId) {
102                    _storageLinkId = storageLinkId;
103            }
104    
105            public long getClassNameId() {
106                    return _classNameId;
107            }
108    
109            public void setClassNameId(long classNameId) {
110                    _classNameId = classNameId;
111            }
112    
113            public long getClassPK() {
114                    return _classPK;
115            }
116    
117            public void setClassPK(long classPK) {
118                    _classPK = classPK;
119            }
120    
121            public long getStructureId() {
122                    return _structureId;
123            }
124    
125            public void setStructureId(long structureId) {
126                    _structureId = structureId;
127            }
128    
129            private String _uuid;
130            private long _storageLinkId;
131            private long _classNameId;
132            private long _classPK;
133            private long _structureId;
134    }