001
014
015 package com.liferay.portlet.shopping.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import java.io.Serializable;
020
021 import java.util.ArrayList;
022 import java.util.List;
023
024
030 @ProviderType
031 public class ShoppingItemFieldSoap implements Serializable {
032 public static ShoppingItemFieldSoap toSoapModel(ShoppingItemField model) {
033 ShoppingItemFieldSoap soapModel = new ShoppingItemFieldSoap();
034
035 soapModel.setItemFieldId(model.getItemFieldId());
036 soapModel.setItemId(model.getItemId());
037 soapModel.setName(model.getName());
038 soapModel.setValues(model.getValues());
039 soapModel.setDescription(model.getDescription());
040
041 return soapModel;
042 }
043
044 public static ShoppingItemFieldSoap[] toSoapModels(
045 ShoppingItemField[] models) {
046 ShoppingItemFieldSoap[] soapModels = new ShoppingItemFieldSoap[models.length];
047
048 for (int i = 0; i < models.length; i++) {
049 soapModels[i] = toSoapModel(models[i]);
050 }
051
052 return soapModels;
053 }
054
055 public static ShoppingItemFieldSoap[][] toSoapModels(
056 ShoppingItemField[][] models) {
057 ShoppingItemFieldSoap[][] soapModels = null;
058
059 if (models.length > 0) {
060 soapModels = new ShoppingItemFieldSoap[models.length][models[0].length];
061 }
062 else {
063 soapModels = new ShoppingItemFieldSoap[0][0];
064 }
065
066 for (int i = 0; i < models.length; i++) {
067 soapModels[i] = toSoapModels(models[i]);
068 }
069
070 return soapModels;
071 }
072
073 public static ShoppingItemFieldSoap[] toSoapModels(
074 List<ShoppingItemField> models) {
075 List<ShoppingItemFieldSoap> soapModels = new ArrayList<ShoppingItemFieldSoap>(models.size());
076
077 for (ShoppingItemField model : models) {
078 soapModels.add(toSoapModel(model));
079 }
080
081 return soapModels.toArray(new ShoppingItemFieldSoap[soapModels.size()]);
082 }
083
084 public ShoppingItemFieldSoap() {
085 }
086
087 public long getPrimaryKey() {
088 return _itemFieldId;
089 }
090
091 public void setPrimaryKey(long pk) {
092 setItemFieldId(pk);
093 }
094
095 public long getItemFieldId() {
096 return _itemFieldId;
097 }
098
099 public void setItemFieldId(long itemFieldId) {
100 _itemFieldId = itemFieldId;
101 }
102
103 public long getItemId() {
104 return _itemId;
105 }
106
107 public void setItemId(long itemId) {
108 _itemId = itemId;
109 }
110
111 public String getName() {
112 return _name;
113 }
114
115 public void setName(String name) {
116 _name = name;
117 }
118
119 public String getValues() {
120 return _values;
121 }
122
123 public void setValues(String values) {
124 _values = values;
125 }
126
127 public String getDescription() {
128 return _description;
129 }
130
131 public void setDescription(String description) {
132 _description = description;
133 }
134
135 private long _itemFieldId;
136 private long _itemId;
137 private String _name;
138 private String _values;
139 private String _description;
140 }