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