Package org.jitterbit.integration.data.structure

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


            this.name = name;
        }

        @Override
        public final DataStructureType getValue(IntegrationEntity dataObject) {
            DataStructure s = getStructure((Transformation) dataObject);
            return (s != null) ? s.getStructureType() : null;
        }
View Full Code Here


        @Override
        public void applyTo(Transformation tf) throws WizardPageException {
            TextDocument doc = delegate.getSelectedDocument();
            if (doc != null) {
                DataStructure structure = doc.getDataStructure();
                tf.setInputStructure(structure);
                tf.setSourceTextDocumentId(doc.getID());
            } else {
                // This will happen if the user deletes the text document before completing the wizard
                throw new WizardPageException(delegate.getFirstPage(), "Must select a text document");
View Full Code Here

        @Override
        public void applyTo(Transformation tf) throws WizardPageException {
            TextDocument doc = delegate.getSelectedDocument();
            if (doc != null) {
                DataStructure structure = doc.getDataStructure();
                tf.setOutputStructure(structure);
                tf.setTargetTextDocumentId(doc.getID());
            } else {
                // This will happen if the user deletes the text document before completing the wizard
                throw new WizardPageException(delegate.getFirstPage(), "Must select a text document");
View Full Code Here

    }

    private void checkWsCall(Transformation inserted, PipelineActivity activity, WebServicePipelineBrowser browser) {
        WebServiceCallId wsId = null;
        if (activity == browser.getRequestActivity()) {
            DataStructure output = inserted.getOutputStructure();
            if (output instanceof WebServiceRequestStructure) {
                wsId = ((WebServiceRequestStructure) output).getWebServiceCallId();
            }
        } else if (activity == browser.getResponseActivity()) {
            DataStructure input = inserted.getInputStructure();
            if (input instanceof WebServiceResponseStructure) {
                wsId = ((WebServiceResponseStructure) input).getWebServiceCallId();
            }
        }
        if (wsId != null) {
View Full Code Here

    public void applyToTransformation(Transformation tf) throws WizardPageException {
        JmsMessage msg = getSelectedEntity();
        if (msg != null) {
            tf.setSourceJmsMessage(msg);
            DataStructure input = getStructure(msg);
            tf.setInputStructure(input);
            tf.setSourceTextDocumentId(msg.getPayloadTextDocumentId());
            // TODO: The message properties.
        } else {
            // TODO: This may happen if the user deleted the JMS message before completing
View Full Code Here

            }
        }
    }

    private void collectSourceDbLocationAndStructureLink(Source src) {
        DataStructure input = transformation.getInputStructure();
        DataLocation loc = src.getLocation();
        dbStructureAndLocationSanityCheck(input, loc, "input");
        DatabaseLocation dbLoc = (DatabaseLocation) loc;
        DatabaseStructure dbStruct = (DatabaseStructure) input;
        dbStruct.setDbLocation(dbLoc);
View Full Code Here

            }
        }
    }

    private void collectTargetDbLocationAndStructureLink(Target tgt) {
        DataStructure output = transformation.getOutputStructure();
        DataLocation loc = tgt.getLocation();
        dbStructureAndLocationSanityCheck(output, loc, "output");
        DatabaseLocation dbLoc = (DatabaseLocation) loc;
        DatabaseStructure dbStruct = (DatabaseStructure) output;
        dbStruct.setDbLocation(dbLoc);
View Full Code Here

    private void validateStructures() {
        // HACK: Due to the validation API I cannot call getInput/OutputStructure().validate() here,
        // which would be nice.
        // At the moment we only need to validate DatabaseStructures, to make sure that manual SQL
        // statements are used only together with a JDBC driver.
        DataStructure input = tf.getInputStructure();
        if (input instanceof DatabaseStructure) {
            validateDatabaseInputStructure((DatabaseStructure) input);
        }
    }
View Full Code Here

   
    public boolean isValid() {
        if (transformation.getTargetJmsMessageId() != null) {
            return isTargetOfType(DataLocationType.JMS);
        }
        DataStructure output = transformation.getOutputStructure();
        if (output != null) {
            return canTargetAcceptOutput(output);
        }
        return false;
    }
View Full Code Here

   
    public boolean isValid() {
        if (transformation.getSourceJmsMessageId() != null) {
            return isSourceOfType(DataLocationType.JMS);
        }
        DataStructure input = transformation.getInputStructure();
        if (input != null) {
            return canSourceProduceInput(input);
        }
        return false;
    }
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.