public abstract class AbsctactGenerator extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbsctactGenerator.FieldInfo |
class |
AbsctactGenerator.TableInfo |
| 构造器和说明 |
|---|
AbsctactGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
genFiles(List<AbsctactGenerator.TableInfo> tables,
String sourceDir,
String pkgName,
String model,
String mapper) |
protected abstract List<AbsctactGenerator.FieldInfo> |
getFields(DataSource dataSource,
String tableName) |
Class<?> |
getFieldType(String type) |
protected abstract List<AbsctactGenerator.TableInfo> |
getTables(DataSource dataSource) |
protected AbsctactGenerator.FieldInfo |
processField(String fieldName,
String type,
String key,
String comment) |
protected String |
processTableName(String tableName) |
void |
start(DataSource dataSource,
String sourceDir) |
void |
start(DataSource dataSource,
String sourceDir,
String pkgName) |
void |
start(DataSource dataSource,
String sourceDir,
String pkgName,
String model,
String mapper) |
protected abstract List<AbsctactGenerator.TableInfo> getTables(DataSource dataSource) throws SQLException
SQLExceptionprotected abstract List<AbsctactGenerator.FieldInfo> getFields(DataSource dataSource, String tableName) throws SQLException
SQLExceptionpublic void start(DataSource dataSource, String sourceDir)
public void start(DataSource dataSource, String sourceDir, String pkgName)
public void start(DataSource dataSource, String sourceDir, String pkgName, String model, String mapper)
protected void genFiles(List<AbsctactGenerator.TableInfo> tables, String sourceDir, String pkgName, String model, String mapper) throws IOException
IOExceptionprotected AbsctactGenerator.FieldInfo processField(String fieldName, String type, String key, String comment)
Copyright © 2019. All rights reserved.