| ShoppingItemFieldSoap.java |
1 /**
2 * Copyright (c) 2000-2009 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 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17 * SOFTWARE.
18 */
19
20 package com.liferay.portlet.shopping.model;
21
22 import java.io.Serializable;
23
24 import java.util.ArrayList;
25 import java.util.List;
26
27 /**
28 * <a href="ShoppingItemFieldSoap.java.html"><b><i>View Source</i></b></a>
29 *
30 * <p>
31 * ServiceBuilder generated this class. Modifications in this class will be
32 * overwritten the next time is generated.
33 * </p>
34 *
35 * <p>
36 * This class is used by
37 * <code>com.liferay.portlet.shopping.service.http.ShoppingItemFieldServiceSoap</code>.
38 * </p>
39 *
40 * @author Brian Wing Shun Chan
41 *
42 * @see com.liferay.portlet.shopping.service.http.ShoppingItemFieldServiceSoap
43 *
44 */
45 public class ShoppingItemFieldSoap implements Serializable {
46 public static ShoppingItemFieldSoap toSoapModel(ShoppingItemField model) {
47 ShoppingItemFieldSoap soapModel = new ShoppingItemFieldSoap();
48
49 soapModel.setItemFieldId(model.getItemFieldId());
50 soapModel.setItemId(model.getItemId());
51 soapModel.setName(model.getName());
52 soapModel.setValues(model.getValues());
53 soapModel.setDescription(model.getDescription());
54
55 return soapModel;
56 }
57
58 public static ShoppingItemFieldSoap[] toSoapModels(
59 List<ShoppingItemField> models) {
60 List<ShoppingItemFieldSoap> soapModels = new ArrayList<ShoppingItemFieldSoap>(models.size());
61
62 for (ShoppingItemField model : models) {
63 soapModels.add(toSoapModel(model));
64 }
65
66 return soapModels.toArray(new ShoppingItemFieldSoap[soapModels.size()]);
67 }
68
69 public ShoppingItemFieldSoap() {
70 }
71
72 public long getPrimaryKey() {
73 return _itemFieldId;
74 }
75
76 public void setPrimaryKey(long pk) {
77 setItemFieldId(pk);
78 }
79
80 public long getItemFieldId() {
81 return _itemFieldId;
82 }
83
84 public void setItemFieldId(long itemFieldId) {
85 _itemFieldId = itemFieldId;
86 }
87
88 public long getItemId() {
89 return _itemId;
90 }
91
92 public void setItemId(long itemId) {
93 _itemId = itemId;
94 }
95
96 public String getName() {
97 return _name;
98 }
99
100 public void setName(String name) {
101 _name = name;
102 }
103
104 public String getValues() {
105 return _values;
106 }
107
108 public void setValues(String values) {
109 _values = values;
110 }
111
112 public String getDescription() {
113 return _description;
114 }
115
116 public void setDescription(String description) {
117 _description = description;
118 }
119
120 private long _itemFieldId;
121 private long _itemId;
122 private String _name;
123 private String _values;
124 private String _description;
125 }