Klasse OMTransformer
java.lang.Object
org.apache.torque.templates.transformer.om.OMTransformer
- Alle implementierten Schnittstellen:
SourceTransformer
Performs the transformations which are necessary to apply the OM templates
to the source tree.
This transformer performs the following actions:
- adds attributes to source elements
- links elements to other source elements
- IncludeSchemaTransformer on the root node
- LoadExternalSchemaTransformer on the root node
- OMTableAndViewTransformer on all tables and views
- OMForeignKeyColumnTransformer on all columns
- OMForeignKeyTransformer on all foreign keys (two passes)
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
setRootDatabaseName
(Database database) Sets the rootDatabaseName attribute of the database element to the database's name.static void
setRootDatabaseNameAttribute
(SourceElement databaseElement) Sets the rootDatabaseName attribute of the database element to the database's name.transform
(Object modelRoot, ControllerState controllerState) Transforms the source tree so it can be used by the om templates.
-
Konstruktordetails
-
OMTransformer
public OMTransformer()
-
-
Methodendetails
-
transform
public SourceElement transform(Object modelRoot, ControllerState controllerState) throws SourceTransformerException Transforms the source tree so it can be used by the om templates.- Angegeben von:
transform
in SchnittstelleSourceTransformer
- Parameter:
modelRoot
- the database root element of the source tree, not null.controllerState
- the controller state, not null.- Löst aus:
SourceTransformerException
- if the transformation fails.
-
setRootDatabaseNameAttribute
Sets the rootDatabaseName attribute of the database element to the database's name.- Parameter:
databaseElement
- the database element, not null.
-
setRootDatabaseName
Sets the rootDatabaseName attribute of the database element to the database's name.- Parameter:
database
- the database element, not null.
-