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.trash.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 TrashVersionSoap implements Serializable {
029            public static TrashVersionSoap toSoapModel(TrashVersion model) {
030                    TrashVersionSoap soapModel = new TrashVersionSoap();
031    
032                    soapModel.setVersionId(model.getVersionId());
033                    soapModel.setEntryId(model.getEntryId());
034                    soapModel.setClassNameId(model.getClassNameId());
035                    soapModel.setClassPK(model.getClassPK());
036                    soapModel.setTypeSettings(model.getTypeSettings());
037                    soapModel.setStatus(model.getStatus());
038    
039                    return soapModel;
040            }
041    
042            public static TrashVersionSoap[] toSoapModels(TrashVersion[] models) {
043                    TrashVersionSoap[] soapModels = new TrashVersionSoap[models.length];
044    
045                    for (int i = 0; i < models.length; i++) {
046                            soapModels[i] = toSoapModel(models[i]);
047                    }
048    
049                    return soapModels;
050            }
051    
052            public static TrashVersionSoap[][] toSoapModels(TrashVersion[][] models) {
053                    TrashVersionSoap[][] soapModels = null;
054    
055                    if (models.length > 0) {
056                            soapModels = new TrashVersionSoap[models.length][models[0].length];
057                    }
058                    else {
059                            soapModels = new TrashVersionSoap[0][0];
060                    }
061    
062                    for (int i = 0; i < models.length; i++) {
063                            soapModels[i] = toSoapModels(models[i]);
064                    }
065    
066                    return soapModels;
067            }
068    
069            public static TrashVersionSoap[] toSoapModels(List<TrashVersion> models) {
070                    List<TrashVersionSoap> soapModels = new ArrayList<TrashVersionSoap>(models.size());
071    
072                    for (TrashVersion model : models) {
073                            soapModels.add(toSoapModel(model));
074                    }
075    
076                    return soapModels.toArray(new TrashVersionSoap[soapModels.size()]);
077            }
078    
079            public TrashVersionSoap() {
080            }
081    
082            public long getPrimaryKey() {
083                    return _versionId;
084            }
085    
086            public void setPrimaryKey(long pk) {
087                    setVersionId(pk);
088            }
089    
090            public long getVersionId() {
091                    return _versionId;
092            }
093    
094            public void setVersionId(long versionId) {
095                    _versionId = versionId;
096            }
097    
098            public long getEntryId() {
099                    return _entryId;
100            }
101    
102            public void setEntryId(long entryId) {
103                    _entryId = entryId;
104            }
105    
106            public long getClassNameId() {
107                    return _classNameId;
108            }
109    
110            public void setClassNameId(long classNameId) {
111                    _classNameId = classNameId;
112            }
113    
114            public long getClassPK() {
115                    return _classPK;
116            }
117    
118            public void setClassPK(long classPK) {
119                    _classPK = classPK;
120            }
121    
122            public String getTypeSettings() {
123                    return _typeSettings;
124            }
125    
126            public void setTypeSettings(String typeSettings) {
127                    _typeSettings = typeSettings;
128            }
129    
130            public int getStatus() {
131                    return _status;
132            }
133    
134            public void setStatus(int status) {
135                    _status = status;
136            }
137    
138            private long _versionId;
139            private long _entryId;
140            private long _classNameId;
141            private long _classPK;
142            private String _typeSettings;
143            private int _status;
144    }