Package guru.mikelue.foxglove.jdbc
Class JdbcTableFacet
java.lang.Object
guru.mikelue.foxglove.jdbc.JdbcTableFacet
- All Implemented Interfaces:
SettingProvider,TableFacet
JDBC implementation of
TableFacet.
Important: this object is not reusable across tests, you should build an new one for each test.
Use builder(String) to build this object.
JdbcTableFacet tableFacet = JdbcTableFacet.builder("test_table")
.build();
See more examples in JdbcTableFacet.Builder.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcTableFacet.BuilderStarts to build aJdbcTableFacetwith table name.intReturns the number of rows to be generated for the table.Retrieves the data setting applied, if set bySettingAware.withSetting(guru.mikelue.foxglove.setting.DataSettingInfo).Returns the name of table to generate data.
-
Method Details
-
builder
Starts to build aJdbcTableFacetwith table name.- Parameters:
tableName- The name of table- Returns:
- The builder to build
JdbcTableFacet
-
tableName
Returns the name of table to generate data.- Specified by:
tableNamein interfaceTableFacet- Returns:
- The name of table
-
getNumberOfRows
public int getNumberOfRows()Returns the number of rows to be generated for the table.- Specified by:
getNumberOfRowsin interfaceTableFacet- Returns:
- The number of rows to be generated
-
getSetting
Retrieves the data setting applied, if set bySettingAware.withSetting(guru.mikelue.foxglove.setting.DataSettingInfo).- Specified by:
getSettingin interfaceSettingProvider- Returns:
- The data setting applied
-