Interface GeneratorFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GeneratorFactory
Builds the DataGenerator used for a column of a particular JDBC type.

AbstractDatabaseSupport keeps a registry of these keyed by JDBCType; database-specific subclasses add or replace entries to customize generation (for example, to handle driver-specific type names exposed via Column.typeName()).

Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Column column, RandomGenerator random)
    Creates a generator for the given column.
  • Method Details

    • create

      DataGenerator<?> create(Column column, RandomGenerator random)
      Creates a generator for the given column.
      Parameters:
      column - the column metadata, including type, size, and database-specific type name
      random - the seeded random source supplied by the fill engine
      Returns:
      the generator to use for the column