public class DataDictionaryGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
dataDictionaryFileName |
protected String |
dataDictionaryOutputDir |
protected DataSource |
dataSource |
Constructor and Description |
---|
DataDictionaryGenerator(DataSource dataSource,
String dataDictionaryOutputDir) |
Modifier and Type | Method and Description |
---|---|
protected void |
genCell(int columnMaxLen,
String preChar,
String value,
String fillChar,
String postChar,
StringBuilder ret) |
protected void |
genColumn(TableMeta tableMeta,
ColumnMeta columnMeta,
StringBuilder ret) |
void |
generate(List<TableMeta> tableMetas) |
protected void |
generateTable(TableMeta tableMeta,
StringBuilder ret) |
protected String |
genSeparateLine(TableMeta tm) |
protected void |
genTableHead(TableMeta tm,
StringBuilder ret) |
protected void |
rebuildColumnMetas(List<TableMeta> tableMetas) |
void |
setDataDictionaryFileName(String dataDictionaryFileName) |
void |
setDataDictionaryOutputDir(String dataDictionaryOutputDir) |
protected void |
writeToFile(String ret)
_DataDictionary.txt 覆盖写入
|
protected DataSource dataSource
protected String dataDictionaryOutputDir
protected String dataDictionaryFileName
public DataDictionaryGenerator(DataSource dataSource, String dataDictionaryOutputDir)
public void setDataDictionaryOutputDir(String dataDictionaryOutputDir)
public void setDataDictionaryFileName(String dataDictionaryFileName)
protected void generateTable(TableMeta tableMeta, StringBuilder ret)
protected void genCell(int columnMaxLen, String preChar, String value, String fillChar, String postChar, StringBuilder ret)
protected void genTableHead(TableMeta tm, StringBuilder ret)
protected void genColumn(TableMeta tableMeta, ColumnMeta columnMeta, StringBuilder ret)
protected void writeToFile(String ret)
Copyright © 2018. All rights reserved.