Subversion Repositories SmartDukaan

Rev

Rev 1013 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1013 Rev 1156
Line 122... Line 122...
122
 
122
 
123
    public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, long category) throws InventoryServiceException, TException;
123
    public List<Long> getLatestArrivalsCatalogIds(long beginIndex, long totalItems, long category) throws InventoryServiceException, TException;
124
 
124
 
125
    public long getLatestArrivalsCount() throws InventoryServiceException, TException;
125
    public long getLatestArrivalsCount() throws InventoryServiceException, TException;
126
 
126
 
-
 
127
    public long generateNewEntityID() throws TException;
-
 
128
 
-
 
129
    /**
-
 
130
     * Store category object and retrieve it
-
 
131
     * 
-
 
132
     * @param object
-
 
133
     */
127
    public boolean putCategoryObject(byte[] object) throws TException;
134
    public boolean putCategoryObject(byte[] object) throws TException;
128
 
135
 
129
    public byte[] getCategoryObject() throws TException;
136
    public byte[] getCategoryObject() throws TException;
130
 
137
 
131
  }
138
  }
Line 1369... Line 1376...
1369
        throw result.cex;
1376
        throw result.cex;
1370
      }
1377
      }
1371
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1378
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1372
    }
1379
    }
1373
 
1380
 
-
 
1381
    public long generateNewEntityID() throws TException
-
 
1382
    {
-
 
1383
      send_generateNewEntityID();
-
 
1384
      return recv_generateNewEntityID();
-
 
1385
    }
-
 
1386
 
-
 
1387
    public void send_generateNewEntityID() throws TException
-
 
1388
    {
-
 
1389
      oprot_.writeMessageBegin(new TMessage("generateNewEntityID", TMessageType.CALL, seqid_));
-
 
1390
      generateNewEntityID_args args = new generateNewEntityID_args();
-
 
1391
      args.write(oprot_);
-
 
1392
      oprot_.writeMessageEnd();
-
 
1393
      oprot_.getTransport().flush();
-
 
1394
    }
-
 
1395
 
-
 
1396
    public long recv_generateNewEntityID() throws TException
-
 
1397
    {
-
 
1398
      TMessage msg = iprot_.readMessageBegin();
-
 
1399
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1400
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1401
        iprot_.readMessageEnd();
-
 
1402
        throw x;
-
 
1403
      }
-
 
1404
      generateNewEntityID_result result = new generateNewEntityID_result();
-
 
1405
      result.read(iprot_);
-
 
1406
      iprot_.readMessageEnd();
-
 
1407
      if (result.isSetSuccess()) {
-
 
1408
        return result.success;
-
 
1409
      }
-
 
1410
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
-
 
1411
    }
-
 
1412
 
1374
    public boolean putCategoryObject(byte[] object) throws TException
1413
    public boolean putCategoryObject(byte[] object) throws TException
1375
    {
1414
    {
1376
      send_putCategoryObject(object);
1415
      send_putCategoryObject(object);
1377
      return recv_putCategoryObject();
1416
      return recv_putCategoryObject();
1378
    }
1417
    }
Line 1474... Line 1513...
1474
      processMap_.put("getBestDealsCatalogIds", new getBestDealsCatalogIds());
1513
      processMap_.put("getBestDealsCatalogIds", new getBestDealsCatalogIds());
1475
      processMap_.put("getBestDealsCount", new getBestDealsCount());
1514
      processMap_.put("getBestDealsCount", new getBestDealsCount());
1476
      processMap_.put("getLatestArrivals", new getLatestArrivals());
1515
      processMap_.put("getLatestArrivals", new getLatestArrivals());
1477
      processMap_.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());
1516
      processMap_.put("getLatestArrivalsCatalogIds", new getLatestArrivalsCatalogIds());
1478
      processMap_.put("getLatestArrivalsCount", new getLatestArrivalsCount());
1517
      processMap_.put("getLatestArrivalsCount", new getLatestArrivalsCount());
-
 
