| Line 149... |
Line 149... |
| 149 |
* Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
|
149 |
* Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
|
| 150 |
*
|
150 |
*
|
| 151 |
* @param cartId
|
151 |
* @param cartId
|
| 152 |
* @param sessionSource
|
152 |
* @param sessionSource
|
| 153 |
* @param sessionStartTime
|
153 |
* @param sessionStartTime
|
| - |
|
154 |
* @param firstSource
|
| - |
|
155 |
* @param firstSourceTime
|
| 154 |
*/
|
156 |
*/
|
| 155 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException;
|
157 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime) throws ShoppingCartException, org.apache.thrift.TException;
|
| 156 |
|
158 |
|
| 157 |
/**
|
159 |
/**
|
| 158 |
* Validates that:
|
160 |
* Validates that:
|
| 159 |
* 1. The checkout timestamp is greater than the updatedOn timestamp.
|
161 |
* 1. The checkout timestamp is greater than the updatedOn timestamp.
|
| 160 |
* 2. All of the lines in the cart are active items.
|
162 |
* 2. All of the lines in the cart are active items.
|
| Line 379... |
Line 381... |
| 379 |
|
381 |
|
| 380 |
public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
|
382 |
public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
|
| 381 |
|
383 |
|
| 382 |
public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
|
384 |
public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
|
| 383 |
|
385 |
|
| 384 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
|
386 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
|
| 385 |
|
387 |
|
| 386 |
public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
|
388 |
public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
|
| 387 |
|
389 |
|
| 388 |
public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
|
390 |
public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
|
| 389 |
|
391 |
|
| Line 1855... |
Line 1857... |
| 1855 |
throw result.scx;
|
1857 |
throw result.scx;
|
| 1856 |
}
|
1858 |
}
|
| 1857 |
return;
|
1859 |
return;
|
| 1858 |
}
|
1860 |
}
|
| 1859 |
|
1861 |
|
| 1860 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException
|
1862 |
public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime) throws ShoppingCartException, org.apache.thrift.TException
|
| 1861 |
{
|
1863 |
{
|
| 1862 |
send_createOrders(cartId, sessionSource, sessionStartTime);
|
1864 |
send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime);
|
| 1863 |
return recv_createOrders();
|
1865 |
return recv_createOrders();
|
| 1864 |
}
|
1866 |
}
|
| 1865 |
|
1867 |
|
| 1866 |
public void send_createOrders(long cartId, String sessionSource, long sessionStartTime) throws org.apache.thrift.TException
|
1868 |
public void send_createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime) throws org.apache.thrift.TException
|
| 1867 |
{
|
1869 |
{
|
| 1868 |
createOrders_args args = new createOrders_args();
|
1870 |
createOrders_args args = new createOrders_args();
|
| 1869 |
args.setCartId(cartId);
|
1871 |
args.setCartId(cartId);
|
| 1870 |
args.setSessionSource(sessionSource);
|
1872 |
args.setSessionSource(sessionSource);
|
| 1871 |
args.setSessionStartTime(sessionStartTime);
|
1873 |
args.setSessionStartTime(sessionStartTime);
|
| - |
|
1874 |
args.setFirstSource(firstSource);
|
| - |
|
1875 |
args.setFirstSourceTime(firstSourceTime);
|
| 1872 |
sendBase("createOrders", args);
|
1876 |
sendBase("createOrders", args);
|
| 1873 |
}
|
1877 |
}
|
| 1874 |
|
1878 |
|
| 1875 |
public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
|
1879 |
public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
|
| 1876 |
{
|
1880 |
{
|
| Line 4111... |
Line 4115... |
| 4111 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
4115 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4112 |
(new Client(prot)).recv_saveDiscounts();
|
4116 |
(new Client(prot)).recv_saveDiscounts();
|
| 4113 |
}
|
4117 |
}
|
| 4114 |
}
|
4118 |
}
|
| 4115 |
|
4119 |
|
| 4116 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
|
4120 |
public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
|
| 4117 |
checkReady();
|
4121 |
checkReady();
|
| 4118 |
createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, resultHandler, this, ___protocolFactory, ___transport);
|
4122 |
createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, resultHandler, this, ___protocolFactory, ___transport);
|
| 4119 |
this.___currentMethod = method_call;
|
4123 |
this.___currentMethod = method_call;
|
| 4120 |
___manager.call(method_call);
|
4124 |
___manager.call(method_call);
|
| 4121 |
}
|
4125 |
}
|
| 4122 |
|
4126 |
|
| 4123 |
public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
4127 |
public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4124 |
private long cartId;
|
4128 |
private long cartId;
|
| 4125 |
private String sessionSource;
|
4129 |
private String sessionSource;
|
| 4126 |
private long sessionStartTime;
|
4130 |
private long sessionStartTime;
|
| - |
|
4131 |
private String firstSource;
|
| - |
|
4132 |
private long firstSourceTime;
|
| 4127 |
public createOrders_call(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_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 {
|
4133 |
public createOrders_call(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_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 {
|
| 4128 |
super(client, protocolFactory, transport, resultHandler, false);
|
4134 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4129 |
this.cartId = cartId;
|
4135 |
this.cartId = cartId;
|
| 4130 |
this.sessionSource = sessionSource;
|
4136 |
this.sessionSource = sessionSource;
|
| 4131 |
this.sessionStartTime = sessionStartTime;
|
4137 |
this.sessionStartTime = sessionStartTime;
|
| - |
|
4138 |
this.firstSource = firstSource;
|
| - |
|
4139 |
this.firstSourceTime = firstSourceTime;
|
| 4132 |
}
|
4140 |
}
|
| 4133 |
|
4141 |
|
| 4134 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
4142 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4135 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
4143 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 4136 |
createOrders_args args = new createOrders_args();
|
4144 |
createOrders_args args = new createOrders_args();
|
| 4137 |
args.setCartId(cartId);
|
4145 |
args.setCartId(cartId);
|
| 4138 |
args.setSessionSource(sessionSource);
|
4146 |
args.setSessionSource(sessionSource);
|
| 4139 |
args.setSessionStartTime(sessionStartTime);
|
4147 |
args.setSessionStartTime(sessionStartTime);
|
| - |
|
4148 |
args.setFirstSource(firstSource);
|
| - |
|
4149 |
args.setFirstSourceTime(firstSourceTime);
|
| 4140 |
args.write(prot);
|
4150 |
args.write(prot);
|
| 4141 |
prot.writeMessageEnd();
|
4151 |
prot.writeMessageEnd();
|
| 4142 |
}
|
4152 |
}
|
| 4143 |
|
4153 |
|
| 4144 |
public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
|
4154 |
public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
|
| Line 5858... |
Line 5868... |
| 5858 |
}
|
5868 |
}
|
| 5859 |
|
5869 |
|
| 5860 |
protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
|
5870 |
protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
|
| 5861 |
createOrders_result result = new createOrders_result();
|
5871 |
createOrders_result result = new createOrders_result();
|
| 5862 |
try {
|
5872 |
try {
|
| 5863 |
result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime);
|
5873 |
result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime);
|
| 5864 |
result.setSuccessIsSet(true);
|
5874 |
result.setSuccessIsSet(true);
|
| 5865 |
} catch (ShoppingCartException scx) {
|
5875 |
} catch (ShoppingCartException scx) {
|
| 5866 |
result.scx = scx;
|
5876 |
result.scx = scx;
|
| 5867 |
}
|
5877 |
}
|
| 5868 |
return result;
|
5878 |
return result;
|
| Line 46031... |
Line 46041... |
| 46031 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
|
46041 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
|
| 46032 |
|
46042 |
|
| 46033 |
private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
|
46043 |
private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 46034 |
private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
|
46044 |
private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 46035 |
private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)3);
|
46045 |
private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
46046 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSource", org.apache.thrift.protocol.TType.STRING, (short)4);
|
| - |
|
46047 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSourceTime", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 46036 |
|
46048 |
|
| 46037 |
private long cartId; // required
|
46049 |
private long cartId; // required
|
| 46038 |
private String sessionSource; // required
|
46050 |
private String sessionSource; // required
|
| 46039 |
private long sessionStartTime; // required
|
46051 |
private long sessionStartTime; // required
|
| - |
|
46052 |
private String firstSource; // required
|
| - |
|
46053 |
private long firstSourceTime; // required
|
| 46040 |
|
46054 |
|
| 46041 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
46055 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 46042 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
46056 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 46043 |
CART_ID((short)1, "cartId"),
|
46057 |
CART_ID((short)1, "cartId"),
|
| 46044 |
SESSION_SOURCE((short)2, "sessionSource"),
|
46058 |
SESSION_SOURCE((short)2, "sessionSource"),
|
| 46045 |
SESSION_START_TIME((short)3, "sessionStartTime");
|
46059 |
SESSION_START_TIME((short)3, "sessionStartTime"),
|
| - |
|
46060 |
FIRST_SOURCE((short)4, "firstSource"),
|
| - |
|
46061 |
FIRST_SOURCE_TIME((short)5, "firstSourceTime");
|
| 46046 |
|
46062 |
|
| 46047 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
46063 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 46048 |
|
46064 |
|
| 46049 |
static {
|
46065 |
static {
|
| 46050 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
46066 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 46061... |
Line 46077... |
| 46061 |
return CART_ID;
|
46077 |
return CART_ID;
|
| 46062 |
case 2: // SESSION_SOURCE
|
46078 |
case 2: // SESSION_SOURCE
|
| 46063 |
return SESSION_SOURCE;
|
46079 |
return SESSION_SOURCE;
|
| 46064 |
case 3: // SESSION_START_TIME
|
46080 |
case 3: // SESSION_START_TIME
|
| 46065 |
return SESSION_START_TIME;
|
46081 |
return SESSION_START_TIME;
|
| - |
|
46082 |
case 4: // FIRST_SOURCE
|
| - |
|
46083 |
return FIRST_SOURCE;
|
| - |
|
46084 |
case 5: // FIRST_SOURCE_TIME
|
| - |
|
46085 |
return FIRST_SOURCE_TIME;
|
| 46066 |
default:
|
46086 |
default:
|
| 46067 |
return null;
|
46087 |
return null;
|
| 46068 |
}
|
46088 |
}
|
| 46069 |
}
|
46089 |
}
|
| 46070 |
|
46090 |
|
| Line 46103... |
Line 46123... |
| 46103 |
}
|
46123 |
}
|
| 46104 |
|
46124 |
|
| 46105 |
// isset id assignments
|
46125 |
// isset id assignments
|
| 46106 |
private static final int __CARTID_ISSET_ID = 0;
|
46126 |
private static final int __CARTID_ISSET_ID = 0;
|
| 46107 |
private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
|
46127 |
private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
|
| - |
|
46128 |
private static final int __FIRSTSOURCETIME_ISSET_ID = 2;
|
| 46108 |
private BitSet __isset_bit_vector = new BitSet(2);
|
46129 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 46109 |
|
46130 |
|
| 46110 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
46131 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 46111 |
static {
|
46132 |
static {
|
| 46112 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
46133 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 46113 |
tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
46134 |
tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 46114 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
46135 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 46115 |
tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
46136 |
tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 46116 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
46137 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 46117 |
tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
46138 |
tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 46118 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
46139 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
46140 |
tmpMap.put(_Fields.FIRST_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("firstSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
46141 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
46142 |
tmpMap.put(_Fields.FIRST_SOURCE_TIME, new org.apache.thrift.meta_data.FieldMetaData("firstSourceTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
46143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 46119 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
46144 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 46120 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
|
46145 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
|
| 46121 |
}
|
46146 |
}
|
| 46122 |
|
46147 |
|
| 46123 |
public createOrders_args() {
|
46148 |
public createOrders_args() {
|
| 46124 |
}
|
46149 |
}
|
| 46125 |
|
46150 |
|
| 46126 |
public createOrders_args(
|
46151 |
public createOrders_args(
|
| 46127 |
long cartId,
|
46152 |
long cartId,
|
| 46128 |
String sessionSource,
|
46153 |
String sessionSource,
|
| 46129 |
long sessionStartTime)
|
46154 |
long sessionStartTime,
|
| - |
|
46155 |
String firstSource,
|
| - |
|
46156 |
long firstSourceTime)
|
| 46130 |
{
|
46157 |
{
|
| 46131 |
this();
|
46158 |
this();
|
| 46132 |
this.cartId = cartId;
|
46159 |
this.cartId = cartId;
|
| 46133 |
setCartIdIsSet(true);
|
46160 |
setCartIdIsSet(true);
|
| 46134 |
this.sessionSource = sessionSource;
|
46161 |
this.sessionSource = sessionSource;
|
| 46135 |
this.sessionStartTime = sessionStartTime;
|
46162 |
this.sessionStartTime = sessionStartTime;
|
| 46136 |
setSessionStartTimeIsSet(true);
|
46163 |
setSessionStartTimeIsSet(true);
|
| - |
|
46164 |
this.firstSource = firstSource;
|
| - |
|
46165 |
this.firstSourceTime = firstSourceTime;
|
| - |
|
46166 |
setFirstSourceTimeIsSet(true);
|
| 46137 |
}
|
46167 |
}
|
| 46138 |
|
46168 |
|
| 46139 |
/**
|
46169 |
/**
|
| 46140 |
* Performs a deep copy on <i>other</i>.
|
46170 |
* Performs a deep copy on <i>other</i>.
|
| 46141 |
*/
|
46171 |
*/
|
| Line 46145... |
Line 46175... |
| 46145 |
this.cartId = other.cartId;
|
46175 |
this.cartId = other.cartId;
|
| 46146 |
if (other.isSetSessionSource()) {
|
46176 |
if (other.isSetSessionSource()) {
|
| 46147 |
this.sessionSource = other.sessionSource;
|
46177 |
this.sessionSource = other.sessionSource;
|
| 46148 |
}
|
46178 |
}
|
| 46149 |
this.sessionStartTime = other.sessionStartTime;
|
46179 |
this.sessionStartTime = other.sessionStartTime;
|
| - |
|
46180 |
if (other.isSetFirstSource()) {
|
| - |
|
46181 |
this.firstSource = other.firstSource;
|
| - |
|
46182 |
}
|
| - |
|
46183 |
this.firstSourceTime = other.firstSourceTime;
|
| 46150 |
}
|
46184 |
}
|
| 46151 |
|
46185 |
|
| 46152 |
public createOrders_args deepCopy() {
|
46186 |
public createOrders_args deepCopy() {
|
| 46153 |
return new createOrders_args(this);
|
46187 |
return new createOrders_args(this);
|
| 46154 |
}
|
46188 |
}
|
| Line 46158... |
Line 46192... |
| 46158 |
setCartIdIsSet(false);
|
46192 |
setCartIdIsSet(false);
|
| 46159 |
this.cartId = 0;
|
46193 |
this.cartId = 0;
|
| 46160 |
this.sessionSource = null;
|
46194 |
this.sessionSource = null;
|
| 46161 |
setSessionStartTimeIsSet(false);
|
46195 |
setSessionStartTimeIsSet(false);
|
| 46162 |
this.sessionStartTime = 0;
|
46196 |
this.sessionStartTime = 0;
|
| - |
|
46197 |
this.firstSource = null;
|
| - |
|
46198 |
setFirstSourceTimeIsSet(false);
|
| - |
|
46199 |
this.firstSourceTime = 0;
|
| 46163 |
}
|
46200 |
}
|
| 46164 |
|
46201 |
|
| 46165 |
public long getCartId() {
|
46202 |
public long getCartId() {
|
| 46166 |
return this.cartId;
|
46203 |
return this.cartId;
|
| 46167 |
}
|
46204 |
}
|
| Line 46227... |
Line 46264... |
| 46227 |
|
46264 |
|
| 46228 |
public void setSessionStartTimeIsSet(boolean value) {
|
46265 |
public void setSessionStartTimeIsSet(boolean value) {
|
| 46229 |
__isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
|
46266 |
__isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
|
| 46230 |
}
|
46267 |
}
|
| 46231 |
|
46268 |
|
| - |
|
46269 |
public String getFirstSource() {
|
| - |
|
46270 |
return this.firstSource;
|
| - |
|
46271 |
}
|
| - |
|
46272 |
|
| - |
|
46273 |
public void setFirstSource(String firstSource) {
|
| - |
|
46274 |
this.firstSource = firstSource;
|
| - |
|
46275 |
}
|
| - |
|
46276 |
|
| - |
|
46277 |
public void unsetFirstSource() {
|
| - |
|
46278 |
this.firstSource = null;
|
| - |
|
46279 |
}
|
| - |
|
46280 |
|
| - |
|
46281 |
/** Returns true if field firstSource is set (has been assigned a value) and false otherwise */
|
| - |
|
46282 |
public boolean isSetFirstSource() {
|
| - |
|
46283 |
return this.firstSource != null;
|
| - |
|
46284 |
}
|
| - |
|
46285 |
|
| - |
|
46286 |
public void setFirstSourceIsSet(boolean value) {
|
| - |
|
46287 |
if (!value) {
|
| - |
|
46288 |
this.firstSource = null;
|
| - |
|
46289 |
}
|
| - |
|
46290 |
}
|
| - |
|
46291 |
|
| - |
|
46292 |
public long getFirstSourceTime() {
|
| - |
|
46293 |
return this.firstSourceTime;
|
| - |
|
46294 |
}
|
| - |
|
46295 |
|
| - |
|
46296 |
public void setFirstSourceTime(long firstSourceTime) {
|
| - |
|
46297 |
this.firstSourceTime = firstSourceTime;
|
| - |
|
46298 |
setFirstSourceTimeIsSet(true);
|
| - |
|
46299 |
}
|
| - |
|
46300 |
|
| - |
|
46301 |
public void unsetFirstSourceTime() {
|
| - |
|
46302 |
__isset_bit_vector.clear(__FIRSTSOURCETIME_ISSET_ID);
|
| - |
|
46303 |
}
|
| - |
|
46304 |
|
| - |
|
46305 |
/** Returns true if field firstSourceTime is set (has been assigned a value) and false otherwise */
|
| - |
|
46306 |
public boolean isSetFirstSourceTime() {
|
| - |
|
46307 |
return __isset_bit_vector.get(__FIRSTSOURCETIME_ISSET_ID);
|
| - |
|
46308 |
}
|
| - |
|
46309 |
|
| - |
|
46310 |
public void setFirstSourceTimeIsSet(boolean value) {
|
| - |
|
46311 |
__isset_bit_vector.set(__FIRSTSOURCETIME_ISSET_ID, value);
|
| - |
|
46312 |
}
|
| - |
|
46313 |
|
| 46232 |
public void setFieldValue(_Fields field, Object value) {
|
46314 |
public void setFieldValue(_Fields field, Object value) {
|
| 46233 |
switch (field) {
|
46315 |
switch (field) {
|
| 46234 |
case CART_ID:
|
46316 |
case CART_ID:
|
| 46235 |
if (value == null) {
|
46317 |
if (value == null) {
|
| 46236 |
unsetCartId();
|
46318 |
unsetCartId();
|
| Line 46253... |
Line 46335... |
| 46253 |
} else {
|
46335 |
} else {
|
| 46254 |
setSessionStartTime((Long)value);
|
46336 |
setSessionStartTime((Long)value);
|
| 46255 |
}
|
46337 |
}
|
| 46256 |
break;
|
46338 |
break;
|
| 46257 |
|
46339 |
|
| - |
|
46340 |
case FIRST_SOURCE:
|
| - |
|
46341 |
if (value == null) {
|
| - |
|
46342 |
unsetFirstSource();
|
| - |
|
46343 |
} else {
|
| - |
|
46344 |
setFirstSource((String)value);
|
| - |
|
46345 |
}
|
| - |
|
46346 |
break;
|
| - |
|
46347 |
|
| - |
|
46348 |
case FIRST_SOURCE_TIME:
|
| - |
|
46349 |
if (value == null) {
|
| - |
|
46350 |
unsetFirstSourceTime();
|
| - |
|
46351 |
} else {
|
| - |
|
46352 |
setFirstSourceTime((Long)value);
|
| - |
|
46353 |
}
|
| - |
|
46354 |
break;
|
| - |
|
46355 |
|
| 46258 |
}
|
46356 |
}
|
| 46259 |
}
|
46357 |
}
|
| 46260 |
|
46358 |
|
| 46261 |
public Object getFieldValue(_Fields field) {
|
46359 |
public Object getFieldValue(_Fields field) {
|
| 46262 |
switch (field) {
|
46360 |
switch (field) {
|
| Line 46267... |
Line 46365... |
| 46267 |
return getSessionSource();
|
46365 |
return getSessionSource();
|
| 46268 |
|
46366 |
|
| 46269 |
case SESSION_START_TIME:
|
46367 |
case SESSION_START_TIME:
|
| 46270 |
return Long.valueOf(getSessionStartTime());
|
46368 |
return Long.valueOf(getSessionStartTime());
|
| 46271 |
|
46369 |
|
| - |
|
46370 |
case FIRST_SOURCE:
|
| - |
|
46371 |
return getFirstSource();
|
| - |
|
46372 |
|
| - |
|
46373 |
case FIRST_SOURCE_TIME:
|
| - |
|
46374 |
return Long.valueOf(getFirstSourceTime());
|
| - |
|
46375 |
|
| 46272 |
}
|
46376 |
}
|
| 46273 |
throw new IllegalStateException();
|
46377 |
throw new IllegalStateException();
|
| 46274 |
}
|
46378 |
}
|
| 46275 |
|
46379 |
|
| 46276 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
46380 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 46284... |
Line 46388... |
| 46284 |
return isSetCartId();
|
46388 |
return isSetCartId();
|
| 46285 |
case SESSION_SOURCE:
|
46389 |
case SESSION_SOURCE:
|
| 46286 |
return isSetSessionSource();
|
46390 |
return isSetSessionSource();
|
| 46287 |
case SESSION_START_TIME:
|
46391 |
case SESSION_START_TIME:
|
| 46288 |
return isSetSessionStartTime();
|
46392 |
return isSetSessionStartTime();
|
| - |
|
46393 |
case FIRST_SOURCE:
|
| - |
|
46394 |
return isSetFirstSource();
|
| - |
|
46395 |
case FIRST_SOURCE_TIME:
|
| - |
|
46396 |
return isSetFirstSourceTime();
|
| 46289 |
}
|
46397 |
}
|
| 46290 |
throw new IllegalStateException();
|
46398 |
throw new IllegalStateException();
|
| 46291 |
}
|
46399 |
}
|
| 46292 |
|
46400 |
|
| 46293 |
@Override
|
46401 |
@Override
|
| Line 46328... |
Line 46436... |
| 46328 |
return false;
|
46436 |
return false;
|
| 46329 |
if (this.sessionStartTime != that.sessionStartTime)
|
46437 |
if (this.sessionStartTime != that.sessionStartTime)
|
| 46330 |
return false;
|
46438 |
return false;
|
| 46331 |
}
|
46439 |
}
|
| 46332 |
|
46440 |
|
| - |
|
46441 |
boolean this_present_firstSource = true && this.isSetFirstSource();
|
| - |
|
46442 |
boolean that_present_firstSource = true && that.isSetFirstSource();
|
| - |
|
46443 |
if (this_present_firstSource || that_present_firstSource) {
|
| - |
|
46444 |
if (!(this_present_firstSource && that_present_firstSource))
|
| - |
|
46445 |
return false;
|
| - |
|
46446 |
if (!this.firstSource.equals(that.firstSource))
|
| - |
|
46447 |
return false;
|
| - |
|
46448 |
}
|
| - |
|
46449 |
|
| - |
|
46450 |
boolean this_present_firstSourceTime = true;
|
| - |
|
46451 |
boolean that_present_firstSourceTime = true;
|
| - |
|
46452 |
if (this_present_firstSourceTime || that_present_firstSourceTime) {
|
| - |
|
46453 |
if (!(this_present_firstSourceTime && that_present_firstSourceTime))
|
| - |
|
46454 |
return false;
|
| - |
|
46455 |
if (this.firstSourceTime != that.firstSourceTime)
|
| - |
|
46456 |
return false;
|
| - |
|
46457 |
}
|
| - |
|
46458 |
|
| 46333 |
return true;
|
46459 |
return true;
|
| 46334 |
}
|
46460 |
}
|
| 46335 |
|
46461 |
|
| 46336 |
@Override
|
46462 |
@Override
|
| 46337 |
public int hashCode() {
|
46463 |
public int hashCode() {
|
| Line 46374... |
Line 46500... |
| 46374 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
|
46500 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
|
| 46375 |
if (lastComparison != 0) {
|
46501 |
if (lastComparison != 0) {
|
| 46376 |
return lastComparison;
|
46502 |
return lastComparison;
|
| 46377 |
}
|
46503 |
}
|
| 46378 |
}
|
46504 |
}
|
| - |
|
46505 |
lastComparison = Boolean.valueOf(isSetFirstSource()).compareTo(typedOther.isSetFirstSource());
|
| - |
|
46506 |
if (lastComparison != 0) {
|
| - |
|
46507 |
return lastComparison;
|
| - |
|
46508 |
}
|
| - |
|
46509 |
if (isSetFirstSource()) {
|
| - |
|
46510 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstSource, typedOther.firstSource);
|
| - |
|
46511 |
if (lastComparison != 0) {
|
| - |
|
46512 |
return lastComparison;
|
| - |
|
46513 |
}
|
| - |
|
46514 |
}
|
| - |
|
46515 |
lastComparison = Boolean.valueOf(isSetFirstSourceTime()).compareTo(typedOther.isSetFirstSourceTime());
|
| - |
|
46516 |
if (lastComparison != 0) {
|
| - |
|
46517 |
return lastComparison;
|
| - |
|
46518 |
}
|
| - |
|
46519 |
if (isSetFirstSourceTime()) {
|
| - |
|
46520 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstSourceTime, typedOther.firstSourceTime);
|
| - |
|
46521 |
if (lastComparison != 0) {
|
| - |
|
46522 |
return lastComparison;
|
| - |
|
46523 |
}
|
| - |
|
46524 |
}
|
| 46379 |
return 0;
|
46525 |
return 0;
|
| 46380 |
}
|
46526 |
}
|
| 46381 |
|
46527 |
|
| 46382 |
public _Fields fieldForId(int fieldId) {
|
46528 |
public _Fields fieldForId(int fieldId) {
|
| 46383 |
return _Fields.findByThriftId(fieldId);
|
46529 |
return _Fields.findByThriftId(fieldId);
|
| Line 46414... |
Line 46560... |
| 46414 |
setSessionStartTimeIsSet(true);
|
46560 |
setSessionStartTimeIsSet(true);
|
| 46415 |
} else {
|
46561 |
} else {
|
| 46416 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
46562 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 46417 |
}
|
46563 |
}
|
| 46418 |
break;
|
46564 |
break;
|
| - |
|
46565 |
case 4: // FIRST_SOURCE
|
| - |
|
46566 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
46567 |
this.firstSource = iprot.readString();
|
| - |
|
46568 |
} else {
|
| - |
|
46569 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
46570 |
}
|
| - |
|
46571 |
break;
|
| - |
|
46572 |
case 5: // FIRST_SOURCE_TIME
|
| - |
|
46573 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
46574 |
this.firstSourceTime = iprot.readI64();
|
| - |
|
46575 |
setFirstSourceTimeIsSet(true);
|
| - |
|
46576 |
} else {
|
| - |
|
46577 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
46578 |
}
|
| - |
|
46579 |
break;
|
| 46419 |
default:
|
46580 |
default:
|
| 46420 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
46581 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 46421 |
}
|
46582 |
}
|
| 46422 |
iprot.readFieldEnd();
|
46583 |
iprot.readFieldEnd();
|
| 46423 |
}
|
46584 |
}
|
| Line 46438... |
Line 46599... |
| 46438 |
oprot.writeFieldEnd();
|
46599 |
oprot.writeFieldEnd();
|
| 46439 |
}
|
46600 |
}
|
| 46440 |
oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
|
46601 |
oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
|
| 46441 |
oprot.writeI64(this.sessionStartTime);
|
46602 |
oprot.writeI64(this.sessionStartTime);
|
| 46442 |
oprot.writeFieldEnd();
|
46603 |
oprot.writeFieldEnd();
|
| - |
|
46604 |
if (this.firstSource != null) {
|
| - |
|
46605 |
oprot.writeFieldBegin(FIRST_SOURCE_FIELD_DESC);
|
| - |
|
46606 |
oprot.writeString(this.firstSource);
|
| - |
|
46607 |
oprot.writeFieldEnd();
|
| - |
|
46608 |
}
|
| - |
|
46609 |
oprot.writeFieldBegin(FIRST_SOURCE_TIME_FIELD_DESC);
|
| - |
|
46610 |
oprot.writeI64(this.firstSourceTime);
|
| - |
|
46611 |
oprot.writeFieldEnd();
|
| 46443 |
oprot.writeFieldStop();
|
46612 |
oprot.writeFieldStop();
|
| 46444 |
oprot.writeStructEnd();
|
46613 |
oprot.writeStructEnd();
|
| 46445 |
}
|
46614 |
}
|
| 46446 |
|
46615 |
|
| 46447 |
@Override
|
46616 |
@Override
|
| Line 46462... |
Line 46631... |
| 46462 |
first = false;
|
46631 |
first = false;
|
| 46463 |
if (!first) sb.append(", ");
|
46632 |
if (!first) sb.append(", ");
|
| 46464 |
sb.append("sessionStartTime:");
|
46633 |
sb.append("sessionStartTime:");
|
| 46465 |
sb.append(this.sessionStartTime);
|
46634 |
sb.append(this.sessionStartTime);
|
| 46466 |
first = false;
|
46635 |
first = false;
|
| - |
|
46636 |
if (!first) sb.append(", ");
|
| - |
|
46637 |
sb.append("firstSource:");
|
| - |
|
46638 |
if (this.firstSource == null) {
|
| - |
|
46639 |
sb.append("null");
|
| - |
|
46640 |
} else {
|
| - |
|
46641 |
sb.append(this.firstSource);
|
| - |
|
46642 |
}
|
| - |
|
46643 |
first = false;
|
| - |
|
46644 |
if (!first) sb.append(", ");
|
| - |
|
46645 |
sb.append("firstSourceTime:");
|
| - |
|
46646 |
sb.append(this.firstSourceTime);
|
| - |
|
46647 |
first = false;
|
| 46467 |
sb.append(")");
|
46648 |
sb.append(")");
|
| 46468 |
return sb.toString();
|
46649 |
return sb.toString();
|
| 46469 |
}
|
46650 |
}
|
| 46470 |
|
46651 |
|
| 46471 |
public void validate() throws org.apache.thrift.TException {
|
46652 |
public void validate() throws org.apache.thrift.TException {
|
| Line 47238... |
Line 47419... |
| 47238 |
}
|
47419 |
}
|
| 47239 |
}
|
47420 |
}
|
| 47240 |
|
47421 |
|
| 47241 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
47422 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 47242 |
try {
|
47423 |
try {
|
| - |
|
47424 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
47425 |
__isset_bit_vector = new BitSet(1);
|
| 47243 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
47426 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 47244 |
} catch (org.apache.thrift.TException te) {
|
47427 |
} catch (org.apache.thrift.TException te) {
|
| 47245 |
throw new java.io.IOException(te);
|
47428 |
throw new java.io.IOException(te);
|
| 47246 |
}
|
47429 |
}
|
| 47247 |
}
|
47430 |
}
|