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