Class Jdbc2SchemaTransformer
- java.lang.Object
-
- org.apache.torque.templates.transformer.jdbc2schema.Jdbc2SchemaTransformer
-
- All Implemented Interfaces:
SourceTransformer
public class Jdbc2SchemaTransformer extends Object implements SourceTransformer
Performs the transformations which are necessary to apply the jdbc2schema templates to the source tree. This transformer performs the following actions:- sets the name attribute to the database element
-
-
Constructor Summary
Constructors Constructor Description Jdbc2SchemaTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceElementtransform(Object modelRoot, ControllerState controllerState)Transforms the source tree so it can be used by the jdbc2schema templates.
-
-
-
Method Detail
-
transform
public SourceElement transform(Object modelRoot, ControllerState controllerState) throws SourceTransformerException
Transforms the source tree so it can be used by the jdbc2schema templates.- Specified by:
transformin interfaceSourceTransformer- Parameters:
modelRoot- the database root element of the source tree, not null.controllerState- the controller state, not null.- Throws:
SourceTransformerException- if the transformation fails.
-
-