Class Jdbc2SchemaTransformer
java.lang.Object
org.apache.torque.templates.transformer.jdbc2schema.Jdbc2SchemaTransformer
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiontransform(Object modelRoot, ControllerState controllerState) Transforms the source tree so it can be used by the jdbc2schema templates.
-
Constructor Details
-
Jdbc2SchemaTransformer
public Jdbc2SchemaTransformer()
-
-
Method Details
-
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.
-