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