Package org.jitterbit.integration.data.structure

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


    @Override
    public boolean acceptsOutputFrom(Function prev) {
        if (prev == null) {
            return false;
        }
        DataStructure output = prev.getOutputStructure();
        if (output == null) {
            return false;
        }
        DataStructure input = getInputStructure();
        if (input == null) {
            return false;
        }
        return input.isCompatibleWith(output);
    }
View Full Code Here


    private boolean isUsingJson() {
        return getSourceType() == DataStructureType.JSON || getTargetType() == DataStructureType.JSON;
    }
   
    private boolean isUsingManualSqlStatement() {
        DataStructure input = getInputStructure();
        return (input instanceof DatabaseStructure) && ((DatabaseStructure) input).hasManualSqlStatement();
    }
View Full Code Here

            @Override
            public void run() {
                removeCurrentTargetData();
                ServerTestCallback cb = new TestTransformationHandler();
                DataStructure inputStructure = getTransformation().getInputStructure();
                if (inputStructure.getStructureType().isSourceDataRequired()) {
                    SourceDataIdentifier sourceDataToken = loadSourceService.getSourceDataToken();
                    submitTestTransformationJob(sourceDataToken, cb);
                } else {
                    submitTestTransformationJob(null, cb);
                }
View Full Code Here

        tf.setDbInsertMode(ui.getInsertMode());
        dbStruct.setDbFields(ui.createDbFields());
    }

    private DatabaseStructure getDbStructure(Transformation tf) {
        DataStructure out = tf.getOutputStructure();
        assert (out instanceof DatabaseStructure);
        return (DatabaseStructure) out;
    }
View Full Code Here

            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

        if (otherFirst == null) {
            return false;
        }
        Transformation first = getFirstTransformation(this, lookup);
        if (first != null) {
            DataStructure struct1 = first.getInputStructure();
            DataStructure struct2 = otherFirst.getInputStructure();
            return (struct1 != null) && struct1.equals(struct2);
        } else if (getOperationType() == HostedWebServiceOperationType.TYPE) {
            WebServiceCallId wsCallId = getHostedWebServiceId();
            DataStructure s = otherFirst.getInputStructure();
            return (s instanceof WebServiceRequestStructure) &&
                ((WebServiceRequestStructure) s).getWebServiceCallId().equals(wsCallId);
        }
        return false;
    }
View Full Code Here

    @Override
    public boolean isApplicableFor(OperationPipeline pipeline) {
        if (!pipeline.getType().isChunkable()) {
            return false;
        }
        DataStructure input = getInputStructure(pipeline);
        return input != null && input.isChunkable();
    }
View Full Code Here

        return wsCall.getInputStructure().equals(tf.getInputStructure()) &&
            wsCall.getOutputStructure().equals(tf.getOutputStructure());
    }
   
    private void validateDoubleTransformation(Transformation first, Transformation second) {
        DataStructure in = first.getInputStructure();
        if (!wsCall.getInputStructure().equals(in)) {
            fatal("The first transformation must take the WS request as input");
            return;
        }
        DataStructure out = second.getOutputStructure();
        if (!wsCall.getOutputStructure().equals(out)) {
            fatal("The second transformation must produce the WS response as output");
            return;
        }
        checkTransformationJoin(first, second);
View Full Code Here

        }
        checkTransformationJoin(first, second);
    }
   
    private void checkTransformationJoin(Transformation first, Transformation second) {
        DataStructure in = second.getInputStructure();
        DataStructureType type = in.getStructureType();
        // For certain types of input to the second transformation it does not matter what
        // the output of the first transformation is.
        if (type != DataStructureType.None && type != DataStructureType.Database) {
            if (!second.acceptsOutputFrom(first)) {
                warning(ValidationUtils.getIllegalFunctionJoinMessage());
View Full Code Here

        }
        Transformation tf = (Transformation) a.getContent();
        if (tf == null) {
            return;
        }
        DataStructure input = tf.getInputStructure();
        if (!(input instanceof WebServiceRequestStructure)) {
            return;
        }
        WebServiceCall wsCall = lookupWsCall(((WebServiceRequestStructure) input).getWebServiceCallId());
        if (browser.getWebServiceCall() == null) {
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.