Interface ColumnSettingSteps.ReferenceSettingStep.CardinalityStep

Enclosing interface:
ColumnSettingSteps.ReferenceSettingStep<T>

public static interface ColumnSettingSteps.ReferenceSettingStep.CardinalityStep
The step to configure cardinality of reference.
  • Method Summary

    Modifier and Type
    Method
    Description
    cardinality(int numberOfChildrenPerParent)
    Sets the number of rows in child table per one row in parent table.
    cardinality(int min, int max)
    Makes the number of rows is generated randomly in child table per one row in parent table.
  • Method Details

    • cardinality

      JdbcTableFacet.Builder cardinality(int numberOfChildrenPerParent)
      Sets the number of rows in child table per one row in parent table.
      Parameters:
      numberOfChildrenPerParent - The number of rows in child table. At least 1.
      Returns:
      The builder for JdbcTableFacet
    • cardinality

      JdbcTableFacet.Builder cardinality(int min, int max)
      Makes the number of rows is generated randomly in child table per one row in parent table.
      Parameters:
      min - The minimum number of rows in child table, At least 0.
      max - The maximum number of rows in child table
      Returns:
      The builder for JdbcTableFacet