Class NumbersInitializer

java.lang.Object
com.vaadin.observability.tests.starter.NumbersInitializer
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Component @Profile("db-demo") public class NumbersInitializer extends Object implements org.springframework.boot.CommandLineRunner
Seeds the embedded H2 database with 1000 rows so DatabaseView can issue both a small and a large fetch against real JDBC, driving the vaadin.db.fetch.rows summary. Part of the db-demo profile (see DbDemoConfig).
  • Constructor Details

    • NumbersInitializer

      public NumbersInitializer(org.springframework.jdbc.core.JdbcTemplate jdbc)
  • Method Details

    • run

      public void run(String... args)
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner