/** * Performs a deep copy on <i>other</i>. */ public GFXDExceptionData(GFXDExceptionData other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetReason()) { this.reason = other.reason; } if (other.isSetSqlState()) { this.sqlState = other.sqlState; } this.severity = other.severity; }
/** 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 REASON: return isSetReason(); case SQL_STATE: return isSetSqlState(); case SEVERITY: return isSetSeverity(); } throw new IllegalStateException(); }
public boolean equals(GFXDExceptionData that) { if (that == null) return false; boolean this_present_reason = true && this.isSetReason(); boolean that_present_reason = true && that.isSetReason(); if (this_present_reason || that_present_reason) { if (!(this_present_reason && that_present_reason)) return false; if (!this.reason.equals(that.reason)) return false; } boolean this_present_sqlState = true && this.isSetSqlState(); boolean that_present_sqlState = true && that.isSetSqlState(); if (this_present_sqlState || that_present_sqlState) { if (!(this_present_sqlState && that_present_sqlState)) return false; if (!this.sqlState.equals(that.sqlState)) return false; } boolean this_present_severity = true; boolean that_present_severity = true; if (this_present_severity || that_present_severity) { if (!(this_present_severity && that_present_severity)) return false; if (this.severity != that.severity) return false; } return true; }
lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState()); if (lastComparison != 0) { return lastComparison; if (isSetSqlState()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState); if (lastComparison != 0) {