/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case UPDATE_COUNT: return isSetUpdateCount(); case BATCH_UPDATE_COUNTS: return isSetBatchUpdateCounts(); case GENERATED_KEYS: return isSetGeneratedKeys(); case WARNINGS: return isSetWarnings(); } throw new IllegalStateException(); }
if (isSetWarnings()) { if (!first) sb.append(", "); sb.append("warnings:");
lastComparison = Boolean.valueOf(isSetWarnings()).compareTo(other.isSetWarnings()); if (lastComparison != 0) { return lastComparison; if (isSetWarnings()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warnings, other.warnings); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public UpdateResult(UpdateResult other) { __isset_bitfield = other.__isset_bitfield; this.updateCount = other.updateCount; if (other.isSetBatchUpdateCounts()) { List<Integer> __this__batchUpdateCounts = new ArrayList<Integer>(other.batchUpdateCounts); this.batchUpdateCounts = __this__batchUpdateCounts; } if (other.isSetGeneratedKeys()) { this.generatedKeys = new RowSet(other.generatedKeys); } if (other.isSetWarnings()) { this.warnings = new GFXDExceptionData(other.warnings); } }
if (struct.isSetWarnings()) { oprot.writeFieldBegin(WARNINGS_FIELD_DESC); struct.warnings.write(oprot);
optionals.set(2); if (struct.isSetWarnings()) { optionals.set(3); struct.generatedKeys.write(oprot); if (struct.isSetWarnings()) { struct.warnings.write(oprot);
boolean this_present_warnings = true && this.isSetWarnings(); boolean that_present_warnings = true && that.isSetWarnings(); if (this_present_warnings || that_present_warnings) { if (!(this_present_warnings && that_present_warnings))