public class DDLScriptSqlMetaFactory extends Object implements SqlMetaFactory, ScriptVisitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
DDLScriptSqlMetaFactory.CatalogBuilder |
protected class |
DDLScriptSqlMetaFactory.DezignCreateTableBuilder |
| Constructor and Description |
|---|
DDLScriptSqlMetaFactory(DDLExpressions ddlSpecification) |
| Modifier and Type | Method and Description |
|---|---|
static ExtractExpr[] |
compileExpressions(String[] statementFormats) |
void |
doCommit() |
void |
doRollback() |
void |
fillCatalog(URL scriptURL) |
void |
fillCatalog(URL scriptURL,
ScriptAction.FileFormat fileFormat)
API -
not thread-safe. only fill one catalog at the same time with this instance.
|
protected Map<String,DDLScriptSqlMetaFactory.CatalogBuilder> |
getBuilders() |
CatalogDescription |
getCatalog() |
protected DDLExpressions |
getDdlSpec() |
protected PropertiesExtractor |
getExtractor() |
protected void |
init() |
void |
setCatalog(CatalogDescription aCatalog) |
void |
visitComment(String theComment) |
int |
visitStatement(String statement)
parse the statement and create the adequate parts of the Catalog
|
public DDLScriptSqlMetaFactory(DDLExpressions ddlSpecification)
protected void init()
public static ExtractExpr[] compileExpressions(String[] statementFormats)
protected Map<String,DDLScriptSqlMetaFactory.CatalogBuilder> getBuilders()
protected DDLExpressions getDdlSpec()
protected PropertiesExtractor getExtractor()
public CatalogDescription getCatalog()
public void setCatalog(CatalogDescription aCatalog)
public void fillCatalog(URL scriptURL, ScriptAction.FileFormat fileFormat) throws SQLException, IOException
scriptURL - - URL to a script to parsefileFormat - - SQL, JDBC, STMT supportedIOException - - url not foundSQLException - - error executing SQLpublic void fillCatalog(URL scriptURL) throws SQLException, IOException
SQLExceptionIOExceptionpublic int visitStatement(String statement) throws SQLException
visitStatement in interface ScriptVisitorstatement - - a DDL statement (Oracle syntax)SQLExceptionpublic void visitComment(String theComment) throws SQLException
visitComment in interface ScriptVisitorSQLExceptionpublic void doCommit()
throws SQLException
doCommit in interface ScriptVisitorSQLExceptionpublic void doRollback()
throws SQLException
doRollback in interface ScriptVisitorSQLExceptionCopyright © 2008-2016. All Rights Reserved.