1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.bookmarks.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="BookmarksEntrySoap.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.portlet.bookmarks.service.http.BookmarksEntryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.bookmarks.service.http.BookmarksEntryServiceSoap
38   * @generated
39   */
40  public class BookmarksEntrySoap implements Serializable {
41      public static BookmarksEntrySoap toSoapModel(BookmarksEntry model) {
42          BookmarksEntrySoap soapModel = new BookmarksEntrySoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setEntryId(model.getEntryId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setFolderId(model.getFolderId());
52          soapModel.setName(model.getName());
53          soapModel.setUrl(model.getUrl());
54          soapModel.setComments(model.getComments());
55          soapModel.setVisits(model.getVisits());
56          soapModel.setPriority(model.getPriority());
57  
58          return soapModel;
59      }
60  
61      public static BookmarksEntrySoap[] toSoapModels(BookmarksEntry[] models) {
62          BookmarksEntrySoap[] soapModels = new BookmarksEntrySoap[models.length];
63  
64          for (int i = 0; i < models.length; i++) {
65              soapModels[i] = toSoapModel(models[i]);
66          }
67  
68          return soapModels;
69      }
70  
71      public static BookmarksEntrySoap[][] toSoapModels(BookmarksEntry[][] models) {
72          BookmarksEntrySoap[][] soapModels = null;
73  
74          if (models.length > 0) {
75              soapModels = new BookmarksEntrySoap[models.length][models[0].length];
76          }
77          else {
78              soapModels = new BookmarksEntrySoap[0][0];
79          }
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModels(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static BookmarksEntrySoap[] toSoapModels(List<BookmarksEntry> models) {
89          List<BookmarksEntrySoap> soapModels = new ArrayList<BookmarksEntrySoap>(models.size());
90  
91          for (BookmarksEntry model : models) {
92              soapModels.add(toSoapModel(model));
93          }
94  
95          return soapModels.toArray(new BookmarksEntrySoap[soapModels.size()]);
96      }
97  
98      public BookmarksEntrySoap() {
99      }
100 
101     public long getPrimaryKey() {
102         return _entryId;
103     }
104 
105     public void setPrimaryKey(long pk) {
106         setEntryId(pk);
107     }
108 
109     public String getUuid() {
110         return _uuid;
111     }
112 
113     public void setUuid(String uuid) {
114         _uuid = uuid;
115     }
116 
117     public long getEntryId() {
118         return _entryId;
119     }
120 
121     public void setEntryId(long entryId) {
122         _entryId = entryId;
123     }
124 
125     public long getGroupId() {
126         return _groupId;
127     }
128 
129     public void setGroupId(long groupId) {
130         _groupId = groupId;
131     }
132 
133     public long getCompanyId() {
134         return _companyId;
135     }
136 
137     public void setCompanyId(long companyId) {
138         _companyId = companyId;
139     }
140 
141     public long getUserId() {
142         return _userId;
143     }
144 
145     public void setUserId(long userId) {
146         _userId = userId;
147     }
148 
149     public Date getCreateDate() {
150         return _createDate;
151     }
152 
153     public void setCreateDate(Date createDate) {
154         _createDate = createDate;
155     }
156 
157     public Date getModifiedDate() {
158         return _modifiedDate;
159     }
160 
161     public void setModifiedDate(Date modifiedDate) {
162         _modifiedDate = modifiedDate;
163     }
164 
165     public long getFolderId() {
166         return _folderId;
167     }
168 
169     public void setFolderId(long folderId) {
170         _folderId = folderId;
171     }
172 
173     public String getName() {
174         return _name;
175     }
176 
177     public void setName(String name) {
178         _name = name;
179     }
180 
181     public String getUrl() {
182         return _url;
183     }
184 
185     public void setUrl(String url) {
186         _url = url;
187     }
188 
189     public String getComments() {
190         return _comments;
191     }
192 
193     public void setComments(String comments) {
194         _comments = comments;
195     }
196 
197     public int getVisits() {
198         return _visits;
199     }
200 
201     public void setVisits(int visits) {
202         _visits = visits;
203     }
204 
205     public int getPriority() {
206         return _priority;
207     }
208 
209     public void setPriority(int priority) {
210         _priority = priority;
211     }
212 
213     private String _uuid;
214     private long _entryId;
215     private long _groupId;
216     private long _companyId;
217     private long _userId;
218     private Date _createDate;
219     private Date _modifiedDate;
220     private long _folderId;
221     private String _name;
222     private String _url;
223     private String _comments;
224     private int _visits;
225     private int _priority;
226 }