1
22
23 package com.liferay.portlet.shopping.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30
48 public class ShoppingItemPriceSoap implements Serializable {
49 public static ShoppingItemPriceSoap toSoapModel(ShoppingItemPrice model) {
50 ShoppingItemPriceSoap soapModel = new ShoppingItemPriceSoap();
51
52 soapModel.setItemPriceId(model.getItemPriceId());
53 soapModel.setItemId(model.getItemId());
54 soapModel.setMinQuantity(model.getMinQuantity());
55 soapModel.setMaxQuantity(model.getMaxQuantity());
56 soapModel.setPrice(model.getPrice());
57 soapModel.setDiscount(model.getDiscount());
58 soapModel.setTaxable(model.getTaxable());
59 soapModel.setShipping(model.getShipping());
60 soapModel.setUseShippingFormula(model.getUseShippingFormula());
61 soapModel.setStatus(model.getStatus());
62
63 return soapModel;
64 }
65
66 public static ShoppingItemPriceSoap[] toSoapModels(List models) {
67 List soapModels = new ArrayList(models.size());
68
69 for (int i = 0; i < models.size(); i++) {
70 ShoppingItemPrice model = (ShoppingItemPrice)models.get(i);
71
72 soapModels.add(toSoapModel(model));
73 }
74
75 return (ShoppingItemPriceSoap[])soapModels.toArray(new ShoppingItemPriceSoap[0]);
76 }
77
78 public ShoppingItemPriceSoap() {
79 }
80
81 public long getPrimaryKey() {
82 return _itemPriceId;
83 }
84
85 public void setPrimaryKey(long pk) {
86 setItemPriceId(pk);
87 }
88
89 public long getItemPriceId() {
90 return _itemPriceId;
91 }
92
93 public void setItemPriceId(long itemPriceId) {
94 _itemPriceId = itemPriceId;
95 }
96
97 public long getItemId() {
98 return _itemId;
99 }
100
101 public void setItemId(long itemId) {
102 _itemId = itemId;
103 }
104
105 public int getMinQuantity() {
106 return _minQuantity;
107 }
108
109 public void setMinQuantity(int minQuantity) {
110 _minQuantity = minQuantity;
111 }
112
113 public int getMaxQuantity() {
114 return _maxQuantity;
115 }
116
117 public void setMaxQuantity(int maxQuantity) {
118 _maxQuantity = maxQuantity;
119 }
120
121 public double getPrice() {
122 return _price;
123 }
124
125 public void setPrice(double price) {
126 _price = price;
127 }
128
129 public double getDiscount() {
130 return _discount;
131 }
132
133 public void setDiscount(double discount) {
134 _discount = discount;
135 }
136
137 public boolean getTaxable() {
138 return _taxable;
139 }
140
141 public boolean isTaxable() {
142 return _taxable;
143 }
144
145 public void setTaxable(boolean taxable) {
146 _taxable = taxable;
147 }
148
149 public double getShipping() {
150 return _shipping;
151 }
152
153 public void setShipping(double shipping) {
154 _shipping = shipping;
155 }
156
157 public boolean getUseShippingFormula() {
158 return _useShippingFormula;
159 }
160
161 public boolean isUseShippingFormula() {
162 return _useShippingFormula;
163 }
164
165 public void setUseShippingFormula(boolean useShippingFormula) {
166 _useShippingFormula = useShippingFormula;
167 }
168
169 public int getStatus() {
170 return _status;
171 }
172
173 public void setStatus(int status) {
174 _status = status;
175 }
176
177 private long _itemPriceId;
178 private long _itemId;
179 private int _minQuantity;
180 private int _maxQuantity;
181 private double _price;
182 private double _discount;
183 private boolean _taxable;
184 private double _shipping;
185 private boolean _useShippingFormula;
186 private int _status;
187 }