1518
      processMap_.put("generateNewEntityID", new generateNewEntityID());
1479
      processMap_.put("putCategoryObject", new putCategoryObject());
1519
      processMap_.put("putCategoryObject", new putCategoryObject());
1480
      processMap_.put("getCategoryObject", new getCategoryObject());
1520
      processMap_.put("getCategoryObject", new getCategoryObject());
1481
    }
1521
    }
1482
 
1522
 
1483
    protected static interface ProcessFunction {
1523
    protected static interface ProcessFunction {
Line 2454... Line 2494...
2454
        oprot.getTransport().flush();
2494
        oprot.getTransport().flush();
2455
      }
2495
      }
2456
 
2496
 
2457
    }
2497
    }
2458
 
2498
 
-
 
2499
    private class generateNewEntityID implements ProcessFunction {
-
 
2500
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2501
      {
-
 
2502
        generateNewEntityID_args args = new generateNewEntityID_args();
-
 
2503
        args.read(iprot);
-
 
2504
        iprot.readMessageEnd();
-
 
2505
        generateNewEntityID_result result = new generateNewEntityID_result();
-
 
2506
        result.success = iface_.generateNewEntityID();
-
 
2507
        result.setSuccessIsSet(true);
-
 
2508
        oprot.writeMessageBegin(new TMessage("generateNewEntityID", TMessageType.REPLY, seqid));
-
 
2509
        result.write(oprot);
-
 
2510
        oprot.writeMessageEnd();
-
 
2511
        oprot.getTransport().flush();
-
 
2512
      }
-
 
2513
 
-
 
2514
    }
-
 
2515
 
2459
    private class putCategoryObject implements ProcessFunction {
2516
    private class putCategoryObject implements ProcessFunction {
2460
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2517
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2461
      {
2518
      {
2462
        putCategoryObject_args args = new putCategoryObject_args();
2519
        putCategoryObject_args args = new putCategoryObject_args();
2463
        args.read(iprot);
2520
        args.read(iprot);
Line 24775... Line 24832...
24775
      first = false;
24832
      first = false;
24776
      sb.append(")");
24833
      sb.append(")");
24777
      return sb.toString();
24834
      return sb.toString();
24778
    }
24835
    }
24779
 
24836
 
-
 
24837
    public void validate() throws TException {
-
 
24838
      // check for required fields
-
 
24839
    }
-
 
24840
 
-
 
24841
  }
-
 
24842
 
-
 
24843
  public static class generateNewEntityID_args implements TBase<generateNewEntityID_args._Fields>, java.io.Serializable, Cloneable, Comparable<generateNewEntityID_args>   {
-
 
24844
    private static final TStruct STRUCT_DESC = new TStruct("generateNewEntityID_args");
-
 
24845
 
-
 
24846
 
-
 
24847
 
-
 
24848
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
24849
    public enum _Fields implements TFieldIdEnum {
-
 
24850
;
-
 
24851
 
-
 
24852
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
24853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
24854
 
-
 
24855
      static {
-
 
24856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
24857
          byId.put((int)field._thriftId, field);
-
 
24858
          byName.put(field.getFieldName(), field);
-
 
24859
        }
-
 
24860
      }
-
 
24861
 
-
 
24862
      /**
-
 
24863
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
24864
       */
-
 
24865
      public static _Fields findByThriftId(int fieldId) {
-
 
24866
        return byId.get(fieldId);
-
 
24867
      }
-
 
24868
 
-
 
24869
      /**
-
 
24870
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
24871
       * if it is not found.
-
 
24872
       */
-
 
24873
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
24874
        _Fields fields = findByThriftId(fieldId);
-
 
24875
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
24876
        return fields;
-
 
24877
      }
-
 
24878
 
-
 
24879
      /**
-
 
24880
       * Find the _Fields constant that matches name, or null if its not found.
-
 
24881
       */
-
 
24882
      public static _Fields findByName(String name) {
-
 
24883
        return byName.get(name);
-
 
24884
      }
-
 
24885
 
-
 
24886
      private final short _thriftId;
-
 
24887
      private final String _fieldName;
-
 
24888
 
-
 
24889
      _Fields(short thriftId, String fieldName) {
-
 
24890
        _thriftId = thriftId;
-
 
24891
        _fieldName = fieldName;
-
 
24892
      }
-
 
24893
 
-
 
24894
      public short getThriftFieldId() {
-
 
24895
        return _thriftId;
-
 
24896
      }
-
 
24897
 
-
 
24898
      public String getFieldName() {
-
 
24899
        return _fieldName;
-
 
24900
      }
-
 
24901
    }
