com.agimatec.sql.meta.script
Class DDLScriptSqlMetaFactory
java.lang.Object
com.agimatec.sql.meta.script.DDLScriptSqlMetaFactory
- All Implemented Interfaces:
- SqlMetaFactory, ScriptVisitor
- Direct Known Subclasses:
- ScriptTransformator
public class DDLScriptSqlMetaFactory
- extends java.lang.Object
- implements SqlMetaFactory, ScriptVisitor
Description:
User: roman.stumm
Date: 24.04.2007
Time: 19:01:18
Copyright: Agimatec GmbH
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDLScriptSqlMetaFactory
public DDLScriptSqlMetaFactory(DDLExpressions ddlSpecification)
init
protected void init()
compileExpressions
public static ExtractExpr[] compileExpressions(java.lang.String[] statementFormats)
getBuilders
protected java.util.Map<java.lang.String,DDLScriptSqlMetaFactory.CatalogBuilder> getBuilders()
getDdlSpec
protected DDLExpressions getDdlSpec()
getExtractor
protected PropertiesExtractor getExtractor()
getCatalog
public CatalogDescription getCatalog()
setCatalog
public void setCatalog(CatalogDescription aCatalog)
fillCatalog
public void fillCatalog(java.net.URL scriptURL)
throws java.sql.SQLException,
java.io.IOException
- API -
not thread-safe. only fill one catalog at the same time with this instance.
- Parameters:
scriptURL - - URL to a script to parse
- Throws:
java.io.IOException - - url not found
java.sql.SQLException - - error executing SQL
visitStatement
public int visitStatement(java.lang.String statement)
throws java.sql.SQLException
- parse the statement and create the adequate parts of the Catalog
- Specified by:
visitStatement in interface ScriptVisitor
- Parameters:
statement - - a DDL statement (Oracle syntax)
- Returns:
- 0
- Throws:
java.sql.SQLException
visitComment
public void visitComment(java.lang.String theComment)
throws java.sql.SQLException
- Specified by:
visitComment in interface ScriptVisitor
- Throws:
java.sql.SQLException
doCommit
public void doCommit()
throws java.sql.SQLException
- Specified by:
doCommit in interface ScriptVisitor
- Throws:
java.sql.SQLException
doRollback
public void doRollback()
throws java.sql.SQLException
- Specified by:
doRollback in interface ScriptVisitor
- Throws:
java.sql.SQLException
Copyright © 2008-2012. All Rights Reserved.