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