public class ModelBuilder
extends java.lang.Object
ModelElementFinder
.
Writes all model elements into the files
Modifier and Type | Field and Description |
---|---|
static CsvFile.LineFilter |
assocFilter |
Constructor and Description |
---|
ModelBuilder() |
Modifier and Type | Method and Description |
---|---|
static void |
build(javax.sql.DataSource dataSource,
DBMS dbms,
java.lang.String schema,
java.lang.StringBuffer warnings,
ExecutionContext executionContext)
Builds model.
|
static void |
buildAndMerge(javax.sql.DataSource dataSource,
DBMS dbms,
java.lang.String schema,
java.lang.StringBuffer warnings,
ExecutionContext executionContext)
Builds and merges model.
|
static void |
cleanUp(ExecutionContext executionContext)
Removes temporary files.
|
static java.lang.String |
getModelBuilderAssociationsFilename(ExecutionContext executionContext)
Name of CSV file for generated association definitions.
|
static java.lang.String |
getModelBuilderColumnsFilename(ExecutionContext executionContext)
Name of CSV file for generated column definitions.
|
static java.lang.String |
getModelBuilderCommentsFilename(ExecutionContext executionContext)
Name of CSV file for generated comments.
|
static java.lang.String |
getModelBuilderTablesFilename(ExecutionContext executionContext)
Name of CSV file for generated table definitions.
|
static boolean |
isJailerTable(java.lang.String table)
Checks if table is one of Jailers working tables.
|
static void |
resetFiles(ExecutionContext executionContext)
Resets 'model-builder-*.csv' files.
|
public static CsvFile.LineFilter assocFilter
public static java.lang.String getModelBuilderTablesFilename(ExecutionContext executionContext)
public static java.lang.String getModelBuilderColumnsFilename(ExecutionContext executionContext)
public static java.lang.String getModelBuilderAssociationsFilename(ExecutionContext executionContext)
public static java.lang.String getModelBuilderCommentsFilename(ExecutionContext executionContext)
public static void buildAndMerge(javax.sql.DataSource dataSource, DBMS dbms, java.lang.String schema, java.lang.StringBuffer warnings, ExecutionContext executionContext) throws java.lang.Exception
warnings
- string-buffer to print warnings into, may be null
java.lang.Exception
public static void build(javax.sql.DataSource dataSource, DBMS dbms, java.lang.String schema, java.lang.StringBuffer warnings, ExecutionContext executionContext) throws java.lang.Exception
warnings
- string-buffer to print warnings into, may be null
java.lang.Exception
public static boolean isJailerTable(java.lang.String table)
table
- the table to checktrue
if table is one of Jailers working tablespublic static void resetFiles(ExecutionContext executionContext) throws java.io.IOException
java.io.IOException
public static void cleanUp(ExecutionContext executionContext)