| 11531 |
vikram.rag |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.catalog;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class PrivateDeal implements org.apache.thrift.TBase<PrivateDeal, PrivateDeal._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivateDeal");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField DEAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("dealPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField DEAL_FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("dealFreebieItemId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 11580 |
vikram.rag |
31 |
private static final org.apache.thrift.protocol.TField DEAL_TEXT_OPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("dealTextOption", org.apache.thrift.protocol.TType.I64, (short)6);
|
| 11531 |
vikram.rag |
32 |
private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField RANK_FIELD_DESC = new org.apache.thrift.protocol.TField("rank", org.apache.thrift.protocol.TType.I64, (short)9);
|
| 11580 |
vikram.rag |
35 |
private static final org.apache.thrift.protocol.TField DEAL_FREEBIE_OPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("dealFreebieOption", org.apache.thrift.protocol.TType.I64, (short)10);
|
| 11606 |
vikram.rag |
36 |
private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)11);
|
| 11531 |
vikram.rag |
37 |
|
|
|
38 |
private long item_id; // required
|
|
|
39 |
private double dealPrice; // required
|
|
|
40 |
private long dealFreebieItemId; // required
|
|
|
41 |
private long startDate; // required
|
|
|
42 |
private long endDate; // required
|
| 11580 |
vikram.rag |
43 |
private long dealTextOption; // required
|
| 11531 |
vikram.rag |
44 |
private String dealText; // required
|
|
|
45 |
private boolean isCod; // required
|
|
|
46 |
private long rank; // required
|
| 11580 |
vikram.rag |
47 |
private long dealFreebieOption; // required
|
| 11606 |
vikram.rag |
48 |
private boolean isActive; // required
|
| 11531 |
vikram.rag |
49 |
|
|
|
50 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
51 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
52 |
ITEM_ID((short)1, "item_id"),
|
|
|
53 |
DEAL_PRICE((short)2, "dealPrice"),
|
|
|
54 |
DEAL_FREEBIE_ITEM_ID((short)3, "dealFreebieItemId"),
|
|
|
55 |
START_DATE((short)4, "startDate"),
|
|
|
56 |
END_DATE((short)5, "endDate"),
|
| 11580 |
vikram.rag |
57 |
DEAL_TEXT_OPTION((short)6, "dealTextOption"),
|
| 11531 |
vikram.rag |
58 |
DEAL_TEXT((short)7, "dealText"),
|
|
|
59 |
IS_COD((short)8, "isCod"),
|
| 11580 |
vikram.rag |
60 |
RANK((short)9, "rank"),
|
| 11606 |
vikram.rag |
61 |
DEAL_FREEBIE_OPTION((short)10, "dealFreebieOption"),
|
|
|
62 |
IS_ACTIVE((short)11, "isActive");
|
| 11531 |
vikram.rag |
63 |
|
|
|
64 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
65 |
|
|
|
66 |
static {
|
|
|
67 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
68 |
byName.put(field.getFieldName(), field);
|
|
|
69 |
}
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
/**
|
|
|
73 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
74 |
*/
|
|
|
75 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
76 |
switch(fieldId) {
|
|
|
77 |
case 1: // ITEM_ID
|
|
|
78 |
return ITEM_ID;
|
|
|
79 |
case 2: // DEAL_PRICE
|
|
|
80 |
return DEAL_PRICE;
|
|
|
81 |
case 3: // DEAL_FREEBIE_ITEM_ID
|
|
|
82 |
return DEAL_FREEBIE_ITEM_ID;
|
|
|
83 |
case 4: // START_DATE
|
|
|
84 |
return START_DATE;
|
|
|
85 |
case 5: // END_DATE
|
|
|
86 |
return END_DATE;
|
| 11580 |
vikram.rag |
87 |
case 6: // DEAL_TEXT_OPTION
|
|
|
88 |
return DEAL_TEXT_OPTION;
|
| 11531 |
vikram.rag |
89 |
case 7: // DEAL_TEXT
|
|
|
90 |
return DEAL_TEXT;
|
|
|
91 |
case 8: // IS_COD
|
|
|
92 |
return IS_COD;
|
|
|
93 |
case 9: // RANK
|
|
|
94 |
return RANK;
|
| 11580 |
vikram.rag |
95 |
case 10: // DEAL_FREEBIE_OPTION
|
|
|
96 |
return DEAL_FREEBIE_OPTION;
|
| 11606 |
vikram.rag |
97 |
case 11: // IS_ACTIVE
|
|
|
98 |
return IS_ACTIVE;
|
| 11531 |
vikram.rag |
99 |
default:
|
|
|
100 |
return null;
|
|
|
101 |
}
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
/**
|
|
|
105 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
106 |
* if it is not found.
|
|
|
107 |
*/
|
|
|
108 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
109 |
_Fields fields = findByThriftId(fieldId);
|
|
|
110 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
111 |
return fields;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
/**
|
|
|
115 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
116 |
*/
|
|
|
117 |
public static _Fields findByName(String name) {
|
|
|
118 |
return byName.get(name);
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
private final short _thriftId;
|
|
|
122 |
private final String _fieldName;
|
|
|
123 |
|
|
|
124 |
_Fields(short thriftId, String fieldName) {
|
|
|
125 |
_thriftId = thriftId;
|
|
|
126 |
_fieldName = fieldName;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
public short getThriftFieldId() {
|
|
|
130 |
return _thriftId;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
public String getFieldName() {
|
|
|
134 |
return _fieldName;
|
|
|
135 |
}
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
// isset id assignments
|
|
|
139 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
140 |
private static final int __DEALPRICE_ISSET_ID = 1;
|
|
|
141 |
private static final int __DEALFREEBIEITEMID_ISSET_ID = 2;
|
|
|
142 |
private static final int __STARTDATE_ISSET_ID = 3;
|
|
|
143 |
private static final int __ENDDATE_ISSET_ID = 4;
|
| 11580 |
vikram.rag |
144 |
private static final int __DEALTEXTOPTION_ISSET_ID = 5;
|
| 11531 |
vikram.rag |
145 |
private static final int __ISCOD_ISSET_ID = 6;
|
|
|
146 |
private static final int __RANK_ISSET_ID = 7;
|
| 11580 |
vikram.rag |
147 |
private static final int __DEALFREEBIEOPTION_ISSET_ID = 8;
|
| 11606 |
vikram.rag |
148 |
private static final int __ISACTIVE_ISSET_ID = 9;
|
|
|
149 |
private BitSet __isset_bit_vector = new BitSet(10);
|
| 11531 |
vikram.rag |
150 |
|
|
|
151 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
152 |
static {
|
|
|
153 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
154 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
156 |
tmpMap.put(_Fields.DEAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("dealPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
158 |
tmpMap.put(_Fields.DEAL_FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("dealFreebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
160 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
162 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
163 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 11580 |
vikram.rag |
164 |
tmpMap.put(_Fields.DEAL_TEXT_OPTION, new org.apache.thrift.meta_data.FieldMetaData("dealTextOption", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
165 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 11531 |
vikram.rag |
166 |
tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
167 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
168 |
tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
169 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
170 |
tmpMap.put(_Fields.RANK, new org.apache.thrift.meta_data.FieldMetaData("rank", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 11580 |
vikram.rag |
172 |
tmpMap.put(_Fields.DEAL_FREEBIE_OPTION, new org.apache.thrift.meta_data.FieldMetaData("dealFreebieOption", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 11606 |
vikram.rag |
174 |
tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 11531 |
vikram.rag |
176 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
177 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivateDeal.class, metaDataMap);
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
public PrivateDeal() {
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
public PrivateDeal(
|
|
|
184 |
long item_id,
|
|
|
185 |
double dealPrice,
|
|
|
186 |
long dealFreebieItemId,
|
|
|
187 |
long startDate,
|
|
|
188 |
long endDate,
|
| 11580 |
vikram.rag |
189 |
long dealTextOption,
|
| 11531 |
vikram.rag |
190 |
String dealText,
|
|
|
191 |
boolean isCod,
|
| 11580 |
vikram.rag |
192 |
long rank,
|
| 11606 |
vikram.rag |
193 |
long dealFreebieOption,
|
|
|
194 |
boolean isActive)
|
| 11531 |
vikram.rag |
195 |
{
|
|
|
196 |
this();
|
|
|
197 |
this.item_id = item_id;
|
|
|
198 |
setItem_idIsSet(true);
|
|
|
199 |
this.dealPrice = dealPrice;
|
|
|
200 |
setDealPriceIsSet(true);
|
|
|
201 |
this.dealFreebieItemId = dealFreebieItemId;
|
|
|
202 |
setDealFreebieItemIdIsSet(true);
|
|
|
203 |
this.startDate = startDate;
|
|
|
204 |
setStartDateIsSet(true);
|
|
|
205 |
this.endDate = endDate;
|
|
|
206 |
setEndDateIsSet(true);
|
| 11580 |
vikram.rag |
207 |
this.dealTextOption = dealTextOption;
|
|
|
208 |
setDealTextOptionIsSet(true);
|
| 11531 |
vikram.rag |
209 |
this.dealText = dealText;
|
|
|
210 |
this.isCod = isCod;
|
|
|
211 |
setIsCodIsSet(true);
|
|
|
212 |
this.rank = rank;
|
|
|
213 |
setRankIsSet(true);
|
| 11580 |
vikram.rag |
214 |
this.dealFreebieOption = dealFreebieOption;
|
|
|
215 |
setDealFreebieOptionIsSet(true);
|
| 11606 |
vikram.rag |
216 |
this.isActive = isActive;
|
|
|
217 |
setIsActiveIsSet(true);
|
| 11531 |
vikram.rag |
218 |
}
|
|
|
219 |
|
|
|
220 |
/**
|
|
|
221 |
* Performs a deep copy on <i>other</i>.
|
|
|
222 |
*/
|
|
|
223 |
public PrivateDeal(PrivateDeal other) {
|
|
|
224 |
__isset_bit_vector.clear();
|
|
|
225 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
226 |
this.item_id = other.item_id;
|
|
|
227 |
this.dealPrice = other.dealPrice;
|
|
|
228 |
this.dealFreebieItemId = other.dealFreebieItemId;
|
|
|
229 |
this.startDate = other.startDate;
|
|
|
230 |
this.endDate = other.endDate;
|
| 11580 |
vikram.rag |
231 |
this.dealTextOption = other.dealTextOption;
|
| 11531 |
vikram.rag |
232 |
if (other.isSetDealText()) {
|
|
|
233 |
this.dealText = other.dealText;
|
|
|
234 |
}
|
|
|
235 |
this.isCod = other.isCod;
|
|
|
236 |
this.rank = other.rank;
|
| 11580 |
vikram.rag |
237 |
this.dealFreebieOption = other.dealFreebieOption;
|
| 11606 |
vikram.rag |
238 |
this.isActive = other.isActive;
|
| 11531 |
vikram.rag |
239 |
}
|
|
|
240 |
|
|
|
241 |
public PrivateDeal deepCopy() {
|
|
|
242 |
return new PrivateDeal(this);
|
|
|
243 |
}
|
|
|
244 |
|
|
|
245 |
@Override
|
|
|
246 |
public void clear() {
|
|
|
247 |
setItem_idIsSet(false);
|
|
|
248 |
this.item_id = 0;
|
|
|
249 |
setDealPriceIsSet(false);
|
|
|
250 |
this.dealPrice = 0.0;
|
|
|
251 |
setDealFreebieItemIdIsSet(false);
|
|
|
252 |
this.dealFreebieItemId = 0;
|
|
|
253 |
setStartDateIsSet(false);
|
|
|
254 |
this.startDate = 0;
|
|
|
255 |
setEndDateIsSet(false);
|
|
|
256 |
this.endDate = 0;
|
| 11580 |
vikram.rag |
257 |
setDealTextOptionIsSet(false);
|
|
|
258 |
this.dealTextOption = 0;
|
| 11531 |
vikram.rag |
259 |
this.dealText = null;
|
|
|
260 |
setIsCodIsSet(false);
|
|
|
261 |
this.isCod = false;
|
|
|
262 |
setRankIsSet(false);
|
|
|
263 |
this.rank = 0;
|
| 11580 |
vikram.rag |
264 |
setDealFreebieOptionIsSet(false);
|
|
|
265 |
this.dealFreebieOption = 0;
|
| 11606 |
vikram.rag |
266 |
setIsActiveIsSet(false);
|
|
|
267 |
this.isActive = false;
|
| 11531 |
vikram.rag |
268 |
}
|
|
|
269 |
|
|
|
270 |
public long getItem_id() {
|
|
|
271 |
return this.item_id;
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
public void setItem_id(long item_id) {
|
|
|
275 |
this.item_id = item_id;
|
|
|
276 |
setItem_idIsSet(true);
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
public void unsetItem_id() {
|
|
|
280 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
|
|
284 |
public boolean isSetItem_id() {
|
|
|
285 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
public void setItem_idIsSet(boolean value) {
|
|
|
289 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
public double getDealPrice() {
|
|
|
293 |
return this.dealPrice;
|
|
|
294 |
}
|
|
|
295 |
|
|
|
296 |
public void setDealPrice(double dealPrice) {
|
|
|
297 |
this.dealPrice = dealPrice;
|
|
|
298 |
setDealPriceIsSet(true);
|
|
|
299 |
}
|
|
|
300 |
|
|
|
301 |
public void unsetDealPrice() {
|
|
|
302 |
__isset_bit_vector.clear(__DEALPRICE_ISSET_ID);
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
/** Returns true if field dealPrice is set (has been assigned a value) and false otherwise */
|
|
|
306 |
public boolean isSetDealPrice() {
|
|
|
307 |
return __isset_bit_vector.get(__DEALPRICE_ISSET_ID);
|
|
|
308 |
}
|
|
|
309 |
|
|
|
310 |
public void setDealPriceIsSet(boolean value) {
|
|
|
311 |
__isset_bit_vector.set(__DEALPRICE_ISSET_ID, value);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
public long getDealFreebieItemId() {
|
|
|
315 |
return this.dealFreebieItemId;
|
|
|
316 |
}
|
|
|
317 |
|
|
|
318 |
public void setDealFreebieItemId(long dealFreebieItemId) {
|
|
|
319 |
this.dealFreebieItemId = dealFreebieItemId;
|
|
|
320 |
setDealFreebieItemIdIsSet(true);
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public void unsetDealFreebieItemId() {
|
|
|
324 |
__isset_bit_vector.clear(__DEALFREEBIEITEMID_ISSET_ID);
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
/** Returns true if field dealFreebieItemId is set (has been assigned a value) and false otherwise */
|
|
|
328 |
public boolean isSetDealFreebieItemId() {
|
|
|
329 |
return __isset_bit_vector.get(__DEALFREEBIEITEMID_ISSET_ID);
|
|
|
330 |
}
|
|
|
331 |
|
|
|
332 |
public void setDealFreebieItemIdIsSet(boolean value) {
|
|
|
333 |
__isset_bit_vector.set(__DEALFREEBIEITEMID_ISSET_ID, value);
|
|
|
334 |
}
|
|
|
335 |
|
|
|
336 |
public long getStartDate() {
|
|
|
337 |
return this.startDate;
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public void setStartDate(long startDate) {
|
|
|
341 |
this.startDate = startDate;
|
|
|
342 |
setStartDateIsSet(true);
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public void unsetStartDate() {
|
|
|
346 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
350 |
public boolean isSetStartDate() {
|
|
|
351 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void setStartDateIsSet(boolean value) {
|
|
|
355 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
public long getEndDate() {
|
|
|
359 |
return this.endDate;
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void setEndDate(long endDate) {
|
|
|
363 |
this.endDate = endDate;
|
|
|
364 |
setEndDateIsSet(true);
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public void unsetEndDate() {
|
|
|
368 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
372 |
public boolean isSetEndDate() {
|
|
|
373 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void setEndDateIsSet(boolean value) {
|
|
|
377 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
378 |
}
|
|
|
379 |
|
| 11580 |
vikram.rag |
380 |
public long getDealTextOption() {
|
|
|
381 |
return this.dealTextOption;
|
| 11531 |
vikram.rag |
382 |
}
|
|
|
383 |
|
| 11580 |
vikram.rag |
384 |
public void setDealTextOption(long dealTextOption) {
|
|
|
385 |
this.dealTextOption = dealTextOption;
|
|
|
386 |
setDealTextOptionIsSet(true);
|
| 11531 |
vikram.rag |
387 |
}
|
|
|
388 |
|
| 11580 |
vikram.rag |
389 |
public void unsetDealTextOption() {
|
|
|
390 |
__isset_bit_vector.clear(__DEALTEXTOPTION_ISSET_ID);
|
| 11531 |
vikram.rag |
391 |
}
|
|
|
392 |
|
| 11580 |
vikram.rag |
393 |
/** Returns true if field dealTextOption is set (has been assigned a value) and false otherwise */
|
|
|
394 |
public boolean isSetDealTextOption() {
|
|
|
395 |
return __isset_bit_vector.get(__DEALTEXTOPTION_ISSET_ID);
|
| 11531 |
vikram.rag |
396 |
}
|
|
|
397 |
|
| 11580 |
vikram.rag |
398 |
public void setDealTextOptionIsSet(boolean value) {
|
|
|
399 |
__isset_bit_vector.set(__DEALTEXTOPTION_ISSET_ID, value);
|
| 11531 |
vikram.rag |
400 |
}
|
|
|
401 |
|
|
|
402 |
public String getDealText() {
|
|
|
403 |
return this.dealText;
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void setDealText(String dealText) {
|
|
|
407 |
this.dealText = dealText;
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
public void unsetDealText() {
|
|
|
411 |
this.dealText = null;
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
/** Returns true if field dealText is set (has been assigned a value) and false otherwise */
|
|
|
415 |
public boolean isSetDealText() {
|
|
|
416 |
return this.dealText != null;
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
public void setDealTextIsSet(boolean value) {
|
|
|
420 |
if (!value) {
|
|
|
421 |
this.dealText = null;
|
|
|
422 |
}
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
public boolean isIsCod() {
|
|
|
426 |
return this.isCod;
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void setIsCod(boolean isCod) {
|
|
|
430 |
this.isCod = isCod;
|
|
|
431 |
setIsCodIsSet(true);
|
|
|
432 |
}
|
|
|
433 |
|
|
|
434 |
public void unsetIsCod() {
|
|
|
435 |
__isset_bit_vector.clear(__ISCOD_ISSET_ID);
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
/** Returns true if field isCod is set (has been assigned a value) and false otherwise */
|
|
|
439 |
public boolean isSetIsCod() {
|
|
|
440 |
return __isset_bit_vector.get(__ISCOD_ISSET_ID);
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
public void setIsCodIsSet(boolean value) {
|
|
|
444 |
__isset_bit_vector.set(__ISCOD_ISSET_ID, value);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
public long getRank() {
|
|
|
448 |
return this.rank;
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
public void setRank(long rank) {
|
|
|
452 |
this.rank = rank;
|
|
|
453 |
setRankIsSet(true);
|
|
|
454 |
}
|
|
|
455 |
|
|
|
456 |
public void unsetRank() {
|
|
|
457 |
__isset_bit_vector.clear(__RANK_ISSET_ID);
|
|
|
458 |
}
|
|
|
459 |
|
|
|
460 |
/** Returns true if field rank is set (has been assigned a value) and false otherwise */
|
|
|
461 |
public boolean isSetRank() {
|
|
|
462 |
return __isset_bit_vector.get(__RANK_ISSET_ID);
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
public void setRankIsSet(boolean value) {
|
|
|
466 |
__isset_bit_vector.set(__RANK_ISSET_ID, value);
|
|
|
467 |
}
|
|
|
468 |
|
| 11580 |
vikram.rag |
469 |
public long getDealFreebieOption() {
|
|
|
470 |
return this.dealFreebieOption;
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public void setDealFreebieOption(long dealFreebieOption) {
|
|
|
474 |
this.dealFreebieOption = dealFreebieOption;
|
|
|
475 |
setDealFreebieOptionIsSet(true);
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public void unsetDealFreebieOption() {
|
|
|
479 |
__isset_bit_vector.clear(__DEALFREEBIEOPTION_ISSET_ID);
|
|
|
480 |
}
|
|
|
481 |
|
|
|
482 |
/** Returns true if field dealFreebieOption is set (has been assigned a value) and false otherwise */
|
|
|
483 |
public boolean isSetDealFreebieOption() {
|
|
|
484 |
return __isset_bit_vector.get(__DEALFREEBIEOPTION_ISSET_ID);
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public void setDealFreebieOptionIsSet(boolean value) {
|
|
|
488 |
__isset_bit_vector.set(__DEALFREEBIEOPTION_ISSET_ID, value);
|
|
|
489 |
}
|
|
|
490 |
|
| 11606 |
vikram.rag |
491 |
public boolean isIsActive() {
|
|
|
492 |
return this.isActive;
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public void setIsActive(boolean isActive) {
|
|
|
496 |
this.isActive = isActive;
|
|
|
497 |
setIsActiveIsSet(true);
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void unsetIsActive() {
|
|
|
501 |
__isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
/** Returns true if field isActive is set (has been assigned a value) and false otherwise */
|
|
|
505 |
public boolean isSetIsActive() {
|
|
|
506 |
return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void setIsActiveIsSet(boolean value) {
|
|
|
510 |
__isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
|
|
|
511 |
}
|
|
|
512 |
|
| 11531 |
vikram.rag |
513 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
514 |
switch (field) {
|
|
|
515 |
case ITEM_ID:
|
|
|
516 |
if (value == null) {
|
|
|
517 |
unsetItem_id();
|
|
|
518 |
} else {
|
|
|
519 |
setItem_id((Long)value);
|
|
|
520 |
}
|
|
|
521 |
break;
|
|
|
522 |
|
|
|
523 |
case DEAL_PRICE:
|
|
|
524 |
if (value == null) {
|
|
|
525 |
unsetDealPrice();
|
|
|
526 |
} else {
|
|
|
527 |
setDealPrice((Double)value);
|
|
|
528 |
}
|
|
|
529 |
break;
|
|
|
530 |
|
|
|
531 |
case DEAL_FREEBIE_ITEM_ID:
|
|
|
532 |
if (value == null) {
|
|
|
533 |
unsetDealFreebieItemId();
|
|
|
534 |
} else {
|
|
|
535 |
setDealFreebieItemId((Long)value);
|
|
|
536 |
}
|
|
|
537 |
break;
|
|
|
538 |
|
|
|
539 |
case START_DATE:
|
|
|
540 |
if (value == null) {
|
|
|
541 |
unsetStartDate();
|
|
|
542 |
} else {
|
|
|
543 |
setStartDate((Long)value);
|
|
|
544 |
}
|
|
|
545 |
break;
|
|
|
546 |
|
|
|
547 |
case END_DATE:
|
|
|
548 |
if (value == null) {
|
|
|
549 |
unsetEndDate();
|
|
|
550 |
} else {
|
|
|
551 |
setEndDate((Long)value);
|
|
|
552 |
}
|
|
|
553 |
break;
|
|
|
554 |
|
| 11580 |
vikram.rag |
555 |
case DEAL_TEXT_OPTION:
|
| 11531 |
vikram.rag |
556 |
if (value == null) {
|
| 11580 |
vikram.rag |
557 |
unsetDealTextOption();
|
| 11531 |
vikram.rag |
558 |
} else {
|
| 11580 |
vikram.rag |
559 |
setDealTextOption((Long)value);
|
| 11531 |
vikram.rag |
560 |
}
|
|
|
561 |
break;
|
|
|
562 |
|
|
|
563 |
case DEAL_TEXT:
|
|
|
564 |
if (value == null) {
|
|
|
565 |
unsetDealText();
|
|
|
566 |
} else {
|
|
|
567 |
setDealText((String)value);
|
|
|
568 |
}
|
|
|
569 |
break;
|
|
|
570 |
|
|
|
571 |
case IS_COD:
|
|
|
572 |
if (value == null) {
|
|
|
573 |
unsetIsCod();
|
|
|
574 |
} else {
|
|
|
575 |
setIsCod((Boolean)value);
|
|
|
576 |
}
|
|
|
577 |
break;
|
|
|
578 |
|
|
|
579 |
case RANK:
|
|
|
580 |
if (value == null) {
|
|
|
581 |
unsetRank();
|
|
|
582 |
} else {
|
|
|
583 |
setRank((Long)value);
|
|
|
584 |
}
|
|
|
585 |
break;
|
|
|
586 |
|
| 11580 |
vikram.rag |
587 |
case DEAL_FREEBIE_OPTION:
|
|
|
588 |
if (value == null) {
|
|
|
589 |
unsetDealFreebieOption();
|
|
|
590 |
} else {
|
|
|
591 |
setDealFreebieOption((Long)value);
|
|
|
592 |
}
|
|
|
593 |
break;
|
|
|
594 |
|
| 11606 |
vikram.rag |
595 |
case IS_ACTIVE:
|
|
|
596 |
if (value == null) {
|
|
|
597 |
unsetIsActive();
|
|
|
598 |
} else {
|
|
|
599 |
setIsActive((Boolean)value);
|
|
|
600 |
}
|
|
|
601 |
break;
|
|
|
602 |
|
| 11531 |
vikram.rag |
603 |
}
|
|
|
604 |
}
|
|
|
605 |
|
|
|
606 |
public Object getFieldValue(_Fields field) {
|
|
|
607 |
switch (field) {
|
|
|
608 |
case ITEM_ID:
|
|
|
609 |
return Long.valueOf(getItem_id());
|
|
|
610 |
|
|
|
611 |
case DEAL_PRICE:
|
|
|
612 |
return Double.valueOf(getDealPrice());
|
|
|
613 |
|
|
|
614 |
case DEAL_FREEBIE_ITEM_ID:
|
|
|
615 |
return Long.valueOf(getDealFreebieItemId());
|
|
|
616 |
|
|
|
617 |
case START_DATE:
|
|
|
618 |
return Long.valueOf(getStartDate());
|
|
|
619 |
|
|
|
620 |
case END_DATE:
|
|
|
621 |
return Long.valueOf(getEndDate());
|
|
|
622 |
|
| 11580 |
vikram.rag |
623 |
case DEAL_TEXT_OPTION:
|
|
|
624 |
return Long.valueOf(getDealTextOption());
|
| 11531 |
vikram.rag |
625 |
|
|
|
626 |
case DEAL_TEXT:
|
|
|
627 |
return getDealText();
|
|
|
628 |
|
|
|
629 |
case IS_COD:
|
|
|
630 |
return Boolean.valueOf(isIsCod());
|
|
|
631 |
|
|
|
632 |
case RANK:
|
|
|
633 |
return Long.valueOf(getRank());
|
|
|
634 |
|
| 11580 |
vikram.rag |
635 |
case DEAL_FREEBIE_OPTION:
|
|
|
636 |
return Long.valueOf(getDealFreebieOption());
|
|
|
637 |
|
| 11606 |
vikram.rag |
638 |
case IS_ACTIVE:
|
|
|
639 |
return Boolean.valueOf(isIsActive());
|
|
|
640 |
|
| 11531 |
vikram.rag |
641 |
}
|
|
|
642 |
throw new IllegalStateException();
|
|
|
643 |
}
|
|
|
644 |
|
|
|
645 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
646 |
public boolean isSet(_Fields field) {
|
|
|
647 |
if (field == null) {
|
|
|
648 |
throw new IllegalArgumentException();
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
switch (field) {
|
|
|
652 |
case ITEM_ID:
|
|
|
653 |
return isSetItem_id();
|
|
|
654 |
case DEAL_PRICE:
|
|
|
655 |
return isSetDealPrice();
|
|
|
656 |
case DEAL_FREEBIE_ITEM_ID:
|
|
|
657 |
return isSetDealFreebieItemId();
|
|
|
658 |
case START_DATE:
|
|
|
659 |
return isSetStartDate();
|
|
|
660 |
case END_DATE:
|
|
|
661 |
return isSetEndDate();
|
| 11580 |
vikram.rag |
662 |
case DEAL_TEXT_OPTION:
|
|
|
663 |
return isSetDealTextOption();
|
| 11531 |
vikram.rag |
664 |
case DEAL_TEXT:
|
|
|
665 |
return isSetDealText();
|
|
|
666 |
case IS_COD:
|
|
|
667 |
return isSetIsCod();
|
|
|
668 |
case RANK:
|
|
|
669 |
return isSetRank();
|
| 11580 |
vikram.rag |
670 |
case DEAL_FREEBIE_OPTION:
|
|
|
671 |
return isSetDealFreebieOption();
|
| 11606 |
vikram.rag |
672 |
case IS_ACTIVE:
|
|
|
673 |
return isSetIsActive();
|
| 11531 |
vikram.rag |
674 |
}
|
|
|
675 |
throw new IllegalStateException();
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
@Override
|
|
|
679 |
public boolean equals(Object that) {
|
|
|
680 |
if (that == null)
|
|
|
681 |
return false;
|
|
|
682 |
if (that instanceof PrivateDeal)
|
|
|
683 |
return this.equals((PrivateDeal)that);
|
|
|
684 |
return false;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
public boolean equals(PrivateDeal that) {
|
|
|
688 |
if (that == null)
|
|
|
689 |
return false;
|
|
|
690 |
|
|
|
691 |
boolean this_present_item_id = true;
|
|
|
692 |
boolean that_present_item_id = true;
|
|
|
693 |
if (this_present_item_id || that_present_item_id) {
|
|
|
694 |
if (!(this_present_item_id && that_present_item_id))
|
|
|
695 |
return false;
|
|
|
696 |
if (this.item_id != that.item_id)
|
|
|
697 |
return false;
|
|
|
698 |
}
|
|
|
699 |
|
|
|
700 |
boolean this_present_dealPrice = true;
|
|
|
701 |
boolean that_present_dealPrice = true;
|
|
|
702 |
if (this_present_dealPrice || that_present_dealPrice) {
|
|
|
703 |
if (!(this_present_dealPrice && that_present_dealPrice))
|
|
|
704 |
return false;
|
|
|
705 |
if (this.dealPrice != that.dealPrice)
|
|
|
706 |
return false;
|
|
|
707 |
}
|
|
|
708 |
|
|
|
709 |
boolean this_present_dealFreebieItemId = true;
|
|
|
710 |
boolean that_present_dealFreebieItemId = true;
|
|
|
711 |
if (this_present_dealFreebieItemId || that_present_dealFreebieItemId) {
|
|
|
712 |
if (!(this_present_dealFreebieItemId && that_present_dealFreebieItemId))
|
|
|
713 |
return false;
|
|
|
714 |
if (this.dealFreebieItemId != that.dealFreebieItemId)
|
|
|
715 |
return false;
|
|
|
716 |
}
|
|
|
717 |
|
|
|
718 |
boolean this_present_startDate = true;
|
|
|
719 |
boolean that_present_startDate = true;
|
|
|
720 |
if (this_present_startDate || that_present_startDate) {
|
|
|
721 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
722 |
return false;
|
|
|
723 |
if (this.startDate != that.startDate)
|
|
|
724 |
return false;
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
boolean this_present_endDate = true;
|
|
|
728 |
boolean that_present_endDate = true;
|
|
|
729 |
if (this_present_endDate || that_present_endDate) {
|
|
|
730 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
731 |
return false;
|
|
|
732 |
if (this.endDate != that.endDate)
|
|
|
733 |
return false;
|
|
|
734 |
}
|
|
|
735 |
|
| 11580 |
vikram.rag |
736 |
boolean this_present_dealTextOption = true;
|
|
|
737 |
boolean that_present_dealTextOption = true;
|
|
|
738 |
if (this_present_dealTextOption || that_present_dealTextOption) {
|
|
|
739 |
if (!(this_present_dealTextOption && that_present_dealTextOption))
|
| 11531 |
vikram.rag |
740 |
return false;
|
| 11580 |
vikram.rag |
741 |
if (this.dealTextOption != that.dealTextOption)
|
| 11531 |
vikram.rag |
742 |
return false;
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
boolean this_present_dealText = true && this.isSetDealText();
|
|
|
746 |
boolean that_present_dealText = true && that.isSetDealText();
|
|
|
747 |
if (this_present_dealText || that_present_dealText) {
|
|
|
748 |
if (!(this_present_dealText && that_present_dealText))
|
|
|
749 |
return false;
|
|
|
750 |
if (!this.dealText.equals(that.dealText))
|
|
|
751 |
return false;
|
|
|
752 |
}
|
|
|
753 |
|
|
|
754 |
boolean this_present_isCod = true;
|
|
|
755 |
boolean that_present_isCod = true;
|
|
|
756 |
if (this_present_isCod || that_present_isCod) {
|
|
|
757 |
if (!(this_present_isCod && that_present_isCod))
|
|
|
758 |
return false;
|
|
|
759 |
if (this.isCod != that.isCod)
|
|
|
760 |
return false;
|
|
|
761 |
}
|
|
|
762 |
|
|
|
763 |
boolean this_present_rank = true;
|
|
|
764 |
boolean that_present_rank = true;
|
|
|
765 |
if (this_present_rank || that_present_rank) {
|
|
|
766 |
if (!(this_present_rank && that_present_rank))
|
|
|
767 |
return false;
|
|
|
768 |
if (this.rank != that.rank)
|
|
|
769 |
return false;
|
|
|
770 |
}
|
|
|
771 |
|
| 11580 |
vikram.rag |
772 |
boolean this_present_dealFreebieOption = true;
|
|
|
773 |
boolean that_present_dealFreebieOption = true;
|
|
|
774 |
if (this_present_dealFreebieOption || that_present_dealFreebieOption) {
|
|
|
775 |
if (!(this_present_dealFreebieOption && that_present_dealFreebieOption))
|
|
|
776 |
return false;
|
|
|
777 |
if (this.dealFreebieOption != that.dealFreebieOption)
|
|
|
778 |
return false;
|
|
|
779 |
}
|
|
|
780 |
|
| 11606 |
vikram.rag |
781 |
boolean this_present_isActive = true;
|
|
|
782 |
boolean that_present_isActive = true;
|
|
|
783 |
if (this_present_isActive || that_present_isActive) {
|
|
|
784 |
if (!(this_present_isActive && that_present_isActive))
|
|
|
785 |
return false;
|
|
|
786 |
if (this.isActive != that.isActive)
|
|
|
787 |
return false;
|
|
|
788 |
}
|
|
|
789 |
|
| 11531 |
vikram.rag |
790 |
return true;
|
|
|
791 |
}
|
|
|
792 |
|
|
|
793 |
@Override
|
|
|
794 |
public int hashCode() {
|
|
|
795 |
return 0;
|
|
|
796 |
}
|
|
|
797 |
|
|
|
798 |
public int compareTo(PrivateDeal other) {
|
|
|
799 |
if (!getClass().equals(other.getClass())) {
|
|
|
800 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
int lastComparison = 0;
|
|
|
804 |
PrivateDeal typedOther = (PrivateDeal)other;
|
|
|
805 |
|
|
|
806 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
|
|
807 |
if (lastComparison != 0) {
|
|
|
808 |
return lastComparison;
|
|
|
809 |
}
|
|
|
810 |
if (isSetItem_id()) {
|
|
|
811 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
812 |
if (lastComparison != 0) {
|
|
|
813 |
return lastComparison;
|
|
|
814 |
}
|
|
|
815 |
}
|
|
|
816 |
lastComparison = Boolean.valueOf(isSetDealPrice()).compareTo(typedOther.isSetDealPrice());
|
|
|
817 |
if (lastComparison != 0) {
|
|
|
818 |
return lastComparison;
|
|
|
819 |
}
|
|
|
820 |
if (isSetDealPrice()) {
|
|
|
821 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealPrice, typedOther.dealPrice);
|
|
|
822 |
if (lastComparison != 0) {
|
|
|
823 |
return lastComparison;
|
|
|
824 |
}
|
|
|
825 |
}
|
|
|
826 |
lastComparison = Boolean.valueOf(isSetDealFreebieItemId()).compareTo(typedOther.isSetDealFreebieItemId());
|
|
|
827 |
if (lastComparison != 0) {
|
|
|
828 |
return lastComparison;
|
|
|
829 |
}
|
|
|
830 |
if (isSetDealFreebieItemId()) {
|
|
|
831 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealFreebieItemId, typedOther.dealFreebieItemId);
|
|
|
832 |
if (lastComparison != 0) {
|
|
|
833 |
return lastComparison;
|
|
|
834 |
}
|
|
|
835 |
}
|
|
|
836 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
837 |
if (lastComparison != 0) {
|
|
|
838 |
return lastComparison;
|
|
|
839 |
}
|
|
|
840 |
if (isSetStartDate()) {
|
|
|
841 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
842 |
if (lastComparison != 0) {
|
|
|
843 |
return lastComparison;
|
|
|
844 |
}
|
|
|
845 |
}
|
|
|
846 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
847 |
if (lastComparison != 0) {
|
|
|
848 |
return lastComparison;
|
|
|
849 |
}
|
|
|
850 |
if (isSetEndDate()) {
|
|
|
851 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
852 |
if (lastComparison != 0) {
|
|
|
853 |
return lastComparison;
|
|
|
854 |
}
|
|
|
855 |
}
|
| 11580 |
vikram.rag |
856 |
lastComparison = Boolean.valueOf(isSetDealTextOption()).compareTo(typedOther.isSetDealTextOption());
|
| 11531 |
vikram.rag |
857 |
if (lastComparison != 0) {
|
|
|
858 |
return lastComparison;
|
|
|
859 |
}
|
| 11580 |
vikram.rag |
860 |
if (isSetDealTextOption()) {
|
|
|
861 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealTextOption, typedOther.dealTextOption);
|
| 11531 |
vikram.rag |
862 |
if (lastComparison != 0) {
|
|
|
863 |
return lastComparison;
|
|
|
864 |
}
|
|
|
865 |
}
|
|
|
866 |
lastComparison = Boolean.valueOf(isSetDealText()).compareTo(typedOther.isSetDealText());
|
|
|
867 |
if (lastComparison != 0) {
|
|
|
868 |
return lastComparison;
|
|
|
869 |
}
|
|
|
870 |
if (isSetDealText()) {
|
|
|
871 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealText, typedOther.dealText);
|
|
|
872 |
if (lastComparison != 0) {
|
|
|
873 |
return lastComparison;
|
|
|
874 |
}
|
|
|
875 |
}
|
|
|
876 |
lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
|
|
|
877 |
if (lastComparison != 0) {
|
|
|
878 |
return lastComparison;
|
|
|
879 |
}
|
|
|
880 |
if (isSetIsCod()) {
|
|
|
881 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
|
|
|
882 |
if (lastComparison != 0) {
|
|
|
883 |
return lastComparison;
|
|
|
884 |
}
|
|
|
885 |
}
|
|
|
886 |
lastComparison = Boolean.valueOf(isSetRank()).compareTo(typedOther.isSetRank());
|
|
|
887 |
if (lastComparison != 0) {
|
|
|
888 |
return lastComparison;
|
|
|
889 |
}
|
|
|
890 |
if (isSetRank()) {
|
|
|
891 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rank, typedOther.rank);
|
|
|
892 |
if (lastComparison != 0) {
|
|
|
893 |
return lastComparison;
|
|
|
894 |
}
|
|
|
895 |
}
|
| 11580 |
vikram.rag |
896 |
lastComparison = Boolean.valueOf(isSetDealFreebieOption()).compareTo(typedOther.isSetDealFreebieOption());
|
|
|
897 |
if (lastComparison != 0) {
|
|
|
898 |
return lastComparison;
|
|
|
899 |
}
|
|
|
900 |
if (isSetDealFreebieOption()) {
|
|
|
901 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealFreebieOption, typedOther.dealFreebieOption);
|
|
|
902 |
if (lastComparison != 0) {
|
|
|
903 |
return lastComparison;
|
|
|
904 |
}
|
|
|
905 |
}
|
| 11606 |
vikram.rag |
906 |
lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
|
|
|
907 |
if (lastComparison != 0) {
|
|
|
908 |
return lastComparison;
|
|
|
909 |
}
|
|
|
910 |
if (isSetIsActive()) {
|
|
|
911 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
|
|
|
912 |
if (lastComparison != 0) {
|
|
|
913 |
return lastComparison;
|
|
|
914 |
}
|
|
|
915 |
}
|
| 11531 |
vikram.rag |
916 |
return 0;
|
|
|
917 |
}
|
|
|
918 |
|
|
|
919 |
public _Fields fieldForId(int fieldId) {
|
|
|
920 |
return _Fields.findByThriftId(fieldId);
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
924 |
org.apache.thrift.protocol.TField field;
|
|
|
925 |
iprot.readStructBegin();
|
|
|
926 |
while (true)
|
|
|
927 |
{
|
|
|
928 |
field = iprot.readFieldBegin();
|
|
|
929 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
930 |
break;
|
|
|
931 |
}
|
|
|
932 |
switch (field.id) {
|
|
|
933 |
case 1: // ITEM_ID
|
|
|
934 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
935 |
this.item_id = iprot.readI64();
|
|
|
936 |
setItem_idIsSet(true);
|
|
|
937 |
} else {
|
|
|
938 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
939 |
}
|
|
|
940 |
break;
|
|
|
941 |
case 2: // DEAL_PRICE
|
|
|
942 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
943 |
this.dealPrice = iprot.readDouble();
|
|
|
944 |
setDealPriceIsSet(true);
|
|
|
945 |
} else {
|
|
|
946 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
947 |
}
|
|
|
948 |
break;
|
|
|
949 |
case 3: // DEAL_FREEBIE_ITEM_ID
|
|
|
950 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
951 |
this.dealFreebieItemId = iprot.readI64();
|
|
|
952 |
setDealFreebieItemIdIsSet(true);
|
|
|
953 |
} else {
|
|
|
954 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
955 |
}
|
|
|
956 |
break;
|
|
|
957 |
case 4: // START_DATE
|
|
|
958 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
959 |
this.startDate = iprot.readI64();
|
|
|
960 |
setStartDateIsSet(true);
|
|
|
961 |
} else {
|
|
|
962 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
963 |
}
|
|
|
964 |
break;
|
|
|
965 |
case 5: // END_DATE
|
|
|
966 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
967 |
this.endDate = iprot.readI64();
|
|
|
968 |
setEndDateIsSet(true);
|
|
|
969 |
} else {
|
|
|
970 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
971 |
}
|
|
|
972 |
break;
|
| 11580 |
vikram.rag |
973 |
case 6: // DEAL_TEXT_OPTION
|
|
|
974 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
975 |
this.dealTextOption = iprot.readI64();
|
|
|
976 |
setDealTextOptionIsSet(true);
|
| 11531 |
vikram.rag |
977 |
} else {
|
|
|
978 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
979 |
}
|
|
|
980 |
break;
|
|
|
981 |
case 7: // DEAL_TEXT
|
|
|
982 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
983 |
this.dealText = iprot.readString();
|
|
|
984 |
} else {
|
|
|
985 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
986 |
}
|
|
|
987 |
break;
|
|
|
988 |
case 8: // IS_COD
|
|
|
989 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
990 |
this.isCod = iprot.readBool();
|
|
|
991 |
setIsCodIsSet(true);
|
|
|
992 |
} else {
|
|
|
993 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
994 |
}
|
|
|
995 |
break;
|
|
|
996 |
case 9: // RANK
|
|
|
997 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
998 |
this.rank = iprot.readI64();
|
|
|
999 |
setRankIsSet(true);
|
|
|
1000 |
} else {
|
|
|
1001 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1002 |
}
|
|
|
1003 |
break;
|
| 11580 |
vikram.rag |
1004 |
case 10: // DEAL_FREEBIE_OPTION
|
|
|
1005 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1006 |
this.dealFreebieOption = iprot.readI64();
|
|
|
1007 |
setDealFreebieOptionIsSet(true);
|
|
|
1008 |
} else {
|
|
|
1009 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1010 |
}
|
|
|
1011 |
break;
|
| 11606 |
vikram.rag |
1012 |
case 11: // IS_ACTIVE
|
|
|
1013 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1014 |
this.isActive = iprot.readBool();
|
|
|
1015 |
setIsActiveIsSet(true);
|
|
|
1016 |
} else {
|
|
|
1017 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1018 |
}
|
|
|
1019 |
break;
|
| 11531 |
vikram.rag |
1020 |
default:
|
|
|
1021 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1022 |
}
|
|
|
1023 |
iprot.readFieldEnd();
|
|
|
1024 |
}
|
|
|
1025 |
iprot.readStructEnd();
|
|
|
1026 |
validate();
|
|
|
1027 |
}
|
|
|
1028 |
|
|
|
1029 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1030 |
validate();
|
|
|
1031 |
|
|
|
1032 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1033 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
1034 |
oprot.writeI64(this.item_id);
|
|
|
1035 |
oprot.writeFieldEnd();
|
|
|
1036 |
oprot.writeFieldBegin(DEAL_PRICE_FIELD_DESC);
|
|
|
1037 |
oprot.writeDouble(this.dealPrice);
|
|
|
1038 |
oprot.writeFieldEnd();
|
|
|
1039 |
oprot.writeFieldBegin(DEAL_FREEBIE_ITEM_ID_FIELD_DESC);
|
|
|
1040 |
oprot.writeI64(this.dealFreebieItemId);
|
|
|
1041 |
oprot.writeFieldEnd();
|
|
|
1042 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
1043 |
oprot.writeI64(this.startDate);
|
|
|
1044 |
oprot.writeFieldEnd();
|
|
|
1045 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
1046 |
oprot.writeI64(this.endDate);
|
|
|
1047 |
oprot.writeFieldEnd();
|
| 11580 |
vikram.rag |
1048 |
oprot.writeFieldBegin(DEAL_TEXT_OPTION_FIELD_DESC);
|
|
|
1049 |
oprot.writeI64(this.dealTextOption);
|
| 11531 |
vikram.rag |
1050 |
oprot.writeFieldEnd();
|
|
|
1051 |
if (this.dealText != null) {
|
|
|
1052 |
oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
|
|
|
1053 |
oprot.writeString(this.dealText);
|
|
|
1054 |
oprot.writeFieldEnd();
|
|
|
1055 |
}
|
|
|
1056 |
oprot.writeFieldBegin(IS_COD_FIELD_DESC);
|
|
|
1057 |
oprot.writeBool(this.isCod);
|
|
|
1058 |
oprot.writeFieldEnd();
|
|
|
1059 |
oprot.writeFieldBegin(RANK_FIELD_DESC);
|
|
|
1060 |
oprot.writeI64(this.rank);
|
|
|
1061 |
oprot.writeFieldEnd();
|
| 11580 |
vikram.rag |
1062 |
oprot.writeFieldBegin(DEAL_FREEBIE_OPTION_FIELD_DESC);
|
|
|
1063 |
oprot.writeI64(this.dealFreebieOption);
|
|
|
1064 |
oprot.writeFieldEnd();
|
| 11606 |
vikram.rag |
1065 |
oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
|
|
|
1066 |
oprot.writeBool(this.isActive);
|
|
|
1067 |
oprot.writeFieldEnd();
|
| 11531 |
vikram.rag |
1068 |
oprot.writeFieldStop();
|
|
|
1069 |
oprot.writeStructEnd();
|
|
|
1070 |
}
|
|
|
1071 |
|
|
|
1072 |
@Override
|
|
|
1073 |
public String toString() {
|
|
|
1074 |
StringBuilder sb = new StringBuilder("PrivateDeal(");
|
|
|
1075 |
boolean first = true;
|
|
|
1076 |
|
|
|
1077 |
sb.append("item_id:");
|
|
|
1078 |
sb.append(this.item_id);
|
|
|
1079 |
first = false;
|
|
|
1080 |
if (!first) sb.append(", ");
|
|
|
1081 |
sb.append("dealPrice:");
|
|
|
1082 |
sb.append(this.dealPrice);
|
|
|
1083 |
first = false;
|
|
|
1084 |
if (!first) sb.append(", ");
|
|
|
1085 |
sb.append("dealFreebieItemId:");
|
|
|
1086 |
sb.append(this.dealFreebieItemId);
|
|
|
1087 |
first = false;
|
|
|
1088 |
if (!first) sb.append(", ");
|
|
|
1089 |
sb.append("startDate:");
|
|
|
1090 |
sb.append(this.startDate);
|
|
|
1091 |
first = false;
|
|
|
1092 |
if (!first) sb.append(", ");
|
|
|
1093 |
sb.append("endDate:");
|
|
|
1094 |
sb.append(this.endDate);
|
|
|
1095 |
first = false;
|
|
|
1096 |
if (!first) sb.append(", ");
|
| 11580 |
vikram.rag |
1097 |
sb.append("dealTextOption:");
|
|
|
1098 |
sb.append(this.dealTextOption);
|
| 11531 |
vikram.rag |
1099 |
first = false;
|
|
|
1100 |
if (!first) sb.append(", ");
|
|
|
1101 |
sb.append("dealText:");
|
|
|
1102 |
if (this.dealText == null) {
|
|
|
1103 |
sb.append("null");
|
|
|
1104 |
} else {
|
|
|
1105 |
sb.append(this.dealText);
|
|
|
1106 |
}
|
|
|
1107 |
first = false;
|
|
|
1108 |
if (!first) sb.append(", ");
|
|
|
1109 |
sb.append("isCod:");
|
|
|
1110 |
sb.append(this.isCod);
|
|
|
1111 |
first = false;
|
|
|
1112 |
if (!first) sb.append(", ");
|
|
|
1113 |
sb.append("rank:");
|
|
|
1114 |
sb.append(this.rank);
|
|
|
1115 |
first = false;
|
| 11580 |
vikram.rag |
1116 |
if (!first) sb.append(", ");
|
|
|
1117 |
sb.append("dealFreebieOption:");
|
|
|
1118 |
sb.append(this.dealFreebieOption);
|
|
|
1119 |
first = false;
|
| 11606 |
vikram.rag |
1120 |
if (!first) sb.append(", ");
|
|
|
1121 |
sb.append("isActive:");
|
|
|
1122 |
sb.append(this.isActive);
|
|
|
1123 |
first = false;
|
| 11531 |
vikram.rag |
1124 |
sb.append(")");
|
|
|
1125 |
return sb.toString();
|
|
|
1126 |
}
|
|
|
1127 |
|
|
|
1128 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1129 |
// check for required fields
|
|
|
1130 |
}
|
|
|
1131 |
|
|
|
1132 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1133 |
try {
|
|
|
1134 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1135 |
} catch (org.apache.thrift.TException te) {
|
|
|
1136 |
throw new java.io.IOException(te);
|
|
|
1137 |
}
|
|
|
1138 |
}
|
|
|
1139 |
|
|
|
1140 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1141 |
try {
|
|
|
1142 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1143 |
__isset_bit_vector = new BitSet(1);
|
|
|
1144 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1145 |
} catch (org.apache.thrift.TException te) {
|
|
|
1146 |
throw new java.io.IOException(te);
|
|
|
1147 |
}
|
|
|
1148 |
}
|
|
|
1149 |
|
|
|
1150 |
}
|
|
|
1151 |
|