public enum CodegenConfig extends Enum<CodegenConfig>
| Modifier and Type | Class and Description |
|---|---|
class |
CodegenConfig.DataSource |
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
checkGenData(Connector connector) |
CodegenConfig.DataSource |
getDataSource()
获取数据源信息
|
GenDTO |
getGenDTO()
生成代码配置
|
static CodegenConfig |
getInstance() |
Map<String,Map<String,String>> |
getMapper()
获取sql - Java 类型映射
|
Map |
getProperties()
获取自定义生成器环境变量
|
RenderDataDTO |
getRenderDataDTO() |
String |
getTable()
获取要gen的所有表
|
String |
getWorkDir()
获取codegen工作根目录 (codegen.yaml文件和template目录所在目录
|
void |
initConfig(String codegenPath)
解析配置
|
static CodegenConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodegenConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodegenConfig INSTANCE
public static CodegenConfig[] values()
for (CodegenConfig c : CodegenConfig.values()) System.out.println(c);
public static CodegenConfig valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CodegenConfig getInstance()
public void initConfig(String codegenPath)
codegenPath - codegen.yaml pathpublic CodegenConfig.DataSource getDataSource()
public String getTable()
public GenDTO getGenDTO()
public RenderDataDTO getRenderDataDTO()
public Map getProperties()
public String getWorkDir()
public void checkGenData(Connector connector)
Copyright © 2016 Le. All rights reserved.