public abstract class GeneratorTool extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
dbms |
protected GeneratorSettings |
settings |
protected FreemarkerFileGenerator |
templateEngine |
| Constructor and Description |
|---|
GeneratorTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(String templateBaseName) |
protected abstract Object |
getConfig() |
protected String |
getDestFile(String templateBaseName) |
void |
initialize(GeneratorSettings settings) |
protected abstract void |
readConfig(File file) |
void |
runMain(String[] args,
GeneratorSettings settings) |
protected GeneratorSettings settings
protected FreemarkerFileGenerator templateEngine
protected String dbms
public void generate(String templateBaseName) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionpublic void initialize(GeneratorSettings settings) throws IOException
IOExceptionprotected abstract Object getConfig()
protected abstract void readConfig(File file) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void runMain(String[] args, GeneratorSettings settings) throws Exception
ExceptionCopyright © 2008-2016. All Rights Reserved.