-
 
24902
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
24903
    }});
-
 
24904
 
-
 
24905
    static {
-
 
24906
      FieldMetaData.addStructMetaDataMap(generateNewEntityID_args.class, metaDataMap);
-
 
24907
    }
-
 
24908
 
-
 
24909
    public generateNewEntityID_args() {
-
 
24910
    }
-
 
24911
 
-
 
24912
    /**
-
 
24913
     * Performs a deep copy on <i>other</i>.
-
 
24914
     */
-
 
24915
    public generateNewEntityID_args(generateNewEntityID_args other) {
-
 
24916
    }
-
 
24917
 
-
 
24918
    public generateNewEntityID_args deepCopy() {
-
 
24919
      return new generateNewEntityID_args(this);
-
 
24920
    }
-
 
24921
 
-
 
24922
    @Deprecated
-
 
24923
    public generateNewEntityID_args clone() {
-
 
24924
      return new generateNewEntityID_args(this);
-
 
24925
    }
-
 
24926
 
-
 
24927
    public void setFieldValue(_Fields field, Object value) {
-
 
24928
      switch (field) {
-
 
24929
      }
-
 
24930
    }
-
 
24931
 
-
 
24932
    public void setFieldValue(int fieldID, Object value) {
-
 
24933
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
24934
    }
-
 
24935
 
-
 
24936
    public Object getFieldValue(_Fields field) {
-
 
24937
      switch (field) {
-
 
24938
      }
-
 
24939
      throw new IllegalStateException();
-
 
24940
    }
-
 
24941
 
-
 
24942
    public Object getFieldValue(int fieldId) {
-
 
24943
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
24944
    }
-
 
24945
 
-
 
24946
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
24947
    public boolean isSet(_Fields field) {
-
 
24948
      switch (field) {
-
 
24949
      }
-
 
24950
      throw new IllegalStateException();
-
 
24951
    }
-
 
24952
 
-
 
24953
    public boolean isSet(int fieldID) {
-
 
24954
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
24955
    }
-
 
24956
 
-
 
24957
    @Override
-
 
24958
    public boolean equals(Object that) {
-
 
24959
      if (that == null)
-
 
24960
        return false;
-
 
24961
      if (that instanceof generateNewEntityID_args)
-
 
24962
        return this.equals((generateNewEntityID_args)that);
-
 
24963
      return false;
-
 
24964
    }
-
 
24965
 
-
 
24966
    public boolean equals(generateNewEntityID_args that) {
-
 
24967
      if (that == null)
-
 
24968
        return false;
-
 
24969
 
-
 
24970
      return true;
-
 
24971
    }
-
 
24972
 
-
 
24973
    @Override
-
 
24974
    public int hashCode() {
-
 
24975
      return 0;
-
 
24976
    }
-
 
24977
 
-
 
24978
    public int compareTo(generateNewEntityID_args other) {
-
 
24979
      if (!getClass().equals(other.getClass())) {
-
 
24980
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24981
      }
-
 
24982
 
-
 
24983
      int lastComparison = 0;
-
 
24984
      generateNewEntityID_args typedOther = (generateNewEntityID_args)other;
-
 
24985
 
-
 
24986
      return 0;
-
 
24987
    }
-
 
24988
 
-
 
