Exemplo n.º 1
0
  @Override
  public boolean equals(final Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    AbstractJdbcDatabase that = (AbstractJdbcDatabase) o;

    if (connection == null) {
      if (that.connection == null) {
        return this == that;
      } else {
        return false;
      }
    } else {
      return connection.equals(that.connection);
    }
  }