Package org.jitterbit.integration.data.structure

Examples of org.jitterbit.integration.data.structure.DataStructure


        return newConverterImpl(rootNode, sourceStructure);
    }
   
    public TreeMapperToTextStructureConverter newTargetStructureConverter(Transformation tf, TreeMapperNode rootNode)
                                        throws NotSupportedException {
        DataStructure targetStructure = tf.getOutputStructure();
        return newConverterImpl(rootNode, targetStructure);
    }
View Full Code Here


    }

    private static Type getType(TreeComponent tree) {
        // HACK: This is super ugly. See if there is a way to figure this out
        // from just looking at the tree itself.
        DataStructure struct = getStructure(tree);
        if (struct instanceof NoStructure) {
            return Type.EMPTY;
        }
        if (struct.getStructureNature() == StructureNature.Flat) {
            return Type.FLAT;
        }
        return Type.HIERARCHICAL;
    }
View Full Code Here

                return true;
            }
            if (result.unknownFile) {
                // This is OK if the transformation does not take any input.
                Transformation tx = page.getObject();
                DataStructure input = tx.getInputStructure();
                return input instanceof NoStructure;
            }
            return false;
        }
View Full Code Here

        this.explorerSupport = explorerSupport;
        sourceTarget = st;
    }

    private static void sanityCheck(Transformation tf, SourceTarget st) {
        DataStructure struct = (st == SourceTarget.Source) ? tf.getInputStructure() : tf.getOutputStructure();
        if (!(struct instanceof DatabaseStructure)) {
            throw new IllegalArgumentException("The edited transformation does not have database as "
                            + st.name().toLowerCase() + " structure.");
        }
    }
View Full Code Here

        DatabaseObject[] objects = dbStruct.getDatabaseObjects();
        return new StructureToEdit(transformation, dbStruct, objects, sourceTarget);
    }

    private DatabaseStructure getDatabaseStructure() {
        DataStructure struct = (sourceTarget == SourceTarget.Source) ? transformation.getInputStructure()
                        : transformation.getOutputStructure();
        return (DatabaseStructure) struct;
    }
View Full Code Here

        return (DatabaseStructure) struct;
    }

    private ThreeValuedBool isUpdateSourceTableAvailable() {
        assert sourceTarget == SourceTarget.Source;
        DataStructure output = transformation.getOutputStructure();
        return (output.getStructureNature() == StructureNature.Flat) ? ThreeValuedBool.TRUE : ThreeValuedBool.FALSE;
    }
View Full Code Here

            return mapper.getSourceRoot();
        }

        @Override
        protected DatabaseStructure getDataStructure(Transformation tf) {
            DataStructure s = tf.getInputStructure();
            return (s instanceof DatabaseStructure) ? (DatabaseStructure) s : null;
        }
View Full Code Here

            super(mapper);
        }

        @Override
        protected DatabaseStructure getDataStructure(Transformation tf) {
            DataStructure s = tf.getOutputStructure();
            return (s instanceof DatabaseStructure) ? (DatabaseStructure) s : null;
        }
View Full Code Here

            ui.setWhereClause(((StateImpl) state).whereClause);
        }

        @Override
        public void applyTo(Transformation tf) {
            DataStructure struct = tf.getInputStructure();
            if (struct instanceof DatabaseStructure) {
                DatabaseStructure dbStruct = (DatabaseStructure) struct;
                SqlScript script = dbStruct.getSqlScript();
                script.updateWhereClause(ui.getWhereClause());
                dbStruct.setSqlScript(script);
View Full Code Here

            ui.setFilters(((StateImpl) state).filters);
        }

        @Override
        public void applyTo(Transformation tf) {
            DataStructure struct = tf.getInputStructure();
            if (struct instanceof DatabaseStructure) {
                DatabaseStructure dbStruct = (DatabaseStructure) struct;
                dbStruct.setHierarchicalFilters(ui.getDefinedFilters());
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.DataStructure

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.