net.sourceforge.addam.ddlgen
Class GeneratorSpec
java.lang.Object
net.sourceforge.addam.ddlgen.GeneratorSpec
- All Implemented Interfaces:
- Filter
public class GeneratorSpec
- extends Object
- implements Filter
Used to define what the output files written by a generator, allows include/exclude for specific
objects, and can generate a master script based on the objects generated.
Date: Nov 11, 2004
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dir
private String dir
type
private String type
prefix
private String prefix
extension
private String extension
vendor
private String vendor
masterScript
private String masterScript
masterScriptWriter
private FileWriter masterScriptWriter
includedTables
private final List<String> includedTables
excludedTables
private final List<String> excludedTables
includesPattern
private Pattern includesPattern
excludesPattern
private Pattern excludesPattern
GeneratorSpec
public GeneratorSpec()
setType
public void setType(String type)
setVendor
public void setVendor(String vendor)
setMasterScript
public void setMasterScript(String file)
setPrefix
public void setPrefix(String prefix)
setExtension
public void setExtension(String extension)
setIncludes
public void setIncludes(String includes)
setIncludesPattern
public void setIncludesPattern(String pattern)
setIncludesFile
public void setIncludesFile(File includesFile)
setExcludes
public void setExcludes(String excludes)
setExcludesPattern
public void setExcludesPattern(String pattern)
setExcludesFile
public void setExcludesFile(File excludesFile)
setDir
public void setDir(String dir)
addConfiguredInclude
public void addConfiguredInclude(Table table)
addConfiguredExclude
public void addConfiguredExclude(Table table)
includes
public boolean includes(String objectName)
- Specified by:
includes
in interface Filter
getVendor
public String getVendor()
getGenerator
public Generator getGenerator()
throws Exception
- Throws:
Exception
getMasterScriptWriter
public FileWriter getMasterScriptWriter()
throws IOException
- Throws:
IOException
getFileName
public String getFileName(String tableName)
getFile
public File getFile(String tableName)
getFileWriter
public FileWriter getFileWriter(String object)
throws IOException
- Throws:
IOException
Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.