Klasse LoadExternalSchemaTransformer
java.lang.Object
org.apache.torque.templates.transformer.LoadExternalSchemaTransformer
- Alle implementierten Schnittstellen:
SourceTransformer
A SourceTransformer which loads the external schemata tables and views
into the current graph.
- Version:
- $Id: LoadExternalSchemaTransformer.java 1850969 2019-01-10 18:09:47Z painter $
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungStandard constructor.LoadExternalSchemaTransformer
(File baseDir) Constructor to override base dir. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungtransform
(Object modelRoot, ControllerState controllerState) Loads the external schemata tables into the current graph.transform
(Database database, ControllerState controllerState) Loads the external schemata tables into the current graph.
-
Konstruktordetails
-
LoadExternalSchemaTransformer
public LoadExternalSchemaTransformer()Standard constructor. -
LoadExternalSchemaTransformer
Constructor to override base dir.- Parameter:
baseDir
- the new base dir.
-
-
Methodendetails
-
transform
public SourceElement transform(Object modelRoot, ControllerState controllerState) throws SourceTransformerException Loads the external schemata tables into the current graph. The external database element is added as child of the external-schema element. Also, an all-tables child element is added to the root element, which is filled with all tables from the external schema plus its own tables.- Angegeben von:
transform
in SchnittstelleSourceTransformer
- Parameter:
modelRoot
- the database root element of the source tree, not null.controllerState
- the controller state, not null.- Gibt zurück:
- SourceElement
- Löst aus:
SourceTransformerException
- if the transformation fails.
-
transform
public Database transform(Database database, ControllerState controllerState) throws SourceTransformerException Loads the external schemata tables into the current graph. The external database element is added as child of the external-schema element. Also, an all-tables child element is added to the root element, which is filled with all tables from the external schema plus its own tables.- Parameter:
database
- the database root element of the source tree, not null.controllerState
- the controller state, not null.- Gibt zurück:
- Database object
- Löst aus:
SourceTransformerException
- if the transformation fails.
-