Class JdbcDataGenerator

java.lang.Object
guru.mikelue.foxglove.jdbc.JdbcDataGenerator
All Implemented Interfaces:
DataGenerator<JdbcTableFacet>, SettingAware<DataGenerator<JdbcTableFacet>>

public class JdbcDataGenerator extends Object implements DataGenerator<JdbcTableFacet>
JDBC implementation of DataGenerator.
  • Field Details

    • DEFAULT_BATCH_SIZE

      public static final int DEFAULT_BATCH_SIZE
      The default batch size for insertion of rows.
      See Also:
  • Constructor Details

    • JdbcDataGenerator

      public JdbcDataGenerator(DataSource dataSource)
      Uses the given data source as the target database for generated data.
      Parameters:
      dataSource - The data source to use
    • JdbcDataGenerator

      public JdbcDataGenerator(Connection connection)
      Uses the database and joins the transaction of the given connection.
      Parameters:
      connection - The connection to use
  • Method Details