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.documentlibrary.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 DLFileEntryMetadataSoap implements Serializable {
029            public static DLFileEntryMetadataSoap toSoapModel(DLFileEntryMetadata model) {
030                    DLFileEntryMetadataSoap soapModel = new DLFileEntryMetadataSoap();
031    
032                    soapModel.setUuid(model.getUuid());
033                    soapModel.setFileEntryMetadataId(model.getFileEntryMetadataId());
034                    soapModel.setDDMStorageId(model.getDDMStorageId());
035                    soapModel.setDDMStructureId(model.getDDMStructureId());
036                    soapModel.setFileEntryTypeId(model.getFileEntryTypeId());
037                    soapModel.setFileEntryId(model.getFileEntryId());
038                    soapModel.setFileVersionId(model.getFileVersionId());
039    
040                    return soapModel;
041            }
042    
043            public static DLFileEntryMetadataSoap[] toSoapModels(
044                    DLFileEntryMetadata[] models) {
045                    DLFileEntryMetadataSoap[] soapModels = new DLFileEntryMetadataSoap[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 DLFileEntryMetadataSoap[][] toSoapModels(
055                    DLFileEntryMetadata[][] models) {
056                    DLFileEntryMetadataSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new DLFileEntryMetadataSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new DLFileEntryMetadataSoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static DLFileEntryMetadataSoap[] toSoapModels(
073                    List<DLFileEntryMetadata> models) {
074                    List<DLFileEntryMetadataSoap> soapModels = new ArrayList<DLFileEntryMetadataSoap>(models.size());
075    
076                    for (DLFileEntryMetadata model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new DLFileEntryMetadataSoap[soapModels.size()]);
081            }
082    
083            public DLFileEntryMetadataSoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _fileEntryMetadataId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setFileEntryMetadataId(pk);
092            }
093    
094            public String getUuid() {
095                    return _uuid;
096            }
097    
098            public void setUuid(String uuid) {
099                    _uuid = uuid;
100            }
101    
102            public long getFileEntryMetadataId() {
103                    return _fileEntryMetadataId;
104            }
105    
106            public void setFileEntryMetadataId(long fileEntryMetadataId) {
107                    _fileEntryMetadataId = fileEntryMetadataId;
108            }
109    
110            public long getDDMStorageId() {
111                    return _DDMStorageId;
112            }
113    
114            public void setDDMStorageId(long DDMStorageId) {
115                    _DDMStorageId = DDMStorageId;
116            }
117    
118            public long getDDMStructureId() {
119                    return _DDMStructureId;
120            }
121    
122            public void setDDMStructureId(long DDMStructureId) {
123                    _DDMStructureId = DDMStructureId;
124            }
125    
126            public long getFileEntryTypeId() {
127                    return _fileEntryTypeId;
128            }
129    
130            public void setFileEntryTypeId(long fileEntryTypeId) {
131                    _fileEntryTypeId = fileEntryTypeId;
132            }
133    
134            public long getFileEntryId() {
135                    return _fileEntryId;
136            }
137    
138            public void setFileEntryId(long fileEntryId) {
139                    _fileEntryId = fileEntryId;
140            }
141    
142            public long getFileVersionId() {
143                    return _fileVersionId;
144            }
145    
146            public void setFileVersionId(long fileVersionId) {
147                    _fileVersionId = fileVersionId;
148            }
149    
150            private String _uuid;
151            private long _fileEntryMetadataId;
152            private long _DDMStorageId;
153            private long _DDMStructureId;
154            private long _fileEntryTypeId;
155            private long _fileEntryId;
156            private long _fileVersionId;
157    }