@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_server = true && (isSetServer()); builder.append(present_server); if (present_server) builder.append(server); boolean present_uri = true && (isSetUri()); builder.append(present_uri); if (present_uri) builder.append(uri); boolean present_db = true && (isSetDb()); builder.append(present_db); if (present_db) builder.append(db); boolean present_table = true && (isSetTable()); builder.append(present_table); if (present_table) builder.append(table); boolean present_column = true && (isSetColumn()); builder.append(present_column); if (present_column) builder.append(column); return builder.toHashCode(); }
if (struct.isSetDb()) { oprot.writeFieldBegin(DB_FIELD_DESC); oprot.writeString(struct.db);
if (isSetDb()) { if (!first) sb.append(", "); sb.append("db:");
/** 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 SERVER: return isSetServer(); case URI: return isSetUri(); case DB: return isSetDb(); case TABLE: return isSetTable(); case COLUMN: return isSetColumn(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TSentryAuthorizable(TSentryAuthorizable other) { if (other.isSetServer()) { this.server = other.server; } if (other.isSetUri()) { this.uri = other.uri; } if (other.isSetDb()) { this.db = other.db; } if (other.isSetTable()) { this.table = other.table; } if (other.isSetColumn()) { this.column = other.column; } }