Package org.jitterbit.integration.data.structure

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


        browser.setTarget(target);
    }

    @Override
    protected void prepareTargetChain() {
        DatabaseStructure sourceStructure = getSourceStructure();
        TargetPages targetPages = (TargetPages) getTargetPages();
        targetPages.setSourceStructure(sourceStructure);
    }
View Full Code Here


        return pages.hasPreviousPage(page);
    }

    @Override
    public void applyTo(Transformation tx) throws WizardPageException {
        DatabaseStructure struct = pages.getDefinedStructure();
        if (sourceTarget == SourceTarget.Source) {
            tx.setInputStructure(struct);
            tx.setSourceId(struct.getSourceId());
        } else {
            tx.setOutputStructure(struct);
            tx.setTargetId(struct.getTargetId());
            pages.applyInsertMode(tx);
        }
    }
View Full Code Here

                inputStructure = struct;
                setProperty(SOURCE_XML, "");
                setProperty(SOURCE_DTD_ROOT, "");
                getData().putBoolean(XML_SOURCE_IS_EDI, false);
                if (type == DataStructureType.Database) {
                    DatabaseStructure dbStruct = (DatabaseStructure) struct;
                    getData().putBoolean(INCLUDE_ROWID_IN_INFORMIX_TABLES_INPUT,
                                    dbStruct.getIncludeRowIdInInformixTables());
                }
                struct.addPropertyChangeListener(inputStructureListener);
            }
            setSourceType(type);
            setProperty(NATURE_OF_SOURCE, struct.getStructureNature());
View Full Code Here

                setProperty(TARGET_DTD_ROOT, json.getRootName());
                setProperty(DO_TARGET_XML_VALIDATION, false);
                outputStructure = null;
                break;
            case Database:
                DatabaseStructure dbStruct = (DatabaseStructure) struct;
                getData().putBoolean(INCLUDE_ROWID_IN_INFORMIX_TABLES_OUTPUT,
                                dbStruct.getIncludeRowIdInInformixTables());
                getData().putBoolean(TRUNCATE_CHARS_IN_DB_TARGET, dbStruct.isTruncatingTargetFields());
                /* fall-through */
            case Text:
                /* fall-through */
            case ComplexText:
                /* fall-through */
 
View Full Code Here

            XmlStructure xml = (XmlStructure) struct;
            values.add(xml.getFilePath());
            values.add(xml.getRootNodeName());
            break;
        case Database:
            DatabaseStructure db = (DatabaseStructure) struct;
            if (db.isManualSqlStatement()) {
                values.add(db.getManualSqlStatement());
            } else {
                // TODO: Where clause, tables(?), update keys(?)
            }
            break;
        case LDAP:
View Full Code Here

    public void setMemento(State state) {
        state.applyTo(ui);
    }

    public void applyTo(Transformation tf) {
        DatabaseStructure dbStruct = getDbStructure(tf);
        tf.setDbInsertMode(ui.getInsertMode());
        dbStruct.setDbFields(ui.createDbFields());
    }
View Full Code Here

        browser.setTarget(target);
    }

    @Override
    protected void prepareTargetChain() {
        DatabaseStructure sourceStructure = getSourceStructure();
        TargetPages targetPages = (TargetPages) getTargetPages();
        targetPages.setDatabaseStructure(sourceStructure);
    }
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);
        // HACK: This is part of a hack described in more detail in the DatabaseStructure class:
        dbStruct.setSourceId(src.getID());
    }
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);
        // HACK: This is part of a hack described in more detail in the DatabaseStructure class:
        dbStruct.setTargetId(tgt.getID());
    }
View Full Code Here

                ldapStruct.setLdapLocation((LdapLocation) replacement.getLocation());
            }
            break;
        }
        case Database: {
            DatabaseStructure dbStruct = (DatabaseStructure) input;
            SourceId dbSourceId = dbStruct.getSourceId();
            Source replacement = (Source) service.getReplacement(dbSourceId);
            if (replacement != null) {
                tf.setSourceId(replacement.getID());
                dbStruct.setSourceId(replacement.getID());
                dbStruct.setDbLocation((DatabaseLocation) replacement.getLocation());
            }
            break;
        }
        default:
            // No processing needed
View Full Code Here

TOP

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

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.