@Service public class CodeGenServiceImpl extends Object implements CodeGenService
| 构造器和说明 |
|---|
CodeGenServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
generate(DataSourceConfig dataSourceConfig,
CommonConfig commonConfig,
TemplateConfig templateConfig,
StrategyConfig strategyConfig)
生成模板代码.
|
TableInfo |
getTableInfo(DataSourceConfig dataSourceConfig,
String tableName)
获取表信息.
|
List<String> |
getTableNames(DataSourceConfig dataSourceConfig)
获取数据库所有表名.
|
public void generate(DataSourceConfig dataSourceConfig, CommonConfig commonConfig, TemplateConfig templateConfig, StrategyConfig strategyConfig) throws Exception
generate 在接口中 CodeGenServicedataSourceConfig - 数据库配置commonConfig - 通用配置templateConfig - 模板配置strategyConfig - 生成策略配置SQLException - 异常Exceptionpublic TableInfo getTableInfo(DataSourceConfig dataSourceConfig, String tableName) throws SQLException
getTableInfo 在接口中 CodeGenServicetableName - 表名dataSourceConfig - 数据库配置SQLException - 异常public List<String> getTableNames(DataSourceConfig dataSourceConfig) throws SQLException
getTableNames 在接口中 CodeGenServicedataSourceConfig - 数据库配置ÒSQLException - 异常Copyright © 2019. All rights reserved.