Common Java Interfaces
Following are the methods of the common Transform
interface:
-
void setNode(Node node)
Associates a graphNode
with this transformation. -
Node getNode()
Returns a graphNode
associated with this transformation, ornull
if no graph node is associated. -
TransformationGraph getGraph()
Returns aTransformationGraph
associated with this transformation, ornull
if no graph is associated. -
void preExecute()
Called during each graph run before the transformation is executed. May be used to allocate and initialize resources required by the transformation. All resources allocated within this method should be released by thepostExecute()
method. -
void postExecute(TransactionMethod transactionMethod)
Called during each graph run after the entire transformation is executed. Should be used to free any resources allocated within thepreExecute()
method. -
String getMessage()
Called to report any user-defined error message if an error occurs during the transformation and the transformation returned value less than or equal to -2. It is called when eitherappend(), count(), generate(), getOutputPort(), transform()
orupdateTansform()
or any of theirOnError()
counterparts returns value less than or equal to -2. -
void finished() (deprecated)
Called at the end of the transformation after all input data records are processed. -
void reset() (deprecated)
Resets the transformation to the initial state (for another execution). This method may be called only if the transformation was successfully initialized before.
Updated about 1 year ago