if (isSetWarnings()) { if (!first) sb.append(", "); sb.append("warnings:");
/** 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 STATEMENT_ID: return isSetStatementId(); case PARAMETER_META_DATA: return isSetParameterMetaData(); case RESULT_SET_META_DATA: return isSetResultSetMetaData(); case WARNINGS: return isSetWarnings(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public PrepareResult(PrepareResult other) { __isset_bitfield = other.__isset_bitfield; this.statementId = other.statementId; if (other.isSetParameterMetaData()) { List<ColumnDescriptor> __this__parameterMetaData = new ArrayList<ColumnDescriptor>(other.parameterMetaData.size()); for (ColumnDescriptor other_element : other.parameterMetaData) { __this__parameterMetaData.add(new ColumnDescriptor(other_element)); } this.parameterMetaData = __this__parameterMetaData; } if (other.isSetResultSetMetaData()) { List<ColumnDescriptor> __this__resultSetMetaData = new ArrayList<ColumnDescriptor>(other.resultSetMetaData.size()); for (ColumnDescriptor other_element : other.resultSetMetaData) { __this__resultSetMetaData.add(new ColumnDescriptor(other_element)); } this.resultSetMetaData = __this__resultSetMetaData; } if (other.isSetWarnings()) { this.warnings = new GFXDExceptionData(other.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) {
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))
optionals.set(0); if (struct.isSetWarnings()) { optionals.set(1); if (struct.isSetWarnings()) { struct.warnings.write(oprot);
if (struct.isSetWarnings()) { oprot.writeFieldBegin(WARNINGS_FIELD_DESC); struct.warnings.write(oprot);