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.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 BrowserTrackerSoap implements Serializable {
029            public static BrowserTrackerSoap toSoapModel(BrowserTracker model) {
030                    BrowserTrackerSoap soapModel = new BrowserTrackerSoap();
031    
032                    soapModel.setBrowserTrackerId(model.getBrowserTrackerId());
033                    soapModel.setUserId(model.getUserId());
034                    soapModel.setBrowserKey(model.getBrowserKey());
035    
036                    return soapModel;
037            }
038    
039            public static BrowserTrackerSoap[] toSoapModels(BrowserTracker[] models) {
040                    BrowserTrackerSoap[] soapModels = new BrowserTrackerSoap[models.length];
041    
042                    for (int i = 0; i < models.length; i++) {
043                            soapModels[i] = toSoapModel(models[i]);
044                    }
045    
046                    return soapModels;
047            }
048    
049            public static BrowserTrackerSoap[][] toSoapModels(BrowserTracker[][] models) {
050                    BrowserTrackerSoap[][] soapModels = null;
051    
052                    if (models.length > 0) {
053                            soapModels = new BrowserTrackerSoap[models.length][models[0].length];
054                    }
055                    else {
056                            soapModels = new BrowserTrackerSoap[0][0];
057                    }
058    
059                    for (int i = 0; i < models.length; i++) {
060                            soapModels[i] = toSoapModels(models[i]);
061                    }
062    
063                    return soapModels;
064            }
065    
066            public static BrowserTrackerSoap[] toSoapModels(List<BrowserTracker> models) {
067                    List<BrowserTrackerSoap> soapModels = new ArrayList<BrowserTrackerSoap>(models.size());
068    
069                    for (BrowserTracker model : models) {
070                            soapModels.add(toSoapModel(model));
071                    }
072    
073                    return soapModels.toArray(new BrowserTrackerSoap[soapModels.size()]);
074            }
075    
076            public BrowserTrackerSoap() {
077            }
078    
079            public long getPrimaryKey() {
080                    return _browserTrackerId;
081            }
082    
083            public void setPrimaryKey(long pk) {
084                    setBrowserTrackerId(pk);
085            }
086    
087            public long getBrowserTrackerId() {
088                    return _browserTrackerId;
089            }
090    
091            public void setBrowserTrackerId(long browserTrackerId) {
092                    _browserTrackerId = browserTrackerId;
093            }
094    
095            public long getUserId() {
096                    return _userId;
097            }
098    
099            public void setUserId(long userId) {
100                    _userId = userId;
101            }
102    
103            public long getBrowserKey() {
104                    return _browserKey;
105            }
106    
107            public void setBrowserKey(long browserKey) {
108                    _browserKey = browserKey;
109            }
110    
111            private long _browserTrackerId;
112            private long _userId;
113            private long _browserKey;
114    }