| Line 146... |
Line 146... |
| 146 |
* @param firstSource
|
146 |
* @param firstSource
|
| 147 |
* @param firstSourceTime
|
147 |
* @param firstSourceTime
|
| 148 |
* @param userId
|
148 |
* @param userId
|
| 149 |
* @param schemeId
|
149 |
* @param schemeId
|
| 150 |
* @param orderSource
|
150 |
* @param orderSource
|
| - |
|
151 |
* @param selfPickup
|
| 151 |
*/
|
152 |
*/
|
| 152 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource) throws ShoppingCartException, org.apache.thrift.TException;
|
153 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, boolean selfPickup) throws ShoppingCartException, org.apache.thrift.TException;
|
| 153 |
|
154 |
|
| 154 |
/**
|
155 |
/**
|
| 155 |
* Validates that:
|
156 |
* Validates that:
|
| 156 |
* 1. The checkout timestamp is greater than the updatedOn timestamp.
|
157 |
* 1. The checkout timestamp is greater than the updatedOn timestamp.
|
| 157 |
* 2. All of the lines in the cart are active items.
|
158 |
* 2. All of the lines in the cart are active items.
|
| Line 491... |
Line 492... |
| 491 |
|
492 |
|
| 492 |
public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
|
493 |
public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
|
| 493 |
|
494 |
|
| 494 |
public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
|
495 |
public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
|
| 495 |
|
496 |
|
| 496 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
|
497 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, boolean selfPickup, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
|
| 497 |
|
498 |
|
| 498 |
public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
|
499 |
public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
|
| 499 |
|
500 |
|
| 500 |
public void validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartWithDealerCoupon_call> resultHandler) throws org.apache.thrift.TException;
|
501 |
public void validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartWithDealerCoupon_call> resultHandler) throws org.apache.thrift.TException;
|
| 501 |
|
502 |
|
| Line 1914... |
Line 1915... |
| 1914 |
throw result.scx;
|
1915 |
throw result.scx;
|
| 1915 |
}
|
1916 |
}
|
| 1916 |
return;
|
1917 |
return;
|
| 1917 |
}
|
1918 |
}
|
| 1918 |
|
1919 |
|
| 1919 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource) throws ShoppingCartException, org.apache.thrift.TException
|
1920 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, boolean selfPickup) throws ShoppingCartException, org.apache.thrift.TException
|
| 1920 |
{
|
1921 |
{
|
| 1921 |
send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource);
|
1922 |
send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource, selfPickup);
|
| 1922 |
return recv_createOrders();
|
1923 |
return recv_createOrders();
|
| 1923 |
}
|
1924 |
}
|
| 1924 |
|
1925 |
|
| 1925 |
public void send_createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource) throws org.apache.thrift.TException
|
1926 |
public void send_createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, boolean selfPickup) throws org.apache.thrift.TException
|
| 1926 |
{
|
1927 |
{
|
| 1927 |
createOrders_args args = new createOrders_args();
|
1928 |
createOrders_args args = new createOrders_args();
|
| 1928 |
args.setCartId(cartId);
|
1929 |
args.setCartId(cartId);
|
| 1929 |
args.setSessionSource(sessionSource);
|
1930 |
args.setSessionSource(sessionSource);
|
| 1930 |
args.setSessionStartTime(sessionStartTime);
|
1931 |
args.setSessionStartTime(sessionStartTime);
|
| 1931 |
args.setFirstSource(firstSource);
|
1932 |
args.setFirstSource(firstSource);
|
| 1932 |
args.setFirstSourceTime(firstSourceTime);
|
1933 |
args.setFirstSourceTime(firstSourceTime);
|
| 1933 |
args.setUserId(userId);
|
1934 |
args.setUserId(userId);
|
| 1934 |
args.setSchemeId(schemeId);
|
1935 |
args.setSchemeId(schemeId);
|
| 1935 |
args.setOrderSource(orderSource);
|
1936 |
args.setOrderSource(orderSource);
|
| - |
|
1937 |
args.setSelfPickup(selfPickup);
|
| 1936 |
sendBase("createOrders", args);
|
1938 |
sendBase("createOrders", args);
|
| 1937 |
}
|
1939 |
}
|
| 1938 |
|
1940 |
|
| 1939 |
public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
|
1941 |
public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
|
| 1940 |
{
|
1942 |
{
|
| Line 4703... |
Line 4705... |
| 4703 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
4705 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4704 |
(new Client(prot)).recv_saveDiscounts();
|
4706 |
(new Client(prot)).recv_saveDiscounts();
|
| 4705 |
}
|
4707 |
}
|
| 4706 |
}
|
4708 |
}
|
| 4707 |
|
4709 |
|
| 4708 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
|
4710 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, boolean selfPickup, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
|
| 4709 |
checkReady();
|
4711 |
checkReady();
|
| 4710 |
createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource, resultHandler, this, ___protocolFactory, ___transport);
|
4712 |
createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource, selfPickup, resultHandler, this, ___protocolFactory, ___transport);
|
| 4711 |
this.___currentMethod = method_call;
|
4713 |
this.___currentMethod = method_call;
|
| 4712 |
___manager.call(method_call);
|
4714 |
___manager.call(method_call);
|
| 4713 |
}
|
4715 |
}
|
| 4714 |
|
4716 |
|
| 4715 |
public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
4717 |
public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| Line 4719... |
Line 4721... |
| 4719 |
private String firstSource;
|
4721 |
private String firstSource;
|
| 4720 |
private long firstSourceTime;
|
4722 |
private long firstSourceTime;
|
| 4721 |
private long userId;
|
4723 |
private long userId;
|
| 4722 |
private long schemeId;
|
4724 |
private long schemeId;
|
| 4723 |
private long orderSource;
|
4725 |
private long orderSource;
|
| - |
|
4726 |
private boolean selfPickup;
|
| 4724 |
public createOrders_call(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
4727 |
public createOrders_call(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, boolean selfPickup, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 4725 |
super(client, protocolFactory, transport, resultHandler, false);
|
4728 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4726 |
this.cartId = cartId;
|
4729 |
this.cartId = cartId;
|
| 4727 |
this.sessionSource = sessionSource;
|
4730 |
this.sessionSource = sessionSource;
|
| 4728 |
this.sessionStartTime = sessionStartTime;
|
4731 |
this.sessionStartTime = sessionStartTime;
|
| 4729 |
this.firstSource = firstSource;
|
4732 |
this.firstSource = firstSource;
|
| 4730 |
this.firstSourceTime = firstSourceTime;
|
4733 |
this.firstSourceTime = firstSourceTime;
|
| 4731 |
this.userId = userId;
|
4734 |
this.userId = userId;
|
| 4732 |
this.schemeId = schemeId;
|
4735 |
this.schemeId = schemeId;
|
| 4733 |
this.orderSource = orderSource;
|
4736 |
this.orderSource = orderSource;
|
| - |
|
4737 |
this.selfPickup = selfPickup;
|
| 4734 |
}
|
4738 |
}
|
| 4735 |
|
4739 |
|
| 4736 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
4740 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4737 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
4741 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 4738 |
createOrders_args args = new createOrders_args();
|
4742 |
createOrders_args args = new createOrders_args();
|
| Line 4742... |
Line 4746... |
| 4742 |
args.setFirstSource(firstSource);
|
4746 |
args.setFirstSource(firstSource);
|
| 4743 |
args.setFirstSourceTime(firstSourceTime);
|
4747 |
args.setFirstSourceTime(firstSourceTime);
|
| 4744 |
args.setUserId(userId);
|
4748 |
args.setUserId(userId);
|
| 4745 |
args.setSchemeId(schemeId);
|
4749 |
args.setSchemeId(schemeId);
|
| 4746 |
args.setOrderSource(orderSource);
|
4750 |
args.setOrderSource(orderSource);
|
| - |
|
4751 |
args.setSelfPickup(selfPickup);
|
| 4747 |
args.write(prot);
|
4752 |
args.write(prot);
|
| 4748 |
prot.writeMessageEnd();
|
4753 |
prot.writeMessageEnd();
|
| 4749 |
}
|
4754 |
}
|
| 4750 |
|
4755 |
|
| 4751 |
public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
|
4756 |
public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
|
| Line 7357... |
Line 7362... |
| 7357 |
}
|
7362 |
}
|
| 7358 |
|
7363 |
|
| 7359 |
protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
|
7364 |
protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
|
| 7360 |
createOrders_result result = new createOrders_result();
|
7365 |
createOrders_result result = new createOrders_result();
|
| 7361 |
try {
|
7366 |
try {
|
| 7362 |
result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId, args.orderSource);
|
7367 |
result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId, args.orderSource, args.selfPickup);
|
| 7363 |
result.setSuccessIsSet(true);
|
7368 |
result.setSuccessIsSet(true);
|
| 7364 |
} catch (ShoppingCartException scx) {
|
7369 |
} catch (ShoppingCartException scx) {
|
| 7365 |
result.scx = scx;
|
7370 |
result.scx = scx;
|
| 7366 |
}
|
7371 |
}
|
| 7367 |
return result;
|
7372 |
return result;
|
| Line 44754... |
Line 44759... |
| 44754 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSource", org.apache.thrift.protocol.TType.STRING, (short)4);
|
44759 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSource", org.apache.thrift.protocol.TType.STRING, (short)4);
|
| 44755 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSourceTime", org.apache.thrift.protocol.TType.I64, (short)5);
|
44760 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSourceTime", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 44756 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)6);
|
44761 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)6);
|
| 44757 |
private static final org.apache.thrift.protocol.TField SCHEME_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("schemeId", org.apache.thrift.protocol.TType.I64, (short)7);
|
44762 |
private static final org.apache.thrift.protocol.TField SCHEME_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("schemeId", org.apache.thrift.protocol.TType.I64, (short)7);
|
| 44758 |
private static final org.apache.thrift.protocol.TField ORDER_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderSource", org.apache.thrift.protocol.TType.I64, (short)8);
|
44763 |
private static final org.apache.thrift.protocol.TField ORDER_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderSource", org.apache.thrift.protocol.TType.I64, (short)8);
|
| - |
|
44764 |
private static final org.apache.thrift.protocol.TField SELF_PICKUP_FIELD_DESC = new org.apache.thrift.protocol.TField("selfPickup", org.apache.thrift.protocol.TType.BOOL, (short)9);
|
| 44759 |
|
44765 |
|
| 44760 |
private long cartId; // required
|
44766 |
private long cartId; // required
|
| 44761 |
private String sessionSource; // required
|
44767 |
private String sessionSource; // required
|
| 44762 |
private long sessionStartTime; // required
|
44768 |
private long sessionStartTime; // required
|
| 44763 |
private String firstSource; // required
|
44769 |
private String firstSource; // required
|
| 44764 |
private long firstSourceTime; // required
|
44770 |
private long firstSourceTime; // required
|
| 44765 |
private long userId; // required
|
44771 |
private long userId; // required
|
| 44766 |
private long schemeId; // required
|
44772 |
private long schemeId; // required
|
| 44767 |
private long orderSource; // required
|
44773 |
private long orderSource; // required
|
| - |
|
44774 |
private boolean selfPickup; // required
|
| 44768 |
|
44775 |
|
| 44769 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
44776 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 44770 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
44777 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 44771 |
CART_ID((short)1, "cartId"),
|
44778 |
CART_ID((short)1, "cartId"),
|
| 44772 |
SESSION_SOURCE((short)2, "sessionSource"),
|
44779 |
SESSION_SOURCE((short)2, "sessionSource"),
|
| 44773 |
SESSION_START_TIME((short)3, "sessionStartTime"),
|
44780 |
SESSION_START_TIME((short)3, "sessionStartTime"),
|
| 44774 |
FIRST_SOURCE((short)4, "firstSource"),
|
44781 |
FIRST_SOURCE((short)4, "firstSource"),
|
| 44775 |
FIRST_SOURCE_TIME((short)5, "firstSourceTime"),
|
44782 |
FIRST_SOURCE_TIME((short)5, "firstSourceTime"),
|
| 44776 |
USER_ID((short)6, "userId"),
|
44783 |
USER_ID((short)6, "userId"),
|
| 44777 |
SCHEME_ID((short)7, "schemeId"),
|
44784 |
SCHEME_ID((short)7, "schemeId"),
|
| 44778 |
ORDER_SOURCE((short)8, "orderSource");
|
44785 |
ORDER_SOURCE((short)8, "orderSource"),
|
| - |
|
44786 |
SELF_PICKUP((short)9, "selfPickup");
|
| 44779 |
|
44787 |
|
| 44780 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
44788 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 44781 |
|
44789 |
|
| 44782 |
static {
|
44790 |
static {
|
| 44783 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
44791 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 44804... |
Line 44812... |
| 44804 |
return USER_ID;
|
44812 |
return USER_ID;
|
| 44805 |
case 7: // SCHEME_ID
|
44813 |
case 7: // SCHEME_ID
|
| 44806 |
return SCHEME_ID;
|
44814 |
return SCHEME_ID;
|
| 44807 |
case 8: // ORDER_SOURCE
|
44815 |
case 8: // ORDER_SOURCE
|
| 44808 |
return ORDER_SOURCE;
|
44816 |
return ORDER_SOURCE;
|
| - |
|
44817 |
case 9: // SELF_PICKUP
|
| - |
|
44818 |
return SELF_PICKUP;
|
| 44809 |
default:
|
44819 |
default:
|
| 44810 |
return null;
|
44820 |
return null;
|
| 44811 |
}
|
44821 |
}
|
| 44812 |
}
|
44822 |
}
|
| 44813 |
|
44823 |
|
| Line 44850... |
Line 44860... |
| 44850 |
private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
|
44860 |
private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
|
| 44851 |
private static final int __FIRSTSOURCETIME_ISSET_ID = 2;
|
44861 |
private static final int __FIRSTSOURCETIME_ISSET_ID = 2;
|
| 44852 |
private static final int __USERID_ISSET_ID = 3;
|
44862 |
private static final int __USERID_ISSET_ID = 3;
|
| 44853 |
private static final int __SCHEMEID_ISSET_ID = 4;
|
44863 |
private static final int __SCHEMEID_ISSET_ID = 4;
|
| 44854 |
private static final int __ORDERSOURCE_ISSET_ID = 5;
|
44864 |
private static final int __ORDERSOURCE_ISSET_ID = 5;
|
| - |
|
44865 |
private static final int __SELFPICKUP_ISSET_ID = 6;
|
| 44855 |
private BitSet __isset_bit_vector = new BitSet(6);
|
44866 |
private BitSet __isset_bit_vector = new BitSet(7);
|
| 44856 |
|
44867 |
|
| 44857 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
44868 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 44858 |
static {
|
44869 |
static {
|
| 44859 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
44870 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 44860 |
tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
44871 |
tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 44871... |
Line 44882... |
| 44871 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
44882 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 44872 |
tmpMap.put(_Fields.SCHEME_ID, new org.apache.thrift.meta_data.FieldMetaData("schemeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
44883 |
tmpMap.put(_Fields.SCHEME_ID, new org.apache.thrift.meta_data.FieldMetaData("schemeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 44873 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
44884 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 44874 |
tmpMap.put(_Fields.ORDER_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("orderSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
44885 |
tmpMap.put(_Fields.ORDER_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("orderSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 44875 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
44886 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
44887 |
tmpMap.put(_Fields.SELF_PICKUP, new org.apache.thrift.meta_data.FieldMetaData("selfPickup", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
44888 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 44876 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
44889 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 44877 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
|
44890 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
|
| 44878 |
}
|
44891 |
}
|
| 44879 |
|
44892 |
|
| 44880 |
public createOrders_args() {
|
44893 |
public createOrders_args() {
|
| Line 44886... |
Line 44899... |
| 44886 |
long sessionStartTime,
|
44899 |
long sessionStartTime,
|
| 44887 |
String firstSource,
|
44900 |
String firstSource,
|
| 44888 |
long firstSourceTime,
|
44901 |
long firstSourceTime,
|
| 44889 |
long userId,
|
44902 |
long userId,
|
| 44890 |
long schemeId,
|
44903 |
long schemeId,
|
| 44891 |
long orderSource)
|
44904 |
long orderSource,
|
| - |
|
44905 |
boolean selfPickup)
|
| 44892 |
{
|
44906 |
{
|
| 44893 |
this();
|
44907 |
this();
|
| 44894 |
this.cartId = cartId;
|
44908 |
this.cartId = cartId;
|
| 44895 |
setCartIdIsSet(true);
|
44909 |
setCartIdIsSet(true);
|
| 44896 |
this.sessionSource = sessionSource;
|
44910 |
this.sessionSource = sessionSource;
|
| Line 44903... |
Line 44917... |
| 44903 |
setUserIdIsSet(true);
|
44917 |
setUserIdIsSet(true);
|
| 44904 |
this.schemeId = schemeId;
|
44918 |
this.schemeId = schemeId;
|
| 44905 |
setSchemeIdIsSet(true);
|
44919 |
setSchemeIdIsSet(true);
|
| 44906 |
this.orderSource = orderSource;
|
44920 |
this.orderSource = orderSource;
|
| 44907 |
setOrderSourceIsSet(true);
|
44921 |
setOrderSourceIsSet(true);
|
| - |
|
44922 |
this.selfPickup = selfPickup;
|
| - |
|
44923 |
setSelfPickupIsSet(true);
|
| 44908 |
}
|
44924 |
}
|
| 44909 |
|
44925 |
|
| 44910 |
/**
|
44926 |
/**
|
| 44911 |
* Performs a deep copy on <i>other</i>.
|
44927 |
* Performs a deep copy on <i>other</i>.
|
| 44912 |
*/
|
44928 |
*/
|
| Line 44923... |
Line 44939... |
| 44923 |
}
|
44939 |
}
|
| 44924 |
this.firstSourceTime = other.firstSourceTime;
|
44940 |
this.firstSourceTime = other.firstSourceTime;
|
| 44925 |
this.userId = other.userId;
|
44941 |
this.userId = other.userId;
|
| 44926 |
this.schemeId = other.schemeId;
|
44942 |
this.schemeId = other.schemeId;
|
| 44927 |
this.orderSource = other.orderSource;
|
44943 |
this.orderSource = other.orderSource;
|
| - |
|
44944 |
this.selfPickup = other.selfPickup;
|
| 44928 |
}
|
44945 |
}
|
| 44929 |
|
44946 |
|
| 44930 |
public createOrders_args deepCopy() {
|
44947 |
public createOrders_args deepCopy() {
|
| 44931 |
return new createOrders_args(this);
|
44948 |
return new createOrders_args(this);
|
| 44932 |
}
|
44949 |
}
|
| Line 44945... |
Line 44962... |
| 44945 |
this.userId = 0;
|
44962 |
this.userId = 0;
|
| 44946 |
setSchemeIdIsSet(false);
|
44963 |
setSchemeIdIsSet(false);
|
| 44947 |
this.schemeId = 0;
|
44964 |
this.schemeId = 0;
|
| 44948 |
setOrderSourceIsSet(false);
|
44965 |
setOrderSourceIsSet(false);
|
| 44949 |
this.orderSource = 0;
|
44966 |
this.orderSource = 0;
|
| - |
|
44967 |
setSelfPickupIsSet(false);
|
| - |
|
44968 |
this.selfPickup = false;
|
| 44950 |
}
|
44969 |
}
|
| 44951 |
|
44970 |
|
| 44952 |
public long getCartId() {
|
44971 |
public long getCartId() {
|
| 44953 |
return this.cartId;
|
44972 |
return this.cartId;
|
| 44954 |
}
|
44973 |
}
|
| Line 45125... |
Line 45144... |
| 45125 |
|
45144 |
|
| 45126 |
public void setOrderSourceIsSet(boolean value) {
|
45145 |
public void setOrderSourceIsSet(boolean value) {
|
| 45127 |
__isset_bit_vector.set(__ORDERSOURCE_ISSET_ID, value);
|
45146 |
__isset_bit_vector.set(__ORDERSOURCE_ISSET_ID, value);
|
| 45128 |
}
|
45147 |
}
|
| 45129 |
|
45148 |
|
| - |
|
45149 |
public boolean isSelfPickup() {
|
| - |
|
45150 |
return this.selfPickup;
|
| - |
|
45151 |
}
|
| - |
|
45152 |
|
| - |
|
45153 |
public void setSelfPickup(boolean selfPickup) {
|
| - |
|
45154 |
this.selfPickup = selfPickup;
|
| - |
|
45155 |
setSelfPickupIsSet(true);
|
| - |
|
45156 |
}
|
| - |
|
45157 |
|
| - |
|
45158 |
public void unsetSelfPickup() {
|
| - |
|
45159 |
__isset_bit_vector.clear(__SELFPICKUP_ISSET_ID);
|
| - |
|
45160 |
}
|
| - |
|
45161 |
|
| - |
|
45162 |
/** Returns true if field selfPickup is set (has been assigned a value) and false otherwise */
|
| - |
|
45163 |
public boolean isSetSelfPickup() {
|
| - |
|
45164 |
return __isset_bit_vector.get(__SELFPICKUP_ISSET_ID);
|
| - |
|
45165 |
}
|
| - |
|
45166 |
|
| - |
|
45167 |
public void setSelfPickupIsSet(boolean value) {
|
| - |
|
45168 |
__isset_bit_vector.set(__SELFPICKUP_ISSET_ID, value);
|
| - |
|
45169 |
}
|
| - |
|
45170 |
|
| 45130 |
public void setFieldValue(_Fields field, Object value) {
|
45171 |
public void setFieldValue(_Fields field, Object value) {
|
| 45131 |
switch (field) {
|
45172 |
switch (field) {
|
| 45132 |
case CART_ID:
|
45173 |
case CART_ID:
|
| 45133 |
if (value == null) {
|
45174 |
if (value == null) {
|
| 45134 |
unsetCartId();
|
45175 |
unsetCartId();
|
| Line 45191... |
Line 45232... |
| 45191 |
} else {
|
45232 |
} else {
|
| 45192 |
setOrderSource((Long)value);
|
45233 |
setOrderSource((Long)value);
|
| 45193 |
}
|
45234 |
}
|
| 45194 |
break;
|
45235 |
break;
|
| 45195 |
|
45236 |
|
| - |
|
45237 |
case SELF_PICKUP:
|
| - |
|
45238 |
if (value == null) {
|
| - |
|
45239 |
unsetSelfPickup();
|
| - |
|
45240 |
} else {
|
| - |
|
45241 |
setSelfPickup((Boolean)value);
|
| - |
|
45242 |
}
|
| - |
|
45243 |
break;
|
| - |
|
45244 |
|
| 45196 |
}
|
45245 |
}
|
| 45197 |
}
|
45246 |
}
|
| 45198 |
|
45247 |
|
| 45199 |
public Object getFieldValue(_Fields field) {
|
45248 |
public Object getFieldValue(_Fields field) {
|
| 45200 |
switch (field) {
|
45249 |
switch (field) {
|
| Line 45220... |
Line 45269... |
| 45220 |
return Long.valueOf(getSchemeId());
|
45269 |
return Long.valueOf(getSchemeId());
|
| 45221 |
|
45270 |
|
| 45222 |
case ORDER_SOURCE:
|
45271 |
case ORDER_SOURCE:
|
| 45223 |
return Long.valueOf(getOrderSource());
|
45272 |
return Long.valueOf(getOrderSource());
|
| 45224 |
|
45273 |
|
| - |
|
45274 |
case SELF_PICKUP:
|
| - |
|
45275 |
return Boolean.valueOf(isSelfPickup());
|
| - |
|
45276 |
|
| 45225 |
}
|
45277 |
}
|
| 45226 |
throw new IllegalStateException();
|
45278 |
throw new IllegalStateException();
|
| 45227 |
}
|
45279 |
}
|
| 45228 |
|
45280 |
|
| 45229 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
45281 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 45247... |
Line 45299... |
| 45247 |
return isSetUserId();
|
45299 |
return isSetUserId();
|
| 45248 |
case SCHEME_ID:
|
45300 |
case SCHEME_ID:
|
| 45249 |
return isSetSchemeId();
|
45301 |
return isSetSchemeId();
|
| 45250 |
case ORDER_SOURCE:
|
45302 |
case ORDER_SOURCE:
|
| 45251 |
return isSetOrderSource();
|
45303 |
return isSetOrderSource();
|
| - |
|
45304 |
case SELF_PICKUP:
|
| - |
|
45305 |
return isSetSelfPickup();
|
| 45252 |
}
|
45306 |
}
|
| 45253 |
throw new IllegalStateException();
|
45307 |
throw new IllegalStateException();
|
| 45254 |
}
|
45308 |
}
|
| 45255 |
|
45309 |
|
| 45256 |
@Override
|
45310 |
@Override
|
| Line 45336... |
Line 45390... |
| 45336 |
return false;
|
45390 |
return false;
|
| 45337 |
if (this.orderSource != that.orderSource)
|
45391 |
if (this.orderSource != that.orderSource)
|
| 45338 |
return false;
|
45392 |
return false;
|
| 45339 |
}
|
45393 |
}
|
| 45340 |
|
45394 |
|
| - |
|
45395 |
boolean this_present_selfPickup = true;
|
| - |
|
45396 |
boolean that_present_selfPickup = true;
|
| - |
|
45397 |
if (this_present_selfPickup || that_present_selfPickup) {
|
| - |
|
45398 |
if (!(this_present_selfPickup && that_present_selfPickup))
|
| - |
|
45399 |
return false;
|
| - |
|
45400 |
if (this.selfPickup != that.selfPickup)
|
| - |
|
45401 |
return false;
|
| - |
|
45402 |
}
|
| - |
|
45403 |
|
| 45341 |
return true;
|
45404 |
return true;
|
| 45342 |
}
|
45405 |
}
|
| 45343 |
|
45406 |
|
| 45344 |
@Override
|
45407 |
@Override
|
| 45345 |
public int hashCode() {
|
45408 |
public int hashCode() {
|
| Line 45432... |
Line 45495... |
| 45432 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderSource, typedOther.orderSource);
|
45495 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderSource, typedOther.orderSource);
|
| 45433 |
if (lastComparison != 0) {
|
45496 |
if (lastComparison != 0) {
|
| 45434 |
return lastComparison;
|
45497 |
return lastComparison;
|
| 45435 |
}
|
45498 |
}
|
| 45436 |
}
|
45499 |
}
|
| - |
|
45500 |
lastComparison = Boolean.valueOf(isSetSelfPickup()).compareTo(typedOther.isSetSelfPickup());
|
| - |
|
45501 |
if (lastComparison != 0) {
|
| - |
|
45502 |
return lastComparison;
|
| - |
|
45503 |
}
|
| - |
|
45504 |
if (isSetSelfPickup()) {
|
| - |
|
45505 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.selfPickup, typedOther.selfPickup);
|
| - |
|
45506 |
if (lastComparison != 0) {
|
| - |
|
45507 |
return lastComparison;
|
| - |
|
45508 |
}
|
| - |
|
45509 |
}
|
| 45437 |
return 0;
|
45510 |
return 0;
|
| 45438 |
}
|
45511 |
}
|
| 45439 |
|
45512 |
|
| 45440 |
public _Fields fieldForId(int fieldId) {
|
45513 |
public _Fields fieldForId(int fieldId) {
|
| 45441 |
return _Fields.findByThriftId(fieldId);
|
45514 |
return _Fields.findByThriftId(fieldId);
|
| Line 45511... |
Line 45584... |
| 45511 |
setOrderSourceIsSet(true);
|
45584 |
setOrderSourceIsSet(true);
|
| 45512 |
} else {
|
45585 |
} else {
|
| 45513 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
45586 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 45514 |
}
|
45587 |
}
|
| 45515 |
break;
|
45588 |
break;
|
| - |
|
45589 |
case 9: // SELF_PICKUP
|
| - |
|
45590 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| - |
|
45591 |
this.selfPickup = iprot.readBool();
|
| - |
|
45592 |
setSelfPickupIsSet(true);
|
| - |
|
45593 |
} else {
|
| - |
|
45594 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
45595 |
}
|
| - |
|
45596 |
break;
|
| 45516 |
default:
|
45597 |
default:
|
| 45517 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
45598 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 45518 |
}
|
45599 |
}
|
| 45519 |
iprot.readFieldEnd();
|
45600 |
iprot.readFieldEnd();
|
| 45520 |
}
|
45601 |
}
|
| Line 45552... |
Line 45633... |
| 45552 |
oprot.writeI64(this.schemeId);
|
45633 |
oprot.writeI64(this.schemeId);
|
| 45553 |
oprot.writeFieldEnd();
|
45634 |
oprot.writeFieldEnd();
|
| 45554 |
oprot.writeFieldBegin(ORDER_SOURCE_FIELD_DESC);
|
45635 |
oprot.writeFieldBegin(ORDER_SOURCE_FIELD_DESC);
|
| 45555 |
oprot.writeI64(this.orderSource);
|
45636 |
oprot.writeI64(this.orderSource);
|
| 45556 |
oprot.writeFieldEnd();
|
45637 |
oprot.writeFieldEnd();
|
| - |
|
45638 |
oprot.writeFieldBegin(SELF_PICKUP_FIELD_DESC);
|
| - |
|
45639 |
oprot.writeBool(this.selfPickup);
|
| - |
|
45640 |
oprot.writeFieldEnd();
|
| 45557 |
oprot.writeFieldStop();
|
45641 |
oprot.writeFieldStop();
|
| 45558 |
oprot.writeStructEnd();
|
45642 |
oprot.writeStructEnd();
|
| 45559 |
}
|
45643 |
}
|
| 45560 |
|
45644 |
|
| 45561 |
@Override
|
45645 |
@Override
|
| Line 45600... |
Line 45684... |
| 45600 |
first = false;
|
45684 |
first = false;
|
| 45601 |
if (!first) sb.append(", ");
|
45685 |
if (!first) sb.append(", ");
|
| 45602 |
sb.append("orderSource:");
|
45686 |
sb.append("orderSource:");
|
| 45603 |
sb.append(this.orderSource);
|
45687 |
sb.append(this.orderSource);
|
| 45604 |
first = false;
|
45688 |
first = false;
|
| - |
|
45689 |
if (!first) sb.append(", ");
|
| - |
|
45690 |
sb.append("selfPickup:");
|
| - |
|
45691 |
sb.append(this.selfPickup);
|
| - |
|
45692 |
first = false;
|
| 45605 |
sb.append(")");
|
45693 |
sb.append(")");
|
| 45606 |
return sb.toString();
|
45694 |
return sb.toString();
|
| 45607 |
}
|
45695 |
}
|
| 45608 |
|
45696 |
|
| 45609 |
public void validate() throws org.apache.thrift.TException {
|
45697 |
public void validate() throws org.apache.thrift.TException {
|
| Line 57242... |
Line 57330... |
| 57242 |
}
|
57330 |
}
|
| 57243 |
}
|
57331 |
}
|
| 57244 |
|
57332 |
|
| 57245 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
57333 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 57246 |
try {
|
57334 |
try {
|
| 57247 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
- |
|
| 57248 |
__isset_bit_vector = new BitSet(1);
|
- |
|
| 57249 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
57335 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 57250 |
} catch (org.apache.thrift.TException te) {
|
57336 |
} catch (org.apache.thrift.TException te) {
|
| 57251 |
throw new java.io.IOException(te);
|
57337 |
throw new java.io.IOException(te);
|
| 57252 |
}
|
57338 |
}
|
| 57253 |
}
|
57339 |
}
|
| Line 59756... |
Line 59842... |
| 59756 |
}
|
59842 |
}
|
| 59757 |
}
|
59843 |
}
|
| 59758 |
|
59844 |
|
| 59759 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
59845 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 59760 |
try {
|
59846 |
try {
|
| - |
|
59847 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
59848 |
__isset_bit_vector = new BitSet(1);
|
| 59761 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
59849 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 59762 |
} catch (org.apache.thrift.TException te) {
|
59850 |
} catch (org.apache.thrift.TException te) {
|
| 59763 |
throw new java.io.IOException(te);
|
59851 |
throw new java.io.IOException(te);
|
| 59764 |
}
|
59852 |
}
|
| 59765 |
}
|
59853 |
}
|