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.tags.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="TagsEntrySoap.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.tags.service.http.TagsEntryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.tags.service.http.TagsEntryServiceSoap
38   * @generated
39   */
40  public class TagsEntrySoap implements Serializable {
41      public static TagsEntrySoap toSoapModel(TagsEntry model) {
42          TagsEntrySoap soapModel = new TagsEntrySoap();
43  
44          soapModel.setEntryId(model.getEntryId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setUserId(model.getUserId());
47          soapModel.setUserName(model.getUserName());
48          soapModel.setCreateDate(model.getCreateDate());
49          soapModel.setModifiedDate(model.getModifiedDate());
50          soapModel.setName(model.getName());
51  
52          return soapModel;
53      }
54  
55      public static TagsEntrySoap[] toSoapModels(TagsEntry[] models) {
56          TagsEntrySoap[] soapModels = new TagsEntrySoap[models.length];
57  
58          for (int i = 0; i < models.length; i++) {
59              soapModels[i] = toSoapModel(models[i]);
60          }
61  
62          return soapModels;
63      }
64  
65      public static TagsEntrySoap[][] toSoapModels(TagsEntry[][] models) {
66          TagsEntrySoap[][] soapModels = null;
67  
68          if (models.length > 0) {
69              soapModels = new TagsEntrySoap[models.length][models[0].length];
70          }
71          else {
72              soapModels = new TagsEntrySoap[0][0];
73          }
74  
75          for (int i = 0; i < models.length; i++) {
76              soapModels[i] = toSoapModels(models[i]);
77          }
78  
79          return soapModels;
80      }
81  
82      public static TagsEntrySoap[] toSoapModels(List<TagsEntry> models) {
83          List<TagsEntrySoap> soapModels = new ArrayList<TagsEntrySoap>(models.size());
84  
85          for (TagsEntry model : models) {
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return soapModels.toArray(new TagsEntrySoap[soapModels.size()]);
90      }
91  
92      public TagsEntrySoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _entryId;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setEntryId(pk);
101     }
102 
103     public long getEntryId() {
104         return _entryId;
105     }
106 
107     public void setEntryId(long entryId) {
108         _entryId = entryId;
109     }
110 
111     public long getCompanyId() {
112         return _companyId;
113     }
114 
115     public void setCompanyId(long companyId) {
116         _companyId = companyId;
117     }
118 
119     public long getUserId() {
120         return _userId;
121     }
122 
123     public void setUserId(long userId) {
124         _userId = userId;
125     }
126 
127     public String getUserName() {
128         return _userName;
129     }
130 
131     public void setUserName(String userName) {
132         _userName = userName;
133     }
134 
135     public Date getCreateDate() {
136         return _createDate;
137     }
138 
139     public void setCreateDate(Date createDate) {
140         _createDate = createDate;
141     }
142 
143     public Date getModifiedDate() {
144         return _modifiedDate;
145     }
146 
147     public void setModifiedDate(Date modifiedDate) {
148         _modifiedDate = modifiedDate;
149     }
150 
151     public String getName() {
152         return _name;
153     }
154 
155     public void setName(String name) {
156         _name = name;
157     }
158 
159     private long _entryId;
160     private long _companyId;
161     private long _userId;
162     private String _userName;
163     private Date _createDate;
164     private Date _modifiedDate;
165     private String _name;
166 }