public class ExecutionContext extends Object
| Constructor and Description |
|---|
ExecutionContext()
Default constructor.
|
ExecutionContext(CommandLine commandLine)
Creates new context with attributes taken from
ExecutionContext. |
ExecutionContext(ExecutionContext other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAnalyseAlias()
If
true, Look for aliases while analysing the DB |
boolean |
getAnalyseSynonym()
If
true, Look for synonyms while analysing the DB |
boolean |
getAnalyseView()
If
true, Look for views while analysing the DB |
String |
getCurrentModelSubfolder()
Gets folder of current data model.
|
String |
getDatamodelFolder()
Gets folder holding the data model.
|
URL |
getDataModelURL()
Gets URL of the current data model (the datamodels base folder)
|
String |
getImportFilterMappingTableSchema()
Gets schema in which the import-filter mapping tables will be created
|
boolean |
getNoRowid()
If
true, Use primary keys to determine row identity (instead
of rowid-column) |
boolean |
getNoSorting()
If
true, The exported rows will not be sorted according to
foreign key constraints |
int |
getNumberOfEntities()
Gets maximum number of entities per insert-statement (in export-file,
default is 10)
|
int |
getNumberOfThreads()
Gets number of threads (default is 1)
|
Map<String,String> |
getParameters()
Gets parameters
|
ProgressListenerRegistry |
getProgressListenerRegistry()
Gets the
ProgressListenerRegistry. |
String |
getQualifiedDatamodelFolder()
Gets fully qualified folder name of current data model.
|
boolean |
getQualifyNames()
If
true, Add schema prefix to table names after analysing
the DB |
Map<String,String> |
getSchemaMapping() |
WorkingTableScope |
getScope()
Gets scope of working tables, GLOBAL, SESSION_LOCAL or LOCAL_DATABASE
|
ScriptFormat |
getScriptFormat()
Gets the script format.
|
Map<String,String> |
getSourceSchemaMapping() |
DBMS |
getTargetDBMS()
Gets target-DBMS: ORACLE, MSSQL, DB2, MySQL, POSTGRESQL, SYBASE, SQLITE,
HSQL or H2
|
boolean |
getTransactional()
If
true, Import rows in a single transaction |
boolean |
getUpsertOnly()
If
true, Generate 'upsert'-statements for all entities (in
export-file) |
boolean |
getUTF8()
If
true, Use UTF-8 encoding |
String |
getWorkingTableSchema()
Gets schema in which the working tables will be created
|
String |
getXmlDatePattern()
Gets pattern for dates in XML and LIQUIBASE_XML export file
|
String |
getXmlRootTag()
Gets root tag of XML export file
|
String |
getXmlTimePattern()
Gets pattern for times in XML and LIQUIBASE_XML export file
|
String |
getXmlTimeStampPattern()
Gets pattern for time-stamps in XML and LIQUIBASE_XML export file
|
void |
setAnalyseAlias(boolean analyseAlias)
If
true, Look for aliases while analysing the DB |
void |
setAnalyseSynonym(boolean analyseSynonym)
If
true, Look for synonyms while analysing the DB |
void |
setAnalyseView(boolean analyseView)
If
true, Look for views while analysing the DB |
void |
setCurrentModelSubfolder(String modelFolder)
Sets folder of current data model.
|
void |
setDatamodelFolder(String datamodelFolder)
Sets folder holding the data model.
|
void |
setDataModelURL(URL datamodelURL)
Sets URL of the current data model (the datamodels base folder)
|
void |
setImportFilterMappingTableSchema(String importFilterMappingTableSchema)
Sets schema in which the import-filter mapping tables will be created
|
void |
setNoRowid(boolean noRowid)
If
true, Use primary keys to determine row identity (instead
of rowid-column) |
void |
setNoSorting(boolean noSorting)
If
true, The exported rows will not be sorted according to
foreign key constraints |
void |
setNumberOfEntities(int numberOfEntities)
Sets maximum number of entities per insert-statement (in export-file,
default is 10)
|
void |
setNumberOfThreads(int numberOfThreads)
Sets number of threads (default is 1)
|
void |
setParameter(String name,
String value)
Sets a parameter.
|
void |
setQualifyNames(boolean qualifyNames)
If
true, Add schema prefix to table names after analysing
the DB |
void |
setSchemaMapping(Map<String,String> schemaMapping)
Sets source schema map
|
void |
setScope(WorkingTableScope scope)
Sets scope of working tables, GLOBAL, SESSION_LOCAL or LOCAL_DATABASE
|
void |
setScriptFormat(ScriptFormat scriptFormat)
Sets the script format.
|
void |
setSourceSchemaMapping(Map<String,String> sourceSchemaMapping) |
void |
setTargetDBMS(DBMS targetDBMS)
Sets target-DBMS: ORACLE, MSSQL, DB2, MySQL, POSTGRESQL, SYBASE, SQLITE,
HSQL or H2
|
void |
setTransactional(boolean transactional)
If
true, Import rows in a single transaction |
void |
setUpsertOnly(boolean upsertOnly)
If
true, Generate 'upsert'-statements for all entities (in
export-file) |
void |
setUTF8(boolean uTF8)
If
true, Use UTF-8 encoding |
void |
setWorkingTableSchema(String workingTableSchema)
Sets schema in which the working tables will be created
|
void |
setXmlDatePattern(String xmlDatePattern)
Sets pattern for dates in XML and LIQUIBASE_XML export file
|
void |
setXmlRootTag(String xmlRootTag)
Sets root tag of XML export file
|
void |
setXmlTimePattern(String xmlTimePattern)
Sets pattern for times in XML and LIQUIBASE_XML export file
|
void |
setXmlTimeStampPattern(String xmlTimeStampPattern)
Sets pattern for time-stamps in XML and LIQUIBASE_XML export file
|
public ExecutionContext()
public ExecutionContext(ExecutionContext other)
public ExecutionContext(CommandLine commandLine) throws Exception
ExecutionContext.executionContext - the command lineExceptionpublic boolean getUTF8()
true, Use UTF-8 encodingtrue if Use UTF-8 encodingpublic void setUTF8(boolean uTF8)
true, Use UTF-8 encodinguTF8 - true if Use UTF-8 encodingpublic DBMS getTargetDBMS()
public void setTargetDBMS(DBMS targetDBMS)
targetDBMS - target-DBMS: ORACLE, MSSQL, DB2, MySQL, POSTGRESQL, SYBASE,
SQLITE, HSQL or H2public String getXmlRootTag()
public void setXmlRootTag(String xmlRootTag)
xmlRootTag - root tag of XML export filepublic String getXmlDatePattern()
public void setXmlDatePattern(String xmlDatePattern)
xmlDatePattern - pattern for dates in XML and LIQUIBASE_XML export filepublic String getXmlTimePattern()
public void setXmlTimePattern(String xmlTimePattern)
xmlTimePattern - pattern for times in XML and LIQUIBASE_XML export filepublic String getXmlTimeStampPattern()
public void setXmlTimeStampPattern(String xmlTimeStampPattern)
xmlTimeStampPattern - pattern for time-stamps in XML and LIQUIBASE_XML export filepublic boolean getQualifyNames()
true, Add schema prefix to table names after analysing
the DBtrue if Add schema prefix to table names after
analysing the DBpublic void setQualifyNames(boolean qualifyNames)
true, Add schema prefix to table names after analysing
the DBqualifyNames - true if Add schema prefix to table names after
analysing the DBpublic boolean getAnalyseAlias()
true, Look for aliases while analysing the DBtrue if Look for aliases while analysing the DBpublic void setAnalyseAlias(boolean analyseAlias)
true, Look for aliases while analysing the DBanalyseAlias - true if Look for aliases while analysing the DBpublic boolean getAnalyseSynonym()
true, Look for synonyms while analysing the DBtrue if Look for synonyms while analysing the DBpublic void setAnalyseSynonym(boolean analyseSynonym)
true, Look for synonyms while analysing the DBanalyseSynonym - true if Look for synonyms while analysing the DBpublic boolean getAnalyseView()
true, Look for views while analysing the DBtrue if Look for views while analysing the DBpublic void setAnalyseView(boolean analyseView)
true, Look for views while analysing the DBanalyseView - true if Look for views while analysing the DBpublic int getNumberOfThreads()
public void setNumberOfThreads(int numberOfThreads)
numberOfThreads - number of threads (default is 1)public int getNumberOfEntities()
public void setNumberOfEntities(int numberOfEntities)
numberOfEntities - maximum number of entities per insert-statement (in
export-file, default is 10)public boolean getUpsertOnly()
true, Generate 'upsert'-statements for all entities (in
export-file)true if Generate 'upsert'-statements for all
entities (in export-file)public void setUpsertOnly(boolean upsertOnly)
true, Generate 'upsert'-statements for all entities (in
export-file)upsertOnly - true if Generate 'upsert'-statements for all
entities (in export-file)public WorkingTableScope getScope()
public void setScope(WorkingTableScope scope)
scope - scope of working tables, GLOBAL, SESSION_LOCAL or
LOCAL_DATABASEpublic String getWorkingTableSchema()
public void setWorkingTableSchema(String workingTableSchema)
workingTableSchema - schema in which the working tables will be createdpublic String getDatamodelFolder()
public void setDatamodelFolder(String datamodelFolder)
datamodelFolder - folder holding the data model. Defaults to './datamodel'public String getQualifiedDatamodelFolder()
public boolean getNoSorting()
true, The exported rows will not be sorted according to
foreign key constraintstrue if The exported rows will not be sorted
according to foreign key constraintspublic void setNoSorting(boolean noSorting)
true, The exported rows will not be sorted according to
foreign key constraintsnoSorting - true if The exported rows will not be sorted
according to foreign key constraintspublic boolean getTransactional()
true, Import rows in a single transactiontrue if Import rows in a single transactionpublic void setTransactional(boolean transactional)
true, Import rows in a single transactiontransactional - true if Import rows in a single transactionpublic boolean getNoRowid()
true, Use primary keys to determine row identity (instead
of rowid-column)true if Use primary keys to determine row identity
(instead of rowid-column)public void setNoRowid(boolean noRowid)
true, Use primary keys to determine row identity (instead
of rowid-column)noRowid - true if Use primary keys to determine row
identity (instead of rowid-column)public String getImportFilterMappingTableSchema()
public void setImportFilterMappingTableSchema(String importFilterMappingTableSchema)
importFilterMappingTableSchema - schema in which the import-filter mapping tables will be
createdpublic void setParameter(String name, String value)
name - parameter namevalue - valuepublic void setSchemaMapping(Map<String,String> schemaMapping)
rawsourceschemamapping - source schema mappublic void setSourceSchemaMapping(Map<String,String> sourceSchemaMapping)
sourceSchemaMapping - the sourceSchemaMapping to setpublic ScriptFormat getScriptFormat()
public void setScriptFormat(ScriptFormat scriptFormat)
public void setCurrentModelSubfolder(String modelFolder)
modelFolder - the folder, null for default modelpublic String getCurrentModelSubfolder()
null for default modelpublic URL getDataModelURL()
public void setDataModelURL(URL datamodelURL)
public ProgressListenerRegistry getProgressListenerRegistry()
ProgressListenerRegistry.ProgressListenerRegistry