Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cicada.departdriver.config.SaleOrder Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package cicada.departdriver.config;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-06-19")
public class SaleOrder implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SaleOrder");
private static final org.apache.thrift.protocol.TField ENTERPRISE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("EnterpriseID", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField ENTERPRISE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("EnterpriseName", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField ENTERPRISE_ADDR_FIELD_DESC = new org.apache.thrift.protocol.TField("EnterpriseAddr", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField CONTACTS_FIELD_DESC = new org.apache.thrift.protocol.TField("Contacts", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final org.apache.thrift.protocol.TField CONTACTS_MOBLIE_FIELD_DESC = new org.apache.thrift.protocol.TField("ContactsMoblie", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField SALE_USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("SaleUserID", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField SALE_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("SaleUserName", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.protocol.TField SALE_MOBLIE_FIELD_DESC = new org.apache.thrift.protocol.TField("SaleMoblie", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("OrderID", org.apache.thrift.protocol.TType.STRING, (short)9);
private static final org.apache.thrift.protocol.TField ORDER_PRISE_FIELD_DESC = new org.apache.thrift.protocol.TField("OrderPrise", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
private static final org.apache.thrift.protocol.TField ORDER_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("OrderTime", org.apache.thrift.protocol.TType.STRING, (short)11);
private static final org.apache.thrift.protocol.TField PAY_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("PayStatus", org.apache.thrift.protocol.TType.I32, (short)12);
private static final org.apache.thrift.protocol.TField PAY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("PayTime", org.apache.thrift.protocol.TType.STRING, (short)13);
private static final org.apache.thrift.protocol.TField PAY_MSG_FIELD_DESC = new org.apache.thrift.protocol.TField("PayMsg", org.apache.thrift.protocol.TType.STRING, (short)14);
private static final org.apache.thrift.protocol.TField CREATED_USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("CreatedUserID", org.apache.thrift.protocol.TType.STRING, (short)15);
private static final org.apache.thrift.protocol.TField CREATED_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("CreatedUserName", org.apache.thrift.protocol.TType.STRING, (short)16);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SaleOrderStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SaleOrderTupleSchemeFactory();
public java.lang.String EnterpriseID; // required
public java.lang.String EnterpriseName; // required
public java.lang.String EnterpriseAddr; // required
public java.lang.String Contacts; // required
public java.lang.String ContactsMoblie; // required
public java.lang.String SaleUserID; // required
public java.lang.String SaleUserName; // required
public java.lang.String SaleMoblie; // required
public java.lang.String OrderID; // required
public double OrderPrise; // required
public java.lang.String OrderTime; // required
/**
*
* @see OrderStatusCodeEnum
*/
public OrderStatusCodeEnum PayStatus; // required
public java.lang.String PayTime; // required
public java.lang.String PayMsg; // required
public java.lang.String CreatedUserID; // required
public java.lang.String CreatedUserName; // 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 {
ENTERPRISE_ID((short)1, "EnterpriseID"),
ENTERPRISE_NAME((short)2, "EnterpriseName"),
ENTERPRISE_ADDR((short)3, "EnterpriseAddr"),
CONTACTS((short)4, "Contacts"),
CONTACTS_MOBLIE((short)5, "ContactsMoblie"),
SALE_USER_ID((short)6, "SaleUserID"),
SALE_USER_NAME((short)7, "SaleUserName"),
SALE_MOBLIE((short)8, "SaleMoblie"),
ORDER_ID((short)9, "OrderID"),
ORDER_PRISE((short)10, "OrderPrise"),
ORDER_TIME((short)11, "OrderTime"),
/**
*
* @see OrderStatusCodeEnum
*/
PAY_STATUS((short)12, "PayStatus"),
PAY_TIME((short)13, "PayTime"),
PAY_MSG((short)14, "PayMsg"),
CREATED_USER_ID((short)15, "CreatedUserID"),
CREATED_USER_NAME((short)16, "CreatedUserName");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.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: // ENTERPRISE_ID
return ENTERPRISE_ID;
case 2: // ENTERPRISE_NAME
return ENTERPRISE_NAME;
case 3: // ENTERPRISE_ADDR
return ENTERPRISE_ADDR;
case 4: // CONTACTS
return CONTACTS;
case 5: // CONTACTS_MOBLIE
return CONTACTS_MOBLIE;
case 6: // SALE_USER_ID
return SALE_USER_ID;
case 7: // SALE_USER_NAME
return SALE_USER_NAME;
case 8: // SALE_MOBLIE
return SALE_MOBLIE;
case 9: // ORDER_ID
return ORDER_ID;
case 10: // ORDER_PRISE
return ORDER_PRISE;
case 11: // ORDER_TIME
return ORDER_TIME;
case 12: // PAY_STATUS
return PAY_STATUS;
case 13: // PAY_TIME
return PAY_TIME;
case 14: // PAY_MSG
return PAY_MSG;
case 15: // CREATED_USER_ID
return CREATED_USER_ID;
case 16: // CREATED_USER_NAME
return CREATED_USER_NAME;
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 java.lang.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(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __ORDERPRISE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.ENTERPRISE_ID, new org.apache.thrift.meta_data.FieldMetaData("EnterpriseID", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ENTERPRISE_NAME, new org.apache.thrift.meta_data.FieldMetaData("EnterpriseName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ENTERPRISE_ADDR, new org.apache.thrift.meta_data.FieldMetaData("EnterpriseAddr", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CONTACTS, new org.apache.thrift.meta_data.FieldMetaData("Contacts", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CONTACTS_MOBLIE, new org.apache.thrift.meta_data.FieldMetaData("ContactsMoblie", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.SALE_USER_ID, new org.apache.thrift.meta_data.FieldMetaData("SaleUserID", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.SALE_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("SaleUserName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.SALE_MOBLIE, new org.apache.thrift.meta_data.FieldMetaData("SaleMoblie", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("OrderID", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ORDER_PRISE, new org.apache.thrift.meta_data.FieldMetaData("OrderPrise", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
tmpMap.put(_Fields.ORDER_TIME, new org.apache.thrift.meta_data.FieldMetaData("OrderTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PAY_STATUS, new org.apache.thrift.meta_data.FieldMetaData("PayStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatusCodeEnum.class)));
tmpMap.put(_Fields.PAY_TIME, new org.apache.thrift.meta_data.FieldMetaData("PayTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PAY_MSG, new org.apache.thrift.meta_data.FieldMetaData("PayMsg", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CREATED_USER_ID, new org.apache.thrift.meta_data.FieldMetaData("CreatedUserID", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CREATED_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("CreatedUserName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SaleOrder.class, metaDataMap);
}
public SaleOrder() {
}
public SaleOrder(
java.lang.String EnterpriseID,
java.lang.String EnterpriseName,
java.lang.String EnterpriseAddr,
java.lang.String Contacts,
java.lang.String ContactsMoblie,
java.lang.String SaleUserID,
java.lang.String SaleUserName,
java.lang.String SaleMoblie,
java.lang.String OrderID,
double OrderPrise,
java.lang.String OrderTime,
OrderStatusCodeEnum PayStatus,
java.lang.String PayTime,
java.lang.String PayMsg,
java.lang.String CreatedUserID,
java.lang.String CreatedUserName)
{
this();
this.EnterpriseID = EnterpriseID;
this.EnterpriseName = EnterpriseName;
this.EnterpriseAddr = EnterpriseAddr;
this.Contacts = Contacts;
this.ContactsMoblie = ContactsMoblie;
this.SaleUserID = SaleUserID;
this.SaleUserName = SaleUserName;
this.SaleMoblie = SaleMoblie;
this.OrderID = OrderID;
this.OrderPrise = OrderPrise;
setOrderPriseIsSet(true);
this.OrderTime = OrderTime;
this.PayStatus = PayStatus;
this.PayTime = PayTime;
this.PayMsg = PayMsg;
this.CreatedUserID = CreatedUserID;
this.CreatedUserName = CreatedUserName;
}
/**
* Performs a deep copy on other .
*/
public SaleOrder(SaleOrder other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetEnterpriseID()) {
this.EnterpriseID = other.EnterpriseID;
}
if (other.isSetEnterpriseName()) {
this.EnterpriseName = other.EnterpriseName;
}
if (other.isSetEnterpriseAddr()) {
this.EnterpriseAddr = other.EnterpriseAddr;
}
if (other.isSetContacts()) {
this.Contacts = other.Contacts;
}
if (other.isSetContactsMoblie()) {
this.ContactsMoblie = other.ContactsMoblie;
}
if (other.isSetSaleUserID()) {
this.SaleUserID = other.SaleUserID;
}
if (other.isSetSaleUserName()) {
this.SaleUserName = other.SaleUserName;
}
if (other.isSetSaleMoblie()) {
this.SaleMoblie = other.SaleMoblie;
}
if (other.isSetOrderID()) {
this.OrderID = other.OrderID;
}
this.OrderPrise = other.OrderPrise;
if (other.isSetOrderTime()) {
this.OrderTime = other.OrderTime;
}
if (other.isSetPayStatus()) {
this.PayStatus = other.PayStatus;
}
if (other.isSetPayTime()) {
this.PayTime = other.PayTime;
}
if (other.isSetPayMsg()) {
this.PayMsg = other.PayMsg;
}
if (other.isSetCreatedUserID()) {
this.CreatedUserID = other.CreatedUserID;
}
if (other.isSetCreatedUserName()) {
this.CreatedUserName = other.CreatedUserName;
}
}
public SaleOrder deepCopy() {
return new SaleOrder(this);
}
@Override
public void clear() {
this.EnterpriseID = null;
this.EnterpriseName = null;
this.EnterpriseAddr = null;
this.Contacts = null;
this.ContactsMoblie = null;
this.SaleUserID = null;
this.SaleUserName = null;
this.SaleMoblie = null;
this.OrderID = null;
setOrderPriseIsSet(false);
this.OrderPrise = 0.0;
this.OrderTime = null;
this.PayStatus = null;
this.PayTime = null;
this.PayMsg = null;
this.CreatedUserID = null;
this.CreatedUserName = null;
}
public java.lang.String getEnterpriseID() {
return this.EnterpriseID;
}
public SaleOrder setEnterpriseID(java.lang.String EnterpriseID) {
this.EnterpriseID = EnterpriseID;
return this;
}
public void unsetEnterpriseID() {
this.EnterpriseID = null;
}
/** Returns true if field EnterpriseID is set (has been assigned a value) and false otherwise */
public boolean isSetEnterpriseID() {
return this.EnterpriseID != null;
}
public void setEnterpriseIDIsSet(boolean value) {
if (!value) {
this.EnterpriseID = null;
}
}
public java.lang.String getEnterpriseName() {
return this.EnterpriseName;
}
public SaleOrder setEnterpriseName(java.lang.String EnterpriseName) {
this.EnterpriseName = EnterpriseName;
return this;
}
public void unsetEnterpriseName() {
this.EnterpriseName = null;
}
/** Returns true if field EnterpriseName is set (has been assigned a value) and false otherwise */
public boolean isSetEnterpriseName() {
return this.EnterpriseName != null;
}
public void setEnterpriseNameIsSet(boolean value) {
if (!value) {
this.EnterpriseName = null;
}
}
public java.lang.String getEnterpriseAddr() {
return this.EnterpriseAddr;
}
public SaleOrder setEnterpriseAddr(java.lang.String EnterpriseAddr) {
this.EnterpriseAddr = EnterpriseAddr;
return this;
}
public void unsetEnterpriseAddr() {
this.EnterpriseAddr = null;
}
/** Returns true if field EnterpriseAddr is set (has been assigned a value) and false otherwise */
public boolean isSetEnterpriseAddr() {
return this.EnterpriseAddr != null;
}
public void setEnterpriseAddrIsSet(boolean value) {
if (!value) {
this.EnterpriseAddr = null;
}
}
public java.lang.String getContacts() {
return this.Contacts;
}
public SaleOrder setContacts(java.lang.String Contacts) {
this.Contacts = Contacts;
return this;
}
public void unsetContacts() {
this.Contacts = null;
}
/** Returns true if field Contacts is set (has been assigned a value) and false otherwise */
public boolean isSetContacts() {
return this.Contacts != null;
}
public void setContactsIsSet(boolean value) {
if (!value) {
this.Contacts = null;
}
}
public java.lang.String getContactsMoblie() {
return this.ContactsMoblie;
}
public SaleOrder setContactsMoblie(java.lang.String ContactsMoblie) {
this.ContactsMoblie = ContactsMoblie;
return this;
}
public void unsetContactsMoblie() {
this.ContactsMoblie = null;
}
/** Returns true if field ContactsMoblie is set (has been assigned a value) and false otherwise */
public boolean isSetContactsMoblie() {
return this.ContactsMoblie != null;
}
public void setContactsMoblieIsSet(boolean value) {
if (!value) {
this.ContactsMoblie = null;
}
}
public java.lang.String getSaleUserID() {
return this.SaleUserID;
}
public SaleOrder setSaleUserID(java.lang.String SaleUserID) {
this.SaleUserID = SaleUserID;
return this;
}
public void unsetSaleUserID() {
this.SaleUserID = null;
}
/** Returns true if field SaleUserID is set (has been assigned a value) and false otherwise */
public boolean isSetSaleUserID() {
return this.SaleUserID != null;
}
public void setSaleUserIDIsSet(boolean value) {
if (!value) {
this.SaleUserID = null;
}
}
public java.lang.String getSaleUserName() {
return this.SaleUserName;
}
public SaleOrder setSaleUserName(java.lang.String SaleUserName) {
this.SaleUserName = SaleUserName;
return this;
}
public void unsetSaleUserName() {
this.SaleUserName = null;
}
/** Returns true if field SaleUserName is set (has been assigned a value) and false otherwise */
public boolean isSetSaleUserName() {
return this.SaleUserName != null;
}
public void setSaleUserNameIsSet(boolean value) {
if (!value) {
this.SaleUserName = null;
}
}
public java.lang.String getSaleMoblie() {
return this.SaleMoblie;
}
public SaleOrder setSaleMoblie(java.lang.String SaleMoblie) {
this.SaleMoblie = SaleMoblie;
return this;
}
public void unsetSaleMoblie() {
this.SaleMoblie = null;
}
/** Returns true if field SaleMoblie is set (has been assigned a value) and false otherwise */
public boolean isSetSaleMoblie() {
return this.SaleMoblie != null;
}
public void setSaleMoblieIsSet(boolean value) {
if (!value) {
this.SaleMoblie = null;
}
}
public java.lang.String getOrderID() {
return this.OrderID;
}
public SaleOrder setOrderID(java.lang.String OrderID) {
this.OrderID = OrderID;
return this;
}
public void unsetOrderID() {
this.OrderID = null;
}
/** Returns true if field OrderID is set (has been assigned a value) and false otherwise */
public boolean isSetOrderID() {
return this.OrderID != null;
}
public void setOrderIDIsSet(boolean value) {
if (!value) {
this.OrderID = null;
}
}
public double getOrderPrise() {
return this.OrderPrise;
}
public SaleOrder setOrderPrise(double OrderPrise) {
this.OrderPrise = OrderPrise;
setOrderPriseIsSet(true);
return this;
}
public void unsetOrderPrise() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ORDERPRISE_ISSET_ID);
}
/** Returns true if field OrderPrise is set (has been assigned a value) and false otherwise */
public boolean isSetOrderPrise() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ORDERPRISE_ISSET_ID);
}
public void setOrderPriseIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ORDERPRISE_ISSET_ID, value);
}
public java.lang.String getOrderTime() {
return this.OrderTime;
}
public SaleOrder setOrderTime(java.lang.String OrderTime) {
this.OrderTime = OrderTime;
return this;
}
public void unsetOrderTime() {
this.OrderTime = null;
}
/** Returns true if field OrderTime is set (has been assigned a value) and false otherwise */
public boolean isSetOrderTime() {
return this.OrderTime != null;
}
public void setOrderTimeIsSet(boolean value) {
if (!value) {
this.OrderTime = null;
}
}
/**
*
* @see OrderStatusCodeEnum
*/
public OrderStatusCodeEnum getPayStatus() {
return this.PayStatus;
}
/**
*
* @see OrderStatusCodeEnum
*/
public SaleOrder setPayStatus(OrderStatusCodeEnum PayStatus) {
this.PayStatus = PayStatus;
return this;
}
public void unsetPayStatus() {
this.PayStatus = null;
}
/** Returns true if field PayStatus is set (has been assigned a value) and false otherwise */
public boolean isSetPayStatus() {
return this.PayStatus != null;
}
public void setPayStatusIsSet(boolean value) {
if (!value) {
this.PayStatus = null;
}
}
public java.lang.String getPayTime() {
return this.PayTime;
}
public SaleOrder setPayTime(java.lang.String PayTime) {
this.PayTime = PayTime;
return this;
}
public void unsetPayTime() {
this.PayTime = null;
}
/** Returns true if field PayTime is set (has been assigned a value) and false otherwise */
public boolean isSetPayTime() {
return this.PayTime != null;
}
public void setPayTimeIsSet(boolean value) {
if (!value) {
this.PayTime = null;
}
}
public java.lang.String getPayMsg() {
return this.PayMsg;
}
public SaleOrder setPayMsg(java.lang.String PayMsg) {
this.PayMsg = PayMsg;
return this;
}
public void unsetPayMsg() {
this.PayMsg = null;
}
/** Returns true if field PayMsg is set (has been assigned a value) and false otherwise */
public boolean isSetPayMsg() {
return this.PayMsg != null;
}
public void setPayMsgIsSet(boolean value) {
if (!value) {
this.PayMsg = null;
}
}
public java.lang.String getCreatedUserID() {
return this.CreatedUserID;
}
public SaleOrder setCreatedUserID(java.lang.String CreatedUserID) {
this.CreatedUserID = CreatedUserID;
return this;
}
public void unsetCreatedUserID() {
this.CreatedUserID = null;
}
/** Returns true if field CreatedUserID is set (has been assigned a value) and false otherwise */
public boolean isSetCreatedUserID() {
return this.CreatedUserID != null;
}
public void setCreatedUserIDIsSet(boolean value) {
if (!value) {
this.CreatedUserID = null;
}
}
public java.lang.String getCreatedUserName() {
return this.CreatedUserName;
}
public SaleOrder setCreatedUserName(java.lang.String CreatedUserName) {
this.CreatedUserName = CreatedUserName;
return this;
}
public void unsetCreatedUserName() {
this.CreatedUserName = null;
}
/** Returns true if field CreatedUserName is set (has been assigned a value) and false otherwise */
public boolean isSetCreatedUserName() {
return this.CreatedUserName != null;
}
public void setCreatedUserNameIsSet(boolean value) {
if (!value) {
this.CreatedUserName = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case ENTERPRISE_ID:
if (value == null) {
unsetEnterpriseID();
} else {
setEnterpriseID((java.lang.String)value);
}
break;
case ENTERPRISE_NAME:
if (value == null) {
unsetEnterpriseName();
} else {
setEnterpriseName((java.lang.String)value);
}
break;
case ENTERPRISE_ADDR:
if (value == null) {
unsetEnterpriseAddr();
} else {
setEnterpriseAddr((java.lang.String)value);
}
break;
case CONTACTS:
if (value == null) {
unsetContacts();
} else {
setContacts((java.lang.String)value);
}
break;
case CONTACTS_MOBLIE:
if (value == null) {
unsetContactsMoblie();
} else {
setContactsMoblie((java.lang.String)value);
}
break;
case SALE_USER_ID:
if (value == null) {
unsetSaleUserID();
} else {
setSaleUserID((java.lang.String)value);
}
break;
case SALE_USER_NAME:
if (value == null) {
unsetSaleUserName();
} else {
setSaleUserName((java.lang.String)value);
}
break;
case SALE_MOBLIE:
if (value == null) {
unsetSaleMoblie();
} else {
setSaleMoblie((java.lang.String)value);
}
break;
case ORDER_ID:
if (value == null) {
unsetOrderID();
} else {
setOrderID((java.lang.String)value);
}
break;
case ORDER_PRISE:
if (value == null) {
unsetOrderPrise();
} else {
setOrderPrise((java.lang.Double)value);
}
break;
case ORDER_TIME:
if (value == null) {
unsetOrderTime();
} else {
setOrderTime((java.lang.String)value);
}
break;
case PAY_STATUS:
if (value == null) {
unsetPayStatus();
} else {
setPayStatus((OrderStatusCodeEnum)value);
}
break;
case PAY_TIME:
if (value == null) {
unsetPayTime();
} else {
setPayTime((java.lang.String)value);
}
break;
case PAY_MSG:
if (value == null) {
unsetPayMsg();
} else {
setPayMsg((java.lang.String)value);
}
break;
case CREATED_USER_ID:
if (value == null) {
unsetCreatedUserID();
} else {
setCreatedUserID((java.lang.String)value);
}
break;
case CREATED_USER_NAME:
if (value == null) {
unsetCreatedUserName();
} else {
setCreatedUserName((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case ENTERPRISE_ID:
return getEnterpriseID();
case ENTERPRISE_NAME:
return getEnterpriseName();
case ENTERPRISE_ADDR:
return getEnterpriseAddr();
case CONTACTS:
return getContacts();
case CONTACTS_MOBLIE:
return getContactsMoblie();
case SALE_USER_ID:
return getSaleUserID();
case SALE_USER_NAME:
return getSaleUserName();
case SALE_MOBLIE:
return getSaleMoblie();
case ORDER_ID:
return getOrderID();
case ORDER_PRISE:
return getOrderPrise();
case ORDER_TIME:
return getOrderTime();
case PAY_STATUS:
return getPayStatus();
case PAY_TIME:
return getPayTime();
case PAY_MSG:
return getPayMsg();
case CREATED_USER_ID:
return getCreatedUserID();
case CREATED_USER_NAME:
return getCreatedUserName();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case ENTERPRISE_ID:
return isSetEnterpriseID();
case ENTERPRISE_NAME:
return isSetEnterpriseName();
case ENTERPRISE_ADDR:
return isSetEnterpriseAddr();
case CONTACTS:
return isSetContacts();
case CONTACTS_MOBLIE:
return isSetContactsMoblie();
case SALE_USER_ID:
return isSetSaleUserID();
case SALE_USER_NAME:
return isSetSaleUserName();
case SALE_MOBLIE:
return isSetSaleMoblie();
case ORDER_ID:
return isSetOrderID();
case ORDER_PRISE:
return isSetOrderPrise();
case ORDER_TIME:
return isSetOrderTime();
case PAY_STATUS:
return isSetPayStatus();
case PAY_TIME:
return isSetPayTime();
case PAY_MSG:
return isSetPayMsg();
case CREATED_USER_ID:
return isSetCreatedUserID();
case CREATED_USER_NAME:
return isSetCreatedUserName();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof SaleOrder)
return this.equals((SaleOrder)that);
return false;
}
public boolean equals(SaleOrder that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_EnterpriseID = true && this.isSetEnterpriseID();
boolean that_present_EnterpriseID = true && that.isSetEnterpriseID();
if (this_present_EnterpriseID || that_present_EnterpriseID) {
if (!(this_present_EnterpriseID && that_present_EnterpriseID))
return false;
if (!this.EnterpriseID.equals(that.EnterpriseID))
return false;
}
boolean this_present_EnterpriseName = true && this.isSetEnterpriseName();
boolean that_present_EnterpriseName = true && that.isSetEnterpriseName();
if (this_present_EnterpriseName || that_present_EnterpriseName) {
if (!(this_present_EnterpriseName && that_present_EnterpriseName))
return false;
if (!this.EnterpriseName.equals(that.EnterpriseName))
return false;
}
boolean this_present_EnterpriseAddr = true && this.isSetEnterpriseAddr();
boolean that_present_EnterpriseAddr = true && that.isSetEnterpriseAddr();
if (this_present_EnterpriseAddr || that_present_EnterpriseAddr) {
if (!(this_present_EnterpriseAddr && that_present_EnterpriseAddr))
return false;
if (!this.EnterpriseAddr.equals(that.EnterpriseAddr))
return false;
}
boolean this_present_Contacts = true && this.isSetContacts();
boolean that_present_Contacts = true && that.isSetContacts();
if (this_present_Contacts || that_present_Contacts) {
if (!(this_present_Contacts && that_present_Contacts))
return false;
if (!this.Contacts.equals(that.Contacts))
return false;
}
boolean this_present_ContactsMoblie = true && this.isSetContactsMoblie();
boolean that_present_ContactsMoblie = true && that.isSetContactsMoblie();
if (this_present_ContactsMoblie || that_present_ContactsMoblie) {
if (!(this_present_ContactsMoblie && that_present_ContactsMoblie))
return false;
if (!this.ContactsMoblie.equals(that.ContactsMoblie))
return false;
}
boolean this_present_SaleUserID = true && this.isSetSaleUserID();
boolean that_present_SaleUserID = true && that.isSetSaleUserID();
if (this_present_SaleUserID || that_present_SaleUserID) {
if (!(this_present_SaleUserID && that_present_SaleUserID))
return false;
if (!this.SaleUserID.equals(that.SaleUserID))
return false;
}
boolean this_present_SaleUserName = true && this.isSetSaleUserName();
boolean that_present_SaleUserName = true && that.isSetSaleUserName();
if (this_present_SaleUserName || that_present_SaleUserName) {
if (!(this_present_SaleUserName && that_present_SaleUserName))
return false;
if (!this.SaleUserName.equals(that.SaleUserName))
return false;
}
boolean this_present_SaleMoblie = true && this.isSetSaleMoblie();
boolean that_present_SaleMoblie = true && that.isSetSaleMoblie();
if (this_present_SaleMoblie || that_present_SaleMoblie) {
if (!(this_present_SaleMoblie && that_present_SaleMoblie))
return false;
if (!this.SaleMoblie.equals(that.SaleMoblie))
return false;
}
boolean this_present_OrderID = true && this.isSetOrderID();
boolean that_present_OrderID = true && that.isSetOrderID();
if (this_present_OrderID || that_present_OrderID) {
if (!(this_present_OrderID && that_present_OrderID))
return false;
if (!this.OrderID.equals(that.OrderID))
return false;
}
boolean this_present_OrderPrise = true;
boolean that_present_OrderPrise = true;
if (this_present_OrderPrise || that_present_OrderPrise) {
if (!(this_present_OrderPrise && that_present_OrderPrise))
return false;
if (this.OrderPrise != that.OrderPrise)
return false;
}
boolean this_present_OrderTime = true && this.isSetOrderTime();
boolean that_present_OrderTime = true && that.isSetOrderTime();
if (this_present_OrderTime || that_present_OrderTime) {
if (!(this_present_OrderTime && that_present_OrderTime))
return false;
if (!this.OrderTime.equals(that.OrderTime))
return false;
}
boolean this_present_PayStatus = true && this.isSetPayStatus();
boolean that_present_PayStatus = true && that.isSetPayStatus();
if (this_present_PayStatus || that_present_PayStatus) {
if (!(this_present_PayStatus && that_present_PayStatus))
return false;
if (!this.PayStatus.equals(that.PayStatus))
return false;
}
boolean this_present_PayTime = true && this.isSetPayTime();
boolean that_present_PayTime = true && that.isSetPayTime();
if (this_present_PayTime || that_present_PayTime) {
if (!(this_present_PayTime && that_present_PayTime))
return false;
if (!this.PayTime.equals(that.PayTime))
return false;
}
boolean this_present_PayMsg = true && this.isSetPayMsg();
boolean that_present_PayMsg = true && that.isSetPayMsg();
if (this_present_PayMsg || that_present_PayMsg) {
if (!(this_present_PayMsg && that_present_PayMsg))
return false;
if (!this.PayMsg.equals(that.PayMsg))
return false;
}
boolean this_present_CreatedUserID = true && this.isSetCreatedUserID();
boolean that_present_CreatedUserID = true && that.isSetCreatedUserID();
if (this_present_CreatedUserID || that_present_CreatedUserID) {
if (!(this_present_CreatedUserID && that_present_CreatedUserID))
return false;
if (!this.CreatedUserID.equals(that.CreatedUserID))
return false;
}
boolean this_present_CreatedUserName = true && this.isSetCreatedUserName();
boolean that_present_CreatedUserName = true && that.isSetCreatedUserName();
if (this_present_CreatedUserName || that_present_CreatedUserName) {
if (!(this_present_CreatedUserName && that_present_CreatedUserName))
return false;
if (!this.CreatedUserName.equals(that.CreatedUserName))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetEnterpriseID()) ? 131071 : 524287);
if (isSetEnterpriseID())
hashCode = hashCode * 8191 + EnterpriseID.hashCode();
hashCode = hashCode * 8191 + ((isSetEnterpriseName()) ? 131071 : 524287);
if (isSetEnterpriseName())
hashCode = hashCode * 8191 + EnterpriseName.hashCode();
hashCode = hashCode * 8191 + ((isSetEnterpriseAddr()) ? 131071 : 524287);
if (isSetEnterpriseAddr())
hashCode = hashCode * 8191 + EnterpriseAddr.hashCode();
hashCode = hashCode * 8191 + ((isSetContacts()) ? 131071 : 524287);
if (isSetContacts())
hashCode = hashCode * 8191 + Contacts.hashCode();
hashCode = hashCode * 8191 + ((isSetContactsMoblie()) ? 131071 : 524287);
if (isSetContactsMoblie())
hashCode = hashCode * 8191 + ContactsMoblie.hashCode();
hashCode = hashCode * 8191 + ((isSetSaleUserID()) ? 131071 : 524287);
if (isSetSaleUserID())
hashCode = hashCode * 8191 + SaleUserID.hashCode();
hashCode = hashCode * 8191 + ((isSetSaleUserName()) ? 131071 : 524287);
if (isSetSaleUserName())
hashCode = hashCode * 8191 + SaleUserName.hashCode();
hashCode = hashCode * 8191 + ((isSetSaleMoblie()) ? 131071 : 524287);
if (isSetSaleMoblie())
hashCode = hashCode * 8191 + SaleMoblie.hashCode();
hashCode = hashCode * 8191 + ((isSetOrderID()) ? 131071 : 524287);
if (isSetOrderID())
hashCode = hashCode * 8191 + OrderID.hashCode();
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(OrderPrise);
hashCode = hashCode * 8191 + ((isSetOrderTime()) ? 131071 : 524287);
if (isSetOrderTime())
hashCode = hashCode * 8191 + OrderTime.hashCode();
hashCode = hashCode * 8191 + ((isSetPayStatus()) ? 131071 : 524287);
if (isSetPayStatus())
hashCode = hashCode * 8191 + PayStatus.getValue();
hashCode = hashCode * 8191 + ((isSetPayTime()) ? 131071 : 524287);
if (isSetPayTime())
hashCode = hashCode * 8191 + PayTime.hashCode();
hashCode = hashCode * 8191 + ((isSetPayMsg()) ? 131071 : 524287);
if (isSetPayMsg())
hashCode = hashCode * 8191 + PayMsg.hashCode();
hashCode = hashCode * 8191 + ((isSetCreatedUserID()) ? 131071 : 524287);
if (isSetCreatedUserID())
hashCode = hashCode * 8191 + CreatedUserID.hashCode();
hashCode = hashCode * 8191 + ((isSetCreatedUserName()) ? 131071 : 524287);
if (isSetCreatedUserName())
hashCode = hashCode * 8191 + CreatedUserName.hashCode();
return hashCode;
}
@Override
public int compareTo(SaleOrder other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetEnterpriseID()).compareTo(other.isSetEnterpriseID());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEnterpriseID()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.EnterpriseID, other.EnterpriseID);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetEnterpriseName()).compareTo(other.isSetEnterpriseName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEnterpriseName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.EnterpriseName, other.EnterpriseName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetEnterpriseAddr()).compareTo(other.isSetEnterpriseAddr());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEnterpriseAddr()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.EnterpriseAddr, other.EnterpriseAddr);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetContacts()).compareTo(other.isSetContacts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetContacts()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Contacts, other.Contacts);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetContactsMoblie()).compareTo(other.isSetContactsMoblie());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetContactsMoblie()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ContactsMoblie, other.ContactsMoblie);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetSaleUserID()).compareTo(other.isSetSaleUserID());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSaleUserID()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SaleUserID, other.SaleUserID);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetSaleUserName()).compareTo(other.isSetSaleUserName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSaleUserName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SaleUserName, other.SaleUserName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetSaleMoblie()).compareTo(other.isSetSaleMoblie());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSaleMoblie()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SaleMoblie, other.SaleMoblie);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetOrderID()).compareTo(other.isSetOrderID());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOrderID()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.OrderID, other.OrderID);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetOrderPrise()).compareTo(other.isSetOrderPrise());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOrderPrise()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.OrderPrise, other.OrderPrise);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetOrderTime()).compareTo(other.isSetOrderTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOrderTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.OrderTime, other.OrderTime);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetPayStatus()).compareTo(other.isSetPayStatus());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPayStatus()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.PayStatus, other.PayStatus);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetPayTime()).compareTo(other.isSetPayTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPayTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.PayTime, other.PayTime);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetPayMsg()).compareTo(other.isSetPayMsg());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPayMsg()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.PayMsg, other.PayMsg);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetCreatedUserID()).compareTo(other.isSetCreatedUserID());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCreatedUserID()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreatedUserID, other.CreatedUserID);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetCreatedUserName()).compareTo(other.isSetCreatedUserName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCreatedUserName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreatedUserName, other.CreatedUserName);
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 {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("SaleOrder(");
boolean first = true;
sb.append("EnterpriseID:");
if (this.EnterpriseID == null) {
sb.append("null");
} else {
sb.append(this.EnterpriseID);
}
first = false;
if (!first) sb.append(", ");
sb.append("EnterpriseName:");
if (this.EnterpriseName == null) {
sb.append("null");
} else {
sb.append(this.EnterpriseName);
}
first = false;
if (!first) sb.append(", ");
sb.append("EnterpriseAddr:");
if (this.EnterpriseAddr == null) {
sb.append("null");
} else {
sb.append(this.EnterpriseAddr);
}
first = false;
if (!first) sb.append(", ");
sb.append("Contacts:");
if (this.Contacts == null) {
sb.append("null");
} else {
sb.append(this.Contacts);
}
first = false;
if (!first) sb.append(", ");
sb.append("ContactsMoblie:");
if (this.ContactsMoblie == null) {
sb.append("null");
} else {
sb.append(this.ContactsMoblie);
}
first = false;
if (!first) sb.append(", ");
sb.append("SaleUserID:");
if (this.SaleUserID == null) {
sb.append("null");
} else {
sb.append(this.SaleUserID);
}
first = false;
if (!first) sb.append(", ");
sb.append("SaleUserName:");
if (this.SaleUserName == null) {
sb.append("null");
} else {
sb.append(this.SaleUserName);
}
first = false;
if (!first) sb.append(", ");
sb.append("SaleMoblie:");
if (this.SaleMoblie == null) {
sb.append("null");
} else {
sb.append(this.SaleMoblie);
}
first = false;
if (!first) sb.append(", ");
sb.append("OrderID:");
if (this.OrderID == null) {
sb.append("null");
} else {
sb.append(this.OrderID);
}
first = false;
if (!first) sb.append(", ");
sb.append("OrderPrise:");
sb.append(this.OrderPrise);
first = false;
if (!first) sb.append(", ");
sb.append("OrderTime:");
if (this.OrderTime == null) {
sb.append("null");
} else {
sb.append(this.OrderTime);
}
first = false;
if (!first) sb.append(", ");
sb.append("PayStatus:");
if (this.PayStatus == null) {
sb.append("null");
} else {
sb.append(this.PayStatus);
}
first = false;
if (!first) sb.append(", ");
sb.append("PayTime:");
if (this.PayTime == null) {
sb.append("null");
} else {
sb.append(this.PayTime);
}
first = false;
if (!first) sb.append(", ");
sb.append("PayMsg:");
if (this.PayMsg == null) {
sb.append("null");
} else {
sb.append(this.PayMsg);
}
first = false;
if (!first) sb.append(", ");
sb.append("CreatedUserID:");
if (this.CreatedUserID == null) {
sb.append("null");
} else {
sb.append(this.CreatedUserID);
}
first = false;
if (!first) sb.append(", ");
sb.append("CreatedUserName:");
if (this.CreatedUserName == null) {
sb.append("null");
} else {
sb.append(this.CreatedUserName);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
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, java.lang.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_bitfield = 0;
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);
}
}
private static class SaleOrderStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public SaleOrderStandardScheme getScheme() {
return new SaleOrderStandardScheme();
}
}
private static class SaleOrderStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, SaleOrder struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // ENTERPRISE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.EnterpriseID = iprot.readString();
struct.setEnterpriseIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // ENTERPRISE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.EnterpriseName = iprot.readString();
struct.setEnterpriseNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // ENTERPRISE_ADDR
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.EnterpriseAddr = iprot.readString();
struct.setEnterpriseAddrIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // CONTACTS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.Contacts = iprot.readString();
struct.setContactsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // CONTACTS_MOBLIE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ContactsMoblie = iprot.readString();
struct.setContactsMoblieIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // SALE_USER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.SaleUserID = iprot.readString();
struct.setSaleUserIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // SALE_USER_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.SaleUserName = iprot.readString();
struct.setSaleUserNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // SALE_MOBLIE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.SaleMoblie = iprot.readString();
struct.setSaleMoblieIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // ORDER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.OrderID = iprot.readString();
struct.setOrderIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // ORDER_PRISE
if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
struct.OrderPrise = iprot.readDouble();
struct.setOrderPriseIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // ORDER_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.OrderTime = iprot.readString();
struct.setOrderTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // PAY_STATUS
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.PayStatus = cicada.departdriver.config.OrderStatusCodeEnum.findByValue(iprot.readI32());
struct.setPayStatusIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 13: // PAY_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.PayTime = iprot.readString();
struct.setPayTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 14: // PAY_MSG
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.PayMsg = iprot.readString();
struct.setPayMsgIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 15: // CREATED_USER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.CreatedUserID = iprot.readString();
struct.setCreatedUserIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 16: // CREATED_USER_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.CreatedUserName = iprot.readString();
struct.setCreatedUserNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, SaleOrder struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.EnterpriseID != null) {
oprot.writeFieldBegin(ENTERPRISE_ID_FIELD_DESC);
oprot.writeString(struct.EnterpriseID);
oprot.writeFieldEnd();
}
if (struct.EnterpriseName != null) {
oprot.writeFieldBegin(ENTERPRISE_NAME_FIELD_DESC);
oprot.writeString(struct.EnterpriseName);
oprot.writeFieldEnd();
}
if (struct.EnterpriseAddr != null) {
oprot.writeFieldBegin(ENTERPRISE_ADDR_FIELD_DESC);
oprot.writeString(struct.EnterpriseAddr);
oprot.writeFieldEnd();
}
if (struct.Contacts != null) {
oprot.writeFieldBegin(CONTACTS_FIELD_DESC);
oprot.writeString(struct.Contacts);
oprot.writeFieldEnd();
}
if (struct.ContactsMoblie != null) {
oprot.writeFieldBegin(CONTACTS_MOBLIE_FIELD_DESC);
oprot.writeString(struct.ContactsMoblie);
oprot.writeFieldEnd();
}
if (struct.SaleUserID != null) {
oprot.writeFieldBegin(SALE_USER_ID_FIELD_DESC);
oprot.writeString(struct.SaleUserID);
oprot.writeFieldEnd();
}
if (struct.SaleUserName != null) {
oprot.writeFieldBegin(SALE_USER_NAME_FIELD_DESC);
oprot.writeString(struct.SaleUserName);
oprot.writeFieldEnd();
}
if (struct.SaleMoblie != null) {
oprot.writeFieldBegin(SALE_MOBLIE_FIELD_DESC);
oprot.writeString(struct.SaleMoblie);
oprot.writeFieldEnd();
}
if (struct.OrderID != null) {
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
oprot.writeString(struct.OrderID);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(ORDER_PRISE_FIELD_DESC);
oprot.writeDouble(struct.OrderPrise);
oprot.writeFieldEnd();
if (struct.OrderTime != null) {
oprot.writeFieldBegin(ORDER_TIME_FIELD_DESC);
oprot.writeString(struct.OrderTime);
oprot.writeFieldEnd();
}
if (struct.PayStatus != null) {
oprot.writeFieldBegin(PAY_STATUS_FIELD_DESC);
oprot.writeI32(struct.PayStatus.getValue());
oprot.writeFieldEnd();
}
if (struct.PayTime != null) {
oprot.writeFieldBegin(PAY_TIME_FIELD_DESC);
oprot.writeString(struct.PayTime);
oprot.writeFieldEnd();
}
if (struct.PayMsg != null) {
oprot.writeFieldBegin(PAY_MSG_FIELD_DESC);
oprot.writeString(struct.PayMsg);
oprot.writeFieldEnd();
}
if (struct.CreatedUserID != null) {
oprot.writeFieldBegin(CREATED_USER_ID_FIELD_DESC);
oprot.writeString(struct.CreatedUserID);
oprot.writeFieldEnd();
}
if (struct.CreatedUserName != null) {
oprot.writeFieldBegin(CREATED_USER_NAME_FIELD_DESC);
oprot.writeString(struct.CreatedUserName);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class SaleOrderTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public SaleOrderTupleScheme getScheme() {
return new SaleOrderTupleScheme();
}
}
private static class SaleOrderTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, SaleOrder struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetEnterpriseID()) {
optionals.set(0);
}
if (struct.isSetEnterpriseName()) {
optionals.set(1);
}
if (struct.isSetEnterpriseAddr()) {
optionals.set(2);
}
if (struct.isSetContacts()) {
optionals.set(3);
}
if (struct.isSetContactsMoblie()) {
optionals.set(4);
}
if (struct.isSetSaleUserID()) {
optionals.set(5);
}
if (struct.isSetSaleUserName()) {
optionals.set(6);
}
if (struct.isSetSaleMoblie()) {
optionals.set(7);
}
if (struct.isSetOrderID()) {
optionals.set(8);
}
if (struct.isSetOrderPrise()) {
optionals.set(9);
}
if (struct.isSetOrderTime()) {
optionals.set(10);
}
if (struct.isSetPayStatus()) {
optionals.set(11);
}
if (struct.isSetPayTime()) {
optionals.set(12);
}
if (struct.isSetPayMsg()) {
optionals.set(13);
}
if (struct.isSetCreatedUserID()) {
optionals.set(14);
}
if (struct.isSetCreatedUserName()) {
optionals.set(15);
}
oprot.writeBitSet(optionals, 16);
if (struct.isSetEnterpriseID()) {
oprot.writeString(struct.EnterpriseID);
}
if (struct.isSetEnterpriseName()) {
oprot.writeString(struct.EnterpriseName);
}
if (struct.isSetEnterpriseAddr()) {
oprot.writeString(struct.EnterpriseAddr);
}
if (struct.isSetContacts()) {
oprot.writeString(struct.Contacts);
}
if (struct.isSetContactsMoblie()) {
oprot.writeString(struct.ContactsMoblie);
}
if (struct.isSetSaleUserID()) {
oprot.writeString(struct.SaleUserID);
}
if (struct.isSetSaleUserName()) {
oprot.writeString(struct.SaleUserName);
}
if (struct.isSetSaleMoblie()) {
oprot.writeString(struct.SaleMoblie);
}
if (struct.isSetOrderID()) {
oprot.writeString(struct.OrderID);
}
if (struct.isSetOrderPrise()) {
oprot.writeDouble(struct.OrderPrise);
}
if (struct.isSetOrderTime()) {
oprot.writeString(struct.OrderTime);
}
if (struct.isSetPayStatus()) {
oprot.writeI32(struct.PayStatus.getValue());
}
if (struct.isSetPayTime()) {
oprot.writeString(struct.PayTime);
}
if (struct.isSetPayMsg()) {
oprot.writeString(struct.PayMsg);
}
if (struct.isSetCreatedUserID()) {
oprot.writeString(struct.CreatedUserID);
}
if (struct.isSetCreatedUserName()) {
oprot.writeString(struct.CreatedUserName);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, SaleOrder struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(16);
if (incoming.get(0)) {
struct.EnterpriseID = iprot.readString();
struct.setEnterpriseIDIsSet(true);
}
if (incoming.get(1)) {
struct.EnterpriseName = iprot.readString();
struct.setEnterpriseNameIsSet(true);
}
if (incoming.get(2)) {
struct.EnterpriseAddr = iprot.readString();
struct.setEnterpriseAddrIsSet(true);
}
if (incoming.get(3)) {
struct.Contacts = iprot.readString();
struct.setContactsIsSet(true);
}
if (incoming.get(4)) {
struct.ContactsMoblie = iprot.readString();
struct.setContactsMoblieIsSet(true);
}
if (incoming.get(5)) {
struct.SaleUserID = iprot.readString();
struct.setSaleUserIDIsSet(true);
}
if (incoming.get(6)) {
struct.SaleUserName = iprot.readString();
struct.setSaleUserNameIsSet(true);
}
if (incoming.get(7)) {
struct.SaleMoblie = iprot.readString();
struct.setSaleMoblieIsSet(true);
}
if (incoming.get(8)) {
struct.OrderID = iprot.readString();
struct.setOrderIDIsSet(true);
}
if (incoming.get(9)) {
struct.OrderPrise = iprot.readDouble();
struct.setOrderPriseIsSet(true);
}
if (incoming.get(10)) {
struct.OrderTime = iprot.readString();
struct.setOrderTimeIsSet(true);
}
if (incoming.get(11)) {
struct.PayStatus = cicada.departdriver.config.OrderStatusCodeEnum.findByValue(iprot.readI32());
struct.setPayStatusIsSet(true);
}
if (incoming.get(12)) {
struct.PayTime = iprot.readString();
struct.setPayTimeIsSet(true);
}
if (incoming.get(13)) {
struct.PayMsg = iprot.readString();
struct.setPayMsgIsSet(true);
}
if (incoming.get(14)) {
struct.CreatedUserID = iprot.readString();
struct.setCreatedUserIDIsSet(true);
}
if (incoming.get(15)) {
struct.CreatedUserName = iprot.readString();
struct.setCreatedUserNameIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}