| Line 76... |
Line 76... |
| 76 |
* 1. Id of the fulfillment warehouse which was finally picked up.
|
76 |
* 1. Id of the fulfillment warehouse which was finally picked up.
|
| 77 |
* 2. Expected delay added by the category manager.
|
77 |
* 2. Expected delay added by the category manager.
|
| 78 |
* 3. Id of the billing warehouse which was finally picked up.
|
78 |
* 3. Id of the billing warehouse which was finally picked up.
|
| 79 |
*
|
79 |
*
|
| 80 |
* @param itemId
|
80 |
* @param itemId
|
| - |
|
81 |
* @param sourceId
|
| 81 |
*/
|
82 |
*/
|
| 82 |
public List<Long> getItemAvailabilityAtLocation(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
|
83 |
public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException;
|
| 83 |
|
84 |
|
| 84 |
public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
|
85 |
public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
|
| 85 |
|
86 |
|
| 86 |
/**
|
87 |
/**
|
| 87 |
* Returns the warehouse with the given id.
|
88 |
* Returns the warehouse with the given id.
|
| Line 91... |
Line 92... |
| 91 |
public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
92 |
public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
| 92 |
|
93 |
|
| 93 |
public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
94 |
public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
|
| 94 |
|
95 |
|
| 95 |
/**
|
96 |
/**
|
| 96 |
* Depending on reservation in the table, verify wether we can bill this order or not.
|
97 |
* Depending on reservation in the table, verify if we can bill this order or not.
|
| 97 |
*
|
98 |
*
|
| 98 |
* @param itemId
|
99 |
* @param itemId
|
| 99 |
* @param warehouseId
|
100 |
* @param warehouseId
|
| 100 |
* @param sourceId
|
101 |
* @param sourceId
|
| 101 |
* @param orderId
|
102 |
* @param orderId
|
| Line 294... |
Line 295... |
| 294 |
|
295 |
|
| 295 |
public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
|
296 |
public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
|
| 296 |
|
297 |
|
| 297 |
public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
298 |
public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| 298 |
|
299 |
|
| 299 |
public void getItemAvailabilityAtLocation(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
|
300 |
public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
|
| 300 |
|
301 |
|
| 301 |
public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
|
302 |
public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
|
| 302 |
|
303 |
|
| 303 |
public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
304 |
public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| 304 |
|
305 |
|
| Line 573... |
Line 574... |
| 573 |
throw result.cex;
|
574 |
throw result.cex;
|
| 574 |
}
|
575 |
}
|
| 575 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
|
576 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
|
| 576 |
}
|
577 |
}
|
| 577 |
|
578 |
|
| 578 |
public List<Long> getItemAvailabilityAtLocation(long itemId) throws InventoryServiceException, org.apache.thrift.TException
|
579 |
public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
|
| 579 |
{
|
580 |
{
|
| 580 |
send_getItemAvailabilityAtLocation(itemId);
|
581 |
send_getItemAvailabilityAtLocation(itemId, sourceId);
|
| 581 |
return recv_getItemAvailabilityAtLocation();
|
582 |
return recv_getItemAvailabilityAtLocation();
|
| 582 |
}
|
583 |
}
|
| 583 |
|
584 |
|
| 584 |
public void send_getItemAvailabilityAtLocation(long itemId) throws org.apache.thrift.TException
|
585 |
public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
|
| 585 |
{
|
586 |
{
|
| 586 |
getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
|
587 |
getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
|
| 587 |
args.setItemId(itemId);
|
588 |
args.setItemId(itemId);
|
| - |
|
589 |
args.setSourceId(sourceId);
|
| 588 |
sendBase("getItemAvailabilityAtLocation", args);
|
590 |
sendBase("getItemAvailabilityAtLocation", args);
|
| 589 |
}
|
591 |
}
|
| 590 |
|
592 |
|
| 591 |
public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
|
593 |
public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
|
| 592 |
{
|
594 |
{
|
| Line 1528... |
Line 1530... |
| 1528 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1530 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1529 |
return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
|
1531 |
return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
|
| 1530 |
}
|
1532 |
}
|
| 1531 |
}
|
1533 |
}
|
| 1532 |
|
1534 |
|
| 1533 |
public void getItemAvailabilityAtLocation(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
|
1535 |
public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
|
| 1534 |
checkReady();
|
1536 |
checkReady();
|
| 1535 |
getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
1537 |
getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
|
| 1536 |
this.___currentMethod = method_call;
|
1538 |
this.___currentMethod = method_call;
|
| 1537 |
___manager.call(method_call);
|
1539 |
___manager.call(method_call);
|
| 1538 |
}
|
1540 |
}
|
| 1539 |
|
1541 |
|
| 1540 |
public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1542 |
public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 1541 |
private long itemId;
|
1543 |
private long itemId;
|
| - |
|
1544 |
private long sourceId;
|
| 1542 |
public getItemAvailabilityAtLocation_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_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 {
|
1545 |
public getItemAvailabilityAtLocation_call(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_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 {
|
| 1543 |
super(client, protocolFactory, transport, resultHandler, false);
|
1546 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 1544 |
this.itemId = itemId;
|
1547 |
this.itemId = itemId;
|
| - |
|
1548 |
this.sourceId = sourceId;
|
| 1545 |
}
|
1549 |
}
|
| 1546 |
|
1550 |
|
| 1547 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1551 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1548 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1552 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1549 |
getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
|
1553 |
getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
|
| 1550 |
args.setItemId(itemId);
|
1554 |
args.setItemId(itemId);
|
| - |
|
1555 |
args.setSourceId(sourceId);
|
| 1551 |
args.write(prot);
|
1556 |
args.write(prot);
|
| 1552 |
prot.writeMessageEnd();
|
1557 |
prot.writeMessageEnd();
|
| 1553 |
}
|
1558 |
}
|
| 1554 |
|
1559 |
|
| 1555 |
public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
|
1560 |
public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
|
| Line 2681... |
Line 2686... |
| 2681 |
}
|
2686 |
}
|
| 2682 |
|
2687 |
|
| 2683 |
protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
|
2688 |
protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
|
| 2684 |
getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
|
2689 |
getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
|
| 2685 |
try {
|
2690 |
try {
|
| 2686 |
result.success = iface.getItemAvailabilityAtLocation(args.itemId);
|
2691 |
result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
|
| 2687 |
} catch (InventoryServiceException isex) {
|
2692 |
} catch (InventoryServiceException isex) {
|
| 2688 |
result.isex = isex;
|
2693 |
result.isex = isex;
|
| 2689 |
}
|
2694 |
}
|
| 2690 |
return result;
|
2695 |
return result;
|
| 2691 |
}
|
2696 |
}
|
| Line 8912... |
Line 8917... |
| 8912 |
|
8917 |
|
| 8913 |
public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable {
|
8918 |
public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable {
|
| 8914 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
|
8919 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
|
| 8915 |
|
8920 |
|
| 8916 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
8921 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| - |
|
8922 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| 8917 |
|
8923 |
|
| 8918 |
private long itemId; // required
|
8924 |
private long itemId; // required
|
| - |
|
8925 |
private long sourceId; // required
|
| 8919 |
|
8926 |
|
| 8920 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
8927 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 8921 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
8928 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 8922 |
ITEM_ID((short)1, "itemId");
|
8929 |
ITEM_ID((short)1, "itemId"),
|
| - |
|
8930 |
SOURCE_ID((short)2, "sourceId");
|
| 8923 |
|
8931 |
|
| 8924 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
8932 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 8925 |
|
8933 |
|
| 8926 |
static {
|
8934 |
static {
|
| 8927 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
8935 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 8934... |
Line 8942... |
| 8934 |
*/
|
8942 |
*/
|
| 8935 |
public static _Fields findByThriftId(int fieldId) {
|
8943 |
public static _Fields findByThriftId(int fieldId) {
|
| 8936 |
switch(fieldId) {
|
8944 |
switch(fieldId) {
|
| 8937 |
case 1: // ITEM_ID
|
8945 |
case 1: // ITEM_ID
|
| 8938 |
return ITEM_ID;
|
8946 |
return ITEM_ID;
|
| - |
|
8947 |
case 2: // SOURCE_ID
|
| - |
|
8948 |
return SOURCE_ID;
|
| 8939 |
default:
|
8949 |
default:
|
| 8940 |
return null;
|
8950 |
return null;
|
| 8941 |
}
|
8951 |
}
|
| 8942 |
}
|
8952 |
}
|
| 8943 |
|
8953 |
|
| Line 8975... |
Line 8985... |
| 8975 |
}
|
8985 |
}
|
| 8976 |
}
|
8986 |
}
|
| 8977 |
|
8987 |
|
| 8978 |
// isset id assignments
|
8988 |
// isset id assignments
|
| 8979 |
private static final int __ITEMID_ISSET_ID = 0;
|
8989 |
private static final int __ITEMID_ISSET_ID = 0;
|
| - |
|
8990 |
private static final int __SOURCEID_ISSET_ID = 1;
|
| 8980 |
private BitSet __isset_bit_vector = new BitSet(1);
|
8991 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 8981 |
|
8992 |
|
| 8982 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
8993 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 8983 |
static {
|
8994 |
static {
|
| 8984 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
8995 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 8985 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
8996 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 8986 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
8997 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
8998 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
8999 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 8987 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
9000 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 8988 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
|
9001 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
|
| 8989 |
}
|
9002 |
}
|
| 8990 |
|
9003 |
|
| 8991 |
public getItemAvailabilityAtLocation_args() {
|
9004 |
public getItemAvailabilityAtLocation_args() {
|
| 8992 |
}
|
9005 |
}
|
| 8993 |
|
9006 |
|
| 8994 |
public getItemAvailabilityAtLocation_args(
|
9007 |
public getItemAvailabilityAtLocation_args(
|
| 8995 |
long itemId)
|
9008 |
long itemId,
|
| - |
|
9009 |
long sourceId)
|
| 8996 |
{
|
9010 |
{
|
| 8997 |
this();
|
9011 |
this();
|
| 8998 |
this.itemId = itemId;
|
9012 |
this.itemId = itemId;
|
| 8999 |
setItemIdIsSet(true);
|
9013 |
setItemIdIsSet(true);
|
| - |
|
9014 |
this.sourceId = sourceId;
|
| - |
|
9015 |
setSourceIdIsSet(true);
|
| 9000 |
}
|
9016 |
}
|
| 9001 |
|
9017 |
|
| 9002 |
/**
|
9018 |
/**
|
| 9003 |
* Performs a deep copy on <i>other</i>.
|
9019 |
* Performs a deep copy on <i>other</i>.
|
| 9004 |
*/
|
9020 |
*/
|
| 9005 |
public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
|
9021 |
public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
|
| 9006 |
__isset_bit_vector.clear();
|
9022 |
__isset_bit_vector.clear();
|
| 9007 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
9023 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 9008 |
this.itemId = other.itemId;
|
9024 |
this.itemId = other.itemId;
|
| - |
|
9025 |
this.sourceId = other.sourceId;
|
| 9009 |
}
|
9026 |
}
|
| 9010 |
|
9027 |
|
| 9011 |
public getItemAvailabilityAtLocation_args deepCopy() {
|
9028 |
public getItemAvailabilityAtLocation_args deepCopy() {
|
| 9012 |
return new getItemAvailabilityAtLocation_args(this);
|
9029 |
return new getItemAvailabilityAtLocation_args(this);
|
| 9013 |
}
|
9030 |
}
|
| 9014 |
|
9031 |
|
| 9015 |
@Override
|
9032 |
@Override
|
| 9016 |
public void clear() {
|
9033 |
public void clear() {
|
| 9017 |
setItemIdIsSet(false);
|
9034 |
setItemIdIsSet(false);
|
| 9018 |
this.itemId = 0;
|
9035 |
this.itemId = 0;
|
| - |
|
9036 |
setSourceIdIsSet(false);
|
| - |
|
9037 |
this.sourceId = 0;
|
| 9019 |
}
|
9038 |
}
|
| 9020 |
|
9039 |
|
| 9021 |
public long getItemId() {
|
9040 |
public long getItemId() {
|
| 9022 |
return this.itemId;
|
9041 |
return this.itemId;
|
| 9023 |
}
|
9042 |
}
|
| Line 9038... |
Line 9057... |
| 9038 |
|
9057 |
|
| 9039 |
public void setItemIdIsSet(boolean value) {
|
9058 |
public void setItemIdIsSet(boolean value) {
|
| 9040 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
9059 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 9041 |
}
|
9060 |
}
|
| 9042 |
|
9061 |
|
| - |
|
9062 |
public long getSourceId() {
|
| - |
|
9063 |
return this.sourceId;
|
| - |
|
9064 |
}
|
| - |
|
9065 |
|
| - |
|
9066 |
public void setSourceId(long sourceId) {
|
| - |
|
9067 |
this.sourceId = sourceId;
|
| - |
|
9068 |
setSourceIdIsSet(true);
|
| - |
|
9069 |
}
|
| - |
|
9070 |
|
| - |
|
9071 |
public void unsetSourceId() {
|
| - |
|
9072 |
__isset_bit_vector.clear(__SOURCEID_ISSET_ID);
|
| - |
|
9073 |
}
|
| - |
|
9074 |
|
| - |
|
9075 |
/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
|
| - |
|
9076 |
public boolean isSetSourceId() {
|
| - |
|
9077 |
return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
|
| - |
|
9078 |
}
|
| - |
|
9079 |
|
| - |
|
9080 |
public void setSourceIdIsSet(boolean value) {
|
| - |
|
9081 |
__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
|
| - |
|
9082 |
}
|
| - |
|
9083 |
|
| 9043 |
public void setFieldValue(_Fields field, Object value) {
|
9084 |
public void setFieldValue(_Fields field, Object value) {
|
| 9044 |
switch (field) {
|
9085 |
switch (field) {
|
| 9045 |
case ITEM_ID:
|
9086 |
case ITEM_ID:
|
| 9046 |
if (value == null) {
|
9087 |
if (value == null) {
|
| 9047 |
unsetItemId();
|
9088 |
unsetItemId();
|
| 9048 |
} else {
|
9089 |
} else {
|
| 9049 |
setItemId((Long)value);
|
9090 |
setItemId((Long)value);
|
| 9050 |
}
|
9091 |
}
|
| 9051 |
break;
|
9092 |
break;
|
| 9052 |
|
9093 |
|
| - |
|
9094 |
case SOURCE_ID:
|
| - |
|
9095 |
if (value == null) {
|
| - |
|
9096 |
unsetSourceId();
|
| - |
|
9097 |
} else {
|
| - |
|
9098 |
setSourceId((Long)value);
|
| - |
|
9099 |
}
|
| - |
|
9100 |
break;
|
| - |
|
9101 |
|
| 9053 |
}
|
9102 |
}
|
| 9054 |
}
|
9103 |
}
|
| 9055 |
|
9104 |
|
| 9056 |
public Object getFieldValue(_Fields field) {
|
9105 |
public Object getFieldValue(_Fields field) {
|
| 9057 |
switch (field) {
|
9106 |
switch (field) {
|
| 9058 |
case ITEM_ID:
|
9107 |
case ITEM_ID:
|
| 9059 |
return Long.valueOf(getItemId());
|
9108 |
return Long.valueOf(getItemId());
|
| 9060 |
|
9109 |
|
| - |
|
9110 |
case SOURCE_ID:
|
| - |
|
9111 |
return Long.valueOf(getSourceId());
|
| - |
|
9112 |
|
| 9061 |
}
|
9113 |
}
|
| 9062 |
throw new IllegalStateException();
|
9114 |
throw new IllegalStateException();
|
| 9063 |
}
|
9115 |
}
|
| 9064 |
|
9116 |
|
| 9065 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
9117 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 9069... |
Line 9121... |
| 9069 |
}
|
9121 |
}
|
| 9070 |
|
9122 |
|
| 9071 |
switch (field) {
|
9123 |
switch (field) {
|
| 9072 |
case ITEM_ID:
|
9124 |
case ITEM_ID:
|
| 9073 |
return isSetItemId();
|
9125 |
return isSetItemId();
|
| - |
|
9126 |
case SOURCE_ID:
|
| - |
|
9127 |
return isSetSourceId();
|
| 9074 |
}
|
9128 |
}
|
| 9075 |
throw new IllegalStateException();
|
9129 |
throw new IllegalStateException();
|
| 9076 |
}
|
9130 |
}
|
| 9077 |
|
9131 |
|
| 9078 |
@Override
|
9132 |
@Override
|
| Line 9095... |
Line 9149... |
| 9095 |
return false;
|
9149 |
return false;
|
| 9096 |
if (this.itemId != that.itemId)
|
9150 |
if (this.itemId != that.itemId)
|
| 9097 |
return false;
|
9151 |
return false;
|
| 9098 |
}
|
9152 |
}
|
| 9099 |
|
9153 |
|
| - |
|
9154 |
boolean this_present_sourceId = true;
|
| - |
|
9155 |
boolean that_present_sourceId = true;
|
| - |
|
9156 |
if (this_present_sourceId || that_present_sourceId) {
|
| - |
|
9157 |
if (!(this_present_sourceId && that_present_sourceId))
|
| - |
|
9158 |
return false;
|
| - |
|
9159 |
if (this.sourceId != that.sourceId)
|
| - |
|
9160 |
return false;
|
| - |
|
9161 |
}
|
| - |
|
9162 |
|
| 9100 |
return true;
|
9163 |
return true;
|
| 9101 |
}
|
9164 |
}
|
| 9102 |
|
9165 |
|
| 9103 |
@Override
|
9166 |
@Override
|
| 9104 |
public int hashCode() {
|
9167 |
public int hashCode() {
|
| Line 9121... |
Line 9184... |
| 9121 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
9184 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 9122 |
if (lastComparison != 0) {
|
9185 |
if (lastComparison != 0) {
|
| 9123 |
return lastComparison;
|
9186 |
return lastComparison;
|
| 9124 |
}
|
9187 |
}
|
| 9125 |
}
|
9188 |
}
|
| - |
|
9189 |
lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
|
| - |
|
9190 |
if (lastComparison != 0) {
|
| - |
|
9191 |
return lastComparison;
|
| - |
|
9192 |
}
|
| - |
|
9193 |
if (isSetSourceId()) {
|
| - |
|
9194 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
|
| - |
|
9195 |
if (lastComparison != 0) {
|
| - |
|
9196 |
return lastComparison;
|
| - |
|
9197 |
}
|
| - |
|
9198 |
}
|
| 9126 |
return 0;
|
9199 |
return 0;
|
| 9127 |
}
|
9200 |
}
|
| 9128 |
|
9201 |
|
| 9129 |
public _Fields fieldForId(int fieldId) {
|
9202 |
public _Fields fieldForId(int fieldId) {
|
| 9130 |
return _Fields.findByThriftId(fieldId);
|
9203 |
return _Fields.findByThriftId(fieldId);
|
| Line 9146... |
Line 9219... |
| 9146 |
setItemIdIsSet(true);
|
9219 |
setItemIdIsSet(true);
|
| 9147 |
} else {
|
9220 |
} else {
|
| 9148 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
9221 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 9149 |
}
|
9222 |
}
|
| 9150 |
break;
|
9223 |
break;
|
| - |
|
9224 |
case 2: // SOURCE_ID
|
| - |
|
9225 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
9226 |
this.sourceId = iprot.readI64();
|
| - |
|
9227 |
setSourceIdIsSet(true);
|
| - |
|
9228 |
} else {
|
| - |
|
9229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
9230 |
}
|
| - |
|
9231 |
break;
|
| 9151 |
default:
|
9232 |
default:
|
| 9152 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
9233 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 9153 |
}
|
9234 |
}
|
| 9154 |
iprot.readFieldEnd();
|
9235 |
iprot.readFieldEnd();
|
| 9155 |
}
|
9236 |
}
|
| Line 9162... |
Line 9243... |
| 9162 |
|
9243 |
|
| 9163 |
oprot.writeStructBegin(STRUCT_DESC);
|
9244 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 9164 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
9245 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
| 9165 |
oprot.writeI64(this.itemId);
|
9246 |
oprot.writeI64(this.itemId);
|
| 9166 |
oprot.writeFieldEnd();
|
9247 |
oprot.writeFieldEnd();
|
| - |
|
9248 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
| - |
|
9249 |
oprot.writeI64(this.sourceId);
|
| - |
|
9250 |
oprot.writeFieldEnd();
|
| 9167 |
oprot.writeFieldStop();
|
9251 |
oprot.writeFieldStop();
|
| 9168 |
oprot.writeStructEnd();
|
9252 |
oprot.writeStructEnd();
|
| 9169 |
}
|
9253 |
}
|
| 9170 |
|
9254 |
|
| 9171 |
@Override
|
9255 |
@Override
|
| Line 9174... |
Line 9258... |
| 9174 |
boolean first = true;
|
9258 |
boolean first = true;
|
| 9175 |
|
9259 |
|
| 9176 |
sb.append("itemId:");
|
9260 |
sb.append("itemId:");
|
| 9177 |
sb.append(this.itemId);
|
9261 |
sb.append(this.itemId);
|
| 9178 |
first = false;
|
9262 |
first = false;
|
| - |
|
9263 |
if (!first) sb.append(", ");
|
| - |
|
9264 |
sb.append("sourceId:");
|
| - |
|
9265 |
sb.append(this.sourceId);
|
| - |
|
9266 |
first = false;
|
| 9179 |
sb.append(")");
|
9267 |
sb.append(")");
|
| 9180 |
return sb.toString();
|
9268 |
return sb.toString();
|
| 9181 |
}
|
9269 |
}
|
| 9182 |
|
9270 |
|
| 9183 |
public void validate() throws org.apache.thrift.TException {
|
9271 |
public void validate() throws org.apache.thrift.TException {
|