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.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.trash.service.http.TrashEntryServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.trash.service.http.TrashEntryServiceSoap
028     * @generated
029     */
030    public class TrashEntrySoap implements Serializable {
031            public static TrashEntrySoap toSoapModel(TrashEntry model) {
032                    TrashEntrySoap soapModel = new TrashEntrySoap();
033    
034                    soapModel.setEntryId(model.getEntryId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setClassNameId(model.getClassNameId());
041                    soapModel.setClassPK(model.getClassPK());
042                    soapModel.setTypeSettings(model.getTypeSettings());
043                    soapModel.setStatus(model.getStatus());
044    
045                    return soapModel;
046            }
047    
048            public static TrashEntrySoap[] toSoapModels(TrashEntry[] models) {
049                    TrashEntrySoap[] soapModels = new TrashEntrySoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static TrashEntrySoap[][] toSoapModels(TrashEntry[][] models) {
059                    TrashEntrySoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new TrashEntrySoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new TrashEntrySoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static TrashEntrySoap[] toSoapModels(List<TrashEntry> models) {
076                    List<TrashEntrySoap> soapModels = new ArrayList<TrashEntrySoap>(models.size());
077    
078                    for (TrashEntry model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new TrashEntrySoap[soapModels.size()]);
083            }
084    
085            public TrashEntrySoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _entryId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setEntryId(pk);
094            }
095    
096            public long getEntryId() {
097                    return _entryId;
098            }
099    
100            public void setEntryId(long entryId) {
101                    _entryId = entryId;
102            }
103    
104            public long getGroupId() {
105                    return _groupId;
106            }
107    
108            public void setGroupId(long groupId) {
109                    _groupId = groupId;
110            }
111    
112            public long getCompanyId() {
113                    return _companyId;
114            }
115    
116            public void setCompanyId(long companyId) {
117                    _companyId = companyId;
118            }
119    
120            public long getUserId() {
121                    return _userId;
122            }
123    
124            public void setUserId(long userId) {
125                    _userId = userId;
126            }
127    
128            public String getUserName() {
129                    return _userName;
130            }
131    
132            public void setUserName(String userName) {
133                    _userName = userName;
134            }
135    
136            public Date getCreateDate() {
137                    return _createDate;
138            }
139    
140            public void setCreateDate(Date createDate) {
141                    _createDate = createDate;
142            }
143    
144            public long getClassNameId() {
145                    return _classNameId;
146            }
147    
148            public void setClassNameId(long classNameId) {
149                    _classNameId = classNameId;
150            }
151    
152            public long getClassPK() {
153                    return _classPK;
154            }
155    
156            public void setClassPK(long classPK) {
157                    _classPK = classPK;
158            }
159    
160            public String getTypeSettings() {
161                    return _typeSettings;
162            }
163    
164            public void setTypeSettings(String typeSettings) {
165                    _typeSettings = typeSettings;
166            }
167    
168            public int getStatus() {
169                    return _status;
170            }
171    
172            public void setStatus(int status) {
173                    _status = status;
174            }
175    
176            private long _entryId;
177            private long _groupId;
178            private long _companyId;
179            private long _userId;
180            private String _userName;
181            private Date _createDate;
182            private long _classNameId;
183            private long _classPK;
184            private String _typeSettings;
185            private int _status;
186    }