Package guru.mikelue.foxglove.setting
Interface DataSettingInfo
- All Known Implementing Classes:
DataSetting,LayeredDataSetting
public interface DataSettingInfo
This interface defines the methods used by engine of data generating.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the default number of rows for generated data.booleanisAutoGenerating(ColumnMeta column) Gets whether or not to generate value automatically by the given properties of a column.resolveSupplier(ColumnMeta columnMeta) Resolves theSupplierfor the given column metadata.
-
Method Details
-
getDefaultNumberOfRows
int getDefaultNumberOfRows()Gets the default number of rows for generated data.This number of rows is used when:
- No specific number of rows is defined by
TableFacet
- Returns:
- The default number of rows for generated data
- No specific number of rows is defined by
-
resolveSupplier
Resolves theSupplierfor the given column metadata. The priority of resolution is:- Column matcher configured by
DataSetting.columnMatcher(ColumnMatcher) - Type name configured by
DataSetting.givenType(String) - JDBC type configured by
DataSetting.givenType(JDBCType)
- Column matcher configured by
-
isAutoGenerating
Gets whether or not to generate value automatically by the given properties of a column. Additionally, theDataSetting.excludeWhen(ColumnMatcher)also affects this behavior.The default properties to generate value automatically:
The conditions used by this method will gives
truefor a column:- Not-excluded by
DataSetting.excludeWhen(ColumnMatcher) - Matches any customized matching by
DataSetting.columnMatcher(ColumnMatcher) - Not-excluded by
ColumnMeta.properties() - Matches type by
DataSetting.givenType(String) - Matches type by
DataSetting.givenType(JDBCType) - Not-excluded by not supported
JDBCTypes
- Parameters:
column- The metadata of a column- Returns:
- Whether or not to generate value automatically
- Not-excluded by
-