| Line 1163... |
Line 1163... |
| 1163 |
|
1163 |
|
| 1164 |
public Map<Long,Boolean> bulkUpdateReturnOrderInfo(Map<Long,List<ReturnOrderInfo>> orderReturnInfosMap) throws TransactionServiceException, org.apache.thrift.TException;
|
1164 |
public Map<Long,Boolean> bulkUpdateReturnOrderInfo(Map<Long,List<ReturnOrderInfo>> orderReturnInfosMap) throws TransactionServiceException, org.apache.thrift.TException;
|
| 1165 |
|
1165 |
|
| 1166 |
public List<ReturnOrderInfo> getReturnOrdersAsPerWarehouseId(long warehouseId) throws org.apache.thrift.TException;
|
1166 |
public List<ReturnOrderInfo> getReturnOrdersAsPerWarehouseId(long warehouseId) throws org.apache.thrift.TException;
|
| 1167 |
|
1167 |
|
| 1168 |
public long createReturnTransaction(ReturnTransaction returnTransaction) throws TransactionServiceException, org.apache.thrift.TException;
|
1168 |
public long createReturnTransaction(ReturnTransaction returnTransaction, String itemCondition, boolean overrideWarranty) throws TransactionServiceException, org.apache.thrift.TException;
|
| 1169 |
|
1169 |
|
| 1170 |
public ReturnTransaction getReturnTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException;
|
1170 |
public ReturnTransaction getReturnTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException;
|
| 1171 |
|
1171 |
|
| 1172 |
public List<ReturnOrderInfo> getReturnOrdersForReturnTransaction(long returnTransactionId) throws TransactionServiceException, org.apache.thrift.TException;
|
1172 |
public List<ReturnOrderInfo> getReturnOrdersForReturnTransaction(long returnTransactionId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 1173 |
|
1173 |
|
| Line 1220... |
Line 1220... |
| 1220 |
|
1220 |
|
| 1221 |
public List<Order> getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException;
|
1221 |
public List<Order> getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException;
|
| 1222 |
|
1222 |
|
| 1223 |
public List<ReturnOrderInfo> getEligibleReturnOrdersForPickup(long customerId) throws org.apache.thrift.TException;
|
1223 |
public List<ReturnOrderInfo> getEligibleReturnOrdersForPickup(long customerId) throws org.apache.thrift.TException;
|
| 1224 |
|
1224 |
|
| - |
|
1225 |
public boolean validateReturnTransaction(long customerId, Map<Long,Long> returnOrdersMap, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException;
|
| - |
|
1226 |
|
| 1225 |
}
|
1227 |
}
|
| 1226 |
|
1228 |
|
| 1227 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
1229 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 1228 |
|
1230 |
|
| 1229 |
public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
1231 |
public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 1768... |
Line 1770... |
| 1768 |
|
1770 |
|
| 1769 |
public void bulkUpdateReturnOrderInfo(Map<Long,List<ReturnOrderInfo>> orderReturnInfosMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException;
|
1771 |
public void bulkUpdateReturnOrderInfo(Map<Long,List<ReturnOrderInfo>> orderReturnInfosMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 1770 |
|
1772 |
|
| 1771 |
public void getReturnOrdersAsPerWarehouseId(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrdersAsPerWarehouseId_call> resultHandler) throws org.apache.thrift.TException;
|
1773 |
public void getReturnOrdersAsPerWarehouseId(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrdersAsPerWarehouseId_call> resultHandler) throws org.apache.thrift.TException;
|
| 1772 |
|
1774 |
|
| 1773 |
public void createReturnTransaction(ReturnTransaction returnTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
1775 |
public void createReturnTransaction(ReturnTransaction returnTransaction, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
| 1774 |
|
1776 |
|
| 1775 |
public void getReturnTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
1777 |
public void getReturnTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
| 1776 |
|
1778 |
|
| 1777 |
public void getReturnOrdersForReturnTransaction(long returnTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrdersForReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
1779 |
public void getReturnOrdersForReturnTransaction(long returnTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrdersForReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
| 1778 |
|
1780 |
|
| Line 1808... |
Line 1810... |
| 1808 |
|
1810 |
|
| 1809 |
public void getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEligibleOrdersForReturn_call> resultHandler) throws org.apache.thrift.TException;
|
1811 |
public void getEligibleOrdersForReturn(long customerId, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEligibleOrdersForReturn_call> resultHandler) throws org.apache.thrift.TException;
|
| 1810 |
|
1812 |
|
| 1811 |
public void getEligibleReturnOrdersForPickup(long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEligibleReturnOrdersForPickup_call> resultHandler) throws org.apache.thrift.TException;
|
1813 |
public void getEligibleReturnOrdersForPickup(long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEligibleReturnOrdersForPickup_call> resultHandler) throws org.apache.thrift.TException;
|
| 1812 |
|
1814 |
|
| - |
|
1815 |
public void validateReturnTransaction(long customerId, Map<Long,Long> returnOrdersMap, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateReturnTransaction_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
1816 |
|
| 1813 |
}
|
1817 |
}
|
| 1814 |
|
1818 |
|
| 1815 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
1819 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 1816 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
1820 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 1817 |
public Factory() {}
|
1821 |
public Factory() {}
|
| Line 8547... |
Line 8551... |
| 8547 |
return result.success;
|
8551 |
return result.success;
|
| 8548 |
}
|
8552 |
}
|
| 8549 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrdersAsPerWarehouseId failed: unknown result");
|
8553 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrdersAsPerWarehouseId failed: unknown result");
|
| 8550 |
}
|
8554 |
}
|
| 8551 |
|
8555 |
|
| 8552 |
public long createReturnTransaction(ReturnTransaction returnTransaction) throws TransactionServiceException, org.apache.thrift.TException
|
8556 |
public long createReturnTransaction(ReturnTransaction returnTransaction, String itemCondition, boolean overrideWarranty) throws TransactionServiceException, org.apache.thrift.TException
|
| 8553 |
{
|
8557 |
{
|
| 8554 |
send_createReturnTransaction(returnTransaction);
|
8558 |
send_createReturnTransaction(returnTransaction, itemCondition, overrideWarranty);
|
| 8555 |
return recv_createReturnTransaction();
|
8559 |
return recv_createReturnTransaction();
|
| 8556 |
}
|
8560 |
}
|
| 8557 |
|
8561 |
|
| 8558 |
public void send_createReturnTransaction(ReturnTransaction returnTransaction) throws org.apache.thrift.TException
|
8562 |
public void send_createReturnTransaction(ReturnTransaction returnTransaction, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException
|
| 8559 |
{
|
8563 |
{
|
| 8560 |
createReturnTransaction_args args = new createReturnTransaction_args();
|
8564 |
createReturnTransaction_args args = new createReturnTransaction_args();
|
| 8561 |
args.setReturnTransaction(returnTransaction);
|
8565 |
args.setReturnTransaction(returnTransaction);
|
| - |
|
8566 |
args.setItemCondition(itemCondition);
|
| - |
|
8567 |
args.setOverrideWarranty(overrideWarranty);
|
| 8562 |
sendBase("createReturnTransaction", args);
|
8568 |
sendBase("createReturnTransaction", args);
|
| 8563 |
}
|
8569 |
}
|
| 8564 |
|
8570 |
|
| 8565 |
public long recv_createReturnTransaction() throws TransactionServiceException, org.apache.thrift.TException
|
8571 |
public long recv_createReturnTransaction() throws TransactionServiceException, org.apache.thrift.TException
|
| 8566 |
{
|
8572 |
{
|
| Line 9068... |
Line 9074... |
| 9068 |
return result.success;
|
9074 |
return result.success;
|
| 9069 |
}
|
9075 |
}
|
| 9070 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEligibleReturnOrdersForPickup failed: unknown result");
|
9076 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEligibleReturnOrdersForPickup failed: unknown result");
|
| 9071 |
}
|
9077 |
}
|
| 9072 |
|
9078 |
|
| - |
|
9079 |
public boolean validateReturnTransaction(long customerId, Map<Long,Long> returnOrdersMap, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException
|
| - |
|
9080 |
{
|
| - |
|
9081 |
send_validateReturnTransaction(customerId, returnOrdersMap, itemCondition, overrideWarranty);
|
| - |
|
9082 |
return recv_validateReturnTransaction();
|
| - |
|
9083 |
}
|
| - |
|
9084 |
|
| - |
|
9085 |
public void send_validateReturnTransaction(long customerId, Map<Long,Long> returnOrdersMap, String itemCondition, boolean overrideWarranty) throws org.apache.thrift.TException
|
| - |
|
9086 |
{
|
| - |
|
9087 |
validateReturnTransaction_args args = new validateReturnTransaction_args();
|
| - |
|
9088 |
args.setCustomerId(customerId);
|
| - |
|
9089 |
args.setReturnOrdersMap(returnOrdersMap);
|
| - |
|
9090 |
args.setItemCondition(itemCondition);
|
| - |
|
9091 |
args.setOverrideWarranty(overrideWarranty);
|
| - |
|
9092 |
sendBase("validateReturnTransaction", args);
|
| - |
|
9093 |
}
|
| - |
|
9094 |
|
| - |
|
9095 |
public boolean recv_validateReturnTransaction() throws org.apache.thrift.TException
|
| - |
|
9096 |
{
|
| - |
|
9097 |
validateReturnTransaction_result result = new validateReturnTransaction_result();
|
| - |
|
9098 |
receiveBase(result, "validateReturnTransaction");
|
| - |
|
9099 |
if (result.isSetSuccess()) {
|
| - |
|
9100 |
return result.success;
|
| - |
|
9101 |
}
|
| - |
|
9102 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateReturnTransaction failed: unknown result");
|
| - |
|
9103 |
}
|
| - |
|
9104 |
|
| 9073 |
}
|
9105 |
}
|
| 9074 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
9106 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 9075 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
9107 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 9076 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
9108 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 9077 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
9109 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 18570... |
Line 18602... |
| 18570 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
18602 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 18571 |
return (new Client(prot)).recv_getReturnOrdersAsPerWarehouseId();
|
18603 |
return (new Client(prot)).recv_getReturnOrdersAsPerWarehouseId();
|
| 18572 |
}
|
18604 |
}
|
| 18573 |
}
|
18605 |
}
|
| 18574 |
|
18606 |
|
| 18575 |
public void createReturnTransaction(ReturnTransaction returnTransaction, org.apache.thrift.async.AsyncMethodCallback<createReturnTransaction_call> resultHandler) throws org.apache.thrift.TException {
|
18607 |
public void createReturnTransaction(ReturnTransaction returnTransaction, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<createReturnTransaction_call> resultHandler) throws org.apache.thrift.TException {
|
| 18576 |
checkReady();
|
18608 |
checkReady();
|
| 18577 |
createReturnTransaction_call method_call = new createReturnTransaction_call(returnTransaction, resultHandler, this, ___protocolFactory, ___transport);
|
18609 |
createReturnTransaction_call method_call = new createReturnTransaction_call(returnTransaction, itemCondition, overrideWarranty, resultHandler, this, ___protocolFactory, ___transport);
|
| 18578 |
this.___currentMethod = method_call;
|
18610 |
this.___currentMethod = method_call;
|
| 18579 |
___manager.call(method_call);
|
18611 |
___manager.call(method_call);
|
| 18580 |
}
|
18612 |
}
|
| 18581 |
|
18613 |
|
| 18582 |
public static class createReturnTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
|
18614 |
public static class createReturnTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 18583 |
private ReturnTransaction returnTransaction;
|
18615 |
private ReturnTransaction returnTransaction;
|
| - |
|
18616 |
private String itemCondition;
|
| - |
|
18617 |
private boolean overrideWarranty;
|
| 18584 |
public createReturnTransaction_call(ReturnTransaction returnTransaction, org.apache.thrift.async.AsyncMethodCallback<createReturnTransaction_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 {
|
18618 |
public createReturnTransaction_call(ReturnTransaction returnTransaction, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<createReturnTransaction_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 {
|
| 18585 |
super(client, protocolFactory, transport, resultHandler, false);
|
18619 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 18586 |
this.returnTransaction = returnTransaction;
|
18620 |
this.returnTransaction = returnTransaction;
|
| - |
|
18621 |
this.itemCondition = itemCondition;
|
| - |
|
18622 |
this.overrideWarranty = overrideWarranty;
|
| 18587 |
}
|
18623 |
}
|
| 18588 |
|
18624 |
|
| 18589 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
18625 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 18590 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createReturnTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
18626 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createReturnTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 18591 |
createReturnTransaction_args args = new createReturnTransaction_args();
|
18627 |
createReturnTransaction_args args = new createReturnTransaction_args();
|
| 18592 |
args.setReturnTransaction(returnTransaction);
|
18628 |
args.setReturnTransaction(returnTransaction);
|
| - |
|
18629 |
args.setItemCondition(itemCondition);
|
| - |
|
18630 |
args.setOverrideWarranty(overrideWarranty);
|
| 18593 |
args.write(prot);
|
18631 |
args.write(prot);
|
| 18594 |
prot.writeMessageEnd();
|
18632 |
prot.writeMessageEnd();
|
| 18595 |
}
|
18633 |
}
|
| 18596 |
|
18634 |
|
| 18597 |
public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
|
18635 |
public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
|
| Line 19267... |
Line 19305... |
| 19267 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
19305 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 19268 |
return (new Client(prot)).recv_getEligibleReturnOrdersForPickup();
|
19306 |
return (new Client(prot)).recv_getEligibleReturnOrdersForPickup();
|
| 19269 |
}
|
19307 |
}
|
| 19270 |
}
|
19308 |
}
|
| 19271 |
|
19309 |
|
| - |
|
19310 |
public void validateReturnTransaction(long customerId, Map<Long,Long> returnOrdersMap, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<validateReturnTransaction_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
19311 |
checkReady();
|
| - |
|
19312 |
validateReturnTransaction_call method_call = new validateReturnTransaction_call(customerId, returnOrdersMap, itemCondition, overrideWarranty, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
19313 |
this.___currentMethod = method_call;
|
| - |
|
19314 |
___manager.call(method_call);
|
| - |
|
19315 |
}
|
| - |
|
19316 |
|
| - |
|
19317 |
public static class validateReturnTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
19318 |
private long customerId;
|
| - |
|
19319 |
private Map<Long,Long> returnOrdersMap;
|
| - |
|
19320 |
private String itemCondition;
|
| - |
|
19321 |
private boolean overrideWarranty;
|
| - |
|
19322 |
public validateReturnTransaction_call(long customerId, Map<Long,Long> returnOrdersMap, String itemCondition, boolean overrideWarranty, org.apache.thrift.async.AsyncMethodCallback<validateReturnTransaction_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 {
|
| - |
|
19323 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
19324 |
this.customerId = customerId;
|
| - |
|
19325 |
this.returnOrdersMap = returnOrdersMap;
|
| - |
|
19326 |
this.itemCondition = itemCondition;
|
| - |
|
19327 |
this.overrideWarranty = overrideWarranty;
|
| - |
|
19328 |
}
|
| - |
|
19329 |
|
| - |
|
19330 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
19331 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateReturnTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
19332 |
validateReturnTransaction_args args = new validateReturnTransaction_args();
|
| - |
|
19333 |
args.setCustomerId(customerId);
|
| - |
|
19334 |
args.setReturnOrdersMap(returnOrdersMap);
|
| - |
|
19335 |
args.setItemCondition(itemCondition);
|
| - |
|
19336 |
args.setOverrideWarranty(overrideWarranty);
|
| - |
|
19337 |
args.write(prot);
|
| - |
|
19338 |
prot.writeMessageEnd();
|
| - |
|
19339 |
}
|
| - |
|
19340 |
|
| - |
|
19341 |
public boolean getResult() throws org.apache.thrift.TException {
|
| - |
|
19342 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
19343 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
19344 |
}
|
| - |
|
19345 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
19346 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
19347 |
return (new Client(prot)).recv_validateReturnTransaction();
|
| - |
|
19348 |
}
|
| - |
|
19349 |
}
|
| - |
|
19350 |
|
| 19272 |
}
|
19351 |
}
|
| 19273 |
|
19352 |
|
| 19274 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
19353 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 19275 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
19354 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 19276 |
public Processor(I iface) {
|
19355 |
public Processor(I iface) {
|
| Line 19572... |
Line 19651... |
| 19572 |
processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
|
19651 |
processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
|
| 19573 |
processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
|
19652 |
processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
|
| 19574 |
processMap.put("addOrUpdateShipmentLogisticsCostDetails", new addOrUpdateShipmentLogisticsCostDetails());
|
19653 |
processMap.put("addOrUpdateShipmentLogisticsCostDetails", new addOrUpdateShipmentLogisticsCostDetails());
|
| 19575 |
processMap.put("getEligibleOrdersForReturn", new getEligibleOrdersForReturn());
|
19654 |
processMap.put("getEligibleOrdersForReturn", new getEligibleOrdersForReturn());
|
| 19576 |
processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
|
19655 |
processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
|
| - |
|
19656 |
processMap.put("validateReturnTransaction", new validateReturnTransaction());
|
| 19577 |
return processMap;
|
19657 |
return processMap;
|
| 19578 |
}
|
19658 |
}
|
| 19579 |
|
19659 |
|
| 19580 |
private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
|
19660 |
private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
|
| 19581 |
public createTransaction() {
|
19661 |
public createTransaction() {
|
| Line 24495... |
Line 24575... |
| 24495 |
}
|
24575 |
}
|
| 24496 |
|
24576 |
|
| 24497 |
protected createReturnTransaction_result getResult(I iface, createReturnTransaction_args args) throws org.apache.thrift.TException {
|
24577 |
protected createReturnTransaction_result getResult(I iface, createReturnTransaction_args args) throws org.apache.thrift.TException {
|
| 24498 |
createReturnTransaction_result result = new createReturnTransaction_result();
|
24578 |
createReturnTransaction_result result = new createReturnTransaction_result();
|
| 24499 |
try {
|
24579 |
try {
|
| 24500 |
result.success = iface.createReturnTransaction(args.returnTransaction);
|
24580 |
result.success = iface.createReturnTransaction(args.returnTransaction, args.itemCondition, args.overrideWarranty);
|
| 24501 |
result.setSuccessIsSet(true);
|
24581 |
result.setSuccessIsSet(true);
|
| 24502 |
} catch (TransactionServiceException ex) {
|
24582 |
} catch (TransactionServiceException ex) {
|
| 24503 |
result.ex = ex;
|
24583 |
result.ex = ex;
|
| 24504 |
}
|
24584 |
}
|
| 24505 |
return result;
|
24585 |
return result;
|
| Line 24875... |
Line 24955... |
| 24875 |
result.success = iface.getEligibleReturnOrdersForPickup(args.customerId);
|
24955 |
result.success = iface.getEligibleReturnOrdersForPickup(args.customerId);
|
| 24876 |
return result;
|
24956 |
return result;
|
| 24877 |
}
|
24957 |
}
|
| 24878 |
}
|
24958 |
}
|
| 24879 |
|
24959 |
|
| - |
|
24960 |
private static class validateReturnTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateReturnTransaction_args> {
|
| - |
|
24961 |
public validateReturnTransaction() {
|
| - |
|
24962 |
super("validateReturnTransaction");
|
| - |
|
24963 |
}
|
| - |
|
24964 |
|
| - |
|
24965 |
protected validateReturnTransaction_args getEmptyArgsInstance() {
|
| - |
|
24966 |
return new validateReturnTransaction_args();
|
| - |
|
24967 |
}
|
| - |
|
24968 |
|
| - |
|
24969 |
protected validateReturnTransaction_result getResult(I iface, validateReturnTransaction_args args) throws org.apache.thrift.TException {
|
| - |
|
24970 |
validateReturnTransaction_result result = new validateReturnTransaction_result();
|
| - |
|
24971 |
result.success = iface.validateReturnTransaction(args.customerId, args.returnOrdersMap, args.itemCondition, args.overrideWarranty);
|
| - |
|
24972 |
result.setSuccessIsSet(true);
|
| - |
|
24973 |
return result;
|
| - |
|
24974 |
}
|
| - |
|
24975 |
}
|
| - |
|
24976 |
|
| 24880 |
}
|
24977 |
}
|
| 24881 |
|
24978 |
|
| 24882 |
public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable {
|
24979 |
public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable {
|
| 24883 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
|
24980 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
|
| 24884 |
|
24981 |
|
| Line 60984... |
Line 61081... |
| 60984 |
}
|
61081 |
}
|
| 60985 |
}
|
61082 |
}
|
| 60986 |
|
61083 |
|
| 60987 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
61084 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 60988 |
try {
|
61085 |
try {
|
| 60989 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
- |
|
| 60990 |
__isset_bit_vector = new BitSet(1);
|
- |
|
| 60991 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
61086 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 60992 |
} catch (org.apache.thrift.TException te) {
|
61087 |
} catch (org.apache.thrift.TException te) {
|
| 60993 |
throw new java.io.IOException(te);
|
61088 |
throw new java.io.IOException(te);
|
| 60994 |
}
|
61089 |
}
|
| 60995 |
}
|
61090 |
}
|
| Line 203900... |
Line 203995... |
| 203900 |
}
|
203995 |
}
|
| 203901 |
}
|
203996 |
}
|
| 203902 |
|
203997 |
|
| 203903 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
203998 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 203904 |
try {
|
203999 |
try {
|
| - |
|
204000 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
204001 |
__isset_bit_vector = new BitSet(1);
|
| 203905 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
204002 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 203906 |
} catch (org.apache.thrift.TException te) {
|
204003 |
} catch (org.apache.thrift.TException te) {
|
| 203907 |
throw new java.io.IOException(te);
|
204004 |
throw new java.io.IOException(te);
|
| 203908 |
}
|
204005 |
}
|
| 203909 |
}
|
204006 |
}
|
| Line 218583... |
Line 218680... |
| 218583 |
|
218680 |
|
| 218584 |
public static class createReturnTransaction_args implements org.apache.thrift.TBase<createReturnTransaction_args, createReturnTransaction_args._Fields>, java.io.Serializable, Cloneable {
|
218681 |
public static class createReturnTransaction_args implements org.apache.thrift.TBase<createReturnTransaction_args, createReturnTransaction_args._Fields>, java.io.Serializable, Cloneable {
|
| 218585 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createReturnTransaction_args");
|
218682 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createReturnTransaction_args");
|
| 218586 |
|
218683 |
|
| 218587 |
private static final org.apache.thrift.protocol.TField RETURN_TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTransaction", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
218684 |
private static final org.apache.thrift.protocol.TField RETURN_TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTransaction", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| - |
|
218685 |
private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| - |
|
218686 |
private static final org.apache.thrift.protocol.TField OVERRIDE_WARRANTY_FIELD_DESC = new org.apache.thrift.protocol.TField("overrideWarranty", org.apache.thrift.protocol.TType.BOOL, (short)3);
|
| 218588 |
|
218687 |
|
| 218589 |
private ReturnTransaction returnTransaction; // required
|
218688 |
private ReturnTransaction returnTransaction; // required
|
| - |
|
218689 |
private String itemCondition; // required
|
| - |
|
218690 |
private boolean overrideWarranty; // required
|
| 218590 |
|
218691 |
|
| 218591 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
218692 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 218592 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
218693 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 218593 |
RETURN_TRANSACTION((short)1, "returnTransaction");
|
218694 |
RETURN_TRANSACTION((short)1, "returnTransaction"),
|
| - |
|
218695 |
ITEM_CONDITION((short)2, "itemCondition"),
|
| - |
|
218696 |
OVERRIDE_WARRANTY((short)3, "overrideWarranty");
|
| 218594 |
|
218697 |
|
| 218595 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
218698 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 218596 |
|
218699 |
|
| 218597 |
static {
|
218700 |
static {
|
| 218598 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
218701 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 218605... |
Line 218708... |
| 218605 |
*/
|
218708 |
*/
|
| 218606 |
public static _Fields findByThriftId(int fieldId) {
|
218709 |
public static _Fields findByThriftId(int fieldId) {
|
| 218607 |
switch(fieldId) {
|
218710 |
switch(fieldId) {
|
| 218608 |
case 1: // RETURN_TRANSACTION
|
218711 |
case 1: // RETURN_TRANSACTION
|
| 218609 |
return RETURN_TRANSACTION;
|
218712 |
return RETURN_TRANSACTION;
|
| - |
|
218713 |
case 2: // ITEM_CONDITION
|
| - |
|
218714 |
return ITEM_CONDITION;
|
| - |
|
218715 |
case 3: // OVERRIDE_WARRANTY
|
| - |
|
218716 |
return OVERRIDE_WARRANTY;
|
| 218610 |
default:
|
218717 |
default:
|
| 218611 |
return null;
|
218718 |
return null;
|
| 218612 |
}
|
218719 |
}
|
| 218613 |
}
|
218720 |
}
|
| 218614 |
|
218721 |
|
| Line 218645... |
Line 218752... |
| 218645 |
return _fieldName;
|
218752 |
return _fieldName;
|
| 218646 |
}
|
218753 |
}
|
| 218647 |
}
|
218754 |
}
|
| 218648 |
|
218755 |
|
| 218649 |
// isset id assignments
|
218756 |
// isset id assignments
|
| - |
|
218757 |
private static final int __OVERRIDEWARRANTY_ISSET_ID = 0;
|
| - |
|
218758 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 218650 |
|
218759 |
|
| 218651 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
218760 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 218652 |
static {
|
218761 |
static {
|
| 218653 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
218762 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 218654 |
tmpMap.put(_Fields.RETURN_TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("returnTransaction", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
218763 |
tmpMap.put(_Fields.RETURN_TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("returnTransaction", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 218655 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnTransaction.class)));
|
218764 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnTransaction.class)));
|
| - |
|
218765 |
tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
218766 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
218767 |
tmpMap.put(_Fields.OVERRIDE_WARRANTY, new org.apache.thrift.meta_data.FieldMetaData("overrideWarranty", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
218768 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 218656 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
218769 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 218657 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createReturnTransaction_args.class, metaDataMap);
|
218770 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createReturnTransaction_args.class, metaDataMap);
|
| 218658 |
}
|
218771 |
}
|
| 218659 |
|
218772 |
|
| 218660 |
public createReturnTransaction_args() {
|
218773 |
public createReturnTransaction_args() {
|
| 218661 |
}
|
218774 |
}
|
| 218662 |
|
218775 |
|
| 218663 |
public createReturnTransaction_args(
|
218776 |
public createReturnTransaction_args(
|
| 218664 |
ReturnTransaction returnTransaction)
|
218777 |
ReturnTransaction returnTransaction,
|
| - |
|
218778 |
String itemCondition,
|
| - |
|
218779 |
boolean overrideWarranty)
|
| 218665 |
{
|
218780 |
{
|
| 218666 |
this();
|
218781 |
this();
|
| 218667 |
this.returnTransaction = returnTransaction;
|
218782 |
this.returnTransaction = returnTransaction;
|
| - |
|
218783 |
this.itemCondition = itemCondition;
|
| - |
|
218784 |
this.overrideWarranty = overrideWarranty;
|
| - |
|
218785 |
setOverrideWarrantyIsSet(true);
|
| 218668 |
}
|
218786 |
}
|
| 218669 |
|
218787 |
|
| 218670 |
/**
|
218788 |
/**
|
| 218671 |
* Performs a deep copy on <i>other</i>.
|
218789 |
* Performs a deep copy on <i>other</i>.
|
| 218672 |
*/
|
218790 |
*/
|
| 218673 |
public createReturnTransaction_args(createReturnTransaction_args other) {
|
218791 |
public createReturnTransaction_args(createReturnTransaction_args other) {
|
| - |
|
218792 |
__isset_bit_vector.clear();
|
| - |
|
218793 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 218674 |
if (other.isSetReturnTransaction()) {
|
218794 |
if (other.isSetReturnTransaction()) {
|
| 218675 |
this.returnTransaction = new ReturnTransaction(other.returnTransaction);
|
218795 |
this.returnTransaction = new ReturnTransaction(other.returnTransaction);
|
| 218676 |
}
|
218796 |
}
|
| - |
|
218797 |
if (other.isSetItemCondition()) {
|
| - |
|
218798 |
this.itemCondition = other.itemCondition;
|
| - |
|
218799 |
}
|
| - |
|
218800 |
this.overrideWarranty = other.overrideWarranty;
|
| 218677 |
}
|
218801 |
}
|
| 218678 |
|
218802 |
|
| 218679 |
public createReturnTransaction_args deepCopy() {
|
218803 |
public createReturnTransaction_args deepCopy() {
|
| 218680 |
return new createReturnTransaction_args(this);
|
218804 |
return new createReturnTransaction_args(this);
|
| 218681 |
}
|
218805 |
}
|
| 218682 |
|
218806 |
|
| 218683 |
@Override
|
218807 |
@Override
|
| 218684 |
public void clear() {
|
218808 |
public void clear() {
|
| 218685 |
this.returnTransaction = null;
|
218809 |
this.returnTransaction = null;
|
| - |
|
218810 |
this.itemCondition = null;
|
| - |
|
218811 |
setOverrideWarrantyIsSet(false);
|
| - |
|
218812 |
this.overrideWarranty = false;
|
| 218686 |
}
|
218813 |
}
|
| 218687 |
|
218814 |
|
| 218688 |
public ReturnTransaction getReturnTransaction() {
|
218815 |
public ReturnTransaction getReturnTransaction() {
|
| 218689 |
return this.returnTransaction;
|
218816 |
return this.returnTransaction;
|
| 218690 |
}
|
218817 |
}
|
| Line 218706... |
Line 218833... |
| 218706 |
if (!value) {
|
218833 |
if (!value) {
|
| 218707 |
this.returnTransaction = null;
|
218834 |
this.returnTransaction = null;
|
| 218708 |
}
|
218835 |
}
|
| 218709 |
}
|
218836 |
}
|
| 218710 |
|
218837 |
|
| - |
|
218838 |
public String getItemCondition() {
|
| - |
|
218839 |
return this.itemCondition;
|
| - |
|
218840 |
}
|
| - |
|
218841 |
|
| - |
|
218842 |
public void setItemCondition(String itemCondition) {
|
| - |
|
218843 |
this.itemCondition = itemCondition;
|
| - |
|
218844 |
}
|
| - |
|
218845 |
|
| - |
|
218846 |
public void unsetItemCondition() {
|
| - |
|
218847 |
this.itemCondition = null;
|
| - |
|
218848 |
}
|
| - |
|
218849 |
|
| - |
|
218850 |
/** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */
|
| - |
|
218851 |
public boolean isSetItemCondition() {
|
| - |
|
218852 |
return this.itemCondition != null;
|
| - |
|
218853 |
}
|
| - |
|
218854 |
|
| - |
|
218855 |
public void setItemConditionIsSet(boolean value) {
|
| - |
|
218856 |
if (!value) {
|
| - |
|
218857 |
this.itemCondition = null;
|
| - |
|
218858 |
}
|
| - |
|
218859 |
}
|
| - |
|
218860 |
|
| - |
|
218861 |
public boolean isOverrideWarranty() {
|
| - |
|
218862 |
return this.overrideWarranty;
|
| - |
|
218863 |
}
|
| - |
|
218864 |
|
| - |
|
218865 |
public void setOverrideWarranty(boolean overrideWarranty) {
|
| - |
|
218866 |
this.overrideWarranty = overrideWarranty;
|
| - |
|
218867 |
setOverrideWarrantyIsSet(true);
|
| - |
|
218868 |
}
|
| - |
|
218869 |
|
| - |
|
218870 |
public void unsetOverrideWarranty() {
|
| - |
|
218871 |
__isset_bit_vector.clear(__OVERRIDEWARRANTY_ISSET_ID);
|
| - |
|
218872 |
}
|
| - |
|
218873 |
|
| - |
|
218874 |
/** Returns true if field overrideWarranty is set (has been assigned a value) and false otherwise */
|
| - |
|
218875 |
public boolean isSetOverrideWarranty() {
|
| - |
|
218876 |
return __isset_bit_vector.get(__OVERRIDEWARRANTY_ISSET_ID);
|
| - |
|
218877 |
}
|
| - |
|
218878 |
|
| - |
|
218879 |
public void setOverrideWarrantyIsSet(boolean value) {
|
| - |
|
218880 |
__isset_bit_vector.set(__OVERRIDEWARRANTY_ISSET_ID, value);
|
| - |
|
218881 |
}
|
| - |
|
218882 |
|
| 218711 |
public void setFieldValue(_Fields field, Object value) {
|
218883 |
public void setFieldValue(_Fields field, Object value) {
|
| 218712 |
switch (field) {
|
218884 |
switch (field) {
|
| 218713 |
case RETURN_TRANSACTION:
|
218885 |
case RETURN_TRANSACTION:
|
| 218714 |
if (value == null) {
|
218886 |
if (value == null) {
|
| 218715 |
unsetReturnTransaction();
|
218887 |
unsetReturnTransaction();
|
| 218716 |
} else {
|
218888 |
} else {
|
| 218717 |
setReturnTransaction((ReturnTransaction)value);
|
218889 |
setReturnTransaction((ReturnTransaction)value);
|
| 218718 |
}
|
218890 |
}
|
| 218719 |
break;
|
218891 |
break;
|
| 218720 |
|
218892 |
|
| - |
|
218893 |
case ITEM_CONDITION:
|
| - |
|
218894 |
if (value == null) {
|
| - |
|
218895 |
unsetItemCondition();
|
| - |
|
218896 |
} else {
|
| - |
|
218897 |
setItemCondition((String)value);
|
| - |
|
218898 |
}
|
| - |
|
218899 |
break;
|
| - |
|
218900 |
|
| - |
|
218901 |
case OVERRIDE_WARRANTY:
|
| - |
|
218902 |
if (value == null) {
|
| - |
|
218903 |
unsetOverrideWarranty();
|
| - |
|
218904 |
} else {
|
| - |
|
218905 |
setOverrideWarranty((Boolean)value);
|
| - |
|
218906 |
}
|
| - |
|
218907 |
break;
|
| - |
|
218908 |
|
| 218721 |
}
|
218909 |
}
|
| 218722 |
}
|
218910 |
}
|
| 218723 |
|
218911 |
|
| 218724 |
public Object getFieldValue(_Fields field) {
|
218912 |
public Object getFieldValue(_Fields field) {
|
| 218725 |
switch (field) {
|
218913 |
switch (field) {
|
| 218726 |
case RETURN_TRANSACTION:
|
218914 |
case RETURN_TRANSACTION:
|
| 218727 |
return getReturnTransaction();
|
218915 |
return getReturnTransaction();
|
| 218728 |
|
218916 |
|
| - |
|
218917 |
case ITEM_CONDITION:
|
| - |
|
218918 |
return getItemCondition();
|
| - |
|
218919 |
|
| - |
|
218920 |
case OVERRIDE_WARRANTY:
|
| - |
|
218921 |
return Boolean.valueOf(isOverrideWarranty());
|
| - |
|
218922 |
|
| 218729 |
}
|
218923 |
}
|
| 218730 |
throw new IllegalStateException();
|
218924 |
throw new IllegalStateException();
|
| 218731 |
}
|
218925 |
}
|
| 218732 |
|
218926 |
|
| 218733 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
218927 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 218737... |
Line 218931... |
| 218737 |
}
|
218931 |
}
|
| 218738 |
|
218932 |
|
| 218739 |
switch (field) {
|
218933 |
switch (field) {
|
| 218740 |
case RETURN_TRANSACTION:
|
218934 |
case RETURN_TRANSACTION:
|
| 218741 |
return isSetReturnTransaction();
|
218935 |
return isSetReturnTransaction();
|
| - |
|
218936 |
case ITEM_CONDITION:
|
| - |
|
218937 |
return isSetItemCondition();
|
| - |
|
218938 |
case OVERRIDE_WARRANTY:
|
| - |
|
218939 |
return isSetOverrideWarranty();
|
| 218742 |
}
|
218940 |
}
|
| 218743 |
throw new IllegalStateException();
|
218941 |
throw new IllegalStateException();
|
| 218744 |
}
|
218942 |
}
|
| 218745 |
|
218943 |
|
| 218746 |
@Override
|
218944 |
@Override
|
| Line 218763... |
Line 218961... |
| 218763 |
return false;
|
218961 |
return false;
|
| 218764 |
if (!this.returnTransaction.equals(that.returnTransaction))
|
218962 |
if (!this.returnTransaction.equals(that.returnTransaction))
|
| 218765 |
return false;
|
218963 |
return false;
|
| 218766 |
}
|
218964 |
}
|
| 218767 |
|
218965 |
|
| - |
|
218966 |
boolean this_present_itemCondition = true && this.isSetItemCondition();
|
| - |
|
218967 |
boolean that_present_itemCondition = true && that.isSetItemCondition();
|
| - |
|
218968 |
if (this_present_itemCondition || that_present_itemCondition) {
|
| - |
|
218969 |
if (!(this_present_itemCondition && that_present_itemCondition))
|
| - |
|
218970 |
return false;
|
| - |
|
218971 |
if (!this.itemCondition.equals(that.itemCondition))
|
| - |
|
218972 |
return false;
|
| - |
|
218973 |
}
|
| - |
|
218974 |
|
| - |
|
218975 |
boolean this_present_overrideWarranty = true;
|
| - |
|
218976 |
boolean that_present_overrideWarranty = true;
|
| - |
|
218977 |
if (this_present_overrideWarranty || that_present_overrideWarranty) {
|
| - |
|
218978 |
if (!(this_present_overrideWarranty && that_present_overrideWarranty))
|
| - |
|
218979 |
return false;
|
| - |
|
218980 |
if (this.overrideWarranty != that.overrideWarranty)
|
| - |
|
218981 |
return false;
|
| - |
|
218982 |
}
|
| - |
|
218983 |
|
| 218768 |
return true;
|
218984 |
return true;
|
| 218769 |
}
|
218985 |
}
|
| 218770 |
|
218986 |
|
| 218771 |
@Override
|
218987 |
@Override
|
| 218772 |
public int hashCode() {
|
218988 |
public int hashCode() {
|
| Line 218789... |
Line 219005... |
| 218789 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTransaction, typedOther.returnTransaction);
|
219005 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTransaction, typedOther.returnTransaction);
|
| 218790 |
if (lastComparison != 0) {
|
219006 |
if (lastComparison != 0) {
|
| 218791 |
return lastComparison;
|
219007 |
return lastComparison;
|
| 218792 |
}
|
219008 |
}
|
| 218793 |
}
|
219009 |
}
|
| - |
|
219010 |
lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
|
| - |
|
219011 |
if (lastComparison != 0) {
|
| - |
|
219012 |
return lastComparison;
|
| - |
|
219013 |
}
|
| - |
|
219014 |
if (isSetItemCondition()) {
|
| - |
|
219015 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);
|
| - |
|
219016 |
if (lastComparison != 0) {
|
| - |
|
219017 |
return lastComparison;
|
| - |
|
219018 |
}
|
| - |
|
219019 |
}
|
| - |
|
219020 |
lastComparison = Boolean.valueOf(isSetOverrideWarranty()).compareTo(typedOther.isSetOverrideWarranty());
|
| - |
|
219021 |
if (lastComparison != 0) {
|
| - |
|
219022 |
return lastComparison;
|
| - |
|
219023 |
}
|
| - |
|
219024 |
if (isSetOverrideWarranty()) {
|
| - |
|
219025 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.overrideWarranty, typedOther.overrideWarranty);
|
| - |
|
219026 |
if (lastComparison != 0) {
|
| - |
|
219027 |
return lastComparison;
|
| - |
|
219028 |
}
|
| - |
|
219029 |
}
|
| 218794 |
return 0;
|
219030 |
return 0;
|
| 218795 |
}
|
219031 |
}
|
| 218796 |
|
219032 |
|
| 218797 |
public _Fields fieldForId(int fieldId) {
|
219033 |
public _Fields fieldForId(int fieldId) {
|
| 218798 |
return _Fields.findByThriftId(fieldId);
|
219034 |
return _Fields.findByThriftId(fieldId);
|
| Line 218814... |
Line 219050... |
| 218814 |
this.returnTransaction.read(iprot);
|
219050 |
this.returnTransaction.read(iprot);
|
| 218815 |
} else {
|
219051 |
} else {
|
| 218816 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
219052 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 218817 |
}
|
219053 |
}
|
| 218818 |
break;
|
219054 |
break;
|
| - |
|
219055 |
case 2: // ITEM_CONDITION
|
| - |
|
219056 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
219057 |
this.itemCondition = iprot.readString();
|
| - |
|
219058 |
} else {
|
| - |
|
219059 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
219060 |
}
|
| - |
|
219061 |
break;
|
| - |
|
219062 |
case 3: // OVERRIDE_WARRANTY
|
| - |
|
219063 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| - |
|
219064 |
this.overrideWarranty = iprot.readBool();
|
| - |
|
219065 |
setOverrideWarrantyIsSet(true);
|
| - |
|
219066 |
} else {
|
| - |
|
219067 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
219068 |
}
|
| - |
|
219069 |
break;
|
| 218819 |
default:
|
219070 |
default:
|
| 218820 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
219071 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 218821 |
}
|
219072 |
}
|
| 218822 |
iprot.readFieldEnd();
|
219073 |
iprot.readFieldEnd();
|
| 218823 |
}
|
219074 |
}
|
| Line 218832... |
Line 219083... |
| 218832 |
if (this.returnTransaction != null) {
|
219083 |
if (this.returnTransaction != null) {
|
| 218833 |
oprot.writeFieldBegin(RETURN_TRANSACTION_FIELD_DESC);
|
219084 |
oprot.writeFieldBegin(RETURN_TRANSACTION_FIELD_DESC);
|
| 218834 |
this.returnTransaction.write(oprot);
|
219085 |
this.returnTransaction.write(oprot);
|
| 218835 |
oprot.writeFieldEnd();
|
219086 |
oprot.writeFieldEnd();
|
| 218836 |
}
|
219087 |
}
|
| - |
|
219088 |
if (this.itemCondition != null) {
|
| - |
|
219089 |
oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
|
| - |
|
219090 |
oprot.writeString(this.itemCondition);
|
| - |
|
219091 |
oprot.writeFieldEnd();
|
| - |
|
219092 |
}
|
| - |
|
219093 |
oprot.writeFieldBegin(OVERRIDE_WARRANTY_FIELD_DESC);
|
| - |
|
219094 |
oprot.writeBool(this.overrideWarranty);
|
| - |
|
219095 |
oprot.writeFieldEnd();
|
| 218837 |
oprot.writeFieldStop();
|
219096 |
oprot.writeFieldStop();
|
| 218838 |
oprot.writeStructEnd();
|
219097 |
oprot.writeStructEnd();
|
| 218839 |
}
|
219098 |
}
|
| 218840 |
|
219099 |
|
| 218841 |
@Override
|
219100 |
@Override
|
| Line 218848... |
Line 219107... |
| 218848 |
sb.append("null");
|
219107 |
sb.append("null");
|
| 218849 |
} else {
|
219108 |
} else {
|
| 218850 |
sb.append(this.returnTransaction);
|
219109 |
sb.append(this.returnTransaction);
|
| 218851 |
}
|
219110 |
}
|
| 218852 |
first = false;
|
219111 |
first = false;
|
| - |
|
219112 |
if (!first) sb.append(", ");
|
| - |
|
219113 |
sb.append("itemCondition:");
|
| - |
|
219114 |
if (this.itemCondition == null) {
|
| - |
|
219115 |
sb.append("null");
|
| - |
|
219116 |
} else {
|
| - |
|
219117 |
sb.append(this.itemCondition);
|
| - |
|
219118 |
}
|
| - |
|
219119 |
first = false;
|
| - |
|
219120 |
if (!first) sb.append(", ");
|
| - |
|
219121 |
sb.append("overrideWarranty:");
|
| - |
|
219122 |
sb.append(this.overrideWarranty);
|
| - |
|
219123 |
first = false;
|
| 218853 |
sb.append(")");
|
219124 |
sb.append(")");
|
| 218854 |
return sb.toString();
|
219125 |
return sb.toString();
|
| 218855 |
}
|
219126 |
}
|
| 218856 |
|
219127 |
|
| 218857 |
public void validate() throws org.apache.thrift.TException {
|
219128 |
public void validate() throws org.apache.thrift.TException {
|
| Line 218866... |
Line 219137... |
| 218866 |
}
|
219137 |
}
|
| 218867 |
}
|
219138 |
}
|
| 218868 |
|
219139 |
|
| 218869 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
219140 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 218870 |
try {
|
219141 |
try {
|
| - |
|
219142 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
219143 |
__isset_bit_vector = new BitSet(1);
|
| 218871 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
219144 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 218872 |
} catch (org.apache.thrift.TException te) {
|
219145 |
} catch (org.apache.thrift.TException te) {
|
| 218873 |
throw new java.io.IOException(te);
|
219146 |
throw new java.io.IOException(te);
|
| 218874 |
}
|
219147 |
}
|
| 218875 |
}
|
219148 |
}
|
| Line 233914... |
Line 234187... |
| 233914 |
first = false;
|
234187 |
first = false;
|
| 233915 |
sb.append(")");
|
234188 |
sb.append(")");
|
| 233916 |
return sb.toString();
|
234189 |
return sb.toString();
|
| 233917 |
}
|
234190 |
}
|
| 233918 |
|
234191 |
|
| - |
|
234192 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
234193 |
// check for required fields
|
| - |
|
234194 |
}
|
| - |
|
234195 |
|
| - |
|
234196 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
234197 |
try {
|
| - |
|
234198 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
234199 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
234200 |
throw new java.io.IOException(te);
|
| - |
|
234201 |
}
|
| - |
|
234202 |
}
|
| - |
|
234203 |
|
| - |
|
234204 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
234205 |
try {
|
| - |
|
234206 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
234207 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
234208 |
throw new java.io.IOException(te);
|
| - |
|
234209 |
}
|
| - |
|
234210 |
}
|
| - |
|
234211 |
|
| - |
|
234212 |
}
|
| - |
|
234213 |
|
| - |
|
234214 |
public static class validateReturnTransaction_args implements org.apache.thrift.TBase<validateReturnTransaction_args, validateReturnTransaction_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
234215 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateReturnTransaction_args");
|
| - |
|
234216 |
|
| - |
|
234217 |
private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| - |
|
234218 |
private static final org.apache.thrift.protocol.TField RETURN_ORDERS_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("returnOrdersMap", org.apache.thrift.protocol.TType.MAP, (short)2);
|
| - |
|
234219 |
private static final org.apache.thrift.protocol.TField ITEM_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("itemCondition", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| - |
|
234220 |
private static final org.apache.thrift.protocol.TField OVERRIDE_WARRANTY_FIELD_DESC = new org.apache.thrift.protocol.TField("overrideWarranty", org.apache.thrift.protocol.TType.BOOL, (short)4);
|
| - |
|
234221 |
|
| - |
|
234222 |
private long customerId; // required
|
| - |
|
234223 |
private Map<Long,Long> returnOrdersMap; // required
|
| - |
|
234224 |
private String itemCondition; // required
|
| - |
|
234225 |
private boolean overrideWarranty; // required
|
| - |
|
234226 |
|
| - |
|
234227 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
234228 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
234229 |
CUSTOMER_ID((short)1, "customerId"),
|
| - |
|
234230 |
RETURN_ORDERS_MAP((short)2, "returnOrdersMap"),
|
| - |
|
234231 |
ITEM_CONDITION((short)3, "itemCondition"),
|
| - |
|
234232 |
OVERRIDE_WARRANTY((short)4, "overrideWarranty");
|
| - |
|
234233 |
|
| - |
|
234234 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
234235 |
|
| - |
|
234236 |
static {
|
| - |
|
234237 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
234238 |
byName.put(field.getFieldName(), field);
|
| - |
|
234239 |
}
|
| - |
|
234240 |
}
|
| - |
|
234241 |
|
| - |
|
234242 |
/**
|
| - |
|
234243 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
234244 |
*/
|
| - |
|
234245 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
234246 |
switch(fieldId) {
|
| - |
|
234247 |
case 1: // CUSTOMER_ID
|
| - |
|
234248 |
return CUSTOMER_ID;
|
| - |
|
234249 |
case 2: // RETURN_ORDERS_MAP
|
| - |
|
234250 |
return RETURN_ORDERS_MAP;
|
| - |
|
234251 |
case 3: // ITEM_CONDITION
|
| - |
|
234252 |
return ITEM_CONDITION;
|
| - |
|
234253 |
case 4: // OVERRIDE_WARRANTY
|
| - |
|
234254 |
return OVERRIDE_WARRANTY;
|
| - |
|
234255 |
default:
|
| - |
|
234256 |
return null;
|
| - |
|
234257 |
}
|
| - |
|
234258 |
}
|
| - |
|
234259 |
|
| - |
|
234260 |
/**
|
| - |
|
234261 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
234262 |
* if it is not found.
|
| - |
|
234263 |
*/
|
| - |
|
234264 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
234265 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
234266 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
234267 |
return fields;
|
| - |
|
234268 |
}
|
| - |
|
234269 |
|
| - |
|
234270 |
/**
|
| - |
|
234271 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
234272 |
*/
|
| - |
|
234273 |
public static _Fields findByName(String name) {
|
| - |
|
234274 |
return byName.get(name);
|
| - |
|
234275 |
}
|
| - |
|
234276 |
|
| - |
|
234277 |
private final short _thriftId;
|
| - |
|
234278 |
private final String _fieldName;
|
| - |
|
234279 |
|
| - |
|
234280 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
234281 |
_thriftId = thriftId;
|
| - |
|
234282 |
_fieldName = fieldName;
|
| - |
|
234283 |
}
|
| - |
|
234284 |
|
| - |
|
234285 |
public short getThriftFieldId() {
|
| - |
|
234286 |
return _thriftId;
|
| - |
|
234287 |
}
|
| - |
|
234288 |
|
| - |
|
234289 |
public String getFieldName() {
|
| - |
|
234290 |
return _fieldName;
|
| - |
|
234291 |
}
|
| - |
|
234292 |
}
|
| - |
|
234293 |
|
| - |
|
234294 |
// isset id assignments
|
| - |
|
234295 |
private static final int __CUSTOMERID_ISSET_ID = 0;
|
| - |
|
234296 |
private static final int __OVERRIDEWARRANTY_ISSET_ID = 1;
|
| - |
|
234297 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| - |
|
234298 |
|
| - |
|
234299 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
234300 |
static {
|
| - |
|
234301 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
234302 |
tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
234303 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
234304 |
tmpMap.put(_Fields.RETURN_ORDERS_MAP, new org.apache.thrift.meta_data.FieldMetaData("returnOrdersMap", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
234305 |
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
|
| - |
|
234306 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),
|
| - |
|
234307 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
| - |
|
234308 |
tmpMap.put(_Fields.ITEM_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("itemCondition", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
234309 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
234310 |
tmpMap.put(_Fields.OVERRIDE_WARRANTY, new org.apache.thrift.meta_data.FieldMetaData("overrideWarranty", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
234311 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| - |
|
234312 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
234313 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateReturnTransaction_args.class, metaDataMap);
|
| - |
|
234314 |
}
|
| - |
|
234315 |
|
| - |
|
234316 |
public validateReturnTransaction_args() {
|
| - |
|
234317 |
}
|
| - |
|
234318 |
|
| - |
|
234319 |
public validateReturnTransaction_args(
|
| - |
|
234320 |
long customerId,
|
| - |
|
234321 |
Map<Long,Long> returnOrdersMap,
|
| - |
|
234322 |
String itemCondition,
|
| - |
|
234323 |
boolean overrideWarranty)
|
| - |
|
234324 |
{
|
| - |
|
234325 |
this();
|
| - |
|
234326 |
this.customerId = customerId;
|
| - |
|
234327 |
setCustomerIdIsSet(true);
|
| - |
|
234328 |
this.returnOrdersMap = returnOrdersMap;
|
| - |
|
234329 |
this.itemCondition = itemCondition;
|
| - |
|
234330 |
this.overrideWarranty = overrideWarranty;
|
| - |
|
234331 |
setOverrideWarrantyIsSet(true);
|
| - |
|
234332 |
}
|
| - |
|
234333 |
|
| - |
|
234334 |
/**
|
| - |
|
234335 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
234336 |
*/
|
| - |
|
234337 |
public validateReturnTransaction_args(validateReturnTransaction_args other) {
|
| - |
|
234338 |
__isset_bit_vector.clear();
|
| - |
|
234339 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
234340 |
this.customerId = other.customerId;
|
| - |
|
234341 |
if (other.isSetReturnOrdersMap()) {
|
| - |
|
234342 |
Map<Long,Long> __this__returnOrdersMap = new HashMap<Long,Long>();
|
| - |
|
234343 |
for (Map.Entry<Long, Long> other_element : other.returnOrdersMap.entrySet()) {
|
| - |
|
234344 |
|
| - |
|
234345 |
Long other_element_key = other_element.getKey();
|
| - |
|
234346 |
Long other_element_value = other_element.getValue();
|
| - |
|
234347 |
|
| - |
|
234348 |
Long __this__returnOrdersMap_copy_key = other_element_key;
|
| - |
|
234349 |
|
| - |
|
234350 |
Long __this__returnOrdersMap_copy_value = other_element_value;
|
| - |
|
234351 |
|
| - |
|
234352 |
__this__returnOrdersMap.put(__this__returnOrdersMap_copy_key, __this__returnOrdersMap_copy_value);
|
| - |
|
234353 |
}
|
| - |
|
234354 |
this.returnOrdersMap = __this__returnOrdersMap;
|
| - |
|
234355 |
}
|
| - |
|
234356 |
if (other.isSetItemCondition()) {
|
| - |
|
234357 |
this.itemCondition = other.itemCondition;
|
| - |
|
234358 |
}
|
| - |
|
234359 |
this.overrideWarranty = other.overrideWarranty;
|
| - |
|
234360 |
}
|
| - |
|
234361 |
|
| - |
|
234362 |
public validateReturnTransaction_args deepCopy() {
|
| - |
|
234363 |
return new validateReturnTransaction_args(this);
|
| - |
|
234364 |
}
|
| - |
|
234365 |
|
| - |
|
234366 |
@Override
|
| - |
|
234367 |
public void clear() {
|
| - |
|
234368 |
setCustomerIdIsSet(false);
|
| - |
|
234369 |
this.customerId = 0;
|
| - |
|
234370 |
this.returnOrdersMap = null;
|
| - |
|
234371 |
this.itemCondition = null;
|
| - |
|
234372 |
setOverrideWarrantyIsSet(false);
|
| - |
|
234373 |
this.overrideWarranty = false;
|
| - |
|
234374 |
}
|
| - |
|
234375 |
|
| - |
|
234376 |
public long getCustomerId() {
|
| - |
|
234377 |
return this.customerId;
|
| - |
|
234378 |
}
|
| - |
|
234379 |
|
| - |
|
234380 |
public void setCustomerId(long customerId) {
|
| - |
|
234381 |
this.customerId = customerId;
|
| - |
|
234382 |
setCustomerIdIsSet(true);
|
| - |
|
234383 |
}
|
| - |
|
234384 |
|
| - |
|
234385 |
public void unsetCustomerId() {
|
| - |
|
234386 |
__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
|
| - |
|
234387 |
}
|
| - |
|
234388 |
|
| - |
|
234389 |
/** Returns true if field customerId is set (has been assigned a value) and false otherwise */
|
| - |
|
234390 |
public boolean isSetCustomerId() {
|
| - |
|
234391 |
return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
|
| - |
|
234392 |
}
|
| - |
|
234393 |
|
| - |
|
234394 |
public void setCustomerIdIsSet(boolean value) {
|
| - |
|
234395 |
__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
|
| - |
|
234396 |
}
|
| - |
|
234397 |
|
| - |
|
234398 |
public int getReturnOrdersMapSize() {
|
| - |
|
234399 |
return (this.returnOrdersMap == null) ? 0 : this.returnOrdersMap.size();
|
| - |
|
234400 |
}
|
| - |
|
234401 |
|
| - |
|
234402 |
public void putToReturnOrdersMap(long key, long val) {
|
| - |
|
234403 |
if (this.returnOrdersMap == null) {
|
| - |
|
234404 |
this.returnOrdersMap = new HashMap<Long,Long>();
|
| - |
|
234405 |
}
|
| - |
|
234406 |
this.returnOrdersMap.put(key, val);
|
| - |
|
234407 |
}
|
| - |
|
234408 |
|
| - |
|
234409 |
public Map<Long,Long> getReturnOrdersMap() {
|
| - |
|
234410 |
return this.returnOrdersMap;
|
| - |
|
234411 |
}
|
| - |
|
234412 |
|
| - |
|
234413 |
public void setReturnOrdersMap(Map<Long,Long> returnOrdersMap) {
|
| - |
|
234414 |
this.returnOrdersMap = returnOrdersMap;
|
| - |
|
234415 |
}
|
| - |
|
234416 |
|
| - |
|
234417 |
public void unsetReturnOrdersMap() {
|
| - |
|
234418 |
this.returnOrdersMap = null;
|
| - |
|
234419 |
}
|
| - |
|
234420 |
|
| - |
|
234421 |
/** Returns true if field returnOrdersMap is set (has been assigned a value) and false otherwise */
|
| - |
|
234422 |
public boolean isSetReturnOrdersMap() {
|
| - |
|
234423 |
return this.returnOrdersMap != null;
|
| - |
|
234424 |
}
|
| - |
|
234425 |
|
| - |
|
234426 |
public void setReturnOrdersMapIsSet(boolean value) {
|
| - |
|
234427 |
if (!value) {
|
| - |
|
234428 |
this.returnOrdersMap = null;
|
| - |
|
234429 |
}
|
| - |
|
234430 |
}
|
| - |
|
234431 |
|
| - |
|
234432 |
public String getItemCondition() {
|
| - |
|
234433 |
return this.itemCondition;
|
| - |
|
234434 |
}
|
| - |
|
234435 |
|
| - |
|
234436 |
public void setItemCondition(String itemCondition) {
|
| - |
|
234437 |
this.itemCondition = itemCondition;
|
| - |
|
234438 |
}
|
| - |
|
234439 |
|
| - |
|
234440 |
public void unsetItemCondition() {
|
| - |
|
234441 |
this.itemCondition = null;
|
| - |
|
234442 |
}
|
| - |
|
234443 |
|
| - |
|
234444 |
/** Returns true if field itemCondition is set (has been assigned a value) and false otherwise */
|
| - |
|
234445 |
public boolean isSetItemCondition() {
|
| - |
|
234446 |
return this.itemCondition != null;
|
| - |
|
234447 |
}
|
| - |
|
234448 |
|
| - |
|
234449 |
public void setItemConditionIsSet(boolean value) {
|
| - |
|
234450 |
if (!value) {
|
| - |
|
234451 |
this.itemCondition = null;
|
| - |
|
234452 |
}
|
| - |
|
234453 |
}
|
| - |
|
234454 |
|
| - |
|
234455 |
public boolean isOverrideWarranty() {
|
| - |
|
234456 |
return this.overrideWarranty;
|
| - |
|
234457 |
}
|
| - |
|
234458 |
|
| - |
|
234459 |
public void setOverrideWarranty(boolean overrideWarranty) {
|
| - |
|
234460 |
this.overrideWarranty = overrideWarranty;
|
| - |
|
234461 |
setOverrideWarrantyIsSet(true);
|
| - |
|
234462 |
}
|
| - |
|
234463 |
|
| - |
|
234464 |
public void unsetOverrideWarranty() {
|
| - |
|
234465 |
__isset_bit_vector.clear(__OVERRIDEWARRANTY_ISSET_ID);
|
| - |
|
234466 |
}
|
| - |
|
234467 |
|
| - |
|
234468 |
/** Returns true if field overrideWarranty is set (has been assigned a value) and false otherwise */
|
| - |
|
234469 |
public boolean isSetOverrideWarranty() {
|
| - |
|
234470 |
return __isset_bit_vector.get(__OVERRIDEWARRANTY_ISSET_ID);
|
| - |
|
234471 |
}
|
| - |
|
234472 |
|
| - |
|
234473 |
public void setOverrideWarrantyIsSet(boolean value) {
|
| - |
|
234474 |
__isset_bit_vector.set(__OVERRIDEWARRANTY_ISSET_ID, value);
|
| - |
|
234475 |
}
|
| - |
|
234476 |
|
| - |
|
234477 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
234478 |
switch (field) {
|
| - |
|
234479 |
case CUSTOMER_ID:
|
| - |
|
234480 |
if (value == null) {
|
| - |
|
234481 |
unsetCustomerId();
|
| - |
|
234482 |
} else {
|
| - |
|
234483 |
setCustomerId((Long)value);
|
| - |
|
234484 |
}
|
| - |
|
234485 |
break;
|
| - |
|
234486 |
|
| - |
|
234487 |
case RETURN_ORDERS_MAP:
|
| - |
|
234488 |
if (value == null) {
|
| - |
|
234489 |
unsetReturnOrdersMap();
|
| - |
|
234490 |
} else {
|
| - |
|
234491 |
setReturnOrdersMap((Map<Long,Long>)value);
|
| - |
|
234492 |
}
|
| - |
|
234493 |
break;
|
| - |
|
234494 |
|
| - |
|
234495 |
case ITEM_CONDITION:
|
| - |
|
234496 |
if (value == null) {
|
| - |
|
234497 |
unsetItemCondition();
|
| - |
|
234498 |
} else {
|
| - |
|
234499 |
setItemCondition((String)value);
|
| - |
|
234500 |
}
|
| - |
|
234501 |
break;
|
| - |
|
234502 |
|
| - |
|
234503 |
case OVERRIDE_WARRANTY:
|
| - |
|
234504 |
if (value == null) {
|
| - |
|
234505 |
unsetOverrideWarranty();
|
| - |
|
234506 |
} else {
|
| - |
|
234507 |
setOverrideWarranty((Boolean)value);
|
| - |
|
234508 |
}
|
| - |
|
234509 |
break;
|
| - |
|
234510 |
|
| - |
|
234511 |
}
|
| - |
|
234512 |
}
|
| - |
|
234513 |
|
| - |
|
234514 |
public Object getFieldValue(_Fields field) {
|
| - |
|
234515 |
switch (field) {
|
| - |
|
234516 |
case CUSTOMER_ID:
|
| - |
|
234517 |
return Long.valueOf(getCustomerId());
|
| - |
|
234518 |
|
| - |
|
234519 |
case RETURN_ORDERS_MAP:
|
| - |
|
234520 |
return getReturnOrdersMap();
|
| - |
|
234521 |
|
| - |
|
234522 |
case ITEM_CONDITION:
|
| - |
|
234523 |
return getItemCondition();
|
| - |
|
234524 |
|
| - |
|
234525 |
case OVERRIDE_WARRANTY:
|
| - |
|
234526 |
return Boolean.valueOf(isOverrideWarranty());
|
| - |
|
234527 |
|
| - |
|
234528 |
}
|
| - |
|
234529 |
throw new IllegalStateException();
|
| - |
|
234530 |
}
|
| - |
|
234531 |
|
| - |
|
234532 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
234533 |
public boolean isSet(_Fields field) {
|
| - |
|
234534 |
if (field == null) {
|
| - |
|
234535 |
throw new IllegalArgumentException();
|
| - |
|
234536 |
}
|
| - |
|
234537 |
|
| - |
|
234538 |
switch (field) {
|
| - |
|
234539 |
case CUSTOMER_ID:
|
| - |
|
234540 |
return isSetCustomerId();
|
| - |
|
234541 |
case RETURN_ORDERS_MAP:
|
| - |
|
234542 |
return isSetReturnOrdersMap();
|
| - |
|
234543 |
case ITEM_CONDITION:
|
| - |
|
234544 |
return isSetItemCondition();
|
| - |
|
234545 |
case OVERRIDE_WARRANTY:
|
| - |
|
234546 |
return isSetOverrideWarranty();
|
| - |
|
234547 |
}
|
| - |
|
234548 |
throw new IllegalStateException();
|
| - |
|
234549 |
}
|
| - |
|
234550 |
|
| - |
|
234551 |
@Override
|
| - |
|
234552 |
public boolean equals(Object that) {
|
| - |
|
234553 |
if (that == null)
|
| - |
|
234554 |
return false;
|
| - |
|
234555 |
if (that instanceof validateReturnTransaction_args)
|
| - |
|
234556 |
return this.equals((validateReturnTransaction_args)that);
|
| - |
|
234557 |
return false;
|
| - |
|
234558 |
}
|
| - |
|
234559 |
|
| - |
|
234560 |
public boolean equals(validateReturnTransaction_args that) {
|
| - |
|
234561 |
if (that == null)
|
| - |
|
234562 |
return false;
|
| - |
|
234563 |
|
| - |
|
234564 |
boolean this_present_customerId = true;
|
| - |
|
234565 |
boolean that_present_customerId = true;
|
| - |
|
234566 |
if (this_present_customerId || that_present_customerId) {
|
| - |
|
234567 |
if (!(this_present_customerId && that_present_customerId))
|
| - |
|
234568 |
return false;
|
| - |
|
234569 |
if (this.customerId != that.customerId)
|
| - |
|
234570 |
return false;
|
| - |
|
234571 |
}
|
| - |
|
234572 |
|
| - |
|
234573 |
boolean this_present_returnOrdersMap = true && this.isSetReturnOrdersMap();
|
| - |
|
234574 |
boolean that_present_returnOrdersMap = true && that.isSetReturnOrdersMap();
|
| - |
|
234575 |
if (this_present_returnOrdersMap || that_present_returnOrdersMap) {
|
| - |
|
234576 |
if (!(this_present_returnOrdersMap && that_present_returnOrdersMap))
|
| - |
|
234577 |
return false;
|
| - |
|
234578 |
if (!this.returnOrdersMap.equals(that.returnOrdersMap))
|
| - |
|
234579 |
return false;
|
| - |
|
234580 |
}
|
| - |
|
234581 |
|
| - |
|
234582 |
boolean this_present_itemCondition = true && this.isSetItemCondition();
|
| - |
|
234583 |
boolean that_present_itemCondition = true && that.isSetItemCondition();
|
| - |
|
234584 |
if (this_present_itemCondition || that_present_itemCondition) {
|
| - |
|
234585 |
if (!(this_present_itemCondition && that_present_itemCondition))
|
| - |
|
234586 |
return false;
|
| - |
|
234587 |
if (!this.itemCondition.equals(that.itemCondition))
|
| - |
|
234588 |
return false;
|
| - |
|
234589 |
}
|
| - |
|
234590 |
|
| - |
|
234591 |
boolean this_present_overrideWarranty = true;
|
| - |
|
234592 |
boolean that_present_overrideWarranty = true;
|
| - |
|
234593 |
if (this_present_overrideWarranty || that_present_overrideWarranty) {
|
| - |
|
234594 |
if (!(this_present_overrideWarranty && that_present_overrideWarranty))
|
| - |
|
234595 |
return false;
|
| - |
|
234596 |
if (this.overrideWarranty != that.overrideWarranty)
|
| - |
|
234597 |
return false;
|
| - |
|
234598 |
}
|
| - |
|
234599 |
|
| - |
|
234600 |
return true;
|
| - |
|
234601 |
}
|
| - |
|
234602 |
|
| - |
|
234603 |
@Override
|
| - |
|
234604 |
public int hashCode() {
|
| - |
|
234605 |
return 0;
|
| - |
|
234606 |
}
|
| - |
|
234607 |
|
| - |
|
234608 |
public int compareTo(validateReturnTransaction_args other) {
|
| - |
|
234609 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
234610 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
234611 |
}
|
| - |
|
234612 |
|
| - |
|
234613 |
int lastComparison = 0;
|
| - |
|
234614 |
validateReturnTransaction_args typedOther = (validateReturnTransaction_args)other;
|
| - |
|
234615 |
|
| - |
|
234616 |
lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
|
| - |
|
234617 |
if (lastComparison != 0) {
|
| - |
|
234618 |
return lastComparison;
|
| - |
|
234619 |
}
|
| - |
|
234620 |
if (isSetCustomerId()) {
|
| - |
|
234621 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
|
| - |
|
234622 |
if (lastComparison != 0) {
|
| - |
|
234623 |
return lastComparison;
|
| - |
|
234624 |
}
|
| - |
|
234625 |
}
|
| - |
|
234626 |
lastComparison = Boolean.valueOf(isSetReturnOrdersMap()).compareTo(typedOther.isSetReturnOrdersMap());
|
| - |
|
234627 |
if (lastComparison != 0) {
|
| - |
|
234628 |
return lastComparison;
|
| - |
|
234629 |
}
|
| - |
|
234630 |
if (isSetReturnOrdersMap()) {
|
| - |
|
234631 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnOrdersMap, typedOther.returnOrdersMap);
|
| - |
|
234632 |
if (lastComparison != 0) {
|
| - |
|
234633 |
return lastComparison;
|
| - |
|
234634 |
}
|
| - |
|
234635 |
}
|
| - |
|
234636 |
lastComparison = Boolean.valueOf(isSetItemCondition()).compareTo(typedOther.isSetItemCondition());
|
| - |
|
234637 |
if (lastComparison != 0) {
|
| - |
|
234638 |
return lastComparison;
|
| - |
|
234639 |
}
|
| - |
|
234640 |
if (isSetItemCondition()) {
|
| - |
|
234641 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemCondition, typedOther.itemCondition);
|
| - |
|
234642 |
if (lastComparison != 0) {
|
| - |
|
234643 |
return lastComparison;
|
| - |
|
234644 |
}
|
| - |
|
234645 |
}
|
| - |
|
234646 |
lastComparison = Boolean.valueOf(isSetOverrideWarranty()).compareTo(typedOther.isSetOverrideWarranty());
|
| - |
|
234647 |
if (lastComparison != 0) {
|
| - |
|
234648 |
return lastComparison;
|
| - |
|
234649 |
}
|
| - |
|
234650 |
if (isSetOverrideWarranty()) {
|
| - |
|
234651 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.overrideWarranty, typedOther.overrideWarranty);
|
| - |
|
234652 |
if (lastComparison != 0) {
|
| - |
|
234653 |
return lastComparison;
|
| - |
|
234654 |
}
|
| - |
|
234655 |
}
|
| - |
|
234656 |
return 0;
|
| - |
|
234657 |
}
|
| - |
|
234658 |
|
| - |
|
234659 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
234660 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
234661 |
}
|
| - |
|
234662 |
|
| - |
|
234663 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
234664 |
org.apache.thrift.protocol.TField field;
|
| - |
|
234665 |
iprot.readStructBegin();
|
| - |
|
234666 |
while (true)
|
| - |
|
234667 |
{
|
| - |
|
234668 |
field = iprot.readFieldBegin();
|
| - |
|
234669 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
234670 |
break;
|
| - |
|
234671 |
}
|
| - |
|
234672 |
switch (field.id) {
|
| - |
|
234673 |
case 1: // CUSTOMER_ID
|
| - |
|
234674 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
234675 |
this.customerId = iprot.readI64();
|
| - |
|
234676 |
setCustomerIdIsSet(true);
|
| - |
|
234677 |
} else {
|
| - |
|
234678 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
234679 |
}
|
| - |
|
234680 |
break;
|
| - |
|
234681 |
case 2: // RETURN_ORDERS_MAP
|
| - |
|
234682 |
if (field.type == org.apache.thrift.protocol.TType.MAP) {
|
| - |
|
234683 |
{
|
| - |
|
234684 |
org.apache.thrift.protocol.TMap _map823 = iprot.readMapBegin();
|
| - |
|
234685 |
this.returnOrdersMap = new HashMap<Long,Long>(2*_map823.size);
|
| - |
|
234686 |
for (int _i824 = 0; _i824 < _map823.size; ++_i824)
|
| - |
|
234687 |
{
|
| - |
|
234688 |
long _key825; // required
|
| - |
|
234689 |
long _val826; // required
|
| - |
|
234690 |
_key825 = iprot.readI64();
|
| - |
|
234691 |
_val826 = iprot.readI64();
|
| - |
|
234692 |
this.returnOrdersMap.put(_key825, _val826);
|
| - |
|
234693 |
}
|
| - |
|
234694 |
iprot.readMapEnd();
|
| - |
|
234695 |
}
|
| - |
|
234696 |
} else {
|
| - |
|
234697 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
234698 |
}
|
| - |
|
234699 |
break;
|
| - |
|
234700 |
case 3: // ITEM_CONDITION
|
| - |
|
234701 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
234702 |
this.itemCondition = iprot.readString();
|
| - |
|
234703 |
} else {
|
| - |
|
234704 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
234705 |
}
|
| - |
|
234706 |
break;
|
| - |
|
234707 |
case 4: // OVERRIDE_WARRANTY
|
| - |
|
234708 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| - |
|
234709 |
this.overrideWarranty = iprot.readBool();
|
| - |
|
234710 |
setOverrideWarrantyIsSet(true);
|
| - |
|
234711 |
} else {
|
| - |
|
234712 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
234713 |
}
|
| - |
|
234714 |
break;
|
| - |
|
234715 |
default:
|
| - |
|
234716 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
234717 |
}
|
| - |
|
234718 |
iprot.readFieldEnd();
|
| - |
|
234719 |
}
|
| - |
|
234720 |
iprot.readStructEnd();
|
| - |
|
234721 |
validate();
|
| - |
|
234722 |
}
|
| - |
|
234723 |
|
| - |
|
234724 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
234725 |
validate();
|
| - |
|
234726 |
|
| - |
|
234727 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
234728 |
oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
|
| - |
|
234729 |
oprot.writeI64(this.customerId);
|
| - |
|
234730 |
oprot.writeFieldEnd();
|
| - |
|
234731 |
if (this.returnOrdersMap != null) {
|
| - |
|
234732 |
oprot.writeFieldBegin(RETURN_ORDERS_MAP_FIELD_DESC);
|
| - |
|
234733 |
{
|
| - |
|
234734 |
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.returnOrdersMap.size()));
|
| - |
|
234735 |
for (Map.Entry<Long, Long> _iter827 : this.returnOrdersMap.entrySet())
|
| - |
|
234736 |
{
|
| - |
|
234737 |
oprot.writeI64(_iter827.getKey());
|
| - |
|
234738 |
oprot.writeI64(_iter827.getValue());
|
| - |
|
234739 |
}
|
| - |
|
234740 |
oprot.writeMapEnd();
|
| - |
|
234741 |
}
|
| - |
|
234742 |
oprot.writeFieldEnd();
|
| - |
|
234743 |
}
|
| - |
|
234744 |
if (this.itemCondition != null) {
|
| - |
|
234745 |
oprot.writeFieldBegin(ITEM_CONDITION_FIELD_DESC);
|
| - |
|
234746 |
oprot.writeString(this.itemCondition);
|
| - |
|
234747 |
oprot.writeFieldEnd();
|
| - |
|
234748 |
}
|
| - |
|
234749 |
oprot.writeFieldBegin(OVERRIDE_WARRANTY_FIELD_DESC);
|
| - |
|
234750 |
oprot.writeBool(this.overrideWarranty);
|
| - |
|
234751 |
oprot.writeFieldEnd();
|
| - |
|
234752 |
oprot.writeFieldStop();
|
| - |
|
234753 |
oprot.writeStructEnd();
|
| - |
|
234754 |
}
|
| - |
|
234755 |
|
| - |
|
234756 |
@Override
|
| - |
|
234757 |
public String toString() {
|
| - |
|
234758 |
StringBuilder sb = new StringBuilder("validateReturnTransaction_args(");
|
| - |
|
234759 |
boolean first = true;
|
| - |
|
234760 |
|
| - |
|
234761 |
sb.append("customerId:");
|
| - |
|
234762 |
sb.append(this.customerId);
|
| - |
|
234763 |
first = false;
|
| - |
|
234764 |
if (!first) sb.append(", ");
|
| - |
|
234765 |
sb.append("returnOrdersMap:");
|
| - |
|
234766 |
if (this.returnOrdersMap == null) {
|
| - |
|
234767 |
sb.append("null");
|
| - |
|
234768 |
} else {
|
| - |
|
234769 |
sb.append(this.returnOrdersMap);
|
| - |
|
234770 |
}
|
| - |
|
234771 |
first = false;
|
| - |
|
234772 |
if (!first) sb.append(", ");
|
| - |
|
234773 |
sb.append("itemCondition:");
|
| - |
|
234774 |
if (this.itemCondition == null) {
|
| - |
|
234775 |
sb.append("null");
|
| - |
|
234776 |
} else {
|
| - |
|
234777 |
sb.append(this.itemCondition);
|
| - |
|
234778 |
}
|
| - |
|
234779 |
first = false;
|
| - |
|
234780 |
if (!first) sb.append(", ");
|
| - |
|
234781 |
sb.append("overrideWarranty:");
|
| - |
|
234782 |
sb.append(this.overrideWarranty);
|
| - |
|
234783 |
first = false;
|
| - |
|
234784 |
sb.append(")");
|
| - |
|
234785 |
return sb.toString();
|
| - |
|
234786 |
}
|
| - |
|
234787 |
|
| - |
|
234788 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
234789 |
// check for required fields
|
| - |
|
234790 |
}
|
| - |
|
234791 |
|
| - |
|
234792 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
234793 |
try {
|
| - |
|
234794 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
234795 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
234796 |
throw new java.io.IOException(te);
|
| - |
|
234797 |
}
|
| - |
|
234798 |
}
|
| - |
|
234799 |
|
| - |
|
234800 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
234801 |
try {
|
| - |
|
234802 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
234803 |
__isset_bit_vector = new BitSet(1);
|
| - |
|
234804 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
234805 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
234806 |
throw new java.io.IOException(te);
|
| - |
|
234807 |
}
|
| - |
|
234808 |
}
|
| - |
|
234809 |
|
| - |
|
234810 |
}
|
| - |
|
234811 |
|
| - |
|
234812 |
public static class validateReturnTransaction_result implements org.apache.thrift.TBase<validateReturnTransaction_result, validateReturnTransaction_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
234813 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateReturnTransaction_result");
|
| - |
|
234814 |
|
| - |
|
234815 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
|
| - |
|
234816 |
|
| - |
|
234817 |
private boolean success; // required
|
| - |
|
234818 |
|
| - |
|
234819 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
234820 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
234821 |
SUCCESS((short)0, "success");
|
| - |
|
234822 |
|
| - |
|
234823 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
234824 |
|
| - |
|
234825 |
static {
|
| - |
|
234826 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
234827 |
byName.put(field.getFieldName(), field);
|
| - |
|
234828 |
}
|
| - |
|
234829 |
}
|
| - |
|
234830 |
|
| - |
|
234831 |
/**
|
| - |
|
234832 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
234833 |
*/
|
| - |
|
234834 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
234835 |
switch(fieldId) {
|
| - |
|
234836 |
case 0: // SUCCESS
|
| - |
|
234837 |
return SUCCESS;
|
| - |
|
234838 |
default:
|
| - |
|
234839 |
return null;
|
| - |
|
234840 |
}
|
| - |
|
234841 |
}
|
| - |
|
234842 |
|
| - |
|
234843 |
/**
|
| - |
|
234844 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
234845 |
* if it is not found.
|
| - |
|
234846 |
*/
|
| - |
|
234847 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
234848 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
234849 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
234850 |
return fields;
|
| - |
|
234851 |
}
|
| - |
|
234852 |
|
| - |
|
234853 |
/**
|
| - |
|
234854 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
234855 |
*/
|
| - |
|
234856 |
public static _Fields findByName(String name) {
|
| - |
|
234857 |
return byName.get(name);
|
| - |
|
234858 |
}
|
| - |
|
234859 |
|
| - |
|
234860 |
private final short _thriftId;
|
| - |
|
234861 |
private final String _fieldName;
|
| - |
|
234862 |
|
| - |
|
234863 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
234864 |
_thriftId = thriftId;
|
| - |
|
234865 |
_fieldName = fieldName;
|
| - |
|
234866 |
}
|
| - |
|
234867 |
|
| - |
|
234868 |
public short getThriftFieldId() {
|
| - |
|
234869 |
return _thriftId;
|
| - |
|
234870 |
}
|
| - |
|
234871 |
|
| - |
|
234872 |
public String getFieldName() {
|
| - |
|
234873 |
return _fieldName;
|
| - |
|
234874 |
}
|
| - |
|
234875 |
}
|
| - |
|
234876 |
|
| - |
|
234877 |
// isset id assignments
|
| - |
|
234878 |
private static final int __SUCCESS_ISSET_ID = 0;
|
| - |
|
234879 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| - |
|
234880 |
|
| - |
|
234881 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
234882 |
static {
|
| - |
|
234883 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
234884 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
234885 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| - |
|
234886 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
234887 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateReturnTransaction_result.class, metaDataMap);
|
| - |
|
234888 |
}
|
| - |
|
234889 |
|
| - |
|
234890 |
public validateReturnTransaction_result() {
|
| - |
|
234891 |
}
|
| - |
|
234892 |
|
| - |
|
234893 |
public validateReturnTransaction_result(
|
| - |
|
234894 |
boolean success)
|
| - |
|
234895 |
{
|
| - |
|
234896 |
this();
|
| - |
|
234897 |
this.success = success;
|
| - |
|
234898 |
setSuccessIsSet(true);
|
| - |
|
234899 |
}
|
| - |
|
234900 |
|
| - |
|
234901 |
/**
|
| - |
|
234902 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
234903 |
*/
|
| - |
|
234904 |
public validateReturnTransaction_result(validateReturnTransaction_result other) {
|
| - |
|
234905 |
__isset_bit_vector.clear();
|
| - |
|
234906 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
234907 |
this.success = other.success;
|
| - |
|
234908 |
}
|
| - |
|
234909 |
|
| - |
|
234910 |
public validateReturnTransaction_result deepCopy() {
|
| - |
|
234911 |
return new validateReturnTransaction_result(this);
|
| - |
|
234912 |
}
|
| - |
|
234913 |
|
| - |
|
234914 |
@Override
|
| - |
|
234915 |
public void clear() {
|
| - |
|
234916 |
setSuccessIsSet(false);
|
| - |
|
234917 |
this.success = false;
|
| - |
|
234918 |
}
|
| - |
|
234919 |
|
| - |
|
234920 |
public boolean isSuccess() {
|
| - |
|
234921 |
return this.success;
|
| - |
|
234922 |
}
|
| - |
|
234923 |
|
| - |
|
234924 |
public void setSuccess(boolean success) {
|
| - |
|
234925 |
this.success = success;
|
| - |
|
234926 |
setSuccessIsSet(true);
|
| - |
|
234927 |
}
|
| - |
|
234928 |
|
| - |
|
234929 |
public void unsetSuccess() {
|
| - |
|
234930 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| - |
|
234931 |
}
|
| - |
|
234932 |
|
| - |
|
234933 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
234934 |
public boolean isSetSuccess() {
|
| - |
|
234935 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| - |
|
234936 |
}
|
| - |
|
234937 |
|
| - |
|
234938 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
234939 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| - |
|
234940 |
}
|
| - |
|
234941 |
|
| - |
|
234942 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
234943 |
switch (field) {
|
| - |
|
234944 |
case SUCCESS:
|
| - |
|
234945 |
if (value == null) {
|
| - |
|
234946 |
unsetSuccess();
|
| - |
|
234947 |
} else {
|
| - |
|
234948 |
setSuccess((Boolean)value);
|
| - |
|
234949 |
}
|
| - |
|
234950 |
break;
|
| - |
|
234951 |
|
| - |
|
234952 |
}
|
| - |
|
234953 |
}
|
| - |
|
234954 |
|
| - |
|
234955 |
public Object getFieldValue(_Fields field) {
|
| - |
|
234956 |
switch (field) {
|
| - |
|
234957 |
case SUCCESS:
|
| - |
|
234958 |
return Boolean.valueOf(isSuccess());
|
| - |
|
234959 |
|
| - |
|
234960 |
}
|
| - |
|
234961 |
throw new IllegalStateException();
|
| - |
|
234962 |
}
|
| - |
|
234963 |
|
| - |
|
234964 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
234965 |
public boolean isSet(_Fields field) {
|
| - |
|
234966 |
if (field == null) {
|
| - |
|
234967 |
throw new IllegalArgumentException();
|
| - |
|
234968 |
}
|
| - |
|
234969 |
|
| - |
|
234970 |
switch (field) {
|
| - |
|
234971 |
case SUCCESS:
|
| - |
|
234972 |
return isSetSuccess();
|
| - |
|
234973 |
}
|
| - |
|
234974 |
throw new IllegalStateException();
|
| - |
|
234975 |
}
|
| - |
|
234976 |
|
| - |
|
234977 |
@Override
|
| - |
|
234978 |
public boolean equals(Object that) {
|
| - |
|
234979 |
if (that == null)
|
| - |
|
234980 |
return false;
|
| - |
|
234981 |
if (that instanceof validateReturnTransaction_result)
|
| - |
|
234982 |
return this.equals((validateReturnTransaction_result)that);
|
| - |
|
234983 |
return false;
|
| - |
|
234984 |
}
|
| - |
|
234985 |
|
| - |
|
234986 |
public boolean equals(validateReturnTransaction_result that) {
|
| - |
|
234987 |
if (that == null)
|
| - |
|
234988 |
return false;
|
| - |
|
234989 |
|
| - |
|
234990 |
boolean this_present_success = true;
|
| - |
|
234991 |
boolean that_present_success = true;
|
| - |
|
234992 |
if (this_present_success || that_present_success) {
|
| - |
|
234993 |
if (!(this_present_success && that_present_success))
|
| - |
|
234994 |
return false;
|
| - |
|
234995 |
if (this.success != that.success)
|
| - |
|
234996 |
return false;
|
| - |
|
234997 |
}
|
| - |
|
234998 |
|
| - |
|
234999 |
return true;
|
| - |
|
235000 |
}
|
| - |
|
235001 |
|
| - |
|
235002 |
@Override
|
| - |
|
235003 |
public int hashCode() {
|
| - |
|
235004 |
return 0;
|
| - |
|
235005 |
}
|
| - |
|
235006 |
|
| - |
|
235007 |
public int compareTo(validateReturnTransaction_result other) {
|
| - |
|
235008 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
235009 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
235010 |
}
|
| - |
|
235011 |
|
| - |
|
235012 |
int lastComparison = 0;
|
| - |
|
235013 |
validateReturnTransaction_result typedOther = (validateReturnTransaction_result)other;
|
| - |
|
235014 |
|
| - |
|
235015 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
235016 |
if (lastComparison != 0) {
|
| - |
|
235017 |
return lastComparison;
|
| - |
|
235018 |
}
|
| - |
|
235019 |
if (isSetSuccess()) {
|
| - |
|
235020 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
235021 |
if (lastComparison != 0) {
|
| - |
|
235022 |
return lastComparison;
|
| - |
|
235023 |
}
|
| - |
|
235024 |
}
|
| - |
|
235025 |
return 0;
|
| - |
|
235026 |
}
|
| - |
|
235027 |
|
| - |
|
235028 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
235029 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
235030 |
}
|
| - |
|
235031 |
|
| - |
|
235032 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
235033 |
org.apache.thrift.protocol.TField field;
|
| - |
|
235034 |
iprot.readStructBegin();
|
| - |
|
235035 |
while (true)
|
| - |
|
235036 |
{
|
| - |
|
235037 |
field = iprot.readFieldBegin();
|
| - |
|
235038 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
235039 |
break;
|
| - |
|
235040 |
}
|
| - |
|
235041 |
switch (field.id) {
|
| - |
|
235042 |
case 0: // SUCCESS
|
| - |
|
235043 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| - |
|
235044 |
this.success = iprot.readBool();
|
| - |
|
235045 |
setSuccessIsSet(true);
|
| - |
|
235046 |
} else {
|
| - |
|
235047 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
235048 |
}
|
| - |
|
235049 |
break;
|
| - |
|
235050 |
default:
|
| - |
|
235051 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
235052 |
}
|
| - |
|
235053 |
iprot.readFieldEnd();
|
| - |
|
235054 |
}
|
| - |
|
235055 |
iprot.readStructEnd();
|
| - |
|
235056 |
validate();
|
| - |
|
235057 |
}
|
| - |
|
235058 |
|
| - |
|
235059 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
235060 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
235061 |
|
| - |
|
235062 |
if (this.isSetSuccess()) {
|
| - |
|
235063 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
235064 |
oprot.writeBool(this.success);
|
| - |
|
235065 |
oprot.writeFieldEnd();
|
| - |
|
235066 |
}
|
| - |
|
235067 |
oprot.writeFieldStop();
|
| - |
|
235068 |
oprot.writeStructEnd();
|
| - |
|
235069 |
}
|
| - |
|
235070 |
|
| - |
|
235071 |
@Override
|
| - |
|
235072 |
public String toString() {
|
| - |
|
235073 |
StringBuilder sb = new StringBuilder("validateReturnTransaction_result(");
|
| - |
|
235074 |
boolean first = true;
|
| - |
|
235075 |
|
| - |
|
235076 |
sb.append("success:");
|
| - |
|
235077 |
sb.append(this.success);
|
| - |
|
235078 |
first = false;
|
| - |
|
235079 |
sb.append(")");
|
| - |
|
235080 |
return sb.toString();
|
| - |
|
235081 |
}
|
| - |
|
235082 |
|
| 233919 |
public void validate() throws org.apache.thrift.TException {
|
235083 |
public void validate() throws org.apache.thrift.TException {
|
| 233920 |
// check for required fields
|
235084 |
// check for required fields
|
| 233921 |
}
|
235085 |
}
|
| 233922 |
|
235086 |
|
| 233923 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
235087 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|