Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Transformation$StructureListener


        boolean enabled = isApplicable();
        setEnabled(enabled);
    }

    private boolean isApplicable() {
        Transformation tx = page.getObject();
        DataStructure input = tx.getInputStructure();
        return input.getStructureType().isSourceDataRequired();
    }
View Full Code Here


    public final void setSavePageWhenDone(boolean value) {
        this.savePageWhenDone = value;
    }

    public final void refresh() {
        Transformation tf = page.getObject();
        log("Received request to refresh the structures for the transformation \"" + tf.getName() + "\"");
        ManagedProject project = ProjectUtils.getManagedProject(tf);
        TransformationStructureRefresher refresher = new TransformationStructureRefresher(project);
        refresher.setLogger(logger);
        refresher.refreshInputAndOuputStructures(tf, new CallbackImpl());
    }
View Full Code Here

    private void startExport() {
        page.saveAndRun(new Runnable() {

            @Override
            public void run() {
                Transformation tf = page.getObject();
                MappingExporter exporter = MappingExporter.Factory.create(page.getView());
                exporter.exportMappings(tf);
            }
        });
    }
View Full Code Here

        private TransformationPage getPage(List<?> objectsActedOn) {
            if (objectsActedOn.size() == 1) {
                Object o = objectsActedOn.get(0);
                if (o instanceof Transformation) {
                    Transformation tx = (Transformation) o;
                    Editor page = view.getEditorForEntity(tx);
                    if (page instanceof TransformationPage) {
                        return (TransformationPage) page;
                    }
                }
View Full Code Here

    private void startMigration() {
        page.saveAndRun(new Runnable() {

            @Override
            public void run() {
                Transformation secondTf = getSecondTransformation(page.getObject());
                if (secondTf != null) {
                    page.getTreeMapper().migration(secondTf);
                }
            }
        });
View Full Code Here

            invoker.jobHasCompleted();
        }
    }
   
    private void checkCache() {
        Transformation tf = invoker.getTransformation();
        try {
            MappingTreeStructure inputJtr = cache.getInputStructure(tf.getID());
            MappingTreeStructure outputJtr = cache.getOutputStructure(tf.getID());
            if (inputJtr != null && !inputJtr.outOfDate()) {
                setInputJtr(inputJtr);
            }
            if (outputJtr != null && !outputJtr.outOfDate()) {
                setOutputJtr(outputJtr);
            }
        } catch (DataCacheException e) {
            cache.delete(tf.getID());
        }
    }
View Full Code Here

        }
        outputCallback.waitUntilDone();
    }
   
    private void cacheStructures(boolean cacheInputStructure, boolean cacheOutputStructure) {
        Transformation tf = invoker.getTransformation();
        if (cacheInputStructure) {
            cacheInputStructure(tf);
        }
        if (cacheOutputStructure) {
            cacheOutputStructure(tf);
View Full Code Here

        return null;
    }

    private void doBackup() {
        EntityCopyMachine machine = new EntityCopyMachine();
        Transformation copy = (Transformation) machine.createAndInsertCopy(transformation);
        TransformationEditorWizard.this.backup = copy;
        backupLatch.countDown();
        saveBackupToDisk(copy);
    }
View Full Code Here

        TargetId tgtId = operation.getTargetId();
        setTarget(dataLookup.getEntity(tgtId, Target.class));
    }

    private void resetTransformation() {
        Transformation tf = null;
        OperationFunctionInfo info = new OperationFunctionInfo(operation);
        Function first = info.getFirstFunction();
        if (first instanceof Transformation) {
            tf = (Transformation) first;
        }
View Full Code Here

        applyTransformationChain(op);
    }

    private void applyTransformationChain(Operation op) {
        List<Function> funcChain = Lists.newArrayList();
        Transformation tf = (Transformation) transformationSelector.getSelectedEntity();
        if (tf != null) {
            funcChain.add(tf);
        } else {
            // TODO: ?
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.Transformation$StructureListener

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.