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.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="UserTrackerPathSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portal.service.http.UserTrackerPathServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portal.service.http.UserTrackerPathServiceSoap
38   * @generated
39   */
40  public class UserTrackerPathSoap implements Serializable {
41      public static UserTrackerPathSoap toSoapModel(UserTrackerPath model) {
42          UserTrackerPathSoap soapModel = new UserTrackerPathSoap();
43  
44          soapModel.setUserTrackerPathId(model.getUserTrackerPathId());
45          soapModel.setUserTrackerId(model.getUserTrackerId());
46          soapModel.setPath(model.getPath());
47          soapModel.setPathDate(model.getPathDate());
48  
49          return soapModel;
50      }
51  
52      public static UserTrackerPathSoap[] toSoapModels(UserTrackerPath[] models) {
53          UserTrackerPathSoap[] soapModels = new UserTrackerPathSoap[models.length];
54  
55          for (int i = 0; i < models.length; i++) {
56              soapModels[i] = toSoapModel(models[i]);
57          }
58  
59          return soapModels;
60      }
61  
62      public static UserTrackerPathSoap[][] toSoapModels(
63          UserTrackerPath[][] models) {
64          UserTrackerPathSoap[][] soapModels = null;
65  
66          if (models.length > 0) {
67              soapModels = new UserTrackerPathSoap[models.length][models[0].length];
68          }
69          else {
70              soapModels = new UserTrackerPathSoap[0][0];
71          }
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModels(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static UserTrackerPathSoap[] toSoapModels(
81          List<UserTrackerPath> models) {
82          List<UserTrackerPathSoap> soapModels = new ArrayList<UserTrackerPathSoap>(models.size());
83  
84          for (UserTrackerPath model : models) {
85              soapModels.add(toSoapModel(model));
86          }
87  
88          return soapModels.toArray(new UserTrackerPathSoap[soapModels.size()]);
89      }
90  
91      public UserTrackerPathSoap() {
92      }
93  
94      public long getPrimaryKey() {
95          return _userTrackerPathId;
96      }
97  
98      public void setPrimaryKey(long pk) {
99          setUserTrackerPathId(pk);
100     }
101 
102     public long getUserTrackerPathId() {
103         return _userTrackerPathId;
104     }
105 
106     public void setUserTrackerPathId(long userTrackerPathId) {
107         _userTrackerPathId = userTrackerPathId;
108     }
109 
110     public long getUserTrackerId() {
111         return _userTrackerId;
112     }
113 
114     public void setUserTrackerId(long userTrackerId) {
115         _userTrackerId = userTrackerId;
116     }
117 
118     public String getPath() {
119         return _path;
120     }
121 
122     public void setPath(String path) {
123         _path = path;
124     }
125 
126     public Date getPathDate() {
127         return _pathDate;
128     }
129 
130     public void setPathDate(Date pathDate) {
131         _pathDate = pathDate;
132     }
133 
134     private long _userTrackerPathId;
135     private long _userTrackerId;
136     private String _path;
137     private Date _pathDate;
138 }