use of org.jumpmind.symmetric.service.impl.TransformService.TransformTableNodeGroupLink in project symmetric-ds by JumpMind.
the class DataExtractorService method createTransformDataWriter.
protected TransformWriter createTransformDataWriter(Node identity, Node targetNode, IDataWriter extractWriter) {
List<TransformTableNodeGroupLink> transformsList = null;
if (targetNode != null) {
transformsList = transformService.findTransformsFor(new NodeGroupLink(identity.getNodeGroupId(), targetNode.getNodeGroupId()), TransformPoint.EXTRACT);
}
TransformTable[] transforms = transformsList != null ? transformsList.toArray(new TransformTable[transformsList.size()]) : null;
TransformWriter transformExtractWriter = new TransformWriter(symmetricDialect.getPlatform(), TransformPoint.EXTRACT, extractWriter, transformService.getColumnTransforms(), transforms);
return transformExtractWriter;
}
Aggregations