24989
    public void read(TProtocol iprot) throws TException {
-
 
24990
      TField field;
-
 
24991
      iprot.readStructBegin();
-
 
24992
      while (true)
-
 
24993
      {
-
 
24994
        field = iprot.readFieldBegin();
-
 
24995
        if (field.type == TType.STOP) { 
-
 
24996
          break;
-
 
24997
        }
-
 
24998
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
24999
        if (fieldId == null) {
-
 
25000
          TProtocolUtil.skip(iprot, field.type);
-
 
25001
        } else {
-
 
25002
          switch (fieldId) {
-
 
25003
          }
-
 
25004
          iprot.readFieldEnd();
-
 
25005
        }
-
 
25006
      }
-
 
25007
      iprot.readStructEnd();
-
 
25008
      validate();
-
 
25009
    }
-
 
25010
 
-
 
25011
    public void write(TProtocol oprot) throws TException {
-
 
25012
      validate();
-
 
25013
 
-
 
25014
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25015
      oprot.writeFieldStop();
-
 
25016
      oprot.writeStructEnd();
-
 
25017
    }
-
 
25018
 
-
 
25019
    @Override
-
 
25020
    public String toString() {
-
 
25021
      StringBuilder sb = new StringBuilder("generateNewEntityID_args(");
-
 
25022
      boolean first = true;
-
 
25023
 
-
 
25024
      sb.append(")");
-
 
25025
      return sb.toString();
-
 
25026
    }
-
 
25027
 
-
 
25028
    public void validate() throws TException {
-
 
25029
      // check for required fields
-
 
25030
    }
-
 
25031
 
-
 
25032
  }
-
 
25033
 
-
 
25034
  public static class generateNewEntityID_result implements TBase<generateNewEntityID_result._Fields>, java.io.Serializable, Cloneable, Comparable<generateNewEntityID_result>   {
-
 
25035
    private static final TStruct STRUCT_DESC = new TStruct("generateNewEntityID_result");
-
 
25036
 
-
 
25037
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
25038
 
-
 
25039
    private long success;
-
 
25040
 
-
 
25041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
25042
    public enum _Fields implements TFieldIdEnum {
-
 
25043
      SUCCESS((short)0, "success");
-
 
25044
 
-
 
25045
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
25046
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
25047
 
-
 
25048
      static {
-
 
25049
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
25050
          byId.put((int)field._thriftId, field);
-
 
25051
          byName.put(field.getFieldName(), field);
-
 
25052
        }
-
 
25053
      }
-
 
25054
 
-
 
25055
      /**
-
 
25056
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
25057
       */
-
 
25058
      public static _Fields findByThriftId(int fieldId) {
-
 
25059
        return byId.get(fieldId);
-
 
25060
      }
-
 
25061
 
-
 
25062
      /**
-
 
25063
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
25064
       * if it is not found.
-
 
25065
       */
-
 
25066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
25067
        _Fields fields = findByThriftId(fieldId);
-
 
25068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
25069
        return fields;
-
 
25070
      }
-
 
25071
 
-
 
25072
      /**
-
 
25073
       * Find the _Fields constant that matches name, or null if its not found.
-
 
25074
       */
-
 
25075
      public static _Fields findByName(String name) {
-
 
25076
        return byName.get(name);
-
 
25077
      }
-
 
25078
 
-
 
25079
      private final short _thriftId;
-
 
25080
      private final String _fieldName;
-
 
25081
 
-
 
25082
      _Fields(short thriftId, String fieldName) {
-
 
25083
        _thriftId = thriftId;
-
 
25084
        _fieldName = fieldName;
-
 
25085
      }
-
 
25086
 
-
 
25087
      public short getThriftFieldId() {
-
 
25088
        return _thriftId;
-
 
25089
      }
-
 
25090
 
-
 
25091
      public String getFieldName() {
-
 
25092
        return _fieldName;
-
 
25093
      }
-
 
25094
    }
-
 
25095
 
-
 
25096
    // isset id assignments
-
 
25097
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
25098
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
25099
 
-
 
