| Line 207... |
Line 207... |
| 207 |
* the information into our system.
|
207 |
* the information into our system.
|
| 208 |
*
|
208 |
*
|
| 209 |
* @param orderId
|
209 |
* @param orderId
|
| 210 |
* @param invoice_number
|
210 |
* @param invoice_number
|
| 211 |
* @param billed_by
|
211 |
* @param billed_by
|
| - |
|
212 |
* @param jacketNumber
|
| 212 |
*/
|
213 |
*/
|
| 213 |
public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, org.apache.thrift.TException;
|
214 |
public boolean addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber) throws TransactionServiceException, org.apache.thrift.TException;
|
| 214 |
|
215 |
|
| 215 |
/**
|
216 |
/**
|
| 216 |
* Adds jacket number, item number and IMEI no. to the order. Doesn't update
|
217 |
* Adds jacket number, item number and IMEI no. to the order. Doesn't update
|
| 217 |
* the IMEI no. if a -1 is supplied.
|
218 |
* the IMEI no. if a -1 is supplied.
|
| 218 |
* Also, it generates an invoice number for the order, marks the order as
|
219 |
* Also, it generates an invoice number for the order, marks the order as
|
| Line 616... |
Line 617... |
| 616 |
|
617 |
|
| 617 |
public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
|
618 |
public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 618 |
|
619 |
|
| 619 |
public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.billOrder_call> resultHandler) throws org.apache.thrift.TException;
|
620 |
public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.billOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 620 |
|
621 |
|
| 621 |
public void addBillingDetails(long orderId, String invoice_number, String billed_by, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
|
622 |
public void addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
|
| 622 |
|
623 |
|
| 623 |
public void addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addJacketNumber_call> resultHandler) throws org.apache.thrift.TException;
|
624 |
public void addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addJacketNumber_call> resultHandler) throws org.apache.thrift.TException;
|
| 624 |
|
625 |
|
| 625 |
public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
|
626 |
public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
|
| 626 |
|
627 |
|
| Line 1544... |
Line 1545... |
| 1544 |
throw result.ex;
|
1545 |
throw result.ex;
|
| 1545 |
}
|
1546 |
}
|
| 1546 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
|
1547 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
|
| 1547 |
}
|
1548 |
}
|
| 1548 |
|
1549 |
|
| 1549 |
public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, org.apache.thrift.TException
|
1550 |
public boolean addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber) throws TransactionServiceException, org.apache.thrift.TException
|
| 1550 |
{
|
1551 |
{
|
| 1551 |
send_addBillingDetails(orderId, invoice_number, billed_by);
|
1552 |
send_addBillingDetails(orderId, invoice_number, billed_by, jacketNumber);
|
| 1552 |
return recv_addBillingDetails();
|
1553 |
return recv_addBillingDetails();
|
| 1553 |
}
|
1554 |
}
|
| 1554 |
|
1555 |
|
| 1555 |
public void send_addBillingDetails(long orderId, String invoice_number, String billed_by) throws org.apache.thrift.TException
|
1556 |
public void send_addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber) throws org.apache.thrift.TException
|
| 1556 |
{
|
1557 |
{
|
| 1557 |
addBillingDetails_args args = new addBillingDetails_args();
|
1558 |
addBillingDetails_args args = new addBillingDetails_args();
|
| 1558 |
args.setOrderId(orderId);
|
1559 |
args.setOrderId(orderId);
|
| 1559 |
args.setInvoice_number(invoice_number);
|
1560 |
args.setInvoice_number(invoice_number);
|
| 1560 |
args.setBilled_by(billed_by);
|
1561 |
args.setBilled_by(billed_by);
|
| - |
|
1562 |
args.setJacketNumber(jacketNumber);
|
| 1561 |
sendBase("addBillingDetails", args);
|
1563 |
sendBase("addBillingDetails", args);
|
| 1562 |
}
|
1564 |
}
|
| 1563 |
|
1565 |
|
| 1564 |
public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
|
1566 |
public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
|
| 1565 |
{
|
1567 |
{
|
| Line 3514... |
Line 3516... |
| 3514 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
3516 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 3515 |
return (new Client(prot)).recv_billOrder();
|
3517 |
return (new Client(prot)).recv_billOrder();
|
| 3516 |
}
|
3518 |
}
|
| 3517 |
}
|
3519 |
}
|
| 3518 |
|
3520 |
|
| 3519 |
public void addBillingDetails(long orderId, String invoice_number, String billed_by, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
|
3521 |
public void addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
|
| 3520 |
checkReady();
|
3522 |
checkReady();
|
| 3521 |
addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, billed_by, resultHandler, this, ___protocolFactory, ___transport);
|
3523 |
addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, billed_by, jacketNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3522 |
this.___currentMethod = method_call;
|
3524 |
this.___currentMethod = method_call;
|
| 3523 |
___manager.call(method_call);
|
3525 |
___manager.call(method_call);
|
| 3524 |
}
|
3526 |
}
|
| 3525 |
|
3527 |
|
| 3526 |
public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
|
3528 |
public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 3527 |
private long orderId;
|
3529 |
private long orderId;
|
| 3528 |
private String invoice_number;
|
3530 |
private String invoice_number;
|
| 3529 |
private String billed_by;
|
3531 |
private String billed_by;
|
| - |
|
3532 |
private long jacketNumber;
|
| 3530 |
public addBillingDetails_call(long orderId, String invoice_number, String billed_by, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_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 {
|
3533 |
public addBillingDetails_call(long orderId, String invoice_number, String billed_by, long jacketNumber, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_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 {
|
| 3531 |
super(client, protocolFactory, transport, resultHandler, false);
|
3534 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 3532 |
this.orderId = orderId;
|
3535 |
this.orderId = orderId;
|
| 3533 |
this.invoice_number = invoice_number;
|
3536 |
this.invoice_number = invoice_number;
|
| 3534 |
this.billed_by = billed_by;
|
3537 |
this.billed_by = billed_by;
|
| - |
|
3538 |
this.jacketNumber = jacketNumber;
|
| 3535 |
}
|
3539 |
}
|
| 3536 |
|
3540 |
|
| 3537 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
3541 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 3538 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
3542 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 3539 |
addBillingDetails_args args = new addBillingDetails_args();
|
3543 |
addBillingDetails_args args = new addBillingDetails_args();
|
| 3540 |
args.setOrderId(orderId);
|
3544 |
args.setOrderId(orderId);
|
| 3541 |
args.setInvoice_number(invoice_number);
|
3545 |
args.setInvoice_number(invoice_number);
|
| 3542 |
args.setBilled_by(billed_by);
|
3546 |
args.setBilled_by(billed_by);
|
| - |
|
3547 |
args.setJacketNumber(jacketNumber);
|
| 3543 |
args.write(prot);
|
3548 |
args.write(prot);
|
| 3544 |
prot.writeMessageEnd();
|
3549 |
prot.writeMessageEnd();
|
| 3545 |
}
|
3550 |
}
|
| 3546 |
|
3551 |
|
| 3547 |
public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
|
3552 |
public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
|
| Line 5384... |
Line 5389... |
| 5384 |
}
|
5389 |
}
|
| 5385 |
|
5390 |
|
| 5386 |
protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
|
5391 |
protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
|
| 5387 |
addBillingDetails_result result = new addBillingDetails_result();
|
5392 |
addBillingDetails_result result = new addBillingDetails_result();
|
| 5388 |
try {
|
5393 |
try {
|
| 5389 |
result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.billed_by);
|
5394 |
result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.billed_by, args.jacketNumber);
|
| 5390 |
result.setSuccessIsSet(true);
|
5395 |
result.setSuccessIsSet(true);
|
| 5391 |
} catch (TransactionServiceException ex) {
|
5396 |
} catch (TransactionServiceException ex) {
|
| 5392 |
result.ex = ex;
|
5397 |
result.ex = ex;
|
| 5393 |
}
|
5398 |
}
|
| 5394 |
return result;
|
5399 |
return result;
|
| Line 27041... |
Line 27046... |
| 27041 |
}
|
27046 |
}
|
| 27042 |
}
|
27047 |
}
|
| 27043 |
|
27048 |
|
| 27044 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
27049 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 27045 |
try {
|
27050 |
try {
|
| 27046 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
- |
|
| 27047 |
__isset_bit_vector = new BitSet(1);
|
- |
|
| 27048 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
27051 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 27049 |
} catch (org.apache.thrift.TException te) {
|
27052 |
} catch (org.apache.thrift.TException te) {
|
| 27050 |
throw new java.io.IOException(te);
|
27053 |
throw new java.io.IOException(te);
|
| 27051 |
}
|
27054 |
}
|
| 27052 |
}
|
27055 |
}
|
| Line 30170... |
Line 30173... |
| 30170 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
|
30173 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
|
| 30171 |
|
30174 |
|
| 30172 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
30175 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 30173 |
private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
|
30176 |
private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 30174 |
private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)3);
|
30177 |
private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| - |
|
30178 |
private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 30175 |
|
30179 |
|
| 30176 |
private long orderId; // required
|
30180 |
private long orderId; // required
|
| 30177 |
private String invoice_number; // required
|
30181 |
private String invoice_number; // required
|
| 30178 |
private String billed_by; // required
|
30182 |
private String billed_by; // required
|
| - |
|
30183 |
private long jacketNumber; // required
|
| 30179 |
|
30184 |
|
| 30180 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
30185 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 30181 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
30186 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 30182 |
ORDER_ID((short)1, "orderId"),
|
30187 |
ORDER_ID((short)1, "orderId"),
|
| 30183 |
INVOICE_NUMBER((short)2, "invoice_number"),
|
30188 |
INVOICE_NUMBER((short)2, "invoice_number"),
|
| 30184 |
BILLED_BY((short)3, "billed_by");
|
30189 |
BILLED_BY((short)3, "billed_by"),
|
| - |
|
30190 |
JACKET_NUMBER((short)4, "jacketNumber");
|
| 30185 |
|
30191 |
|
| 30186 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
30192 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 30187 |
|
30193 |
|
| 30188 |
static {
|
30194 |
static {
|
| 30189 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
30195 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 30200... |
Line 30206... |
| 30200 |
return ORDER_ID;
|
30206 |
return ORDER_ID;
|
| 30201 |
case 2: // INVOICE_NUMBER
|
30207 |
case 2: // INVOICE_NUMBER
|
| 30202 |
return INVOICE_NUMBER;
|
30208 |
return INVOICE_NUMBER;
|
| 30203 |
case 3: // BILLED_BY
|
30209 |
case 3: // BILLED_BY
|
| 30204 |
return BILLED_BY;
|
30210 |
return BILLED_BY;
|
| - |
|
30211 |
case 4: // JACKET_NUMBER
|
| - |
|
30212 |
return JACKET_NUMBER;
|
| 30205 |
default:
|
30213 |
default:
|
| 30206 |
return null;
|
30214 |
return null;
|
| 30207 |
}
|
30215 |
}
|
| 30208 |
}
|
30216 |
}
|
| 30209 |
|
30217 |
|
| Line 30241... |
Line 30249... |
| 30241 |
}
|
30249 |
}
|
| 30242 |
}
|
30250 |
}
|
| 30243 |
|
30251 |
|
| 30244 |
// isset id assignments
|
30252 |
// isset id assignments
|
| 30245 |
private static final int __ORDERID_ISSET_ID = 0;
|
30253 |
private static final int __ORDERID_ISSET_ID = 0;
|
| - |
|
30254 |
private static final int __JACKETNUMBER_ISSET_ID = 1;
|
| 30246 |
private BitSet __isset_bit_vector = new BitSet(1);
|
30255 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 30247 |
|
30256 |
|
| 30248 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
30257 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 30249 |
static {
|
30258 |
static {
|
| 30250 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
30259 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 30251 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
30260 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 30252 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
30261 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 30253 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
30262 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 30254 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
30263 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 30255 |
tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
30264 |
tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 30256 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
30265 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
30266 |
tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
30267 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 30257 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
30268 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 30258 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
|
30269 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
|
| 30259 |
}
|
30270 |
}
|
| 30260 |
|
30271 |
|
| 30261 |
public addBillingDetails_args() {
|
30272 |
public addBillingDetails_args() {
|
| 30262 |
}
|
30273 |
}
|
| 30263 |
|
30274 |
|
| 30264 |
public addBillingDetails_args(
|
30275 |
public addBillingDetails_args(
|
| 30265 |
long orderId,
|
30276 |
long orderId,
|
| 30266 |
String invoice_number,
|
30277 |
String invoice_number,
|
| 30267 |
String billed_by)
|
30278 |
String billed_by,
|
| - |
|
30279 |
long jacketNumber)
|
| 30268 |
{
|
30280 |
{
|
| 30269 |
this();
|
30281 |
this();
|
| 30270 |
this.orderId = orderId;
|
30282 |
this.orderId = orderId;
|
| 30271 |
setOrderIdIsSet(true);
|
30283 |
setOrderIdIsSet(true);
|
| 30272 |
this.invoice_number = invoice_number;
|
30284 |
this.invoice_number = invoice_number;
|
| 30273 |
this.billed_by = billed_by;
|
30285 |
this.billed_by = billed_by;
|
| - |
|
30286 |
this.jacketNumber = jacketNumber;
|
| - |
|
30287 |
setJacketNumberIsSet(true);
|
| 30274 |
}
|
30288 |
}
|
| 30275 |
|
30289 |
|
| 30276 |
/**
|
30290 |
/**
|
| 30277 |
* Performs a deep copy on <i>other</i>.
|
30291 |
* Performs a deep copy on <i>other</i>.
|
| 30278 |
*/
|
30292 |
*/
|
| Line 30284... |
Line 30298... |
| 30284 |
this.invoice_number = other.invoice_number;
|
30298 |
this.invoice_number = other.invoice_number;
|
| 30285 |
}
|
30299 |
}
|
| 30286 |
if (other.isSetBilled_by()) {
|
30300 |
if (other.isSetBilled_by()) {
|
| 30287 |
this.billed_by = other.billed_by;
|
30301 |
this.billed_by = other.billed_by;
|
| 30288 |
}
|
30302 |
}
|
| - |
|
30303 |
this.jacketNumber = other.jacketNumber;
|
| 30289 |
}
|
30304 |
}
|
| 30290 |
|
30305 |
|
| 30291 |
public addBillingDetails_args deepCopy() {
|
30306 |
public addBillingDetails_args deepCopy() {
|
| 30292 |
return new addBillingDetails_args(this);
|
30307 |
return new addBillingDetails_args(this);
|
| 30293 |
}
|
30308 |
}
|
| Line 30296... |
Line 30311... |
| 30296 |
public void clear() {
|
30311 |
public void clear() {
|
| 30297 |
setOrderIdIsSet(false);
|
30312 |
setOrderIdIsSet(false);
|
| 30298 |
this.orderId = 0;
|
30313 |
this.orderId = 0;
|
| 30299 |
this.invoice_number = null;
|
30314 |
this.invoice_number = null;
|
| 30300 |
this.billed_by = null;
|
30315 |
this.billed_by = null;
|
| - |
|
30316 |
setJacketNumberIsSet(false);
|
| - |
|
30317 |
this.jacketNumber = 0;
|
| 30301 |
}
|
30318 |
}
|
| 30302 |
|
30319 |
|
| 30303 |
public long getOrderId() {
|
30320 |
public long getOrderId() {
|
| 30304 |
return this.orderId;
|
30321 |
return this.orderId;
|
| 30305 |
}
|
30322 |
}
|
| Line 30366... |
Line 30383... |
| 30366 |
if (!value) {
|
30383 |
if (!value) {
|
| 30367 |
this.billed_by = null;
|
30384 |
this.billed_by = null;
|
| 30368 |
}
|
30385 |
}
|
| 30369 |
}
|
30386 |
}
|
| 30370 |
|
30387 |
|
| - |
|
30388 |
public long getJacketNumber() {
|
| - |
|
30389 |
return this.jacketNumber;
|
| - |
|
30390 |
}
|
| - |
|
30391 |
|
| - |
|
30392 |
public void setJacketNumber(long jacketNumber) {
|
| - |
|
30393 |
this.jacketNumber = jacketNumber;
|
| - |
|
30394 |
setJacketNumberIsSet(true);
|
| - |
|
30395 |
}
|
| - |
|
30396 |
|
| - |
|
30397 |
public void unsetJacketNumber() {
|
| - |
|
30398 |
__isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
|
| - |
|
30399 |
}
|
| - |
|
30400 |
|
| - |
|
30401 |
/** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
|
| - |
|
30402 |
public boolean isSetJacketNumber() {
|
| - |
|
30403 |
return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
|
| - |
|
30404 |
}
|
| - |
|
30405 |
|
| - |
|
30406 |
public void setJacketNumberIsSet(boolean value) {
|
| - |
|
30407 |
__isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
|
| - |
|
30408 |
}
|
| - |
|
30409 |
|
| 30371 |
public void setFieldValue(_Fields field, Object value) {
|
30410 |
public void setFieldValue(_Fields field, Object value) {
|
| 30372 |
switch (field) {
|
30411 |
switch (field) {
|
| 30373 |
case ORDER_ID:
|
30412 |
case ORDER_ID:
|
| 30374 |
if (value == null) {
|
30413 |
if (value == null) {
|
| 30375 |
unsetOrderId();
|
30414 |
unsetOrderId();
|
| Line 30392... |
Line 30431... |
| 30392 |
} else {
|
30431 |
} else {
|
| 30393 |
setBilled_by((String)value);
|
30432 |
setBilled_by((String)value);
|
| 30394 |
}
|
30433 |
}
|
| 30395 |
break;
|
30434 |
break;
|
| 30396 |
|
30435 |
|
| - |
|
30436 |
case JACKET_NUMBER:
|
| - |
|
30437 |
if (value == null) {
|
| - |
|
30438 |
unsetJacketNumber();
|
| - |
|
30439 |
} else {
|
| - |
|
30440 |
setJacketNumber((Long)value);
|
| - |
|
30441 |
}
|
| - |
|
30442 |
break;
|
| - |
|
30443 |
|
| 30397 |
}
|
30444 |
}
|
| 30398 |
}
|
30445 |
}
|
| 30399 |
|
30446 |
|
| 30400 |
public Object getFieldValue(_Fields field) {
|
30447 |
public Object getFieldValue(_Fields field) {
|
| 30401 |
switch (field) {
|
30448 |
switch (field) {
|
| Line 30406... |
Line 30453... |
| 30406 |
return getInvoice_number();
|
30453 |
return getInvoice_number();
|
| 30407 |
|
30454 |
|
| 30408 |
case BILLED_BY:
|
30455 |
case BILLED_BY:
|
| 30409 |
return getBilled_by();
|
30456 |
return getBilled_by();
|
| 30410 |
|
30457 |
|
| - |
|
30458 |
case JACKET_NUMBER:
|
| - |
|
30459 |
return Long.valueOf(getJacketNumber());
|
| - |
|
30460 |
|
| 30411 |
}
|
30461 |
}
|
| 30412 |
throw new IllegalStateException();
|
30462 |
throw new IllegalStateException();
|
| 30413 |
}
|
30463 |
}
|
| 30414 |
|
30464 |
|
| 30415 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
30465 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 30423... |
Line 30473... |
| 30423 |
return isSetOrderId();
|
30473 |
return isSetOrderId();
|
| 30424 |
case INVOICE_NUMBER:
|
30474 |
case INVOICE_NUMBER:
|
| 30425 |
return isSetInvoice_number();
|
30475 |
return isSetInvoice_number();
|
| 30426 |
case BILLED_BY:
|
30476 |
case BILLED_BY:
|
| 30427 |
return isSetBilled_by();
|
30477 |
return isSetBilled_by();
|
| - |
|
30478 |
case JACKET_NUMBER:
|
| - |
|
30479 |
return isSetJacketNumber();
|
| 30428 |
}
|
30480 |
}
|
| 30429 |
throw new IllegalStateException();
|
30481 |
throw new IllegalStateException();
|
| 30430 |
}
|
30482 |
}
|
| 30431 |
|
30483 |
|
| 30432 |
@Override
|
30484 |
@Override
|
| Line 30467... |
Line 30519... |
| 30467 |
return false;
|
30519 |
return false;
|
| 30468 |
if (!this.billed_by.equals(that.billed_by))
|
30520 |
if (!this.billed_by.equals(that.billed_by))
|
| 30469 |
return false;
|
30521 |
return false;
|
| 30470 |
}
|
30522 |
}
|
| 30471 |
|
30523 |
|
| - |
|
30524 |
boolean this_present_jacketNumber = true;
|
| - |
|
30525 |
boolean that_present_jacketNumber = true;
|
| - |
|
30526 |
if (this_present_jacketNumber || that_present_jacketNumber) {
|
| - |
|
30527 |
if (!(this_present_jacketNumber && that_present_jacketNumber))
|
| - |
|
30528 |
return false;
|
| - |
|
30529 |
if (this.jacketNumber != that.jacketNumber)
|
| - |
|
30530 |
return false;
|
| - |
|
30531 |
}
|
| - |
|
30532 |
|
| 30472 |
return true;
|
30533 |
return true;
|
| 30473 |
}
|
30534 |
}
|
| 30474 |
|
30535 |
|
| 30475 |
@Override
|
30536 |
@Override
|
| 30476 |
public int hashCode() {
|
30537 |
public int hashCode() {
|
| Line 30513... |
Line 30574... |
| 30513 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
|
30574 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
|
| 30514 |
if (lastComparison != 0) {
|
30575 |
if (lastComparison != 0) {
|
| 30515 |
return lastComparison;
|
30576 |
return lastComparison;
|
| 30516 |
}
|
30577 |
}
|
| 30517 |
}
|
30578 |
}
|
| - |
|
30579 |
lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
|
| - |
|
30580 |
if (lastComparison != 0) {
|
| - |
|
30581 |
return lastComparison;
|
| - |
|
30582 |
}
|
| - |
|
30583 |
if (isSetJacketNumber()) {
|
| - |
|
30584 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
|
| - |
|
30585 |
if (lastComparison != 0) {
|
| - |
|
30586 |
return lastComparison;
|
| - |
|
30587 |
}
|
| - |
|
30588 |
}
|
| 30518 |
return 0;
|
30589 |
return 0;
|
| 30519 |
}
|
30590 |
}
|
| 30520 |
|
30591 |
|
| 30521 |
public _Fields fieldForId(int fieldId) {
|
30592 |
public _Fields fieldForId(int fieldId) {
|
| 30522 |
return _Fields.findByThriftId(fieldId);
|
30593 |
return _Fields.findByThriftId(fieldId);
|
| Line 30552... |
Line 30623... |
| 30552 |
this.billed_by = iprot.readString();
|
30623 |
this.billed_by = iprot.readString();
|
| 30553 |
} else {
|
30624 |
} else {
|
| 30554 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
30625 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 30555 |
}
|
30626 |
}
|
| 30556 |
break;
|
30627 |
break;
|
| - |
|
30628 |
case 4: // JACKET_NUMBER
|
| - |
|
30629 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
30630 |
this.jacketNumber = iprot.readI64();
|
| - |
|
30631 |
setJacketNumberIsSet(true);
|
| - |
|
30632 |
} else {
|
| - |
|
30633 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
30634 |
}
|
| - |
|
30635 |
break;
|
| 30557 |
default:
|
30636 |
default:
|
| 30558 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
30637 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 30559 |
}
|
30638 |
}
|
| 30560 |
iprot.readFieldEnd();
|
30639 |
iprot.readFieldEnd();
|
| 30561 |
}
|
30640 |
}
|
| Line 30578... |
Line 30657... |
| 30578 |
if (this.billed_by != null) {
|
30657 |
if (this.billed_by != null) {
|
| 30579 |
oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
|
30658 |
oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
|
| 30580 |
oprot.writeString(this.billed_by);
|
30659 |
oprot.writeString(this.billed_by);
|
| 30581 |
oprot.writeFieldEnd();
|
30660 |
oprot.writeFieldEnd();
|
| 30582 |
}
|
30661 |
}
|
| - |
|
30662 |
oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
|
| - |
|
30663 |
oprot.writeI64(this.jacketNumber);
|
| - |
|
30664 |
oprot.writeFieldEnd();
|
| 30583 |
oprot.writeFieldStop();
|
30665 |
oprot.writeFieldStop();
|
| 30584 |
oprot.writeStructEnd();
|
30666 |
oprot.writeStructEnd();
|
| 30585 |
}
|
30667 |
}
|
| 30586 |
|
30668 |
|
| 30587 |
@Override
|
30669 |
@Override
|
| Line 30606... |
Line 30688... |
| 30606 |
sb.append("null");
|
30688 |
sb.append("null");
|
| 30607 |
} else {
|
30689 |
} else {
|
| 30608 |
sb.append(this.billed_by);
|
30690 |
sb.append(this.billed_by);
|
| 30609 |
}
|
30691 |
}
|
| 30610 |
first = false;
|
30692 |
first = false;
|
| - |
|
30693 |
if (!first) sb.append(", ");
|
| - |
|
30694 |
sb.append("jacketNumber:");
|
| - |
|
30695 |
sb.append(this.jacketNumber);
|
| - |
|
30696 |
first = false;
|
| 30611 |
sb.append(")");
|
30697 |
sb.append(")");
|
| 30612 |
return sb.toString();
|
30698 |
return sb.toString();
|
| 30613 |
}
|
30699 |
}
|
| 30614 |
|
30700 |
|
| 30615 |
public void validate() throws org.apache.thrift.TException {
|
30701 |
public void validate() throws org.apache.thrift.TException {
|
| Line 31724... |
Line 31810... |
| 31724 |
}
|
31810 |
}
|
| 31725 |
}
|
31811 |
}
|
| 31726 |
|
31812 |
|
| 31727 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
31813 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 31728 |
try {
|
31814 |
try {
|
| - |
|
31815 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
31816 |
__isset_bit_vector = new BitSet(1);
|
| 31729 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
31817 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 31730 |
} catch (org.apache.thrift.TException te) {
|
31818 |
} catch (org.apache.thrift.TException te) {
|
| 31731 |
throw new java.io.IOException(te);
|
31819 |
throw new java.io.IOException(te);
|
| 31732 |
}
|
31820 |
}
|
| 31733 |
}
|
31821 |
}
|