| Line 32... |
Line 32... |
| 32 |
|
32 |
|
| 33 |
public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException;
|
33 |
public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 34 |
|
34 |
|
| 35 |
public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
|
35 |
public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 36 |
|
36 |
|
| 37 |
public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws TransactionServiceException, org.apache.thrift.TException;
|
37 |
public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, OrderSource source) throws TransactionServiceException, org.apache.thrift.TException;
|
| 38 |
|
38 |
|
| 39 |
public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
|
39 |
public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 40 |
|
40 |
|
| 41 |
public List<Order> getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
|
41 |
public List<Order> getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
|
| 42 |
|
42 |
|
| Line 963... |
Line 963... |
| 963 |
|
963 |
|
| 964 |
public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
|
964 |
public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
|
| 965 |
|
965 |
|
| 966 |
public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
|
966 |
public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
|
| 967 |
|
967 |
|
| 968 |
public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
|
968 |
public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, OrderSource source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
|
| 969 |
|
969 |
|
| 970 |
public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
|
970 |
public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
|
| 971 |
|
971 |
|
| 972 |
public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
|
972 |
public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
|
| 973 |
|
973 |
|
| Line 1446... |
Line 1446... |
| 1446 |
throw result.ex;
|
1446 |
throw result.ex;
|
| 1447 |
}
|
1447 |
}
|
| 1448 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
|
1448 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
|
| 1449 |
}
|
1449 |
}
|
| 1450 |
|
1450 |
|
| 1451 |
public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws TransactionServiceException, org.apache.thrift.TException
|
1451 |
public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, OrderSource source) throws TransactionServiceException, org.apache.thrift.TException
|
| 1452 |
{
|
1452 |
{
|
| 1453 |
send_changeTransactionStatus(transactionId, status, description, pickUp, orderType);
|
1453 |
send_changeTransactionStatus(transactionId, status, description, pickUp, orderType, source);
|
| 1454 |
return recv_changeTransactionStatus();
|
1454 |
return recv_changeTransactionStatus();
|
| 1455 |
}
|
1455 |
}
|
| 1456 |
|
1456 |
|
| 1457 |
public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws org.apache.thrift.TException
|
1457 |
public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, OrderSource source) throws org.apache.thrift.TException
|
| 1458 |
{
|
1458 |
{
|
| 1459 |
changeTransactionStatus_args args = new changeTransactionStatus_args();
|
1459 |
changeTransactionStatus_args args = new changeTransactionStatus_args();
|
| 1460 |
args.setTransactionId(transactionId);
|
1460 |
args.setTransactionId(transactionId);
|
| 1461 |
args.setStatus(status);
|
1461 |
args.setStatus(status);
|
| 1462 |
args.setDescription(description);
|
1462 |
args.setDescription(description);
|
| 1463 |
args.setPickUp(pickUp);
|
1463 |
args.setPickUp(pickUp);
|
| 1464 |
args.setOrderType(orderType);
|
1464 |
args.setOrderType(orderType);
|
| - |
|
1465 |
args.setSource(source);
|
| 1465 |
sendBase("changeTransactionStatus", args);
|
1466 |
sendBase("changeTransactionStatus", args);
|
| 1466 |
}
|
1467 |
}
|
| 1467 |
|
1468 |
|
| 1468 |
public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
|
1469 |
public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
|
| 1469 |
{
|
1470 |
{
|
| Line 5733... |
Line 5734... |
| 5733 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
5734 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5734 |
return (new Client(prot)).recv_getTransactionStatus();
|
5735 |
return (new Client(prot)).recv_getTransactionStatus();
|
| 5735 |
}
|
5736 |
}
|
| 5736 |
}
|
5737 |
}
|
| 5737 |
|
5738 |
|
| 5738 |
public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
|
5739 |
public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, OrderSource source, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
|
| 5739 |
checkReady();
|
5740 |
checkReady();
|
| 5740 |
changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, pickUp, orderType, resultHandler, this, ___protocolFactory, ___transport);
|
5741 |
changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, pickUp, orderType, source, resultHandler, this, ___protocolFactory, ___transport);
|
| 5741 |
this.___currentMethod = method_call;
|
5742 |
this.___currentMethod = method_call;
|
| 5742 |
___manager.call(method_call);
|
5743 |
___manager.call(method_call);
|
| 5743 |
}
|
5744 |
}
|
| 5744 |
|
5745 |
|
| 5745 |
public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
|
5746 |
public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5746 |
private long transactionId;
|
5747 |
private long transactionId;
|
| 5747 |
private TransactionStatus status;
|
5748 |
private TransactionStatus status;
|
| 5748 |
private String description;
|
5749 |
private String description;
|
| 5749 |
private long pickUp;
|
5750 |
private long pickUp;
|
| 5750 |
private OrderType orderType;
|
5751 |
private OrderType orderType;
|
| - |
|
5752 |
private OrderSource source;
|
| 5751 |
public changeTransactionStatus_call(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_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 {
|
5753 |
public changeTransactionStatus_call(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, OrderSource source, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_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 {
|
| 5752 |
super(client, protocolFactory, transport, resultHandler, false);
|
5754 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5753 |
this.transactionId = transactionId;
|
5755 |
this.transactionId = transactionId;
|
| 5754 |
this.status = status;
|
5756 |
this.status = status;
|
| 5755 |
this.description = description;
|
5757 |
this.description = description;
|
| 5756 |
this.pickUp = pickUp;
|
5758 |
this.pickUp = pickUp;
|
| 5757 |
this.orderType = orderType;
|
5759 |
this.orderType = orderType;
|
| - |
|
5760 |
this.source = source;
|
| 5758 |
}
|
5761 |
}
|
| 5759 |
|
5762 |
|
| 5760 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
5763 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 5761 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
5764 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 5762 |
changeTransactionStatus_args args = new changeTransactionStatus_args();
|
5765 |
changeTransactionStatus_args args = new changeTransactionStatus_args();
|
| 5763 |
args.setTransactionId(transactionId);
|
5766 |
args.setTransactionId(transactionId);
|
| 5764 |
args.setStatus(status);
|
5767 |
args.setStatus(status);
|
| 5765 |
args.setDescription(description);
|
5768 |
args.setDescription(description);
|
| 5766 |
args.setPickUp(pickUp);
|
5769 |
args.setPickUp(pickUp);
|
| 5767 |
args.setOrderType(orderType);
|
5770 |
args.setOrderType(orderType);
|
| - |
|
5771 |
args.setSource(source);
|
| 5768 |
args.write(prot);
|
5772 |
args.write(prot);
|
| 5769 |
prot.writeMessageEnd();
|
5773 |
prot.writeMessageEnd();
|
| 5770 |
}
|
5774 |
}
|
| 5771 |
|
5775 |
|
| 5772 |
public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
|
5776 |
public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
|
| Line 11759... |
Line 11763... |
| 11759 |
}
|
11763 |
}
|
| 11760 |
|
11764 |
|
| 11761 |
protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
|
11765 |
protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
|
| 11762 |
changeTransactionStatus_result result = new changeTransactionStatus_result();
|
11766 |
changeTransactionStatus_result result = new changeTransactionStatus_result();
|
| 11763 |
try {
|
11767 |
try {
|
| 11764 |
result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType);
|
11768 |
result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType, args.source);
|
| 11765 |
result.setSuccessIsSet(true);
|
11769 |
result.setSuccessIsSet(true);
|
| 11766 |
} catch (TransactionServiceException ex) {
|
11770 |
} catch (TransactionServiceException ex) {
|
| 11767 |
result.ex = ex;
|
11771 |
result.ex = ex;
|
| 11768 |
}
|
11772 |
}
|
| 11769 |
return result;
|
11773 |
return result;
|
| Line 18523... |
Line 18527... |
| 18523 |
private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
|
18527 |
private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 18524 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2);
|
18528 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2);
|
| 18525 |
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);
|
18529 |
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| 18526 |
private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I64, (short)4);
|
18530 |
private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 18527 |
private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)5);
|
18531 |
private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)5);
|
| - |
|
18532 |
private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I32, (short)6);
|
| 18528 |
|
18533 |
|
| 18529 |
private long transactionId; // required
|
18534 |
private long transactionId; // required
|
| 18530 |
private TransactionStatus status; // required
|
18535 |
private TransactionStatus status; // required
|
| 18531 |
private String description; // required
|
18536 |
private String description; // required
|
| 18532 |
private long pickUp; // required
|
18537 |
private long pickUp; // required
|
| 18533 |
private OrderType orderType; // required
|
18538 |
private OrderType orderType; // required
|
| - |
|
18539 |
private OrderSource source; // required
|
| 18534 |
|
18540 |
|
| 18535 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
18541 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 18536 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
18542 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 18537 |
TRANSACTION_ID((short)1, "transactionId"),
|
18543 |
TRANSACTION_ID((short)1, "transactionId"),
|
| 18538 |
/**
|
18544 |
/**
|
| Line 18544... |
Line 18550... |
| 18544 |
PICK_UP((short)4, "pickUp"),
|
18550 |
PICK_UP((short)4, "pickUp"),
|
| 18545 |
/**
|
18551 |
/**
|
| 18546 |
*
|
18552 |
*
|
| 18547 |
* @see OrderType
|
18553 |
* @see OrderType
|
| 18548 |
*/
|
18554 |
*/
|
| 18549 |
ORDER_TYPE((short)5, "orderType");
|
18555 |
ORDER_TYPE((short)5, "orderType"),
|
| - |
|
18556 |
/**
|
| - |
|
18557 |
*
|
| - |
|
18558 |
* @see OrderSource
|
| - |
|
18559 |
*/
|
| - |
|
18560 |
SOURCE((short)6, "source");
|
| 18550 |
|
18561 |
|
| 18551 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
18562 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 18552 |
|
18563 |
|
| 18553 |
static {
|
18564 |
static {
|
| 18554 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
18565 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 18569... |
Line 18580... |
| 18569 |
return DESCRIPTION;
|
18580 |
return DESCRIPTION;
|
| 18570 |
case 4: // PICK_UP
|
18581 |
case 4: // PICK_UP
|
| 18571 |
return PICK_UP;
|
18582 |
return PICK_UP;
|
| 18572 |
case 5: // ORDER_TYPE
|
18583 |
case 5: // ORDER_TYPE
|
| 18573 |
return ORDER_TYPE;
|
18584 |
return ORDER_TYPE;
|
| - |
|
18585 |
case 6: // SOURCE
|
| - |
|
18586 |
return SOURCE;
|
| 18574 |
default:
|
18587 |
default:
|
| 18575 |
return null;
|
18588 |
return null;
|
| 18576 |
}
|
18589 |
}
|
| 18577 |
}
|
18590 |
}
|
| 18578 |
|
18591 |
|
| Line 18626... |
Line 18639... |
| 18626 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
18639 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 18627 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
18640 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 18628 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
18641 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 18629 |
tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
18642 |
tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 18630 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
|
18643 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
|
| - |
|
18644 |
tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
18645 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderSource.class)));
|
| 18631 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
18646 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 18632 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
|
18647 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
|
| 18633 |
}
|
18648 |
}
|
| 18634 |
|
18649 |
|
| 18635 |
public changeTransactionStatus_args() {
|
18650 |
public changeTransactionStatus_args() {
|
| Line 18638... |
Line 18653... |
| 18638 |
public changeTransactionStatus_args(
|
18653 |
public changeTransactionStatus_args(
|
| 18639 |
long transactionId,
|
18654 |
long transactionId,
|
| 18640 |
TransactionStatus status,
|
18655 |
TransactionStatus status,
|
| 18641 |
String description,
|
18656 |
String description,
|
| 18642 |
long pickUp,
|
18657 |
long pickUp,
|
| 18643 |
OrderType orderType)
|
18658 |
OrderType orderType,
|
| - |
|
18659 |
OrderSource source)
|
| 18644 |
{
|
18660 |
{
|
| 18645 |
this();
|
18661 |
this();
|
| 18646 |
this.transactionId = transactionId;
|
18662 |
this.transactionId = transactionId;
|
| 18647 |
setTransactionIdIsSet(true);
|
18663 |
setTransactionIdIsSet(true);
|
| 18648 |
this.status = status;
|
18664 |
this.status = status;
|
| 18649 |
this.description = description;
|
18665 |
this.description = description;
|
| 18650 |
this.pickUp = pickUp;
|
18666 |
this.pickUp = pickUp;
|
| 18651 |
setPickUpIsSet(true);
|
18667 |
setPickUpIsSet(true);
|
| 18652 |
this.orderType = orderType;
|
18668 |
this.orderType = orderType;
|
| - |
|
18669 |
this.source = source;
|
| 18653 |
}
|
18670 |
}
|
| 18654 |
|
18671 |
|
| 18655 |
/**
|
18672 |
/**
|
| 18656 |
* Performs a deep copy on <i>other</i>.
|
18673 |
* Performs a deep copy on <i>other</i>.
|
| 18657 |
*/
|
18674 |
*/
|
| Line 18667... |
Line 18684... |
| 18667 |
}
|
18684 |
}
|
| 18668 |
this.pickUp = other.pickUp;
|
18685 |
this.pickUp = other.pickUp;
|
| 18669 |
if (other.isSetOrderType()) {
|
18686 |
if (other.isSetOrderType()) {
|
| 18670 |
this.orderType = other.orderType;
|
18687 |
this.orderType = other.orderType;
|
| 18671 |
}
|
18688 |
}
|
| - |
|
18689 |
if (other.isSetSource()) {
|
| - |
|
18690 |
this.source = other.source;
|
| - |
|
18691 |
}
|
| 18672 |
}
|
18692 |
}
|
| 18673 |
|
18693 |
|
| 18674 |
public changeTransactionStatus_args deepCopy() {
|
18694 |
public changeTransactionStatus_args deepCopy() {
|
| 18675 |
return new changeTransactionStatus_args(this);
|
18695 |
return new changeTransactionStatus_args(this);
|
| 18676 |
}
|
18696 |
}
|
| Line 18682... |
Line 18702... |
| 18682 |
this.status = null;
|
18702 |
this.status = null;
|
| 18683 |
this.description = null;
|
18703 |
this.description = null;
|
| 18684 |
setPickUpIsSet(false);
|
18704 |
setPickUpIsSet(false);
|
| 18685 |
this.pickUp = 0;
|
18705 |
this.pickUp = 0;
|
| 18686 |
this.orderType = null;
|
18706 |
this.orderType = null;
|
| - |
|
18707 |
this.source = null;
|
| 18687 |
}
|
18708 |
}
|
| 18688 |
|
18709 |
|
| 18689 |
public long getTransactionId() {
|
18710 |
public long getTransactionId() {
|
| 18690 |
return this.transactionId;
|
18711 |
return this.transactionId;
|
| 18691 |
}
|
18712 |
}
|
| Line 18813... |
Line 18834... |
| 18813 |
if (!value) {
|
18834 |
if (!value) {
|
| 18814 |
this.orderType = null;
|
18835 |
this.orderType = null;
|
| 18815 |
}
|
18836 |
}
|
| 18816 |
}
|
18837 |
}
|
| 18817 |
|
18838 |
|
| - |
|
18839 |
/**
|
| - |
|
18840 |
*
|
| - |
|
18841 |
* @see OrderSource
|
| - |
|
18842 |
*/
|
| - |
|
18843 |
public OrderSource getSource() {
|
| - |
|
18844 |
return this.source;
|
| - |
|
18845 |
}
|
| - |
|
18846 |
|
| - |
|
18847 |
/**
|
| - |
|
18848 |
*
|
| - |
|
18849 |
* @see OrderSource
|
| - |
|
18850 |
*/
|
| - |
|
18851 |
public void setSource(OrderSource source) {
|
| - |
|
18852 |
this.source = source;
|
| - |
|
18853 |
}
|
| - |
|
18854 |
|
| - |
|
18855 |
public void unsetSource() {
|
| - |
|
18856 |
this.source = null;
|
| - |
|
18857 |
}
|
| - |
|
18858 |
|
| - |
|
18859 |
/** Returns true if field source is set (has been assigned a value) and false otherwise */
|
| - |
|
18860 |
public boolean isSetSource() {
|
| - |
|
18861 |
return this.source != null;
|
| - |
|
18862 |
}
|
| - |
|
18863 |
|
| - |
|
18864 |
public void setSourceIsSet(boolean value) {
|
| - |
|
18865 |
if (!value) {
|
| - |
|
18866 |
this.source = null;
|
| - |
|
18867 |
}
|
| - |
|
18868 |
}
|
| - |
|
18869 |
|
| 18818 |
public void setFieldValue(_Fields field, Object value) {
|
18870 |
public void setFieldValue(_Fields field, Object value) {
|
| 18819 |
switch (field) {
|
18871 |
switch (field) {
|
| 18820 |
case TRANSACTION_ID:
|
18872 |
case TRANSACTION_ID:
|
| 18821 |
if (value == null) {
|
18873 |
if (value == null) {
|
| 18822 |
unsetTransactionId();
|
18874 |
unsetTransactionId();
|
| Line 18855... |
Line 18907... |
| 18855 |
} else {
|
18907 |
} else {
|
| 18856 |
setOrderType((OrderType)value);
|
18908 |
setOrderType((OrderType)value);
|
| 18857 |
}
|
18909 |
}
|
| 18858 |
break;
|
18910 |
break;
|
| 18859 |
|
18911 |
|
| - |
|
18912 |
case SOURCE:
|
| - |
|
18913 |
if (value == null) {
|
| - |
|
18914 |
unsetSource();
|
| - |
|
18915 |
} else {
|
| - |
|
18916 |
setSource((OrderSource)value);
|
| - |
|
18917 |
}
|
| - |
|
18918 |
break;
|
| - |
|
18919 |
|
| 18860 |
}
|
18920 |
}
|
| 18861 |
}
|
18921 |
}
|
| 18862 |
|
18922 |
|
| 18863 |
public Object getFieldValue(_Fields field) {
|
18923 |
public Object getFieldValue(_Fields field) {
|
| 18864 |
switch (field) {
|
18924 |
switch (field) {
|
| Line 18875... |
Line 18935... |
| 18875 |
return Long.valueOf(getPickUp());
|
18935 |
return Long.valueOf(getPickUp());
|
| 18876 |
|
18936 |
|
| 18877 |
case ORDER_TYPE:
|
18937 |
case ORDER_TYPE:
|
| 18878 |
return getOrderType();
|
18938 |
return getOrderType();
|
| 18879 |
|
18939 |
|
| - |
|
18940 |
case SOURCE:
|
| - |
|
18941 |
return getSource();
|
| - |
|
18942 |
|
| 18880 |
}
|
18943 |
}
|
| 18881 |
throw new IllegalStateException();
|
18944 |
throw new IllegalStateException();
|
| 18882 |
}
|
18945 |
}
|
| 18883 |
|
18946 |
|
| 18884 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
18947 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 18896... |
Line 18959... |
| 18896 |
return isSetDescription();
|
18959 |
return isSetDescription();
|
| 18897 |
case PICK_UP:
|
18960 |
case PICK_UP:
|
| 18898 |
return isSetPickUp();
|
18961 |
return isSetPickUp();
|
| 18899 |
case ORDER_TYPE:
|
18962 |
case ORDER_TYPE:
|
| 18900 |
return isSetOrderType();
|
18963 |
return isSetOrderType();
|
| - |
|
18964 |
case SOURCE:
|
| - |
|
18965 |
return isSetSource();
|
| 18901 |
}
|
18966 |
}
|
| 18902 |
throw new IllegalStateException();
|
18967 |
throw new IllegalStateException();
|
| 18903 |
}
|
18968 |
}
|
| 18904 |
|
18969 |
|
| 18905 |
@Override
|
18970 |
@Override
|
| Line 18958... |
Line 19023... |
| 18958 |
return false;
|
19023 |
return false;
|
| 18959 |
if (!this.orderType.equals(that.orderType))
|
19024 |
if (!this.orderType.equals(that.orderType))
|
| 18960 |
return false;
|
19025 |
return false;
|
| 18961 |
}
|
19026 |
}
|
| 18962 |
|
19027 |
|
| - |
|
19028 |
boolean this_present_source = true && this.isSetSource();
|
| - |
|
19029 |
boolean that_present_source = true && that.isSetSource();
|
| - |
|
19030 |
if (this_present_source || that_present_source) {
|
| - |
|
19031 |
if (!(this_present_source && that_present_source))
|
| - |
|
19032 |
return false;
|
| - |
|
19033 |
if (!this.source.equals(that.source))
|
| - |
|
19034 |
return false;
|
| - |
|
19035 |
}
|
| - |
|
19036 |
|
| 18963 |
return true;
|
19037 |
return true;
|
| 18964 |
}
|
19038 |
}
|
| 18965 |
|
19039 |
|
| 18966 |
@Override
|
19040 |
@Override
|
| 18967 |
public int hashCode() {
|
19041 |
public int hashCode() {
|
| Line 19024... |
Line 19098... |
| 19024 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);
|
19098 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);
|
| 19025 |
if (lastComparison != 0) {
|
19099 |
if (lastComparison != 0) {
|
| 19026 |
return lastComparison;
|
19100 |
return lastComparison;
|
| 19027 |
}
|
19101 |
}
|
| 19028 |
}
|
19102 |
}
|
| - |
|
19103 |
lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
|
| - |
|
19104 |
if (lastComparison != 0) {
|
| - |
|
19105 |
return lastComparison;
|
| - |
|
19106 |
}
|
| - |
|
19107 |
if (isSetSource()) {
|
| - |
|
19108 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
|
| - |
|
19109 |
if (lastComparison != 0) {
|
| - |
|
19110 |
return lastComparison;
|
| - |
|
19111 |
}
|
| - |
|
19112 |
}
|
| 19029 |
return 0;
|
19113 |
return 0;
|
| 19030 |
}
|
19114 |
}
|
| 19031 |
|
19115 |
|
| 19032 |
public _Fields fieldForId(int fieldId) {
|
19116 |
public _Fields fieldForId(int fieldId) {
|
| 19033 |
return _Fields.findByThriftId(fieldId);
|
19117 |
return _Fields.findByThriftId(fieldId);
|
| Line 19078... |
Line 19162... |
| 19078 |
this.orderType = OrderType.findByValue(iprot.readI32());
|
19162 |
this.orderType = OrderType.findByValue(iprot.readI32());
|
| 19079 |
} else {
|
19163 |
} else {
|
| 19080 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
19164 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 19081 |
}
|
19165 |
}
|
| 19082 |
break;
|
19166 |
break;
|
| - |
|
19167 |
case 6: // SOURCE
|
| - |
|
19168 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| - |
|
19169 |
this.source = OrderSource.findByValue(iprot.readI32());
|
| - |
|
19170 |
} else {
|
| - |
|
19171 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
19172 |
}
|
| - |
|
19173 |
break;
|
| 19083 |
default:
|
19174 |
default:
|
| 19084 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
19175 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 19085 |
}
|
19176 |
}
|
| 19086 |
iprot.readFieldEnd();
|
19177 |
iprot.readFieldEnd();
|
| 19087 |
}
|
19178 |
}
|
| Line 19112... |
Line 19203... |
| 19112 |
if (this.orderType != null) {
|
19203 |
if (this.orderType != null) {
|
| 19113 |
oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
|
19204 |
oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
|
| 19114 |
oprot.writeI32(this.orderType.getValue());
|
19205 |
oprot.writeI32(this.orderType.getValue());
|
| 19115 |
oprot.writeFieldEnd();
|
19206 |
oprot.writeFieldEnd();
|
| 19116 |
}
|
19207 |
}
|
| - |
|
19208 |
if (this.source != null) {
|
| - |
|
19209 |
oprot.writeFieldBegin(SOURCE_FIELD_DESC);
|
| - |
|
19210 |
oprot.writeI32(this.source.getValue());
|
| - |
|
19211 |
oprot.writeFieldEnd();
|
| - |
|
19212 |
}
|
| 19117 |
oprot.writeFieldStop();
|
19213 |
oprot.writeFieldStop();
|
| 19118 |
oprot.writeStructEnd();
|
19214 |
oprot.writeStructEnd();
|
| 19119 |
}
|
19215 |
}
|
| 19120 |
|
19216 |
|
| 19121 |
@Override
|
19217 |
@Override
|
| Line 19152... |
Line 19248... |
| 19152 |
sb.append("null");
|
19248 |
sb.append("null");
|
| 19153 |
} else {
|
19249 |
} else {
|
| 19154 |
sb.append(this.orderType);
|
19250 |
sb.append(this.orderType);
|
| 19155 |
}
|
19251 |
}
|
| 19156 |
first = false;
|
19252 |
first = false;
|
| - |
|
19253 |
if (!first) sb.append(", ");
|
| - |
|
19254 |
sb.append("source:");
|
| - |
|
19255 |
if (this.source == null) {
|
| - |
|
19256 |
sb.append("null");
|
| - |
|
19257 |
} else {
|
| - |
|
19258 |
sb.append(this.source);
|
| - |
|
19259 |
}
|
| - |
|
19260 |
first = false;
|
| 19157 |
sb.append(")");
|
19261 |
sb.append(")");
|
| 19158 |
return sb.toString();
|
19262 |
return sb.toString();
|
| 19159 |
}
|
19263 |
}
|
| 19160 |
|
19264 |
|
| 19161 |
public void validate() throws org.apache.thrift.TException {
|
19265 |
public void validate() throws org.apache.thrift.TException {
|