Home | Table of Contents | Common Java Interfaces | CloverETL 4.6.1
--- | --- | ---
Prev | Transformations | Next

## Common Java Interfaces

Following are the methods of the common `Transform` interface:

- `void setNode(Node node)`

  Associates a graph `Node` with this transform.

- `Node getNode()`

  return a graph `Node` associated with this transform, or `null` if no graph node is associated

- `TransformationGraph getGraph()`

  Returns a `TransformationGraph` associated with this transform, or `null` if no graph is associated.

- `void preExecute()`

  Called during each graph run before the transform is executed. May be used to allocate and initialize resources required by the transform. All resources allocated within this method should be released by the `postExecute()` method.

- `void postExecute(TransactionMethod transactionMethod)`

  Called during each graph run after the entire transform was executed. Should be used to free any resources allocated within the `preExecute()` method.

- `String getMessage()`

  Called to report any user-defined error message if an error occurred during the transform and the transform returned value less than or equal to -2. It is called when either `append()`, `count()`, `generate()`, `getOutputPort()`, `transform()`, or `updateTansform()` or any of their `OnError()` counterparts returns value less than or equal to -2.

- `void finished()` (deprecated)

  Called at the end of the transform after all input data records were processed.

- `void reset()` (deprecated)

  Resets the transform to the initial state (for another execution). This method may be called only if the transform was successfully initialized before.

Prev | Up | Next
Transform Editor | Home | Table of Contents | Data Partitioning (Parallel Running)