Rev 14491 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.warehouse;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class DoaOutInventoryItem implements org.apache.thrift.TBase<DoaOutInventoryItem, DoaOutInventoryItem._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DoaOutInventoryItem");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField WAREHOUSE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseName", org.apache.thrift.protocol.TType.STRING, (short)3);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)4);private static final org.apache.thrift.protocol.TField PRODUCT_FIELD_DESC = new org.apache.thrift.protocol.TField("product", org.apache.thrift.protocol.TType.STRING, (short)5);private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)6);private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)7);private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrder", org.apache.thrift.protocol.TType.STRING, (short)8);private static final org.apache.thrift.protocol.TField DOA_OUT_TIME_STAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("doaOutTimeStamp", org.apache.thrift.protocol.TType.I64, (short)9);private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);private static final org.apache.thrift.protocol.TField NLC_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("nlcPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);private long id; // requiredprivate long warehouseId; // requiredprivate String warehouseName; // requiredprivate long itemId; // requiredprivate String product; // requiredprivate String serialNumber; // requiredprivate String itemNumber; // requiredprivate String purchaseOrder; // requiredprivate long doaOutTimeStamp; // requiredprivate double transferPrice; // requiredprivate double nlcPrice; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id"),WAREHOUSE_ID((short)2, "warehouseId"),WAREHOUSE_NAME((short)3, "warehouseName"),ITEM_ID((short)4, "itemId"),PRODUCT((short)5, "product"),SERIAL_NUMBER((short)6, "serialNumber"),ITEM_NUMBER((short)7, "itemNumber"),PURCHASE_ORDER((short)8, "purchaseOrder"),DOA_OUT_TIME_STAMP((short)9, "doaOutTimeStamp"),TRANSFER_PRICE((short)10, "transferPrice"),NLC_PRICE((short)11, "nlcPrice");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;case 2: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 3: // WAREHOUSE_NAMEreturn WAREHOUSE_NAME;case 4: // ITEM_IDreturn ITEM_ID;case 5: // PRODUCTreturn PRODUCT;case 6: // SERIAL_NUMBERreturn SERIAL_NUMBER;case 7: // ITEM_NUMBERreturn ITEM_NUMBER;case 8: // PURCHASE_ORDERreturn PURCHASE_ORDER;case 9: // DOA_OUT_TIME_STAMPreturn DOA_OUT_TIME_STAMP;case 10: // TRANSFER_PRICEreturn TRANSFER_PRICE;case 11: // NLC_PRICEreturn NLC_PRICE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private static final int __WAREHOUSEID_ISSET_ID = 1;private static final int __ITEMID_ISSET_ID = 2;private static final int __DOAOUTTIMESTAMP_ISSET_ID = 3;private static final int __TRANSFERPRICE_ISSET_ID = 4;private static final int __NLCPRICE_ISSET_ID = 5;private BitSet __isset_bit_vector = new BitSet(6);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_NAME, new org.apache.thrift.meta_data.FieldMetaData("warehouseName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PRODUCT, new org.apache.thrift.meta_data.FieldMetaData("product", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PURCHASE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrder", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.DOA_OUT_TIME_STAMP, new org.apache.thrift.meta_data.FieldMetaData("doaOutTimeStamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.NLC_PRICE, new org.apache.thrift.meta_data.FieldMetaData("nlcPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DoaOutInventoryItem.class, metaDataMap);}public DoaOutInventoryItem() {}public DoaOutInventoryItem(long id,long warehouseId,String warehouseName,long itemId,String product,String serialNumber,String itemNumber,String purchaseOrder,long doaOutTimeStamp,double transferPrice,double nlcPrice){this();this.id = id;setIdIsSet(true);this.warehouseId = warehouseId;setWarehouseIdIsSet(true);this.warehouseName = warehouseName;this.itemId = itemId;setItemIdIsSet(true);this.product = product;this.serialNumber = serialNumber;this.itemNumber = itemNumber;this.purchaseOrder = purchaseOrder;this.doaOutTimeStamp = doaOutTimeStamp;setDoaOutTimeStampIsSet(true);this.transferPrice = transferPrice;setTransferPriceIsSet(true);this.nlcPrice = nlcPrice;setNlcPriceIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public DoaOutInventoryItem(DoaOutInventoryItem other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;this.warehouseId = other.warehouseId;if (other.isSetWarehouseName()) {this.warehouseName = other.warehouseName;}this.itemId = other.itemId;if (other.isSetProduct()) {this.product = other.product;}if (other.isSetSerialNumber()) {this.serialNumber = other.serialNumber;}if (other.isSetItemNumber()) {this.itemNumber = other.itemNumber;}if (other.isSetPurchaseOrder()) {this.purchaseOrder = other.purchaseOrder;}this.doaOutTimeStamp = other.doaOutTimeStamp;this.transferPrice = other.transferPrice;this.nlcPrice = other.nlcPrice;}public DoaOutInventoryItem deepCopy() {return new DoaOutInventoryItem(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;setWarehouseIdIsSet(false);this.warehouseId = 0;this.warehouseName = null;setItemIdIsSet(false);this.itemId = 0;this.product = null;this.serialNumber = null;this.itemNumber = null;this.purchaseOrder = null;setDoaOutTimeStampIsSet(false);this.doaOutTimeStamp = 0;setTransferPriceIsSet(false);this.transferPrice = 0.0;setNlcPriceIsSet(false);this.nlcPrice = 0.0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public String getWarehouseName() {return this.warehouseName;}public void setWarehouseName(String warehouseName) {this.warehouseName = warehouseName;}public void unsetWarehouseName() {this.warehouseName = null;}/** Returns true if field warehouseName is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseName() {return this.warehouseName != null;}public void setWarehouseNameIsSet(boolean value) {if (!value) {this.warehouseName = null;}}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public String getProduct() {return this.product;}public void setProduct(String product) {this.product = product;}public void unsetProduct() {this.product = null;}/** Returns true if field product is set (has been assigned a value) and false otherwise */public boolean isSetProduct() {return this.product != null;}public void setProductIsSet(boolean value) {if (!value) {this.product = null;}}public String getSerialNumber() {return this.serialNumber;}public void setSerialNumber(String serialNumber) {this.serialNumber = serialNumber;}public void unsetSerialNumber() {this.serialNumber = null;}/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */public boolean isSetSerialNumber() {return this.serialNumber != null;}public void setSerialNumberIsSet(boolean value) {if (!value) {this.serialNumber = null;}}public String getItemNumber() {return this.itemNumber;}public void setItemNumber(String itemNumber) {this.itemNumber = itemNumber;}public void unsetItemNumber() {this.itemNumber = null;}/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */public boolean isSetItemNumber() {return this.itemNumber != null;}public void setItemNumberIsSet(boolean value) {if (!value) {this.itemNumber = null;}}public String getPurchaseOrder() {return this.purchaseOrder;}public void setPurchaseOrder(String purchaseOrder) {this.purchaseOrder = purchaseOrder;}public void unsetPurchaseOrder() {this.purchaseOrder = null;}/** Returns true if field purchaseOrder is set (has been assigned a value) and false otherwise */public boolean isSetPurchaseOrder() {return this.purchaseOrder != null;}public void setPurchaseOrderIsSet(boolean value) {if (!value) {this.purchaseOrder = null;}}public long getDoaOutTimeStamp() {return this.doaOutTimeStamp;}public void setDoaOutTimeStamp(long doaOutTimeStamp) {this.doaOutTimeStamp = doaOutTimeStamp;setDoaOutTimeStampIsSet(true);}public void unsetDoaOutTimeStamp() {__isset_bit_vector.clear(__DOAOUTTIMESTAMP_ISSET_ID);}/** Returns true if field doaOutTimeStamp is set (has been assigned a value) and false otherwise */public boolean isSetDoaOutTimeStamp() {return __isset_bit_vector.get(__DOAOUTTIMESTAMP_ISSET_ID);}public void setDoaOutTimeStampIsSet(boolean value) {__isset_bit_vector.set(__DOAOUTTIMESTAMP_ISSET_ID, value);}public double getTransferPrice() {return this.transferPrice;}public void setTransferPrice(double transferPrice) {this.transferPrice = transferPrice;setTransferPriceIsSet(true);}public void unsetTransferPrice() {__isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);}/** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */public boolean isSetTransferPrice() {return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);}public void setTransferPriceIsSet(boolean value) {__isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);}public double getNlcPrice() {return this.nlcPrice;}public void setNlcPrice(double nlcPrice) {this.nlcPrice = nlcPrice;setNlcPriceIsSet(true);}public void unsetNlcPrice() {__isset_bit_vector.clear(__NLCPRICE_ISSET_ID);}/** Returns true if field nlcPrice is set (has been assigned a value) and false otherwise */public boolean isSetNlcPrice() {return __isset_bit_vector.get(__NLCPRICE_ISSET_ID);}public void setNlcPriceIsSet(boolean value) {__isset_bit_vector.set(__NLCPRICE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;case WAREHOUSE_NAME:if (value == null) {unsetWarehouseName();} else {setWarehouseName((String)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case PRODUCT:if (value == null) {unsetProduct();} else {setProduct((String)value);}break;case SERIAL_NUMBER:if (value == null) {unsetSerialNumber();} else {setSerialNumber((String)value);}break;case ITEM_NUMBER:if (value == null) {unsetItemNumber();} else {setItemNumber((String)value);}break;case PURCHASE_ORDER:if (value == null) {unsetPurchaseOrder();} else {setPurchaseOrder((String)value);}break;case DOA_OUT_TIME_STAMP:if (value == null) {unsetDoaOutTimeStamp();} else {setDoaOutTimeStamp((Long)value);}break;case TRANSFER_PRICE:if (value == null) {unsetTransferPrice();} else {setTransferPrice((Double)value);}break;case NLC_PRICE:if (value == null) {unsetNlcPrice();} else {setNlcPrice((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());case WAREHOUSE_NAME:return getWarehouseName();case ITEM_ID:return Long.valueOf(getItemId());case PRODUCT:return getProduct();case SERIAL_NUMBER:return getSerialNumber();case ITEM_NUMBER:return getItemNumber();case PURCHASE_ORDER:return getPurchaseOrder();case DOA_OUT_TIME_STAMP:return Long.valueOf(getDoaOutTimeStamp());case TRANSFER_PRICE:return Double.valueOf(getTransferPrice());case NLC_PRICE:return Double.valueOf(getNlcPrice());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();case WAREHOUSE_ID:return isSetWarehouseId();case WAREHOUSE_NAME:return isSetWarehouseName();case ITEM_ID:return isSetItemId();case PRODUCT:return isSetProduct();case SERIAL_NUMBER:return isSetSerialNumber();case ITEM_NUMBER:return isSetItemNumber();case PURCHASE_ORDER:return isSetPurchaseOrder();case DOA_OUT_TIME_STAMP:return isSetDoaOutTimeStamp();case TRANSFER_PRICE:return isSetTransferPrice();case NLC_PRICE:return isSetNlcPrice();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof DoaOutInventoryItem)return this.equals((DoaOutInventoryItem)that);return false;}public boolean equals(DoaOutInventoryItem that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}boolean this_present_warehouseName = true && this.isSetWarehouseName();boolean that_present_warehouseName = true && that.isSetWarehouseName();if (this_present_warehouseName || that_present_warehouseName) {if (!(this_present_warehouseName && that_present_warehouseName))return false;if (!this.warehouseName.equals(that.warehouseName))return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_product = true && this.isSetProduct();boolean that_present_product = true && that.isSetProduct();if (this_present_product || that_present_product) {if (!(this_present_product && that_present_product))return false;if (!this.product.equals(that.product))return false;}boolean this_present_serialNumber = true && this.isSetSerialNumber();boolean that_present_serialNumber = true && that.isSetSerialNumber();if (this_present_serialNumber || that_present_serialNumber) {if (!(this_present_serialNumber && that_present_serialNumber))return false;if (!this.serialNumber.equals(that.serialNumber))return false;}boolean this_present_itemNumber = true && this.isSetItemNumber();boolean that_present_itemNumber = true && that.isSetItemNumber();if (this_present_itemNumber || that_present_itemNumber) {if (!(this_present_itemNumber && that_present_itemNumber))return false;if (!this.itemNumber.equals(that.itemNumber))return false;}boolean this_present_purchaseOrder = true && this.isSetPurchaseOrder();boolean that_present_purchaseOrder = true && that.isSetPurchaseOrder();if (this_present_purchaseOrder || that_present_purchaseOrder) {if (!(this_present_purchaseOrder && that_present_purchaseOrder))return false;if (!this.purchaseOrder.equals(that.purchaseOrder))return false;}boolean this_present_doaOutTimeStamp = true;boolean that_present_doaOutTimeStamp = true;if (this_present_doaOutTimeStamp || that_present_doaOutTimeStamp) {if (!(this_present_doaOutTimeStamp && that_present_doaOutTimeStamp))return false;if (this.doaOutTimeStamp != that.doaOutTimeStamp)return false;}boolean this_present_transferPrice = true;boolean that_present_transferPrice = true;if (this_present_transferPrice || that_present_transferPrice) {if (!(this_present_transferPrice && that_present_transferPrice))return false;if (this.transferPrice != that.transferPrice)return false;}boolean this_present_nlcPrice = true;boolean that_present_nlcPrice = true;if (this_present_nlcPrice || that_present_nlcPrice) {if (!(this_present_nlcPrice && that_present_nlcPrice))return false;if (this.nlcPrice != that.nlcPrice)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(DoaOutInventoryItem other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;DoaOutInventoryItem typedOther = (DoaOutInventoryItem)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseName()).compareTo(typedOther.isSetWarehouseName());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseName, typedOther.warehouseName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProduct()).compareTo(typedOther.isSetProduct());if (lastComparison != 0) {return lastComparison;}if (isSetProduct()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.product, typedOther.product);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());if (lastComparison != 0) {return lastComparison;}if (isSetSerialNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());if (lastComparison != 0) {return lastComparison;}if (isSetItemNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPurchaseOrder()).compareTo(typedOther.isSetPurchaseOrder());if (lastComparison != 0) {return lastComparison;}if (isSetPurchaseOrder()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrder, typedOther.purchaseOrder);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDoaOutTimeStamp()).compareTo(typedOther.isSetDoaOutTimeStamp());if (lastComparison != 0) {return lastComparison;}if (isSetDoaOutTimeStamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doaOutTimeStamp, typedOther.doaOutTimeStamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());if (lastComparison != 0) {return lastComparison;}if (isSetTransferPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNlcPrice()).compareTo(typedOther.isSetNlcPrice());if (lastComparison != 0) {return lastComparison;}if (isSetNlcPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlcPrice, typedOther.nlcPrice);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // WAREHOUSE_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.warehouseName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // PRODUCTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.product = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // SERIAL_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.serialNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // ITEM_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.itemNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // PURCHASE_ORDERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.purchaseOrder = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // DOA_OUT_TIME_STAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.doaOutTimeStamp = iprot.readI64();setDoaOutTimeStampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // TRANSFER_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.transferPrice = iprot.readDouble();setTransferPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // NLC_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.nlcPrice = iprot.readDouble();setNlcPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();if (this.warehouseName != null) {oprot.writeFieldBegin(WAREHOUSE_NAME_FIELD_DESC);oprot.writeString(this.warehouseName);oprot.writeFieldEnd();}oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();if (this.product != null) {oprot.writeFieldBegin(PRODUCT_FIELD_DESC);oprot.writeString(this.product);oprot.writeFieldEnd();}if (this.serialNumber != null) {oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);oprot.writeString(this.serialNumber);oprot.writeFieldEnd();}if (this.itemNumber != null) {oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);oprot.writeString(this.itemNumber);oprot.writeFieldEnd();}if (this.purchaseOrder != null) {oprot.writeFieldBegin(PURCHASE_ORDER_FIELD_DESC);oprot.writeString(this.purchaseOrder);oprot.writeFieldEnd();}oprot.writeFieldBegin(DOA_OUT_TIME_STAMP_FIELD_DESC);oprot.writeI64(this.doaOutTimeStamp);oprot.writeFieldEnd();oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);oprot.writeDouble(this.transferPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(NLC_PRICE_FIELD_DESC);oprot.writeDouble(this.nlcPrice);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("DoaOutInventoryItem(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;if (!first) sb.append(", ");sb.append("warehouseName:");if (this.warehouseName == null) {sb.append("null");} else {sb.append(this.warehouseName);}first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("product:");if (this.product == null) {sb.append("null");} else {sb.append(this.product);}first = false;if (!first) sb.append(", ");sb.append("serialNumber:");if (this.serialNumber == null) {sb.append("null");} else {sb.append(this.serialNumber);}first = false;if (!first) sb.append(", ");sb.append("itemNumber:");if (this.itemNumber == null) {sb.append("null");} else {sb.append(this.itemNumber);}first = false;if (!first) sb.append(", ");sb.append("purchaseOrder:");if (this.purchaseOrder == null) {sb.append("null");} else {sb.append(this.purchaseOrder);}first = false;if (!first) sb.append(", ");sb.append("doaOutTimeStamp:");sb.append(this.doaOutTimeStamp);first = false;if (!first) sb.append(", ");sb.append("transferPrice:");sb.append(this.transferPrice);first = false;if (!first) sb.append(", ");sb.append("nlcPrice:");sb.append(this.nlcPrice);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}