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 DLSyncEventSoap implements Serializable {
029            public static DLSyncEventSoap toSoapModel(DLSyncEvent model) {
030                    DLSyncEventSoap soapModel = new DLSyncEventSoap();
031    
032                    soapModel.setSyncEventId(model.getSyncEventId());
033                    soapModel.setModifiedTime(model.getModifiedTime());
034                    soapModel.setEvent(model.getEvent());
035                    soapModel.setType(model.getType());
036                    soapModel.setTypePK(model.getTypePK());
037    
038                    return soapModel;
039            }
040    
041            public static DLSyncEventSoap[] toSoapModels(DLSyncEvent[] models) {
042                    DLSyncEventSoap[] soapModels = new DLSyncEventSoap[models.length];
043    
044                    for (int i = 0; i < models.length; i++) {
045                            soapModels[i] = toSoapModel(models[i]);
046                    }
047    
048                    return soapModels;
049            }
050    
051            public static DLSyncEventSoap[][] toSoapModels(DLSyncEvent[][] models) {
052                    DLSyncEventSoap[][] soapModels = null;
053    
054                    if (models.length > 0) {
055                            soapModels = new DLSyncEventSoap[models.length][models[0].length];
056                    }
057                    else {
058                            soapModels = new DLSyncEventSoap[0][0];
059                    }
060    
061                    for (int i = 0; i < models.length; i++) {
062                            soapModels[i] = toSoapModels(models[i]);
063                    }
064    
065                    return soapModels;
066            }
067    
068            public static DLSyncEventSoap[] toSoapModels(List<DLSyncEvent> models) {
069                    List<DLSyncEventSoap> soapModels = new ArrayList<DLSyncEventSoap>(models.size());
070    
071                    for (DLSyncEvent model : models) {
072                            soapModels.add(toSoapModel(model));
073                    }
074    
075                    return soapModels.toArray(new DLSyncEventSoap[soapModels.size()]);
076            }
077    
078            public DLSyncEventSoap() {
079            }
080    
081            public long getPrimaryKey() {
082                    return _syncEventId;
083            }
084    
085            public void setPrimaryKey(long pk) {
086                    setSyncEventId(pk);
087            }
088    
089            public long getSyncEventId() {
090                    return _syncEventId;
091            }
092    
093            public void setSyncEventId(long syncEventId) {
094                    _syncEventId = syncEventId;
095            }
096    
097            public long getModifiedTime() {
098                    return _modifiedTime;
099            }
100    
101            public void setModifiedTime(long modifiedTime) {
102                    _modifiedTime = modifiedTime;
103            }
104    
105            public String getEvent() {
106                    return _event;
107            }
108    
109            public void setEvent(String event) {
110                    _event = event;
111            }
112    
113            public String getType() {
114                    return _type;
115            }
116    
117            public void setType(String type) {
118                    _type = type;
119            }
120    
121            public long getTypePK() {
122                    return _typePK;
123            }
124    
125            public void setTypePK(long typePK) {
126                    _typePK = typePK;
127            }
128    
129            private long _syncEventId;
130            private long _modifiedTime;
131            private String _event;
132            private String _type;
133            private long _typePK;
134    }