25100
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
25101
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
25102
          new FieldValueMetaData(TType.I64)));
-
 
25103
    }});
-
 
25104
 
-
 
25105
    static {
-
 
25106
      FieldMetaData.addStructMetaDataMap(generateNewEntityID_result.class, metaDataMap);
-
 
25107
    }
-
 
25108
 
-
 
25109
    public generateNewEntityID_result() {
-
 
25110
    }
-
 
25111
 
-
 
25112
    public generateNewEntityID_result(
-
 
25113
      long success)
-
 
25114
    {
-
 
25115
      this();
-
 
25116
      this.success = success;
-
 
25117
      setSuccessIsSet(true);
-
 
25118
    }
-
 
25119
 
-
 
25120
    /**
-
 
25121
     * Performs a deep copy on <i>other</i>.
-
 
25122
     */
-
 
25123
    public generateNewEntityID_result(generateNewEntityID_result other) {
-
 
25124
      __isset_bit_vector.clear();
-
 
25125
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
25126
      this.success = other.success;
-
 
25127
    }
-
 
25128
 
-
 
25129
    public generateNewEntityID_result deepCopy() {
-
 
25130
      return new generateNewEntityID_result(this);
-
 
25131
    }
-
 
25132
 
-
 
25133
    @Deprecated
-
 
25134
    public generateNewEntityID_result clone() {
-
 
25135
      return new generateNewEntityID_result(this);
-
 
25136
    }
-
 
25137
 
-
 
25138
    public long getSuccess() {
-
 
25139
      return this.success;
-
 
25140
    }
-
 
25141
 
-
 
25142
    public generateNewEntityID_result setSuccess(long success) {
-
 
25143
      this.success = success;
-
 
25144
      setSuccessIsSet(true);
-
 
25145
      return this;
-
 
25146
    }
-
 
25147
 
-
 
25148
    public void unsetSuccess() {
-
 
25149
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
25150
    }
-
 
25151
 
-
 
25152
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
25153
    public boolean isSetSuccess() {
-
 
25154
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
25155
    }
-
 
25156
 
-
 
25157
    public void setSuccessIsSet(boolean value) {
-
 
25158
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
25159
    }
-
 
25160
 
-
 
25161
    public void setFieldValue(_Fields field, Object value) {
-
 
25162
      switch (field) {
-
 
25163
      case SUCCESS:
-
 
25164
        if (value == null) {
-
 
25165
          unsetSuccess();
-
 
25166
        } else {
-
 
25167
          setSuccess((Long)value);
-
 
25168
        }
-
 
25169
        break;
-
 
25170
 
-
 
25171
      }
-
 
25172
    }
-
 
25173
 
-
 
25174
    public void setFieldValue(int fieldID, Object value) {
-
 
25175
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
25176
    }
-
 
25177
 
-
 
25178
    public Object getFieldValue(_Fields field) {
-
 
25179
      switch (field) {
-
 
25180
      case SUCCESS:
-
 
25181
        return new Long(getSuccess());
-
 
25182
 
-
 
25183
      }
-
 
25184
      throw new IllegalStateException();
-
 
25185
    }
-
 
25186
 
-
 
25187
    public Object getFieldValue(int fieldId) {
-
 
25188
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
25189
    }
-
 
25190
 
-
 
25191
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
25192
    public boolean isSet(_Fields field) {
-
 
25193
      switch (field) {
-
 
25194
      case SUCCESS:
-
 
25195
        return isSetSuccess();
-
 
25196
      }
-
 
25197
      throw new IllegalStateException();
-
 
25198
    }
-
 
25199
 
-
 
25200
    public boolean isSet(int fieldID) {
-
 
25201
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
25202
    }
-
 
25203
 
-
 
25204
    @Override
-
 
25205
    public boolean equals(Object that) {
-
 
25206
      if (that == null)
-
 
25207
        return false;
-
 
25208
      if (that instanceof generateNewEntityID_result)
-
 
25209
        return this.equals((generateNewEntityID_result)that);
-
 
25210
      return false;
-
 
25211
    }
