@Override
  public boolean tableHasForeignKey(String tableName, String fkName) throws SQLException {
    return getCheckedForeignKey(tableName, fkName) != null;
  }
Setting arguments for prepared statement

@param preparedStatement {@link PreparedStatement} object
@param arguments array of arguments

@throws SQLException
ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java