public class OMForeignKeyTransformer extends Object
Constructor and Description |
---|
OMForeignKeyTransformer() |
Modifier and Type | Method and Description |
---|---|
protected void |
createLocalElementForReference(SourceElement localTable,
SourceElement reference)
Creates the child element "local-column" for the reference element
and adds the local column as a child of it.
|
void |
transform(SourceElement foreignKey,
ControllerState controllerState) |
void |
transformSecondPass(SourceElement foreignKey,
ControllerState controllerState)
Second pass of the transformation.
|
public void transform(SourceElement foreignKey, ControllerState controllerState) throws SourceTransformerException
SourceTransformerException
public void transformSecondPass(SourceElement foreignKey, ControllerState controllerState) throws SourceTransformerException
foreignKey
- the element to transform, not null.controllerState
- the controller state, not null.SourceTransformerException
- if the transformation failsprotected void createLocalElementForReference(SourceElement localTable, SourceElement reference) throws SourceTransformerException
localTable
- the local table element.reference
- the referenced element to enrich.SourceTransformerException
- if the referenced column
cannot be found.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.