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