Package org.jitterbit.integration.data.entity.id

Examples of org.jitterbit.integration.data.entity.id.TransformationId


        if (isNotEmpty(opGuid)) {
            integrationEntityId = new OperationId(opGuid);
        }
        String tranGuid = wsBreakLocation.getTransformationGuid();
        if (isNotEmpty(tranGuid)) {
            integrationEntityId = new TransformationId(tranGuid);
        }
        String scriptGuid = wsBreakLocation.getScriptGuid();
        if (isNotEmpty(scriptGuid)) {
            integrationEntityId = new ScriptId(scriptGuid);
        }
View Full Code Here


*/
public final class DataFileNameJUnitTest {

    @Test
    public void ensureToIdentifierWorks() {
        TransformationId txId = new TransformationId();
        DataFileIdentifier originalFileId = new DataFileIdentifier(null, txId, DataFileType.SOURCE, 1, 1);
        String name = DataFileName.fromIdentifier(originalFileId);
        DataFileIdentifier restoredFileId = DataFileName.toIdentifier(name, txId);
        assertEquals(originalFileId, restoredFileId);
    }
View Full Code Here

            // 2. The current client implementation does not support the case of the same Transformation
            // being called by several different Operations in the chain, so condense the map so that
            // we retain only one DataFilesInfo per Transformation. (We pick one arbitrarily.)
            Map<TransformationId, DataFilesInfo> condensed = Maps.newHashMap();
            for (Map.Entry<Key, DefaultDataFilesInfo> e : all.entrySet()) {
                TransformationId txId = e.getKey().data.second;
                if (!condensed.containsKey(txId)) {
                    condensed.put(txId, e.getValue());
                }
            }
            return condensed;
View Full Code Here

            Map<Key, DefaultDataFilesInfo> map = Maps.newHashMap();
            WsDataFilesInfo wsFilesInfo = wsResult.getDataFileInfo();
            KongaGuid guid = KongaGuid.createGuid(wsFilesInfo.getGuid());
            for (WsDataFileInfo wsFile : wsFilesInfo.getDataFiles()) {
                OperationId opId = new OperationId(wsFile.getOperationGuid());
                TransformationId txId = new TransformationId(wsFile.getTransformationGuid());
                Key key = new Key(opId, txId);
                DefaultDataFilesInfo collection = map.get(key);
                if (collection == null) {
                    collection = new DefaultDataFilesInfo(guid, serverInfo, opId, txId);
                    map.put(key, collection);
View Full Code Here

        private boolean confirmDisplayOfLargeTestFiles;

        public TestFileOpener(DataFilesInfo info, boolean startWithSourceFile) {
            this.startWithSourceFile = startWithSourceFile;
            OperationId opId = info.getOperationId();
            TransformationId txId = page.getObject().getID();
            sourceFileId = new DataFileIdentifier(opId, txId, DataFileType.SOURCE, 1, 1);
            linkFileId = new DataFileIdentifier(opId, txId, DataFileType.LINK, 1, 1);
            targetFileId = new DataFileIdentifier(opId, txId, DataFileType.TARGET, 1, 1);
        }
View Full Code Here

    public static final class Factory extends AbstractFactory<TestTransformationResult> {

        @Override
        public TestTransformationResult restore(Persistor p) {
            TransformationId transId = (TransformationId) restoreEntityId(p, TRANS_ID, EntityType.Transformation);
            long timestamp = restoreTimestamp(p);
            Outcome outcome = restoreOutcome(p);
            String details = restoreDetails(p);
            return new TestTransformationResult(transId, timestamp, outcome, details);
        }
View Full Code Here

    public static final class Factory extends AbstractFactory<TestOperationResult> {

        @Override
        public TestOperationResult restore(Persistor p) {
            OperationId opId = (OperationId) restoreEntityId(p, OP_ID, EntityType.Operation);
            TransformationId transId = (TransformationId) restoreEntityId(p, TRANS_ID, EntityType.Transformation);
            long timestamp = restoreTimestamp(p);
            Outcome outcome = restoreOutcome(p);
            String details = restoreDetails(p);
            return new TestOperationResult(opId, transId, timestamp, outcome, details);
        }
View Full Code Here

    public static final class Factory extends AbstractFactory<LoadSourceResult> {

        @Override
        public LoadSourceResult restore(Persistor p) {
            TransformationId transId = (TransformationId) restoreEntityId(p, TRANS_ID, EntityType.Transformation);
            long timestamp = restoreTimestamp(p);
            Outcome outcome = restoreOutcome(p);
            String details = restoreDetails(p);
            return new LoadSourceResult(transId, timestamp, outcome, details);
        }
View Full Code Here

            // No ID has been set yet.
            // TODO: Is it correct to do it like this:
            return TransformationId.UNDEFINED_ID;
        }
        try {
            return new TransformationId(id);
        } catch (IllegalArgumentException e) {
            // This will happen if the fied contains "null" rather than
            // it being empty.
            return null;
        }
View Full Code Here

public class HostedWebServiceFunctionCollector implements OperationFunctionCollector {

    @Override
    public OperationFunctions collect(OperationPipeline pipeline) {
        List<Function> funcs = Lists.newArrayList();
        TransformationId tfId = null;
        HostedWebServicePipelineBrowser browser = new HostedWebServicePipelineBrowser(pipeline);
        Transformation first = browser.getFirstTransformation();
        if (first != null) {
            funcs.add(first);
            tfId = first.getID();
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.TransformationId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.