| Line 259... |
Line 259... |
| 259 |
|
259 |
|
| 260 |
public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException;
|
260 |
public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 261 |
|
261 |
|
| 262 |
public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
262 |
public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 263 |
|
263 |
|
| - |
|
264 |
public List<InTransitInventory> getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException;
|
| - |
|
265 |
|
| 264 |
}
|
266 |
}
|
| 265 |
|
267 |
|
| 266 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
268 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 267 |
|
269 |
|
| 268 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
270 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 351... |
Line 353... |
| 351 |
|
353 |
|
| 352 |
public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
|
354 |
public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
|
| 353 |
|
355 |
|
| 354 |
public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
356 |
public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| 355 |
|
357 |
|
| - |
|
358 |
public void getInTransitInventory(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitInventory_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
359 |
|
| 356 |
}
|
360 |
}
|
| 357 |
|
361 |
|
| 358 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
362 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 359 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
363 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 360 |
public Factory() {}
|
364 |
public Factory() {}
|
| Line 1471... |
Line 1475... |
| 1471 |
throw result.wex;
|
1475 |
throw result.wex;
|
| 1472 |
}
|
1476 |
}
|
| 1473 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
|
1477 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
|
| 1474 |
}
|
1478 |
}
|
| 1475 |
|
1479 |
|
| - |
|
1480 |
public List<InTransitInventory> getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException
|
| - |
|
1481 |
{
|
| - |
|
1482 |
send_getInTransitInventory(originWarehouseId);
|
| - |
|
1483 |
return recv_getInTransitInventory();
|
| - |
|
1484 |
}
|
| - |
|
1485 |
|
| - |
|
1486 |
public void send_getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException
|
| - |
|
1487 |
{
|
| - |
|
1488 |
getInTransitInventory_args args = new getInTransitInventory_args();
|
| - |
|
1489 |
args.setOriginWarehouseId(originWarehouseId);
|
| - |
|
1490 |
sendBase("getInTransitInventory", args);
|
| - |
|
1491 |
}
|
| - |
|
1492 |
|
| - |
|
1493 |
public List<InTransitInventory> recv_getInTransitInventory() throws org.apache.thrift.TException
|
| - |
|
1494 |
{
|
| - |
|
1495 |
getInTransitInventory_result result = new getInTransitInventory_result();
|
| - |
|
1496 |
receiveBase(result, "getInTransitInventory");
|
| - |
|
1497 |
if (result.isSetSuccess()) {
|
| - |
|
1498 |
return result.success;
|
| - |
|
1499 |
}
|
| - |
|
1500 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
|
| - |
|
1501 |
}
|
| - |
|
1502 |
|
| 1476 |
}
|
1503 |
}
|
| 1477 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
1504 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 1478 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
1505 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 1479 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
1506 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 1480 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
1507 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 3038... |
Line 3065... |
| 3038 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
3065 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 3039 |
return (new Client(prot)).recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
|
3066 |
return (new Client(prot)).recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
|
| 3040 |
}
|
3067 |
}
|
| 3041 |
}
|
3068 |
}
|
| 3042 |
|
3069 |
|
| - |
|
3070 |
public void getInTransitInventory(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getInTransitInventory_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
3071 |
checkReady();
|
| - |
|
3072 |
getInTransitInventory_call method_call = new getInTransitInventory_call(originWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
3073 |
this.___currentMethod = method_call;
|
| - |
|
3074 |
___manager.call(method_call);
|
| - |
|
3075 |
}
|
| - |
|
3076 |
|
| - |
|
3077 |
public static class getInTransitInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
3078 |
private long originWarehouseId;
|
| - |
|
3079 |
public getInTransitInventory_call(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getInTransitInventory_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 {
|
| - |
|
3080 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
3081 |
this.originWarehouseId = originWarehouseId;
|
| - |
|
3082 |
}
|
| - |
|
3083 |
|
| - |
|
3084 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
3085 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInTransitInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
3086 |
getInTransitInventory_args args = new getInTransitInventory_args();
|
| - |
|
3087 |
args.setOriginWarehouseId(originWarehouseId);
|
| - |
|
3088 |
args.write(prot);
|
| - |
|
3089 |
prot.writeMessageEnd();
|
| - |
|
3090 |
}
|
| - |
|
3091 |
|
| - |
|
3092 |
public List<InTransitInventory> getResult() throws org.apache.thrift.TException {
|
| - |
|
3093 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
3094 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
3095 |
}
|
| - |
|
3096 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
3097 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
3098 |
return (new Client(prot)).recv_getInTransitInventory();
|
| - |
|
3099 |
}
|
| - |
|
3100 |
}
|
| - |
|
3101 |
|
| 3043 |
}
|
3102 |
}
|
| 3044 |
|
3103 |
|
| 3045 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
3104 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 3046 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
3105 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 3047 |
public Processor(I iface) {
|
3106 |
public Processor(I iface) {
|
| Line 3095... |
Line 3154... |
| 3095 |
processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
|
3154 |
processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
|
| 3096 |
processMap.put("scanForTransferOut", new scanForTransferOut());
|
3155 |
processMap.put("scanForTransferOut", new scanForTransferOut());
|
| 3097 |
processMap.put("scanForTransferIn", new scanForTransferIn());
|
3156 |
processMap.put("scanForTransferIn", new scanForTransferIn());
|
| 3098 |
processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
|
3157 |
processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
|
| 3099 |
processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
|
3158 |
processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
|
| - |
|
3159 |
processMap.put("getInTransitInventory", new getInTransitInventory());
|
| 3100 |
return processMap;
|
3160 |
return processMap;
|
| 3101 |
}
|
3161 |
}
|
| 3102 |
|
3162 |
|
| 3103 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
3163 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
| 3104 |
public getInventoryItem() {
|
3164 |
public getInventoryItem() {
|
| Line 3901... |
Line 3961... |
| 3901 |
}
|
3961 |
}
|
| 3902 |
return result;
|
3962 |
return result;
|
| 3903 |
}
|
3963 |
}
|
| 3904 |
}
|
3964 |
}
|
| 3905 |
|
3965 |
|
| - |
|
3966 |
private static class getInTransitInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInTransitInventory_args> {
|
| - |
|
3967 |
public getInTransitInventory() {
|
| - |
|
3968 |
super("getInTransitInventory");
|
| - |
|
3969 |
}
|
| - |
|
3970 |
|
| - |
|
3971 |
protected getInTransitInventory_args getEmptyArgsInstance() {
|
| - |
|
3972 |
return new getInTransitInventory_args();
|
| - |
|
3973 |
}
|
| - |
|
3974 |
|
| - |
|
3975 |
protected getInTransitInventory_result getResult(I iface, getInTransitInventory_args args) throws org.apache.thrift.TException {
|
| - |
|
3976 |
getInTransitInventory_result result = new getInTransitInventory_result();
|
| - |
|
3977 |
result.success = iface.getInTransitInventory(args.originWarehouseId);
|
| - |
|
3978 |
return result;
|
| - |
|
3979 |
}
|
| - |
|
3980 |
}
|
| - |
|
3981 |
|
| 3906 |
}
|
3982 |
}
|
| 3907 |
|
3983 |
|
| 3908 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
3984 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
| 3909 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
3985 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 3910 |
|
3986 |
|
| Line 5034... |
Line 5110... |
| 5034 |
}
|
5110 |
}
|
| 5035 |
}
|
5111 |
}
|
| 5036 |
|
5112 |
|
| 5037 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
5113 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 5038 |
try {
|
5114 |
try {
|
| - |
|
5115 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
5116 |
__isset_bit_vector = new BitSet(1);
|
| 5039 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
5117 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 5040 |
} catch (org.apache.thrift.TException te) {
|
5118 |
} catch (org.apache.thrift.TException te) {
|
| 5041 |
throw new java.io.IOException(te);
|
5119 |
throw new java.io.IOException(te);
|
| 5042 |
}
|
5120 |
}
|
| 5043 |
}
|
5121 |
}
|
| Line 35888... |
Line 35966... |
| 35888 |
}
|
35966 |
}
|
| 35889 |
first = false;
|
35967 |
first = false;
|
| 35890 |
sb.append(")");
|
35968 |
sb.append(")");
|
| 35891 |
return sb.toString();
|
35969 |
return sb.toString();
|
| 35892 |
}
|
35970 |
}
|
| - |
|
35971 |
|
| - |
|
35972 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
35973 |
// check for required fields
|
| - |
|
35974 |
}
|
| - |
|
35975 |
|
| - |
|
35976 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
35977 |
try {
|
| - |
|
35978 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
35979 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
35980 |
throw new java.io.IOException(te);
|
| - |
|
35981 |
}
|
| - |
|
35982 |
}
|
| - |
|
35983 |
|
| - |
|
35984 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
35985 |
try {
|
| - |
|
35986 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
35987 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
35988 |
throw new java.io.IOException(te);
|
| - |
|
35989 |
}
|
| - |
|
35990 |
}
|
| - |
|
35991 |
|
| - |
|
35992 |
}
|
| - |
|
35993 |
|
| - |
|
35994 |
public static class getInTransitInventory_args implements org.apache.thrift.TBase<getInTransitInventory_args, getInTransitInventory_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
35995 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInTransitInventory_args");
|
| - |
|
35996 |
|
| - |
|
35997 |
private static final org.apache.thrift.protocol.TField ORIGIN_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originWarehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| - |
|
35998 |
|
| - |
|
35999 |
private long originWarehouseId; // required
|
| - |
|
36000 |
|
| - |
|
36001 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
36002 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
36003 |
ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId");
|
| - |
|
36004 |
|
| - |
|
36005 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
36006 |
|
| - |
|
36007 |
static {
|
| - |
|
36008 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
36009 |
byName.put(field.getFieldName(), field);
|
| - |
|
36010 |
}
|
| - |
|
36011 |
}
|
| - |
|
36012 |
|
| - |
|
36013 |
/**
|
| - |
|
36014 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
36015 |
*/
|
| - |
|
36016 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
36017 |
switch(fieldId) {
|
| - |
|
36018 |
case 1: // ORIGIN_WAREHOUSE_ID
|
| - |
|
36019 |
return ORIGIN_WAREHOUSE_ID;
|
| - |
|
36020 |
default:
|
| - |
|
36021 |
return null;
|
| - |
|
36022 |
}
|
| - |
|
36023 |
}
|
| - |
|
36024 |
|
| - |
|
36025 |
/**
|
| - |
|
36026 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
36027 |
* if it is not found.
|
| - |
|
36028 |
*/
|
| - |
|
36029 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
36030 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
36031 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
36032 |
return fields;
|
| - |
|
36033 |
}
|
| - |
|
36034 |
|
| - |
|
36035 |
/**
|
| - |
|
36036 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
36037 |
*/
|
| - |
|
36038 |
public static _Fields findByName(String name) {
|
| - |
|
36039 |
return byName.get(name);
|
| - |
|
36040 |
}
|
| - |
|
36041 |
|
| - |
|
36042 |
private final short _thriftId;
|
| - |
|
36043 |
private final String _fieldName;
|
| - |
|
36044 |
|
| - |
|
36045 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
36046 |
_thriftId = thriftId;
|
| - |
|
36047 |
_fieldName = fieldName;
|
| - |
|
36048 |
}
|
| - |
|
36049 |
|
| - |
|
36050 |
public short getThriftFieldId() {
|
| - |
|
36051 |
return _thriftId;
|
| - |
|
36052 |
}
|
| - |
|
36053 |
|
| - |
|
36054 |
public String getFieldName() {
|
| - |
|
36055 |
return _fieldName;
|
| - |
|
36056 |
}
|
| - |
|
36057 |
}
|
| - |
|
36058 |
|
| - |
|
36059 |
// isset id assignments
|
| - |
|
36060 |
private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
|
| - |
|
36061 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| - |
|
36062 |
|
| - |
|
36063 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
36064 |
static {
|
| - |
|
36065 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
36066 |
tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
36067 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
36068 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
36069 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInTransitInventory_args.class, metaDataMap);
|
| - |
|
36070 |
}
|
| - |
|
36071 |
|
| - |
|
36072 |
public getInTransitInventory_args() {
|
| - |
|
36073 |
}
|
| - |
|
36074 |
|
| - |
|
36075 |
public getInTransitInventory_args(
|
| - |
|
36076 |
long originWarehouseId)
|
| - |
|
36077 |
{
|
| - |
|
36078 |
this();
|
| - |
|
36079 |
this.originWarehouseId = originWarehouseId;
|
| - |
|
36080 |
setOriginWarehouseIdIsSet(true);
|
| - |
|
36081 |
}
|
| - |
|
36082 |
|
| - |
|
36083 |
/**
|
| - |
|
36084 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
36085 |
*/
|
| - |
|
36086 |
public getInTransitInventory_args(getInTransitInventory_args other) {
|
| - |
|
36087 |
__isset_bit_vector.clear();
|
| - |
|
36088 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
36089 |
this.originWarehouseId = other.originWarehouseId;
|
| - |
|
36090 |
}
|
| - |
|
36091 |
|
| - |
|
36092 |
public getInTransitInventory_args deepCopy() {
|
| - |
|
36093 |
return new getInTransitInventory_args(this);
|
| - |
|
36094 |
}
|
| - |
|
36095 |
|
| - |
|
36096 |
@Override
|
| - |
|
36097 |
public void clear() {
|
| - |
|
36098 |
setOriginWarehouseIdIsSet(false);
|
| - |
|
36099 |
this.originWarehouseId = 0;
|
| - |
|
36100 |
}
|
| - |
|
36101 |
|
| - |
|
36102 |
public long getOriginWarehouseId() {
|
| - |
|
36103 |
return this.originWarehouseId;
|
| - |
|
36104 |
}
|
| - |
|
36105 |
|
| - |
|
36106 |
public void setOriginWarehouseId(long originWarehouseId) {
|
| - |
|
36107 |
this.originWarehouseId = originWarehouseId;
|
| - |
|
36108 |
setOriginWarehouseIdIsSet(true);
|
| - |
|
36109 |
}
|
| - |
|
36110 |
|
| - |
|
36111 |
public void unsetOriginWarehouseId() {
|
| - |
|
36112 |
__isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
|
| - |
|
36113 |
}
|
| - |
|
36114 |
|
| - |
|
36115 |
/** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
|
| - |
|
36116 |
public boolean isSetOriginWarehouseId() {
|
| - |
|
36117 |
return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
|
| - |
|
36118 |
}
|
| - |
|
36119 |
|
| - |
|
36120 |
public void setOriginWarehouseIdIsSet(boolean value) {
|
| - |
|
36121 |
__isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
|
| - |
|
36122 |
}
|
| - |
|
36123 |
|
| - |
|
36124 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
36125 |
switch (field) {
|
| - |
|
36126 |
case ORIGIN_WAREHOUSE_ID:
|
| - |
|
36127 |
if (value == null) {
|
| - |
|
36128 |
unsetOriginWarehouseId();
|
| - |
|
36129 |
} else {
|
| - |
|
36130 |
setOriginWarehouseId((Long)value);
|
| - |
|
36131 |
}
|
| - |
|
36132 |
break;
|
| - |
|
36133 |
|
| - |
|
36134 |
}
|
| - |
|
36135 |
}
|
| - |
|
36136 |
|
| - |
|
36137 |
public Object getFieldValue(_Fields field) {
|
| - |
|
36138 |
switch (field) {
|
| - |
|
36139 |
case ORIGIN_WAREHOUSE_ID:
|
| - |
|
36140 |
return Long.valueOf(getOriginWarehouseId());
|
| - |
|
36141 |
|
| - |
|
36142 |
}
|
| - |
|
36143 |
throw new IllegalStateException();
|
| - |
|
36144 |
}
|
| - |
|
36145 |
|
| - |
|
36146 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
36147 |
public boolean isSet(_Fields field) {
|
| - |
|
36148 |
if (field == null) {
|
| - |
|
36149 |
throw new IllegalArgumentException();
|
| - |
|
36150 |
}
|
| - |
|
36151 |
|
| - |
|
36152 |
switch (field) {
|
| - |
|
36153 |
case ORIGIN_WAREHOUSE_ID:
|
| - |
|
36154 |
return isSetOriginWarehouseId();
|
| - |
|
36155 |
}
|
| - |
|
36156 |
throw new IllegalStateException();
|
| - |
|
36157 |
}
|
| - |
|
36158 |
|
| - |
|
36159 |
@Override
|
| - |
|
36160 |
public boolean equals(Object that) {
|
| - |
|
36161 |
if (that == null)
|
| - |
|
36162 |
return false;
|
| - |
|
36163 |
if (that instanceof getInTransitInventory_args)
|
| - |
|
36164 |
return this.equals((getInTransitInventory_args)that);
|
| - |
|
36165 |
return false;
|
| - |
|
36166 |
}
|
| - |
|
36167 |
|
| - |
|
36168 |
public boolean equals(getInTransitInventory_args that) {
|
| - |
|
36169 |
if (that == null)
|
| - |
|
36170 |
return false;
|
| - |
|
36171 |
|
| - |
|
36172 |
boolean this_present_originWarehouseId = true;
|
| - |
|
36173 |
boolean that_present_originWarehouseId = true;
|
| - |
|
36174 |
if (this_present_originWarehouseId || that_present_originWarehouseId) {
|
| - |
|
36175 |
if (!(this_present_originWarehouseId && that_present_originWarehouseId))
|
| - |
|
36176 |
return false;
|
| - |
|
36177 |
if (this.originWarehouseId != that.originWarehouseId)
|
| - |
|
36178 |
return false;
|
| - |
|
36179 |
}
|
| - |
|
36180 |
|
| - |
|
36181 |
return true;
|
| - |
|
36182 |
}
|
| - |
|
36183 |
|
| - |
|
36184 |
@Override
|
| - |
|
36185 |
public int hashCode() {
|
| - |
|
36186 |
return 0;
|
| - |
|
36187 |
}
|
| - |
|
36188 |
|
| - |
|
36189 |
public int compareTo(getInTransitInventory_args other) {
|
| - |
|
36190 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
36191 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
36192 |
}
|
| - |
|
36193 |
|
| - |
|
36194 |
int lastComparison = 0;
|
| - |
|
36195 |
getInTransitInventory_args typedOther = (getInTransitInventory_args)other;
|
| - |
|
36196 |
|
| - |
|
36197 |
lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
|
| - |
|
36198 |
if (lastComparison != 0) {
|
| - |
|
36199 |
return lastComparison;
|
| - |
|
36200 |
}
|
| - |
|
36201 |
if (isSetOriginWarehouseId()) {
|
| - |
|
36202 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
|
| - |
|
36203 |
if (lastComparison != 0) {
|
| - |
|
36204 |
return lastComparison;
|
| - |
|
36205 |
}
|
| - |
|
36206 |
}
|
| - |
|
36207 |
return 0;
|
| - |
|
36208 |
}
|
| - |
|
36209 |
|
| - |
|
36210 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
36211 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
36212 |
}
|
| - |
|
36213 |
|
| - |
|
36214 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
36215 |
org.apache.thrift.protocol.TField field;
|
| - |
|
36216 |
iprot.readStructBegin();
|
| - |
|
36217 |
while (true)
|
| - |
|
36218 |
{
|
| - |
|
36219 |
field = iprot.readFieldBegin();
|
| - |
|
36220 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
36221 |
break;
|
| - |
|
36222 |
}
|
| - |
|
36223 |
switch (field.id) {
|
| - |
|
36224 |
case 1: // ORIGIN_WAREHOUSE_ID
|
| - |
|
36225 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
36226 |
this.originWarehouseId = iprot.readI64();
|
| - |
|
36227 |
setOriginWarehouseIdIsSet(true);
|
| - |
|
36228 |
} else {
|
| - |
|
36229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
36230 |
}
|
| - |
|
36231 |
break;
|
| - |
|
36232 |
default:
|
| - |
|
36233 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
36234 |
}
|
| - |
|
36235 |
iprot.readFieldEnd();
|
| - |
|
36236 |
}
|
| - |
|
36237 |
iprot.readStructEnd();
|
| - |
|
36238 |
validate();
|
| - |
|
36239 |
}
|
| - |
|
36240 |
|
| - |
|
36241 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
36242 |
validate();
|
| - |
|
36243 |
|
| - |
|
36244 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
36245 |
oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
|
| - |
|
36246 |
oprot.writeI64(this.originWarehouseId);
|
| - |
|
36247 |
oprot.writeFieldEnd();
|
| - |
|
36248 |
oprot.writeFieldStop();
|
| - |
|
36249 |
oprot.writeStructEnd();
|
| - |
|
36250 |
}
|
| - |
|
36251 |
|
| - |
|
36252 |
@Override
|
| - |
|
36253 |
public String toString() {
|
| - |
|
36254 |
StringBuilder sb = new StringBuilder("getInTransitInventory_args(");
|
| - |
|
36255 |
boolean first = true;
|
| - |
|
36256 |
|
| - |
|
36257 |
sb.append("originWarehouseId:");
|
| - |
|
36258 |
sb.append(this.originWarehouseId);
|
| - |
|
36259 |
first = false;
|
| - |
|
36260 |
sb.append(")");
|
| - |
|
36261 |
return sb.toString();
|
| - |
|
36262 |
}
|
| - |
|
36263 |
|
| - |
|
36264 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
36265 |
// check for required fields
|
| - |
|
36266 |
}
|
| - |
|
36267 |
|
| - |
|
36268 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
36269 |
try {
|
| - |
|
36270 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
36271 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
36272 |
throw new java.io.IOException(te);
|
| - |
|
36273 |
}
|
| - |
|
36274 |
}
|
| - |
|
36275 |
|
| - |
|
36276 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
36277 |
try {
|
| - |
|
36278 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
36279 |
__isset_bit_vector = new BitSet(1);
|
| - |
|
36280 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
36281 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
36282 |
throw new java.io.IOException(te);
|
| - |
|
36283 |
}
|
| - |
|
36284 |
}
|
| - |
|
36285 |
|
| - |
|
36286 |
}
|
| - |
|
36287 |
|
| - |
|
36288 |
public static class getInTransitInventory_result implements org.apache.thrift.TBase<getInTransitInventory_result, getInTransitInventory_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
36289 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInTransitInventory_result");
|
| - |
|
36290 |
|
| - |
|
36291 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| - |
|
36292 |
|
| - |
|
36293 |
private List<InTransitInventory> success; // required
|
| - |
|
36294 |
|
| - |
|
36295 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
36296 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
36297 |
SUCCESS((short)0, "success");
|
| - |
|
36298 |
|
| - |
|
36299 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
36300 |
|
| - |
|
36301 |
static {
|
| - |
|
36302 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
36303 |
byName.put(field.getFieldName(), field);
|
| - |
|
36304 |
}
|
| - |
|
36305 |
}
|
| - |
|
36306 |
|
| - |
|
36307 |
/**
|
| - |
|
36308 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
36309 |
*/
|
| - |
|
36310 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
36311 |
switch(fieldId) {
|
| - |
|
36312 |
case 0: // SUCCESS
|
| - |
|
36313 |
return SUCCESS;
|
| - |
|
36314 |
default:
|
| - |
|
36315 |
return null;
|
| - |
|
36316 |
}
|
| - |
|
36317 |
}
|
| - |
|
36318 |
|
| - |
|
36319 |
/**
|
| - |
|
36320 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
36321 |
* if it is not found.
|
| - |
|
36322 |
*/
|
| - |
|
36323 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
36324 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
36325 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
36326 |
return fields;
|
| - |
|
36327 |
}
|
| - |
|
36328 |
|
| - |
|
36329 |
/**
|
| - |
|
36330 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
36331 |
*/
|
| - |
|
36332 |
public static _Fields findByName(String name) {
|
| - |
|
36333 |
return byName.get(name);
|
| - |
|
36334 |
}
|
| - |
|
36335 |
|
| - |
|
36336 |
private final short _thriftId;
|
| - |
|
36337 |
private final String _fieldName;
|
| - |
|
36338 |
|
| - |
|
36339 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
36340 |
_thriftId = thriftId;
|
| - |
|
36341 |
_fieldName = fieldName;
|
| - |
|
36342 |
}
|
| - |
|
36343 |
|
| - |
|
36344 |
public short getThriftFieldId() {
|
| - |
|
36345 |
return _thriftId;
|
| - |
|
36346 |
}
|
| - |
|
36347 |
|
| - |
|
36348 |
public String getFieldName() {
|
| - |
|
36349 |
return _fieldName;
|
| - |
|
36350 |
}
|
| - |
|
36351 |
}
|
| - |
|
36352 |
|
| - |
|
36353 |
// isset id assignments
|
| - |
|
36354 |
|
| - |
|
36355 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
36356 |
static {
|
| - |
|
36357 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
36358 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
36359 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| - |
|
36360 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InTransitInventory.class))));
|
| - |
|
36361 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
36362 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInTransitInventory_result.class, metaDataMap);
|
| - |
|
36363 |
}
|
| - |
|
36364 |
|
| - |
|
36365 |
public getInTransitInventory_result() {
|
| - |
|
36366 |
}
|
| - |
|
36367 |
|
| - |
|
36368 |
public getInTransitInventory_result(
|
| - |
|
36369 |
List<InTransitInventory> success)
|
| - |
|
36370 |
{
|
| - |
|
36371 |
this();
|
| - |
|
36372 |
this.success = success;
|
| - |
|
36373 |
}
|
| - |
|
36374 |
|
| - |
|
36375 |
/**
|
| - |
|
36376 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
36377 |
*/
|
| - |
|
36378 |
public getInTransitInventory_result(getInTransitInventory_result other) {
|
| - |
|
36379 |
if (other.isSetSuccess()) {
|
| - |
|
36380 |
List<InTransitInventory> __this__success = new ArrayList<InTransitInventory>();
|
| - |
|
36381 |
for (InTransitInventory other_element : other.success) {
|
| - |
|
36382 |
__this__success.add(new InTransitInventory(other_element));
|
| - |
|
36383 |
}
|
| - |
|
36384 |
this.success = __this__success;
|
| - |
|
36385 |
}
|
| - |
|
36386 |
}
|
| - |
|
36387 |
|
| - |
|
36388 |
public getInTransitInventory_result deepCopy() {
|
| - |
|
36389 |
return new getInTransitInventory_result(this);
|
| - |
|
36390 |
}
|
| - |
|
36391 |
|
| - |
|
36392 |
@Override
|
| - |
|
36393 |
public void clear() {
|
| - |
|
36394 |
this.success = null;
|
| - |
|
36395 |
}
|
| - |
|
36396 |
|
| - |
|
36397 |
public int getSuccessSize() {
|
| - |
|
36398 |
return (this.success == null) ? 0 : this.success.size();
|
| - |
|
36399 |
}
|
| - |
|
36400 |
|
| - |
|
36401 |
public java.util.Iterator<InTransitInventory> getSuccessIterator() {
|
| - |
|
36402 |
return (this.success == null) ? null : this.success.iterator();
|
| - |
|
36403 |
}
|
| - |
|
36404 |
|
| - |
|
36405 |
public void addToSuccess(InTransitInventory elem) {
|
| - |
|
36406 |
if (this.success == null) {
|
| - |
|
36407 |
this.success = new ArrayList<InTransitInventory>();
|
| - |
|
36408 |
}
|
| - |
|
36409 |
this.success.add(elem);
|
| - |
|
36410 |
}
|
| - |
|
36411 |
|
| - |
|
36412 |
public List<InTransitInventory> getSuccess() {
|
| - |
|
36413 |
return this.success;
|
| - |
|
36414 |
}
|
| - |
|
36415 |
|
| - |
|
36416 |
public void setSuccess(List<InTransitInventory> success) {
|
| - |
|
36417 |
this.success = success;
|
| - |
|
36418 |
}
|
| - |
|
36419 |
|
| - |
|
36420 |
public void unsetSuccess() {
|
| - |
|
36421 |
this.success = null;
|
| - |
|
36422 |
}
|
| - |
|
36423 |
|
| - |
|
36424 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
36425 |
public boolean isSetSuccess() {
|
| - |
|
36426 |
return this.success != null;
|
| - |
|
36427 |
}
|
| - |
|
36428 |
|
| - |
|
36429 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
36430 |
if (!value) {
|
| - |
|
36431 |
this.success = null;
|
| - |
|
36432 |
}
|
| - |
|
36433 |
}
|
| - |
|
36434 |
|
| - |
|
36435 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
36436 |
switch (field) {
|
| - |
|
36437 |
case SUCCESS:
|
| - |
|
36438 |
if (value == null) {
|
| - |
|
36439 |
unsetSuccess();
|
| - |
|
36440 |
} else {
|
| - |
|
36441 |
setSuccess((List<InTransitInventory>)value);
|
| - |
|
36442 |
}
|
| - |
|
36443 |
break;
|
| - |
|
36444 |
|
| - |
|
36445 |
}
|
| - |
|
36446 |
}
|
| - |
|
36447 |
|
| - |
|
36448 |
public Object getFieldValue(_Fields field) {
|
| - |
|
36449 |
switch (field) {
|
| - |
|
36450 |
case SUCCESS:
|
| - |
|
36451 |
return getSuccess();
|
| - |
|
36452 |
|
| - |
|
36453 |
}
|
| - |
|
36454 |
throw new IllegalStateException();
|
| - |
|
36455 |
}
|
| - |
|
36456 |
|
| - |
|
36457 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
36458 |
public boolean isSet(_Fields field) {
|
| - |
|
36459 |
if (field == null) {
|
| - |
|
36460 |
throw new IllegalArgumentException();
|
| - |
|
36461 |
}
|
| - |
|
36462 |
|
| - |
|
36463 |
switch (field) {
|
| - |
|
36464 |
case SUCCESS:
|
| - |
|
36465 |
return isSetSuccess();
|
| - |
|
36466 |
}
|
| - |
|
36467 |
throw new IllegalStateException();
|
| - |
|
36468 |
}
|
| - |
|
36469 |
|
| - |
|
36470 |
@Override
|
| - |
|
36471 |
public boolean equals(Object that) {
|
| - |
|
36472 |
if (that == null)
|
| - |
|
36473 |
return false;
|
| - |
|
36474 |
if (that instanceof getInTransitInventory_result)
|
| - |
|
36475 |
return this.equals((getInTransitInventory_result)that);
|
| - |
|
36476 |
return false;
|
| - |
|
36477 |
}
|
| - |
|
36478 |
|
| - |
|
36479 |
public boolean equals(getInTransitInventory_result that) {
|
| - |
|
36480 |
if (that == null)
|
| - |
|
36481 |
return false;
|
| - |
|
36482 |
|
| - |
|
36483 |
boolean this_present_success = true && this.isSetSuccess();
|
| - |
|
36484 |
boolean that_present_success = true && that.isSetSuccess();
|
| - |
|
36485 |
if (this_present_success || that_present_success) {
|
| - |
|
36486 |
if (!(this_present_success && that_present_success))
|
| - |
|
36487 |
return false;
|
| - |
|
36488 |
if (!this.success.equals(that.success))
|
| - |
|
36489 |
return false;
|
| - |
|
36490 |
}
|
| - |
|
36491 |
|
| - |
|
36492 |
return true;
|
| - |
|
36493 |
}
|
| - |
|
36494 |
|
| - |
|
36495 |
@Override
|
| - |
|
36496 |
public int hashCode() {
|
| - |
|
36497 |
return 0;
|
| - |
|
36498 |
}
|
| - |
|
36499 |
|
| - |
|
36500 |
public int compareTo(getInTransitInventory_result other) {
|
| - |
|
36501 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
36502 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
36503 |
}
|
| - |
|
36504 |
|
| - |
|
36505 |
int lastComparison = 0;
|
| - |
|
36506 |
getInTransitInventory_result typedOther = (getInTransitInventory_result)other;
|
| - |
|
36507 |
|
| - |
|
36508 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
36509 |
if (lastComparison != 0) {
|
| - |
|
36510 |
return lastComparison;
|
| - |
|
36511 |
}
|
| - |
|
36512 |
if (isSetSuccess()) {
|
| - |
|
36513 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
36514 |
if (lastComparison != 0) {
|
| - |
|
36515 |
return lastComparison;
|
| - |
|
36516 |
}
|
| - |
|
36517 |
}
|
| - |
|
36518 |
return 0;
|
| - |
|
36519 |
}
|
| - |
|
36520 |
|
| - |
|
36521 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
36522 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
36523 |
}
|
| - |
|
36524 |
|
| - |
|
36525 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
36526 |
org.apache.thrift.protocol.TField field;
|
| - |
|
36527 |
iprot.readStructBegin();
|
| - |
|
36528 |
while (true)
|
| - |
|
36529 |
{
|
| - |
|
36530 |
field = iprot.readFieldBegin();
|
| - |
|
36531 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
36532 |
break;
|
| - |
|
36533 |
}
|
| - |
|
36534 |
switch (field.id) {
|
| - |
|
36535 |
case 0: // SUCCESS
|
| - |
|
36536 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| - |
|
36537 |
{
|
| - |
|
36538 |
org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
|
| - |
|
36539 |
this.success = new ArrayList<InTransitInventory>(_list101.size);
|
| - |
|
36540 |
for (int _i102 = 0; _i102 < _list101.size; ++_i102)
|
| - |
|
36541 |
{
|
| - |
|
36542 |
InTransitInventory _elem103; // required
|
| - |
|
36543 |
_elem103 = new InTransitInventory();
|
| - |
|
36544 |
_elem103.read(iprot);
|
| - |
|
36545 |
this.success.add(_elem103);
|
| - |
|
36546 |
}
|
| - |
|
36547 |
iprot.readListEnd();
|
| - |
|
36548 |
}
|
| - |
|
36549 |
} else {
|
| - |
|
36550 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
36551 |
}
|
| - |
|
36552 |
break;
|
| - |
|
36553 |
default:
|
| - |
|
36554 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
36555 |
}
|
| - |
|
36556 |
iprot.readFieldEnd();
|
| - |
|
36557 |
}
|
| - |
|
36558 |
iprot.readStructEnd();
|
| - |
|
36559 |
validate();
|
| - |
|
36560 |
}
|
| - |
|
36561 |
|
| - |
|
36562 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
36563 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
36564 |
|
| - |
|
36565 |
if (this.isSetSuccess()) {
|
| - |
|
36566 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
36567 |
{
|
| - |
|
36568 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| - |
|
36569 |
for (InTransitInventory _iter104 : this.success)
|
| - |
|
36570 |
{
|
| - |
|
36571 |
_iter104.write(oprot);
|
| - |
|
36572 |
}
|
| - |
|
36573 |
oprot.writeListEnd();
|
| - |
|
36574 |
}
|
| - |
|
36575 |
oprot.writeFieldEnd();
|
| - |
|
36576 |
}
|
| - |
|
36577 |
oprot.writeFieldStop();
|
| - |
|
36578 |
oprot.writeStructEnd();
|
| - |
|
36579 |
}
|
| - |
|
36580 |
|
| - |
|
36581 |
@Override
|
| - |
|
36582 |
public String toString() {
|
| - |
|
36583 |
StringBuilder sb = new StringBuilder("getInTransitInventory_result(");
|
| - |
|
36584 |
boolean first = true;
|
| - |
|
36585 |
|
| - |
|
36586 |
sb.append("success:");
|
| - |
|
36587 |
if (this.success == null) {
|
| - |
|
36588 |
sb.append("null");
|
| - |
|
36589 |
} else {
|
| - |
|
36590 |
sb.append(this.success);
|
| - |
|
36591 |
}
|
| - |
|
36592 |
first = false;
|
| - |
|
36593 |
sb.append(")");
|
| - |
|
36594 |
return sb.toString();
|
| - |
|
36595 |
}
|
| 35893 |
|
36596 |
|
| 35894 |
public void validate() throws org.apache.thrift.TException {
|
36597 |
public void validate() throws org.apache.thrift.TException {
|
| 35895 |
// check for required fields
|
36598 |
// check for required fields
|
| 35896 |
}
|
36599 |
}
|
| 35897 |
|
36600 |
|