1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="BrowserTrackerSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.BrowserTrackerServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.BrowserTrackerServiceSoap
37   * @generated
38   */
39  public class BrowserTrackerSoap implements Serializable {
40      public static BrowserTrackerSoap toSoapModel(BrowserTracker model) {
41          BrowserTrackerSoap soapModel = new BrowserTrackerSoap();
42  
43          soapModel.setBrowserTrackerId(model.getBrowserTrackerId());
44          soapModel.setUserId(model.getUserId());
45          soapModel.setBrowserKey(model.getBrowserKey());
46  
47          return soapModel;
48      }
49  
50      public static BrowserTrackerSoap[] toSoapModels(BrowserTracker[] models) {
51          BrowserTrackerSoap[] soapModels = new BrowserTrackerSoap[models.length];
52  
53          for (int i = 0; i < models.length; i++) {
54              soapModels[i] = toSoapModel(models[i]);
55          }
56  
57          return soapModels;
58      }
59  
60      public static BrowserTrackerSoap[][] toSoapModels(BrowserTracker[][] models) {
61          BrowserTrackerSoap[][] soapModels = null;
62  
63          if (models.length > 0) {
64              soapModels = new BrowserTrackerSoap[models.length][models[0].length];
65          }
66          else {
67              soapModels = new BrowserTrackerSoap[0][0];
68          }
69  
70          for (int i = 0; i < models.length; i++) {
71              soapModels[i] = toSoapModels(models[i]);
72          }
73  
74          return soapModels;
75      }
76  
77      public static BrowserTrackerSoap[] toSoapModels(List<BrowserTracker> models) {
78          List<BrowserTrackerSoap> soapModels = new ArrayList<BrowserTrackerSoap>(models.size());
79  
80          for (BrowserTracker model : models) {
81              soapModels.add(toSoapModel(model));
82          }
83  
84          return soapModels.toArray(new BrowserTrackerSoap[soapModels.size()]);
85      }
86  
87      public BrowserTrackerSoap() {
88      }
89  
90      public long getPrimaryKey() {
91          return _browserTrackerId;
92      }
93  
94      public void setPrimaryKey(long pk) {
95          setBrowserTrackerId(pk);
96      }
97  
98      public long getBrowserTrackerId() {
99          return _browserTrackerId;
100     }
101 
102     public void setBrowserTrackerId(long browserTrackerId) {
103         _browserTrackerId = browserTrackerId;
104     }
105 
106     public long getUserId() {
107         return _userId;
108     }
109 
110     public void setUserId(long userId) {
111         _userId = userId;
112     }
113 
114     public long getBrowserKey() {
115         return _browserKey;
116     }
117 
118     public void setBrowserKey(long browserKey) {
119         _browserKey = browserKey;
120     }
121 
122     private long _browserTrackerId;
123     private long _userId;
124     private long _browserKey;
125 }