-
 
25212
 
-
 
25213
    public boolean equals(generateNewEntityID_result that) {
-
 
25214
      if (that == null)
-
 
25215
        return false;
-
 
25216
 
-
 
25217
      boolean this_present_success = true;
-
 
25218
      boolean that_present_success = true;
-
 
25219
      if (this_present_success || that_present_success) {
-
 
25220
        if (!(this_present_success && that_present_success))
-
 
25221
          return false;
-
 
25222
        if (this.success != that.success)
-
 
25223
          return false;
-
 
25224
      }
-
 
25225
 
-
 
25226
      return true;
-
 
25227
    }
-
 
25228
 
-
 
25229
    @Override
-
 
25230
    public int hashCode() {
-
 
25231
      return 0;
-
 
25232
    }
-
 
25233
 
-
 
25234
    public int compareTo(generateNewEntityID_result other) {
-
 
25235
      if (!getClass().equals(other.getClass())) {
-
 
25236
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25237
      }
-
 
25238
 
-
 
25239
      int lastComparison = 0;
-
 
25240
      generateNewEntityID_result typedOther = (generateNewEntityID_result)other;
-
 
25241
 
-
 
25242
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
25243
      if (lastComparison != 0) {
-
 
25244
        return lastComparison;
-
 
25245
      }
-
 
25246
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
25247
      if (lastComparison != 0) {
-
 
25248
        return lastComparison;
-
 
25249
      }
-
 
25250
      return 0;
-
 
25251
    }
-
 
25252
 
-
 
25253
    public void read(TProtocol iprot) throws TException {
-
 
25254
      TField field;
-
 
25255
      iprot.readStructBegin();
-
 
25256
      while (true)
-
 
25257
      {
-
 
25258
        field = iprot.readFieldBegin();
-
 
25259
        if (field.type == TType.STOP) { 
-
 
25260
          break;
-
 
25261
        }
-
 
25262
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
25263
        if (fieldId == null) {
-
 
25264
          TProtocolUtil.skip(iprot, field.type);
-
 
25265
        } else {
-
 
25266
          switch (fieldId) {
-
 
25267
            case SUCCESS:
-
 
25268
              if (field.type == TType.I64) {
-
 
25269
                this.success = iprot.readI64();
-
 
25270
                setSuccessIsSet(true);
-
 
25271
              } else { 
-
 
25272
                TProtocolUtil.skip(iprot, field.type);
-
 
25273
              }
-
 
25274
              break;
-
 
25275
          }
-
 
25276
          iprot.readFieldEnd();
-
 
25277
        }
-
 
25278
      }
-
 
25279
      iprot.readStructEnd();
-
 
25280
      validate();
-
 
25281
    }
-
 
25282
 
-
 
25283
    public void write(TProtocol oprot) throws TException {
-
 
25284
      oprot.writeStructBegin(STRUCT_DESC);
-
 
25285
 
-
 
25286
      if (this.isSetSuccess()) {
-
 
25287
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
25288
        oprot.writeI64(this.success);
-
 
25289
        oprot.writeFieldEnd();
-
 
25290
      }
-
 
25291
      oprot.writeFieldStop();
-
 
25292
      oprot.writeStructEnd();
-
 
25293
    }
-
 
25294
 
-
 
25295
    @Override
-
 
25296
    public String toString() {
-
 
25297
      StringBuilder sb = new StringBuilder("generateNewEntityID_result(");
-
 
25298
      boolean first = true;
-
 
25299
 
-
 
25300
      sb.append("success:");
-
 
25301
      sb.append(this.success);
-
 
25302
      first = false;
-
 
25303
      sb.append(")");
-
 
25304
      return sb.toString();
-
 
25305
    }
-
 
25306
 
24780
    public void validate() throws TException {
25307
    public void validate() throws TException {
24781
      // check for required fields
25308
      // check for required fields
24782
    }
25309
    }
24783
 
25310
 
24784
  }
25311
  }