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.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class TicketSoap implements Serializable {
033            public static TicketSoap toSoapModel(Ticket model) {
034                    TicketSoap soapModel = new TicketSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setTicketId(model.getTicketId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setClassNameId(model.getClassNameId());
041                    soapModel.setClassPK(model.getClassPK());
042                    soapModel.setKey(model.getKey());
043                    soapModel.setType(model.getType());
044                    soapModel.setExtraInfo(model.getExtraInfo());
045                    soapModel.setExpirationDate(model.getExpirationDate());
046    
047                    return soapModel;
048            }
049    
050            public static TicketSoap[] toSoapModels(Ticket[] models) {
051                    TicketSoap[] soapModels = new TicketSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static TicketSoap[][] toSoapModels(Ticket[][] models) {
061                    TicketSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new TicketSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new TicketSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static TicketSoap[] toSoapModels(List<Ticket> models) {
078                    List<TicketSoap> soapModels = new ArrayList<TicketSoap>(models.size());
079    
080                    for (Ticket model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new TicketSoap[soapModels.size()]);
085            }
086    
087            public TicketSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _ticketId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setTicketId(pk);
096            }
097    
098            public long getMvccVersion() {
099                    return _mvccVersion;
100            }
101    
102            public void setMvccVersion(long mvccVersion) {
103                    _mvccVersion = mvccVersion;
104            }
105    
106            public long getTicketId() {
107                    return _ticketId;
108            }
109    
110            public void setTicketId(long ticketId) {
111                    _ticketId = ticketId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public Date getCreateDate() {
123                    return _createDate;
124            }
125    
126            public void setCreateDate(Date createDate) {
127                    _createDate = createDate;
128            }
129    
130            public long getClassNameId() {
131                    return _classNameId;
132            }
133    
134            public void setClassNameId(long classNameId) {
135                    _classNameId = classNameId;
136            }
137    
138            public long getClassPK() {
139                    return _classPK;
140            }
141    
142            public void setClassPK(long classPK) {
143                    _classPK = classPK;
144            }
145    
146            public String getKey() {
147                    return _key;
148            }
149    
150            public void setKey(String key) {
151                    _key = key;
152            }
153    
154            public int getType() {
155                    return _type;
156            }
157    
158            public void setType(int type) {
159                    _type = type;
160            }
161    
162            public String getExtraInfo() {
163                    return _extraInfo;
164            }
165    
166            public void setExtraInfo(String extraInfo) {
167                    _extraInfo = extraInfo;
168            }
169    
170            public Date getExpirationDate() {
171                    return _expirationDate;
172            }
173    
174            public void setExpirationDate(Date expirationDate) {
175                    _expirationDate = expirationDate;
176            }
177    
178            private long _mvccVersion;
179            private long _ticketId;
180            private long _companyId;
181            private Date _createDate;
182            private long _classNameId;
183            private long _classPK;
184            private String _key;
185            private int _type;
186            private String _extraInfo;
187            private Date _expirationDate;
188    }