Search in sources :

Example 6 with TransformTableNodeGroupLink

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;
}
Also used : TransformTable(org.jumpmind.symmetric.io.data.transform.TransformTable) TransformTableNodeGroupLink(org.jumpmind.symmetric.service.impl.TransformService.TransformTableNodeGroupLink) NodeGroupLink(org.jumpmind.symmetric.model.NodeGroupLink) TransformWriter(org.jumpmind.symmetric.io.data.writer.TransformWriter) TransformTableNodeGroupLink(org.jumpmind.symmetric.service.impl.TransformService.TransformTableNodeGroupLink)

Aggregations

TransformTableNodeGroupLink (org.jumpmind.symmetric.service.impl.TransformService.TransformTableNodeGroupLink)6 ArrayList (java.util.ArrayList)2 TransformTable (org.jumpmind.symmetric.io.data.transform.TransformTable)2 TransformWriter (org.jumpmind.symmetric.io.data.writer.TransformWriter)2 Node (org.jumpmind.symmetric.model.Node)2 NodeGroupLink (org.jumpmind.symmetric.model.NodeGroupLink)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Table (org.jumpmind.db.model.Table)1 CsvData (org.jumpmind.symmetric.io.data.CsvData)1 IDataWriter (org.jumpmind.symmetric.io.data.IDataWriter)1 IDatabaseWriterErrorHandler (org.jumpmind.symmetric.io.data.writer.IDatabaseWriterErrorHandler)1 IDatabaseWriterFilter (org.jumpmind.symmetric.io.data.writer.IDatabaseWriterFilter)1 ResolvedData (org.jumpmind.symmetric.io.data.writer.ResolvedData)1 DynamicDatabaseWriterFilter (org.jumpmind.symmetric.load.DynamicDatabaseWriterFilter)1 ChannelMap (org.jumpmind.symmetric.model.ChannelMap)1 Data (org.jumpmind.symmetric.model.Data)1 IncomingError (org.jumpmind.symmetric.model.IncomingError)1 LoadFilter (org.jumpmind.symmetric.model.LoadFilter)1 LoadFilterType (org.jumpmind.symmetric.model.LoadFilter.LoadFilterType)1