| BrowserTrackerSoap.java |
1 /**
2 * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23 package com.liferay.portal.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30 /**
31 * <a href="BrowserTrackerSoap.java.html"><b><i>View Source</i></b></a>
32 *
33 * <p>
34 * ServiceBuilder generated this class. Modifications in this class will be
35 * overwritten the next time is generated.
36 * </p>
37 *
38 * <p>
39 * This class is used by
40 * {@link com.liferay.portal.service.http.BrowserTrackerServiceSoap}.
41 * </p>
42 *
43 * @author Brian Wing Shun Chan
44 * @see com.liferay.portal.service.http.BrowserTrackerServiceSoap
45 * @generated
46 */
47 public class BrowserTrackerSoap implements Serializable {
48 public static BrowserTrackerSoap toSoapModel(BrowserTracker model) {
49 BrowserTrackerSoap soapModel = new BrowserTrackerSoap();
50
51 soapModel.setBrowserTrackerId(model.getBrowserTrackerId());
52 soapModel.setUserId(model.getUserId());
53 soapModel.setBrowserKey(model.getBrowserKey());
54
55 return soapModel;
56 }
57
58 public static BrowserTrackerSoap[] toSoapModels(BrowserTracker[] models) {
59 BrowserTrackerSoap[] soapModels = new BrowserTrackerSoap[models.length];
60
61 for (int i = 0; i < models.length; i++) {
62 soapModels[i] = toSoapModel(models[i]);
63 }
64
65 return soapModels;
66 }
67
68 public static BrowserTrackerSoap[][] toSoapModels(BrowserTracker[][] models) {
69 BrowserTrackerSoap[][] soapModels = null;
70
71 if (models.length > 0) {
72 soapModels = new BrowserTrackerSoap[models.length][models[0].length];
73 }
74 else {
75 soapModels = new BrowserTrackerSoap[0][0];
76 }
77
78 for (int i = 0; i < models.length; i++) {
79 soapModels[i] = toSoapModels(models[i]);
80 }
81
82 return soapModels;
83 }
84
85 public static BrowserTrackerSoap[] toSoapModels(List<BrowserTracker> models) {
86 List<BrowserTrackerSoap> soapModels = new ArrayList<BrowserTrackerSoap>(models.size());
87
88 for (BrowserTracker model : models) {
89 soapModels.add(toSoapModel(model));
90 }
91
92 return soapModels.toArray(new BrowserTrackerSoap[soapModels.size()]);
93 }
94
95 public BrowserTrackerSoap() {
96 }
97
98 public long getPrimaryKey() {
99 return _browserTrackerId;
100 }
101
102 public void setPrimaryKey(long pk) {
103 setBrowserTrackerId(pk);
104 }
105
106 public long getBrowserTrackerId() {
107 return _browserTrackerId;
108 }
109
110 public void setBrowserTrackerId(long browserTrackerId) {
111 _browserTrackerId = browserTrackerId;
112 }
113
114 public long getUserId() {
115 return _userId;
116 }
117
118 public void setUserId(long userId) {
119 _userId = userId;
120 }
121
122 public long getBrowserKey() {
123 return _browserKey;
124 }
125
126 public void setBrowserKey(long browserKey) {
127 _browserKey = browserKey;
128 }
129
130 private long _browserTrackerId;
131 private long _userId;
132 private long _browserKey;
133 }