Klasse CopyAttributeTransformer
java.lang.Object
org.apache.torque.generator.source.transform.SourceTargetAttributeTransformer
org.apache.torque.generator.source.transform.CopyAttributeTransformer
- Alle implementierten Schnittstellen:
SourceTransformer
Fills an attribute with the content of another attribute.
It can be configured whether the target attribute is overwritten
if it is not set.
$Id: CopyAttributeTransformer.java 1839288 2018-08-27 09:48:33Z tv $
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungtransform
(Object rootObject, ControllerState controllerState) Fills the target attribute according to the settings.Von Klasse geerbte Methoden org.apache.torque.generator.source.transform.SourceTargetAttributeTransformer
getSourceAttributeName, getTargetAttributeName, isOverwrite, setOverwrite, setSourceAttributeName, setTargetAttributeName
-
Konstruktordetails
-
CopyAttributeTransformer
public CopyAttributeTransformer()
-
-
Methodendetails
-
transform
public SourceElement transform(Object rootObject, ControllerState controllerState) throws SourceTransformerException Fills the target attribute according to the settings.- Angegeben von:
transform
in SchnittstelleSourceTransformer
- Angegeben von:
transform
in KlasseSourceTargetAttributeTransformer
- Parameter:
rootObject
- the root of the source graph, not null.controllerState
- the controller state.- Gibt zurück:
- the modified source element, not null.
- Löst aus:
SourceTransformerException
- if rootObject is not a SourceElement.IllegalStateException
- if sourceAttributeName or targetAttributeName was not set.- Siehe auch:
-