Package org.jitterbit.integration.data.entity

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


        return getActivity().getContent();
    }

    @Override
    protected String getContentString() {
        Transformation tf = getTransformation();
        String name = tf != null ? tf.getName() : getActivity().getRole();
        if (Transformation.isPassThrough(tf)) {
            name = "(" + name + ")";
        }
        return name;
    }
View Full Code Here


        return name;
    }

    @Override
    protected String getContentToolTip() {
        Transformation tx = getTransformation();
        return (tx != null) ? ToolTipStringFactory.getToolTip(tx) : TOOLTIP_WHEN_EMPTY;
    }
View Full Code Here

        return (Locatable) item;
    }

    public void applyToEditedTransformation() throws WizardPageException {
        checkState(toEdit != null, "This wizard is not editing an existing transformation");
        Transformation tf = toEdit.getTransformation();
        DatabaseStructure struct = getDefinedStructure();
        if (sourceTarget == SourceTarget.Source) {
            tf.setInputStructure(struct);
            tf.setSourceId(struct.getSourceId());
        } else {
            tf.setOutputStructure(struct);
            tf.setTargetId(struct.getTargetId());
            applyInsertMode(tf);
        }
    }
View Full Code Here

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

    private boolean isApplicable() {
        Transformation tf = page.getObject();
        DataStructure in = tf.getInputStructure();
        return (in != null) && (in.getStructureType() != DataStructureType.None);
    }
View Full Code Here

        configureXmlEditor(editor, st);
        return editor;
    }

    private void configureXmlEditor(XmlStructureEditor editor, SourceTarget st) {
        Transformation tx = page.getObject();
        boolean isEdi = (st == SourceTarget.Source) ? tx.isXmlSourceEdi() : tx.isXmlTargetEdi();
        if (isEdi) {
            editor.useForEdi();
        }
    }
View Full Code Here

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

    private boolean isApplicable() {
        Transformation tf = page.getObject();
        DataStructure input = tf.getInputStructure();
        if (input instanceof DatabaseStructure) {
            DatabaseStructure s = (DatabaseStructure) input;
            return !s.hasManualSqlStatement();
        }
        return false;
View Full Code Here

        }

        @Override
        public void caught(TreeMapperException th) {
            try {
                Transformation backup = wizard.getBackup();
                doMigration(backup);
            } catch (InterruptedException ex) {
                Thread.currentThread().interrupt();
                logFailureToLaunchMigration("The call was interrupted before the backup copy could be created.", ex);
            }
View Full Code Here

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

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

            new ShowMappedTargetNodesAction(page)
        );
    }

    private void setAdditionalPopupMenuActions(TransformationPage page) {
        Transformation tx = page.getObject();
        ApplicationWindow appWin = impl.getView().getWindow();
        List<Action> actions = Lists.newArrayList();
        actions.add(null);
        actions.add(new ViewInputJtrAction(appWin, tx));
        actions.add(new ViewOutputJtrAction(appWin, tx));
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.exportMultipleFolders(tf);
            }
        });
    }
View Full Code Here

TOP

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

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.