| Line 26... |
Line 26... |
| 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);
|
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);
|
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);
|
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);
|
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);
|
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);
|
| 31 |
private static final org.apache.thrift.protocol.TField IS_DEAL_TEXT_IDENTICAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDealTextIdentical", org.apache.thrift.protocol.TType.BOOL, (short)6);
|
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);
|
| 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);
|
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);
|
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);
|
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);
|
| - |
|
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);
|
| 35 |
|
36 |
|
| 36 |
private long item_id; // required
|
37 |
private long item_id; // required
|
| 37 |
private double dealPrice; // required
|
38 |
private double dealPrice; // required
|
| 38 |
private long dealFreebieItemId; // required
|
39 |
private long dealFreebieItemId; // required
|
| 39 |
private long startDate; // required
|
40 |
private long startDate; // required
|
| 40 |
private long endDate; // required
|
41 |
private long endDate; // required
|
| 41 |
private boolean isDealTextIdentical; // required
|
42 |
private long dealTextOption; // required
|
| 42 |
private String dealText; // required
|
43 |
private String dealText; // required
|
| 43 |
private boolean isCod; // required
|
44 |
private boolean isCod; // required
|
| 44 |
private long rank; // required
|
45 |
private long rank; // required
|
| - |
|
46 |
private long dealFreebieOption; // required
|
| 45 |
|
47 |
|
| 46 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
48 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 47 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
49 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 48 |
ITEM_ID((short)1, "item_id"),
|
50 |
ITEM_ID((short)1, "item_id"),
|
| 49 |
DEAL_PRICE((short)2, "dealPrice"),
|
51 |
DEAL_PRICE((short)2, "dealPrice"),
|
| 50 |
DEAL_FREEBIE_ITEM_ID((short)3, "dealFreebieItemId"),
|
52 |
DEAL_FREEBIE_ITEM_ID((short)3, "dealFreebieItemId"),
|
| 51 |
START_DATE((short)4, "startDate"),
|
53 |
START_DATE((short)4, "startDate"),
|
| 52 |
END_DATE((short)5, "endDate"),
|
54 |
END_DATE((short)5, "endDate"),
|
| 53 |
IS_DEAL_TEXT_IDENTICAL((short)6, "isDealTextIdentical"),
|
55 |
DEAL_TEXT_OPTION((short)6, "dealTextOption"),
|
| 54 |
DEAL_TEXT((short)7, "dealText"),
|
56 |
DEAL_TEXT((short)7, "dealText"),
|
| 55 |
IS_COD((short)8, "isCod"),
|
57 |
IS_COD((short)8, "isCod"),
|
| 56 |
RANK((short)9, "rank");
|
58 |
RANK((short)9, "rank"),
|
| - |
|
59 |
DEAL_FREEBIE_OPTION((short)10, "dealFreebieOption");
|
| 57 |
|
60 |
|
| 58 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
61 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 59 |
|
62 |
|
| 60 |
static {
|
63 |
static {
|
| 61 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
64 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 76... |
Line 79... |
| 76 |
return DEAL_FREEBIE_ITEM_ID;
|
79 |
return DEAL_FREEBIE_ITEM_ID;
|
| 77 |
case 4: // START_DATE
|
80 |
case 4: // START_DATE
|
| 78 |
return START_DATE;
|
81 |
return START_DATE;
|
| 79 |
case 5: // END_DATE
|
82 |
case 5: // END_DATE
|
| 80 |
return END_DATE;
|
83 |
return END_DATE;
|
| 81 |
case 6: // IS_DEAL_TEXT_IDENTICAL
|
84 |
case 6: // DEAL_TEXT_OPTION
|
| 82 |
return IS_DEAL_TEXT_IDENTICAL;
|
85 |
return DEAL_TEXT_OPTION;
|
| 83 |
case 7: // DEAL_TEXT
|
86 |
case 7: // DEAL_TEXT
|
| 84 |
return DEAL_TEXT;
|
87 |
return DEAL_TEXT;
|
| 85 |
case 8: // IS_COD
|
88 |
case 8: // IS_COD
|
| 86 |
return IS_COD;
|
89 |
return IS_COD;
|
| 87 |
case 9: // RANK
|
90 |
case 9: // RANK
|
| 88 |
return RANK;
|
91 |
return RANK;
|
| - |
|
92 |
case 10: // DEAL_FREEBIE_OPTION
|
| - |
|
93 |
return DEAL_FREEBIE_OPTION;
|
| 89 |
default:
|
94 |
default:
|
| 90 |
return null;
|
95 |
return null;
|
| 91 |
}
|
96 |
}
|
| 92 |
}
|
97 |
}
|
| 93 |
|
98 |
|
| Line 129... |
Line 134... |
| 129 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
134 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
| 130 |
private static final int __DEALPRICE_ISSET_ID = 1;
|
135 |
private static final int __DEALPRICE_ISSET_ID = 1;
|
| 131 |
private static final int __DEALFREEBIEITEMID_ISSET_ID = 2;
|
136 |
private static final int __DEALFREEBIEITEMID_ISSET_ID = 2;
|
| 132 |
private static final int __STARTDATE_ISSET_ID = 3;
|
137 |
private static final int __STARTDATE_ISSET_ID = 3;
|
| 133 |
private static final int __ENDDATE_ISSET_ID = 4;
|
138 |
private static final int __ENDDATE_ISSET_ID = 4;
|
| 134 |
private static final int __ISDEALTEXTIDENTICAL_ISSET_ID = 5;
|
139 |
private static final int __DEALTEXTOPTION_ISSET_ID = 5;
|
| 135 |
private static final int __ISCOD_ISSET_ID = 6;
|
140 |
private static final int __ISCOD_ISSET_ID = 6;
|
| 136 |
private static final int __RANK_ISSET_ID = 7;
|
141 |
private static final int __RANK_ISSET_ID = 7;
|
| - |
|
142 |
private static final int __DEALFREEBIEOPTION_ISSET_ID = 8;
|
| 137 |
private BitSet __isset_bit_vector = new BitSet(8);
|
143 |
private BitSet __isset_bit_vector = new BitSet(9);
|
| 138 |
|
144 |
|
| 139 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
145 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 140 |
static {
|
146 |
static {
|
| 141 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
147 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 142 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
148 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 147... |
Line 153... |
| 147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 148 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
154 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 150 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
156 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 152 |
tmpMap.put(_Fields.IS_DEAL_TEXT_IDENTICAL, new org.apache.thrift.meta_data.FieldMetaData("isDealTextIdentical", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
158 |
tmpMap.put(_Fields.DEAL_TEXT_OPTION, new org.apache.thrift.meta_data.FieldMetaData("dealTextOption", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 154 |
tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
160 |
tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 156 |
tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
162 |
tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
163 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 158 |
tmpMap.put(_Fields.RANK, new org.apache.thrift.meta_data.FieldMetaData("rank", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
164 |
tmpMap.put(_Fields.RANK, new org.apache.thrift.meta_data.FieldMetaData("rank", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
165 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
166 |
tmpMap.put(_Fields.DEAL_FREEBIE_OPTION, new org.apache.thrift.meta_data.FieldMetaData("dealFreebieOption", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
167 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 160 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
168 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 161 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivateDeal.class, metaDataMap);
|
169 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivateDeal.class, metaDataMap);
|
| 162 |
}
|
170 |
}
|
| 163 |
|
171 |
|
| 164 |
public PrivateDeal() {
|
172 |
public PrivateDeal() {
|
| Line 168... |
Line 176... |
| 168 |
long item_id,
|
176 |
long item_id,
|
| 169 |
double dealPrice,
|
177 |
double dealPrice,
|
| 170 |
long dealFreebieItemId,
|
178 |
long dealFreebieItemId,
|
| 171 |
long startDate,
|
179 |
long startDate,
|
| 172 |
long endDate,
|
180 |
long endDate,
|
| 173 |
boolean isDealTextIdentical,
|
181 |
long dealTextOption,
|
| 174 |
String dealText,
|
182 |
String dealText,
|
| 175 |
boolean isCod,
|
183 |
boolean isCod,
|
| 176 |
long rank)
|
184 |
long rank,
|
| - |
|
185 |
long dealFreebieOption)
|
| 177 |
{
|
186 |
{
|
| 178 |
this();
|
187 |
this();
|
| 179 |
this.item_id = item_id;
|
188 |
this.item_id = item_id;
|
| 180 |
setItem_idIsSet(true);
|
189 |
setItem_idIsSet(true);
|
| 181 |
this.dealPrice = dealPrice;
|
190 |
this.dealPrice = dealPrice;
|
| Line 184... |
Line 193... |
| 184 |
setDealFreebieItemIdIsSet(true);
|
193 |
setDealFreebieItemIdIsSet(true);
|
| 185 |
this.startDate = startDate;
|
194 |
this.startDate = startDate;
|
| 186 |
setStartDateIsSet(true);
|
195 |
setStartDateIsSet(true);
|
| 187 |
this.endDate = endDate;
|
196 |
this.endDate = endDate;
|
| 188 |
setEndDateIsSet(true);
|
197 |
setEndDateIsSet(true);
|
| 189 |
this.isDealTextIdentical = isDealTextIdentical;
|
198 |
this.dealTextOption = dealTextOption;
|
| 190 |
setIsDealTextIdenticalIsSet(true);
|
199 |
setDealTextOptionIsSet(true);
|
| 191 |
this.dealText = dealText;
|
200 |
this.dealText = dealText;
|
| 192 |
this.isCod = isCod;
|
201 |
this.isCod = isCod;
|
| 193 |
setIsCodIsSet(true);
|
202 |
setIsCodIsSet(true);
|
| 194 |
this.rank = rank;
|
203 |
this.rank = rank;
|
| 195 |
setRankIsSet(true);
|
204 |
setRankIsSet(true);
|
| - |
|
205 |
this.dealFreebieOption = dealFreebieOption;
|
| - |
|
206 |
setDealFreebieOptionIsSet(true);
|
| 196 |
}
|
207 |
}
|
| 197 |
|
208 |
|
| 198 |
/**
|
209 |
/**
|
| 199 |
* Performs a deep copy on <i>other</i>.
|
210 |
* Performs a deep copy on <i>other</i>.
|
| 200 |
*/
|
211 |
*/
|
| Line 204... |
Line 215... |
| 204 |
this.item_id = other.item_id;
|
215 |
this.item_id = other.item_id;
|
| 205 |
this.dealPrice = other.dealPrice;
|
216 |
this.dealPrice = other.dealPrice;
|
| 206 |
this.dealFreebieItemId = other.dealFreebieItemId;
|
217 |
this.dealFreebieItemId = other.dealFreebieItemId;
|
| 207 |
this.startDate = other.startDate;
|
218 |
this.startDate = other.startDate;
|
| 208 |
this.endDate = other.endDate;
|
219 |
this.endDate = other.endDate;
|
| 209 |
this.isDealTextIdentical = other.isDealTextIdentical;
|
220 |
this.dealTextOption = other.dealTextOption;
|
| 210 |
if (other.isSetDealText()) {
|
221 |
if (other.isSetDealText()) {
|
| 211 |
this.dealText = other.dealText;
|
222 |
this.dealText = other.dealText;
|
| 212 |
}
|
223 |
}
|
| 213 |
this.isCod = other.isCod;
|
224 |
this.isCod = other.isCod;
|
| 214 |
this.rank = other.rank;
|
225 |
this.rank = other.rank;
|
| - |
|
226 |
this.dealFreebieOption = other.dealFreebieOption;
|
| 215 |
}
|
227 |
}
|
| 216 |
|
228 |
|
| 217 |
public PrivateDeal deepCopy() {
|
229 |
public PrivateDeal deepCopy() {
|
| 218 |
return new PrivateDeal(this);
|
230 |
return new PrivateDeal(this);
|
| 219 |
}
|
231 |
}
|
| Line 228... |
Line 240... |
| 228 |
this.dealFreebieItemId = 0;
|
240 |
this.dealFreebieItemId = 0;
|
| 229 |
setStartDateIsSet(false);
|
241 |
setStartDateIsSet(false);
|
| 230 |
this.startDate = 0;
|
242 |
this.startDate = 0;
|
| 231 |
setEndDateIsSet(false);
|
243 |
setEndDateIsSet(false);
|
| 232 |
this.endDate = 0;
|
244 |
this.endDate = 0;
|
| 233 |
setIsDealTextIdenticalIsSet(false);
|
245 |
setDealTextOptionIsSet(false);
|
| 234 |
this.isDealTextIdentical = false;
|
246 |
this.dealTextOption = 0;
|
| 235 |
this.dealText = null;
|
247 |
this.dealText = null;
|
| 236 |
setIsCodIsSet(false);
|
248 |
setIsCodIsSet(false);
|
| 237 |
this.isCod = false;
|
249 |
this.isCod = false;
|
| 238 |
setRankIsSet(false);
|
250 |
setRankIsSet(false);
|
| 239 |
this.rank = 0;
|
251 |
this.rank = 0;
|
| - |
|
252 |
setDealFreebieOptionIsSet(false);
|
| - |
|
253 |
this.dealFreebieOption = 0;
|
| 240 |
}
|
254 |
}
|
| 241 |
|
255 |
|
| 242 |
public long getItem_id() {
|
256 |
public long getItem_id() {
|
| 243 |
return this.item_id;
|
257 |
return this.item_id;
|
| 244 |
}
|
258 |
}
|
| Line 347... |
Line 361... |
| 347 |
|
361 |
|
| 348 |
public void setEndDateIsSet(boolean value) {
|
362 |
public void setEndDateIsSet(boolean value) {
|
| 349 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
363 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
| 350 |
}
|
364 |
}
|
| 351 |
|
365 |
|
| 352 |
public boolean isIsDealTextIdentical() {
|
366 |
public long getDealTextOption() {
|
| 353 |
return this.isDealTextIdentical;
|
367 |
return this.dealTextOption;
|
| 354 |
}
|
368 |
}
|
| 355 |
|
369 |
|
| 356 |
public void setIsDealTextIdentical(boolean isDealTextIdentical) {
|
370 |
public void setDealTextOption(long dealTextOption) {
|
| 357 |
this.isDealTextIdentical = isDealTextIdentical;
|
371 |
this.dealTextOption = dealTextOption;
|
| 358 |
setIsDealTextIdenticalIsSet(true);
|
372 |
setDealTextOptionIsSet(true);
|
| 359 |
}
|
373 |
}
|
| 360 |
|
374 |
|
| 361 |
public void unsetIsDealTextIdentical() {
|
375 |
public void unsetDealTextOption() {
|
| 362 |
__isset_bit_vector.clear(__ISDEALTEXTIDENTICAL_ISSET_ID);
|
376 |
__isset_bit_vector.clear(__DEALTEXTOPTION_ISSET_ID);
|
| 363 |
}
|
377 |
}
|
| 364 |
|
378 |
|
| 365 |
/** Returns true if field isDealTextIdentical is set (has been assigned a value) and false otherwise */
|
379 |
/** Returns true if field dealTextOption is set (has been assigned a value) and false otherwise */
|
| 366 |
public boolean isSetIsDealTextIdentical() {
|
380 |
public boolean isSetDealTextOption() {
|
| 367 |
return __isset_bit_vector.get(__ISDEALTEXTIDENTICAL_ISSET_ID);
|
381 |
return __isset_bit_vector.get(__DEALTEXTOPTION_ISSET_ID);
|
| 368 |
}
|
382 |
}
|
| 369 |
|
383 |
|
| 370 |
public void setIsDealTextIdenticalIsSet(boolean value) {
|
384 |
public void setDealTextOptionIsSet(boolean value) {
|
| 371 |
__isset_bit_vector.set(__ISDEALTEXTIDENTICAL_ISSET_ID, value);
|
385 |
__isset_bit_vector.set(__DEALTEXTOPTION_ISSET_ID, value);
|
| 372 |
}
|
386 |
}
|
| 373 |
|
387 |
|
| 374 |
public String getDealText() {
|
388 |
public String getDealText() {
|
| 375 |
return this.dealText;
|
389 |
return this.dealText;
|
| 376 |
}
|
390 |
}
|
| Line 436... |
Line 450... |
| 436 |
|
450 |
|
| 437 |
public void setRankIsSet(boolean value) {
|
451 |
public void setRankIsSet(boolean value) {
|
| 438 |
__isset_bit_vector.set(__RANK_ISSET_ID, value);
|
452 |
__isset_bit_vector.set(__RANK_ISSET_ID, value);
|
| 439 |
}
|
453 |
}
|
| 440 |
|
454 |
|
| - |
|
455 |
public long getDealFreebieOption() {
|
| - |
|
456 |
return this.dealFreebieOption;
|
| - |
|
457 |
}
|
| - |
|
458 |
|
| - |
|
459 |
public void setDealFreebieOption(long dealFreebieOption) {
|
| - |
|
460 |
this.dealFreebieOption = dealFreebieOption;
|
| - |
|
461 |
setDealFreebieOptionIsSet(true);
|
| - |
|
462 |
}
|
| - |
|
463 |
|
| - |
|
464 |
public void unsetDealFreebieOption() {
|
| - |
|
465 |
__isset_bit_vector.clear(__DEALFREEBIEOPTION_ISSET_ID);
|
| - |
|
466 |
}
|
| - |
|
467 |
|
| - |
|
468 |
/** Returns true if field dealFreebieOption is set (has been assigned a value) and false otherwise */
|
| - |
|
469 |
public boolean isSetDealFreebieOption() {
|
| - |
|
470 |
return __isset_bit_vector.get(__DEALFREEBIEOPTION_ISSET_ID);
|
| - |
|
471 |
}
|
| - |
|
472 |
|
| - |
|
473 |
public void setDealFreebieOptionIsSet(boolean value) {
|
| - |
|
474 |
__isset_bit_vector.set(__DEALFREEBIEOPTION_ISSET_ID, value);
|
| - |
|
475 |
}
|
| - |
|
476 |
|
| 441 |
public void setFieldValue(_Fields field, Object value) {
|
477 |
public void setFieldValue(_Fields field, Object value) {
|
| 442 |
switch (field) {
|
478 |
switch (field) {
|
| 443 |
case ITEM_ID:
|
479 |
case ITEM_ID:
|
| 444 |
if (value == null) {
|
480 |
if (value == null) {
|
| 445 |
unsetItem_id();
|
481 |
unsetItem_id();
|
| Line 478... |
Line 514... |
| 478 |
} else {
|
514 |
} else {
|
| 479 |
setEndDate((Long)value);
|
515 |
setEndDate((Long)value);
|
| 480 |
}
|
516 |
}
|
| 481 |
break;
|
517 |
break;
|
| 482 |
|
518 |
|
| 483 |
case IS_DEAL_TEXT_IDENTICAL:
|
519 |
case DEAL_TEXT_OPTION:
|
| 484 |
if (value == null) {
|
520 |
if (value == null) {
|
| 485 |
unsetIsDealTextIdentical();
|
521 |
unsetDealTextOption();
|
| 486 |
} else {
|
522 |
} else {
|
| 487 |
setIsDealTextIdentical((Boolean)value);
|
523 |
setDealTextOption((Long)value);
|
| 488 |
}
|
524 |
}
|
| 489 |
break;
|
525 |
break;
|
| 490 |
|
526 |
|
| 491 |
case DEAL_TEXT:
|
527 |
case DEAL_TEXT:
|
| 492 |
if (value == null) {
|
528 |
if (value == null) {
|
| Line 510... |
Line 546... |
| 510 |
} else {
|
546 |
} else {
|
| 511 |
setRank((Long)value);
|
547 |
setRank((Long)value);
|
| 512 |
}
|
548 |
}
|
| 513 |
break;
|
549 |
break;
|
| 514 |
|
550 |
|
| - |
|
551 |
case DEAL_FREEBIE_OPTION:
|
| - |
|
552 |
if (value == null) {
|
| - |
|
553 |
unsetDealFreebieOption();
|
| - |
|
554 |
} else {
|
| - |
|
555 |
setDealFreebieOption((Long)value);
|
| - |
|
556 |
}
|
| - |
|
557 |
break;
|
| - |
|
558 |
|
| 515 |
}
|
559 |
}
|
| 516 |
}
|
560 |
}
|
| 517 |
|
561 |
|
| 518 |
public Object getFieldValue(_Fields field) {
|
562 |
public Object getFieldValue(_Fields field) {
|
| 519 |
switch (field) {
|
563 |
switch (field) {
|
| Line 530... |
Line 574... |
| 530 |
return Long.valueOf(getStartDate());
|
574 |
return Long.valueOf(getStartDate());
|
| 531 |
|
575 |
|
| 532 |
case END_DATE:
|
576 |
case END_DATE:
|
| 533 |
return Long.valueOf(getEndDate());
|
577 |
return Long.valueOf(getEndDate());
|
| 534 |
|
578 |
|
| 535 |
case IS_DEAL_TEXT_IDENTICAL:
|
579 |
case DEAL_TEXT_OPTION:
|
| 536 |
return Boolean.valueOf(isIsDealTextIdentical());
|
580 |
return Long.valueOf(getDealTextOption());
|
| 537 |
|
581 |
|
| 538 |
case DEAL_TEXT:
|
582 |
case DEAL_TEXT:
|
| 539 |
return getDealText();
|
583 |
return getDealText();
|
| 540 |
|
584 |
|
| 541 |
case IS_COD:
|
585 |
case IS_COD:
|
| 542 |
return Boolean.valueOf(isIsCod());
|
586 |
return Boolean.valueOf(isIsCod());
|
| 543 |
|
587 |
|
| 544 |
case RANK:
|
588 |
case RANK:
|
| 545 |
return Long.valueOf(getRank());
|
589 |
return Long.valueOf(getRank());
|
| 546 |
|
590 |
|
| - |
|
591 |
case DEAL_FREEBIE_OPTION:
|
| - |
|
592 |
return Long.valueOf(getDealFreebieOption());
|
| - |
|
593 |
|
| 547 |
}
|
594 |
}
|
| 548 |
throw new IllegalStateException();
|
595 |
throw new IllegalStateException();
|
| 549 |
}
|
596 |
}
|
| 550 |
|
597 |
|
| 551 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 563... |
Line 610... |
| 563 |
return isSetDealFreebieItemId();
|
610 |
return isSetDealFreebieItemId();
|
| 564 |
case START_DATE:
|
611 |
case START_DATE:
|
| 565 |
return isSetStartDate();
|
612 |
return isSetStartDate();
|
| 566 |
case END_DATE:
|
613 |
case END_DATE:
|
| 567 |
return isSetEndDate();
|
614 |
return isSetEndDate();
|
| 568 |
case IS_DEAL_TEXT_IDENTICAL:
|
615 |
case DEAL_TEXT_OPTION:
|
| 569 |
return isSetIsDealTextIdentical();
|
616 |
return isSetDealTextOption();
|
| 570 |
case DEAL_TEXT:
|
617 |
case DEAL_TEXT:
|
| 571 |
return isSetDealText();
|
618 |
return isSetDealText();
|
| 572 |
case IS_COD:
|
619 |
case IS_COD:
|
| 573 |
return isSetIsCod();
|
620 |
return isSetIsCod();
|
| 574 |
case RANK:
|
621 |
case RANK:
|
| 575 |
return isSetRank();
|
622 |
return isSetRank();
|
| - |
|
623 |
case DEAL_FREEBIE_OPTION:
|
| - |
|
624 |
return isSetDealFreebieOption();
|
| 576 |
}
|
625 |
}
|
| 577 |
throw new IllegalStateException();
|
626 |
throw new IllegalStateException();
|
| 578 |
}
|
627 |
}
|
| 579 |
|
628 |
|
| 580 |
@Override
|
629 |
@Override
|
| Line 633... |
Line 682... |
| 633 |
return false;
|
682 |
return false;
|
| 634 |
if (this.endDate != that.endDate)
|
683 |
if (this.endDate != that.endDate)
|
| 635 |
return false;
|
684 |
return false;
|
| 636 |
}
|
685 |
}
|
| 637 |
|
686 |
|
| 638 |
boolean this_present_isDealTextIdentical = true;
|
687 |
boolean this_present_dealTextOption = true;
|
| 639 |
boolean that_present_isDealTextIdentical = true;
|
688 |
boolean that_present_dealTextOption = true;
|
| 640 |
if (this_present_isDealTextIdentical || that_present_isDealTextIdentical) {
|
689 |
if (this_present_dealTextOption || that_present_dealTextOption) {
|
| 641 |
if (!(this_present_isDealTextIdentical && that_present_isDealTextIdentical))
|
690 |
if (!(this_present_dealTextOption && that_present_dealTextOption))
|
| 642 |
return false;
|
691 |
return false;
|
| 643 |
if (this.isDealTextIdentical != that.isDealTextIdentical)
|
692 |
if (this.dealTextOption != that.dealTextOption)
|
| 644 |
return false;
|
693 |
return false;
|
| 645 |
}
|
694 |
}
|
| 646 |
|
695 |
|
| 647 |
boolean this_present_dealText = true && this.isSetDealText();
|
696 |
boolean this_present_dealText = true && this.isSetDealText();
|
| 648 |
boolean that_present_dealText = true && that.isSetDealText();
|
697 |
boolean that_present_dealText = true && that.isSetDealText();
|
| Line 669... |
Line 718... |
| 669 |
return false;
|
718 |
return false;
|
| 670 |
if (this.rank != that.rank)
|
719 |
if (this.rank != that.rank)
|
| 671 |
return false;
|
720 |
return false;
|
| 672 |
}
|
721 |
}
|
| 673 |
|
722 |
|
| - |
|
723 |
boolean this_present_dealFreebieOption = true;
|
| - |
|
724 |
boolean that_present_dealFreebieOption = true;
|
| - |
|
725 |
if (this_present_dealFreebieOption || that_present_dealFreebieOption) {
|
| - |
|
726 |
if (!(this_present_dealFreebieOption && that_present_dealFreebieOption))
|
| - |
|
727 |
return false;
|
| - |
|
728 |
if (this.dealFreebieOption != that.dealFreebieOption)
|
| - |
|
729 |
return false;
|
| - |
|
730 |
}
|
| - |
|
731 |
|
| 674 |
return true;
|
732 |
return true;
|
| 675 |
}
|
733 |
}
|
| 676 |
|
734 |
|
| 677 |
@Override
|
735 |
@Override
|
| 678 |
public int hashCode() {
|
736 |
public int hashCode() {
|
| Line 735... |
Line 793... |
| 735 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
793 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
| 736 |
if (lastComparison != 0) {
|
794 |
if (lastComparison != 0) {
|
| 737 |
return lastComparison;
|
795 |
return lastComparison;
|
| 738 |
}
|
796 |
}
|
| 739 |
}
|
797 |
}
|
| 740 |
lastComparison = Boolean.valueOf(isSetIsDealTextIdentical()).compareTo(typedOther.isSetIsDealTextIdentical());
|
798 |
lastComparison = Boolean.valueOf(isSetDealTextOption()).compareTo(typedOther.isSetDealTextOption());
|
| 741 |
if (lastComparison != 0) {
|
799 |
if (lastComparison != 0) {
|
| 742 |
return lastComparison;
|
800 |
return lastComparison;
|
| 743 |
}
|
801 |
}
|
| 744 |
if (isSetIsDealTextIdentical()) {
|
802 |
if (isSetDealTextOption()) {
|
| 745 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDealTextIdentical, typedOther.isDealTextIdentical);
|
803 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealTextOption, typedOther.dealTextOption);
|
| 746 |
if (lastComparison != 0) {
|
804 |
if (lastComparison != 0) {
|
| 747 |
return lastComparison;
|
805 |
return lastComparison;
|
| 748 |
}
|
806 |
}
|
| 749 |
}
|
807 |
}
|
| 750 |
lastComparison = Boolean.valueOf(isSetDealText()).compareTo(typedOther.isSetDealText());
|
808 |
lastComparison = Boolean.valueOf(isSetDealText()).compareTo(typedOther.isSetDealText());
|
| Line 775... |
Line 833... |
| 775 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rank, typedOther.rank);
|
833 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rank, typedOther.rank);
|
| 776 |
if (lastComparison != 0) {
|
834 |
if (lastComparison != 0) {
|
| 777 |
return lastComparison;
|
835 |
return lastComparison;
|
| 778 |
}
|
836 |
}
|
| 779 |
}
|
837 |
}
|
| - |
|
838 |
lastComparison = Boolean.valueOf(isSetDealFreebieOption()).compareTo(typedOther.isSetDealFreebieOption());
|
| - |
|
839 |
if (lastComparison != 0) {
|
| - |
|
840 |
return lastComparison;
|
| - |
|
841 |
}
|
| - |
|
842 |
if (isSetDealFreebieOption()) {
|
| - |
|
843 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealFreebieOption, typedOther.dealFreebieOption);
|
| - |
|
844 |
if (lastComparison != 0) {
|
| - |
|
845 |
return lastComparison;
|
| - |
|
846 |
}
|
| - |
|
847 |
}
|
| 780 |
return 0;
|
848 |
return 0;
|
| 781 |
}
|
849 |
}
|
| 782 |
|
850 |
|
| 783 |
public _Fields fieldForId(int fieldId) {
|
851 |
public _Fields fieldForId(int fieldId) {
|
| 784 |
return _Fields.findByThriftId(fieldId);
|
852 |
return _Fields.findByThriftId(fieldId);
|
| Line 832... |
Line 900... |
| 832 |
setEndDateIsSet(true);
|
900 |
setEndDateIsSet(true);
|
| 833 |
} else {
|
901 |
} else {
|
| 834 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
902 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 835 |
}
|
903 |
}
|
| 836 |
break;
|
904 |
break;
|
| 837 |
case 6: // IS_DEAL_TEXT_IDENTICAL
|
905 |
case 6: // DEAL_TEXT_OPTION
|
| 838 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
906 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 839 |
this.isDealTextIdentical = iprot.readBool();
|
907 |
this.dealTextOption = iprot.readI64();
|
| 840 |
setIsDealTextIdenticalIsSet(true);
|
908 |
setDealTextOptionIsSet(true);
|
| 841 |
} else {
|
909 |
} else {
|
| 842 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
910 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 843 |
}
|
911 |
}
|
| 844 |
break;
|
912 |
break;
|
| 845 |
case 7: // DEAL_TEXT
|
913 |
case 7: // DEAL_TEXT
|
| Line 863... |
Line 931... |
| 863 |
setRankIsSet(true);
|
931 |
setRankIsSet(true);
|
| 864 |
} else {
|
932 |
} else {
|
| 865 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
933 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 866 |
}
|
934 |
}
|
| 867 |
break;
|
935 |
break;
|
| - |
|
936 |
case 10: // DEAL_FREEBIE_OPTION
|
| - |
|
937 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
938 |
this.dealFreebieOption = iprot.readI64();
|
| - |
|
939 |
setDealFreebieOptionIsSet(true);
|
| - |
|
940 |
} else {
|
| - |
|
941 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
942 |
}
|
| - |
|
943 |
break;
|
| 868 |
default:
|
944 |
default:
|
| 869 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
945 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 870 |
}
|
946 |
}
|
| 871 |
iprot.readFieldEnd();
|
947 |
iprot.readFieldEnd();
|
| 872 |
}
|
948 |
}
|
| Line 891... |
Line 967... |
| 891 |
oprot.writeI64(this.startDate);
|
967 |
oprot.writeI64(this.startDate);
|
| 892 |
oprot.writeFieldEnd();
|
968 |
oprot.writeFieldEnd();
|
| 893 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
969 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
| 894 |
oprot.writeI64(this.endDate);
|
970 |
oprot.writeI64(this.endDate);
|
| 895 |
oprot.writeFieldEnd();
|
971 |
oprot.writeFieldEnd();
|
| 896 |
oprot.writeFieldBegin(IS_DEAL_TEXT_IDENTICAL_FIELD_DESC);
|
972 |
oprot.writeFieldBegin(DEAL_TEXT_OPTION_FIELD_DESC);
|
| 897 |
oprot.writeBool(this.isDealTextIdentical);
|
973 |
oprot.writeI64(this.dealTextOption);
|
| 898 |
oprot.writeFieldEnd();
|
974 |
oprot.writeFieldEnd();
|
| 899 |
if (this.dealText != null) {
|
975 |
if (this.dealText != null) {
|
| 900 |
oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
|
976 |
oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
|
| 901 |
oprot.writeString(this.dealText);
|
977 |
oprot.writeString(this.dealText);
|
| 902 |
oprot.writeFieldEnd();
|
978 |
oprot.writeFieldEnd();
|
| Line 905... |
Line 981... |
| 905 |
oprot.writeBool(this.isCod);
|
981 |
oprot.writeBool(this.isCod);
|
| 906 |
oprot.writeFieldEnd();
|
982 |
oprot.writeFieldEnd();
|
| 907 |
oprot.writeFieldBegin(RANK_FIELD_DESC);
|
983 |
oprot.writeFieldBegin(RANK_FIELD_DESC);
|
| 908 |
oprot.writeI64(this.rank);
|
984 |
oprot.writeI64(this.rank);
|
| 909 |
oprot.writeFieldEnd();
|
985 |
oprot.writeFieldEnd();
|
| - |
|
986 |
oprot.writeFieldBegin(DEAL_FREEBIE_OPTION_FIELD_DESC);
|
| - |
|
987 |
oprot.writeI64(this.dealFreebieOption);
|
| - |
|
988 |
oprot.writeFieldEnd();
|
| 910 |
oprot.writeFieldStop();
|
989 |
oprot.writeFieldStop();
|
| 911 |
oprot.writeStructEnd();
|
990 |
oprot.writeStructEnd();
|
| 912 |
}
|
991 |
}
|
| 913 |
|
992 |
|
| 914 |
@Override
|
993 |
@Override
|
| Line 934... |
Line 1013... |
| 934 |
if (!first) sb.append(", ");
|
1013 |
if (!first) sb.append(", ");
|
| 935 |
sb.append("endDate:");
|
1014 |
sb.append("endDate:");
|
| 936 |
sb.append(this.endDate);
|
1015 |
sb.append(this.endDate);
|
| 937 |
first = false;
|
1016 |
first = false;
|
| 938 |
if (!first) sb.append(", ");
|
1017 |
if (!first) sb.append(", ");
|
| 939 |
sb.append("isDealTextIdentical:");
|
1018 |
sb.append("dealTextOption:");
|
| 940 |
sb.append(this.isDealTextIdentical);
|
1019 |
sb.append(this.dealTextOption);
|
| 941 |
first = false;
|
1020 |
first = false;
|
| 942 |
if (!first) sb.append(", ");
|
1021 |
if (!first) sb.append(", ");
|
| 943 |
sb.append("dealText:");
|
1022 |
sb.append("dealText:");
|
| 944 |
if (this.dealText == null) {
|
1023 |
if (this.dealText == null) {
|
| 945 |
sb.append("null");
|
1024 |
sb.append("null");
|
| Line 953... |
Line 1032... |
| 953 |
first = false;
|
1032 |
first = false;
|
| 954 |
if (!first) sb.append(", ");
|
1033 |
if (!first) sb.append(", ");
|
| 955 |
sb.append("rank:");
|
1034 |
sb.append("rank:");
|
| 956 |
sb.append(this.rank);
|
1035 |
sb.append(this.rank);
|
| 957 |
first = false;
|
1036 |
first = false;
|
| - |
|
1037 |
if (!first) sb.append(", ");
|
| - |
|
1038 |
sb.append("dealFreebieOption:");
|
| - |
|
1039 |
sb.append(this.dealFreebieOption);
|
| - |
|
1040 |
first = false;
|
| 958 |
sb.append(")");
|
1041 |
sb.append(")");
|
| 959 |
return sb.toString();
|
1042 |
return sb.toString();
|
| 960 |
}
|
1043 |
}
|
| 961 |
|
1044 |
|
| 962 |
public void validate() throws org.apache.thrift.TException {
|
1045 |
public void validate() throws org.apache.thrift.TException {
|