Examples of InputAndOutputMappingTreeStructureCache


Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache

        }

        private MappingTreeStructure getMappingStructure() throws DataCacheException {
            ManagedProject project = ProjectUtils.getManagedProject(tx);
            if (project != null) {
                InputAndOutputMappingTreeStructureCache cache = project.getTransformationMappingStructureCache();
                return (mode == Mode.INPUT) ? cache.getInputStructure(tx.getID()) : cache
                                .getOutputStructure(tx.getID());
            }
            return null;
        }
View Full Code Here

Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache

        cleanCache();
        resetUi();
    }
   
    private void cleanCache() {
        InputAndOutputMappingTreeStructureCache cache = project.getTransformationMappingStructureCache();
        for (Transformation tf : project.getProject().getAllEntitiesOfClass(Transformation.class)) {
            if (isDbTrans(tf)) {
                cache.delete(tf.getID());
            }
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache

        }
       
        private CROM_Tree findCachedTree() {
            try {
                ManagedProject mp = ProjectUtils.getManagedProject(tx);
                InputAndOutputMappingTreeStructureCache cache = mp.getTransformationMappingStructureCache();
                MappingTreeStructure jtr = cache.getInputStructure(tx.getID());
                if (jtr != null) {
                    return CROM_Tree.fromMappingStructure(jtr);
                }
            } catch (CromTreeException e) {
                ErrorLog.log(getClass(), "Error converting a mapping structure to a CROM tree.", e);
View Full Code Here

Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache

        }
    }

    private void loadStructures(TreeMapper treeMapper) throws MigrationInitializationException {
        // TODO: Do this in a UiJob
        InputAndOutputMappingTreeStructureCache cache = treeMapper.getTreeStructureCache();
        m_oldSourceJtr = getInputStructure(m_old, cache);
        m_oldTargetJtr = getOutputStructure(m_old, cache);
        m_newSourceJtr = getInputStructure(m_new, cache);
        m_newTargetJtr = getOutputStructure(m_new, cache);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache

            this.project = project.getExtensionObject(ManagedProject.class);
        }

        public void handle(Transformation copy) {
            try {
                InputAndOutputMappingTreeStructureCache structureCache = project.getTransformationMappingStructureCache();
                structureCache.copy(original.getID(), copy.getID());
            } catch (DataCacheException ex) {
                // This is not a fatal error. All it means is that the mapping structures for the
                // copy will have to be recreated.
                ErrorLog.log(EntityCopyMachine.class, "Failed to create copy of cached mapping structures for " +
                        "the transformation \"" + copy.getName(), ex);
View Full Code Here

Examples of org.jitterbit.integration.client.structure.cache.InputAndOutputMappingTreeStructureCache

            }
        }

        public void handle(WebServiceCall copy) {
            try {
                InputAndOutputMappingTreeStructureCache cache = project.getWebServiceMappingStructureCache();
                cache.copy(original.getID(), copy.getID());
            } catch (DataCacheException ex) {
                // This is not a fatal error. All it means is that the mapping structures for the
                // copy will have to be recreated.
                ErrorLog.log(EntityCopyMachine.class, "Failed to create copy of cached mapping structures for " +
                        "the web service call \"" + copy.getName(), ex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.