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.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setParentEntryId(model.getParentEntryId());
52          soapModel.setName(model.getName());
53          soapModel.setVocabularyId(model.getVocabularyId());
54  
55          return soapModel;
56      }
57  
58      public static TagsEntrySoap[] toSoapModels(TagsEntry[] models) {
59          TagsEntrySoap[] soapModels = new TagsEntrySoap[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 TagsEntrySoap[][] toSoapModels(TagsEntry[][] models) {
69          TagsEntrySoap[][] soapModels = null;
70  
71          if (models.length > 0) {
72              soapModels = new TagsEntrySoap[models.length][models[0].length];
73          }
74          else {
75              soapModels = new TagsEntrySoap[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 TagsEntrySoap[] toSoapModels(List<TagsEntry> models) {
86          List<TagsEntrySoap> soapModels = new ArrayList<TagsEntrySoap>(models.size());
87  
88          for (TagsEntry model : models) {
89              soapModels.add(toSoapModel(model));
90          }
91  
92          return soapModels.toArray(new TagsEntrySoap[soapModels.size()]);
93      }
94  
95      public TagsEntrySoap() {
96      }
97  
98      public long getPrimaryKey() {
99          return _entryId;
100     }
101 
102     public void setPrimaryKey(long pk) {
103         setEntryId(pk);
104     }
105 
106     public long getEntryId() {
107         return _entryId;
108     }
109 
110     public void setEntryId(long entryId) {
111         _entryId = entryId;
112     }
113 
114     public long getGroupId() {
115         return _groupId;
116     }
117 
118     public void setGroupId(long groupId) {
119         _groupId = groupId;
120     }
121 
122     public long getCompanyId() {
123         return _companyId;
124     }
125 
126     public void setCompanyId(long companyId) {
127         _companyId = companyId;
128     }
129 
130     public long getUserId() {
131         return _userId;
132     }
133 
134     public void setUserId(long userId) {
135         _userId = userId;
136     }
137 
138     public String getUserName() {
139         return _userName;
140     }
141 
142     public void setUserName(String userName) {
143         _userName = userName;
144     }
145 
146     public Date getCreateDate() {
147         return _createDate;
148     }
149 
150     public void setCreateDate(Date createDate) {
151         _createDate = createDate;
152     }
153 
154     public Date getModifiedDate() {
155         return _modifiedDate;
156     }
157 
158     public void setModifiedDate(Date modifiedDate) {
159         _modifiedDate = modifiedDate;
160     }
161 
162     public long getParentEntryId() {
163         return _parentEntryId;
164     }
165 
166     public void setParentEntryId(long parentEntryId) {
167         _parentEntryId = parentEntryId;
168     }
169 
170     public String getName() {
171         return _name;
172     }
173 
174     public void setName(String name) {
175         _name = name;
176     }
177 
178     public long getVocabularyId() {
179         return _vocabularyId;
180     }
181 
182     public void setVocabularyId(long vocabularyId) {
183         _vocabularyId = vocabularyId;
184     }
185 
186     private long _entryId;
187     private long _groupId;
188     private long _companyId;
189     private long _userId;
190     private String _userName;
191     private Date _createDate;
192     private Date _modifiedDate;
193     private long _parentEntryId;
194     private String _name;
195     private long _vocabularyId;
196 }