Package org.jitterbit.integration.data.entity

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


        }
        return treeRoot;
    }

    private boolean isDbToXml(TreeMapper mapper) {
        Transformation tx = mapper.getTransformation();
        return tx.getInputStructure() instanceof DatabaseStructure && tx.getOutputStructure() instanceof XmlStructure;
    }
View Full Code Here


        protected boolean preDefaultProcessing(IntegrationEntity entity, PostDeployProcessingManager manager) {
            if (entity instanceof SystemTransformation) {
                return false;
            }
            PostDeployStructureProcessor structureProcessor = createStructureProcessor(manager);
            Transformation tf = (Transformation) entity;
            DataStructure input = tf.getInputStructure();
            if (input != null) {
                structureProcessor.process(input);
            }
            DataStructure output = tf.getOutputStructure();
            if (output != null) {
                structureProcessor.process(output);
            }
            return true;
        }
View Full Code Here

    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    applyFrameImage();
        m_window = treemapper.getWindow();
    m_TreeMapper=treemapper;

    Transformation t1=treemapper.m_Transformation, t2=newTransformation;
    if(!t1.getMapList().isEmpty()){
      m_old=t1;
      m_new=t2;
    }
    else {
      Alert.message(this, "Since this transformation has no mappings, it will be used as the destination of the migration.", "Warning", Alert.Type.INFORMATION);
View Full Code Here

    @Before
    public void setup() {
        project = IntegrationProject.createNewProject("Test");
        script = createScript("$x = 1");
        project.insertEntityUnderRoot(script);
        tf = new Transformation("Test");
        mappedNode = new NodePath("a.b.c");
        tf.setMapList(Arrays.asList(mappedNode.path + "\t" + ScriptConstants.wrapInTags("$x")));
        mappedNodeSource = new TransformationExpressionSource(tf, mappedNode);
        project.insertEntityUnderRoot(tf);
        dataElements = new DefaultGlobalDataElements();
View Full Code Here

     *            So that Java can figure out what IdT really is.
     * @return a <code>Set</code> of the resulting IDs. This method never returns
     *         <code>null</code>; an empty <code>Set</code> is returned if no IDs were found
     */
    public static <IdT extends IntegrationEntityId> Set<IdT> getIdsFromTransformation(IntegrationEntityLookup lookup, TransformationId tid, String func, Class<IdT> idClass) {
      Transformation tran = lookup.getEntity(tid, Transformation.class);     
    return getIdsFromTransformation(tran, func, idClass);
    }
View Full Code Here

     *            The id of the Transformation whose script we should scan for instances of functions that use IntegrationEntity's.
     * @return a <code>Set</code> of the resulting IDs. This method never returns
     *         <code>null</code>; an empty <code>Set</code> is returned if no IDs were found
     */
    public static Set<? extends IntegrationEntityId> getAllIdsFromTransformation(IntegrationEntityLookup lookup, TransformationId tid) {
      Transformation tran = lookup.getEntity(tid, Transformation.class);     
    return getAllIdsFromTransformation(tran);
    }
View Full Code Here

        DependencyStore dependencies = project.getCurrentDependencies();
        try {
            KList<Transformation> tfs = KList.newList();
            for (IntegrationEntity e : dependencies.getDependingObjects(locatable).keepAll(
                            EntityFilters.allOfType(EntityType.Transformation))) {
                Transformation tf = (Transformation) e;
                if (isTransformationAffected(tf)) {
                    tfs.add(tf);
                }
            }
            return tfs;
View Full Code Here

            }
            return false;
        }

        private boolean isMatchWithFirstTransformation(WebServiceCall wsCall) {
            Transformation tf = browser.getFirstTransformation();
            return (tf == null) || wsCall.getInputStructure().equals(tf.getInputStructure());
        }
View Full Code Here

        result = prime * result + targetNode.hashCode();
        return result;
    }

    private static DataStructure getInputStructure(OperationPipeline pipeline) {
        Transformation tf = getFirstTransformation(pipeline);
        return (tf != null) ? tf.getInputStructure() : null;
    }
View Full Code Here

        this.functionIds = functionIds;
        this.collector = collector;
    }

    public void validate() {
        Transformation tf = getTransformation();
        if (tf == null) {
            // The function chain has already been validated, so there is already an
            // error reported about no transformation being specified.
            return;
        }
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.