Package org.jitterbit.integration.data.structure

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


        }
    }

    private boolean isWebServiceResponse() {
        Transformation tf = page.getObject();
        DataStructure inputStructure = tf.getInputStructure();
        return (inputStructure != null) && (inputStructure.getStructureType() == DataStructureType.WebServiceResponse);
    }
View Full Code Here


        setEnabled(enabled);
    }

    private boolean isApplicable() {
        Transformation tx = page.getObject();
        DataStructure input = tx.getInputStructure();
        return input.getStructureType().isSourceDataRequired();
    }
View Full Code Here

        super(ID, page, DataFileType.SOURCE);
    }

    @Override
    protected String getCharset(Transformation tx) {
        DataStructure s = tx.getInputStructure();
        return StructureEncodings.getCharsetName(s);
    }
View Full Code Here

        super(ID, page, DataFileType.TARGET);
    }

    @Override
    protected String getCharset(Transformation tx) {
        DataStructure s = tx.getOutputStructure();
        return StructureEncodings.getCharsetName(s);
    }
View Full Code Here

        return new LoadSourceDataJob(service, input, tx.getID(), tx.getName(), internalCallback);
    }

    private LoadSourceDataInput getDataInput() {
        if (input == null) {
            DataStructure ds = tx.getInputStructure();
            if (ds instanceof DatabaseStructure) {
                input = DatabaseFilterDefiner.getInput((DatabaseStructure) ds);
            } else if (ds instanceof LdapStructure) {
                input = new LoadLdapSourceDataInput();
            } else {
View Full Code Here

            public void run() {
                // We do not care about the return-value here. Instead we let the input
                // callback set the input JTR. That way we ensure that the input JTR has
                // been set when we are ready to call displayLoadedStructures below.
                DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newInputStructureConverter();
                DataStructure input = invoker.getTransformation().getInputStructure();
                converter.getMappingStructure(input, inputCallback);
            }
        });
        if (isCancelled()) {
            return;
View Full Code Here

    private void addSourceType(Transformation tf) {
        if (tf.getSourceJmsMessageId() != null) {
            addEntry(getTypeLabel(SourceTarget.Source), "JMS");
        } else {
            DataStructure input = tf.getInputStructure();
            if (input != null) {
                StructureDetailsWriter writer = new StructureDetailsWriter(SourceTarget.Source);
                writer.write(input);
            } else {
                addEntry(getTypeLabel(SourceTarget.Source), "[unknown]");
View Full Code Here

    private void addTargetType(Transformation tf) {
        if (tf.getTargetJmsMessageId() != null) {
            addEntry(getTypeLabel(SourceTarget.Target), "JMS");
        } else {
            DataStructure output = tf.getOutputStructure();
            if (output != null) {
                StructureDetailsWriter writer = new StructureDetailsWriter(SourceTarget.Target);
                writer.write(output);
            } else {
                addEntry(getTypeLabel(SourceTarget.Target), "[unknown]");
View Full Code Here

    }
  }

    private void updateTransformation(Transformation tran) throws DeployException {
        DeployDataStructureVisitor structureVisitor = new DeployDataStructureVisitor(tran, true);
        DataStructure sourceStructure = tran.getInputStructure();
        if (sourceStructure != null) {
            structureVisitor.handle(sourceStructure);
            structureVisitor.throwOnError();
        }

        DataStructure targetStructure = tran.getOutputStructure();
        if (targetStructure != null) {
            structureVisitor.setIsTarget();
            structureVisitor.handle(targetStructure);
            structureVisitor.throwOnError();
        }
View Full Code Here

*/
public class TreeMapperToTextStructureConverterFactory {

    public TreeMapperToTextStructureConverter newSourceStructureConverter(Transformation tf, TreeMapperNode rootNode)
                                        throws NotSupportedException {
        DataStructure sourceStructure = tf.getInputStructure();
        return newConverterImpl(rootNode, sourceStructure);
    }
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.