public class JbootServiceInterfaceGenerator extends com.jfinal.plugin.activerecord.generator.BaseModelGenerator
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
basePackage |
private String |
classPrefix |
private String |
classSuffix |
private com.jfinal.plugin.activerecord.generator.MetaBuilder |
metaBuilder |
private String |
modelPacket |
| 构造器和说明 |
|---|
JbootServiceInterfaceGenerator(String basePackage,
String modelPacket) |
JbootServiceInterfaceGenerator(String basePackage,
String outputDir,
String modelPacket) |
| 限定符和类型 | 方法和说明 |
|---|---|
JbootServiceInterfaceGenerator |
addExcludedTable(String... excludedTables) |
JbootServiceInterfaceGenerator |
addWhitelist(String... tableNames) |
protected void |
genBaseModelContent(com.jfinal.plugin.activerecord.generator.TableMeta tableMeta) |
void |
generate() |
void |
generate(List<com.jfinal.plugin.activerecord.generator.TableMeta> tableMetas) |
String |
getClassPrefix() |
String |
getClassSuffix() |
JbootServiceInterfaceGenerator |
setClassPrefix(String classPrefix) |
JbootServiceInterfaceGenerator |
setClassSuffix(String classSuffix) |
JbootServiceInterfaceGenerator |
setRemovedTableNamePrefixes(String... prefixes)
设置需要被移除的表名前缀
例如表名 "tb_account",移除前缀 "tb_" 后变为 "account"
|
protected void |
writeToFile(com.jfinal.plugin.activerecord.generator.TableMeta tableMeta)
base model 覆盖写入
|
private String modelPacket
private String basePackage
private String classSuffix
private String classPrefix
private com.jfinal.plugin.activerecord.generator.MetaBuilder metaBuilder
public JbootServiceInterfaceGenerator(String basePackage, String modelPacket)
public JbootServiceInterfaceGenerator(String basePackage, String outputDir, String modelPacket)
public String getClassSuffix()
public JbootServiceInterfaceGenerator setClassSuffix(String classSuffix)
public String getClassPrefix()
public JbootServiceInterfaceGenerator setClassPrefix(String classPrefix)
public void generate()
public JbootServiceInterfaceGenerator setRemovedTableNamePrefixes(String... prefixes)
public JbootServiceInterfaceGenerator addExcludedTable(String... excludedTables)
public void generate(List<com.jfinal.plugin.activerecord.generator.TableMeta> tableMetas)
generate 在类中 com.jfinal.plugin.activerecord.generator.BaseModelGeneratorprotected void genBaseModelContent(com.jfinal.plugin.activerecord.generator.TableMeta tableMeta)
genBaseModelContent 在类中 com.jfinal.plugin.activerecord.generator.BaseModelGeneratorprotected void writeToFile(com.jfinal.plugin.activerecord.generator.TableMeta tableMeta) throws IOException
writeToFile 在类中 com.jfinal.plugin.activerecord.generator.BaseModelGeneratorIOExceptionpublic JbootServiceInterfaceGenerator addWhitelist(String... tableNames)
Copyright © 2024. All rights reserved.