public static void loadDebuggers(final AbstractSQLProvider provider,final DebuggerTemplateManager manager) throws CouldntLoadDataException {
  final CConnection connection=provider.getConnection();
  final String query="SELECT * FROM " + CTableNames.DEBUGGERS_TABLE;
  try (ResultSet resultSet=connection.executeQuery(query,true)){
    while (resultSet.next()) {
      final DebuggerTemplate debugger=new DebuggerTemplate(resultSet.getInt("id"),PostgreSQLHelpers.readString(resultSet,"name"),PostgreSQLHelpers.readString(resultSet,"host"),resultSet.getInt("port"),provider);
      manager.addDebugger(debugger);
    }
  }
 catch (  final SQLException e) {
    throw new CouldntLoadDataException(e);
  }
}

public static void loadDebuggers ( final AbstractSQLProvider provider , final DebuggerTemplateManager manager ) throws CouldntLoadDataException { final CConnection connection = provider . getConnection ( ) ; final String query = "SELECT * FROM " + CTableNames . DEBUGGERS_TABLE ; try ( ResultSet resultSet = connection . executeQuery ( query , true ) ) { while ( resultSet . next ( ) ) { final DebuggerTemplate debugger = new DebuggerTemplate ( resultSet . getInt ( "id" ) , PostgreSQLHelpers . readString ( resultSet , "name" ) , PostgreSQLHelpers . readString ( resultSet , "host" ) , resultSet . getInt ( "port" ) , provider ) ; manager . addDebugger ( debugger ) ; } } catch ( final SQLException e ) { throw new CouldntLoadDataException ( e ) ; } }
loads all debugger templates of a database . the debugger template manager must belong to the database connected to by the provider argument .
