Traverses database metadata. Transformations are defined by nested channel elements.
Velocity template engine is used for code generation. Current metadata object is accessible through 'element' context object.
'session' context object of type biz.hammurapi.transformica.TransformSession gives access to current Ant project and provides
methods to include other templates or channels and to store information.
<taskdef name="dbtransform" classname="biz.hammurapi.transformica.jdbc.MetaDataTask">
<classpath>
<fileset dir="lib" includes="*.jar"/>
</classpath>
</taskdef>
<dbtransform
driver="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:hsql://localhost"
user="sa"
password=""
>
<channel
outputDir="generated"
template="templates/jdbc.java"
fileNameTemplate='$${element.name}.java'
>
<filetouchdetector fileInfoFile="fileInfo.txt" genRoot="generated"/>
</channel>
</jdbctransform>
author: Pavel Vlasov |