Package org.jitterbit.integration.data.structure.database

Examples of org.jitterbit.integration.data.structure.database.SqlScript$Entry


    public void setStructureToEdit(StructureToEdit toEdit) {
        // If the user has selected another object than the original one when editing the
        // structure, we do not do anything:
        DatabaseObject o = getObjectToEdit(toEdit);
        if (o != null) {
            SqlScript sql = toEdit.getStructure().getSqlScript();
            ui.setWhereClause(sql.getWhereClause());
            ui.setBeginEndQuotes(toEdit.getStructure().getBeginEndQuote());
        }
    }
View Full Code Here


        }
    }

    // Only for source.
    private void addSqlScript(DatabaseStructure dbStructure, String sTranId) {
        SqlScript sqlScript = dbStructure.getSqlScript();
        SqlScript.Entry[] entries = sqlScript.getAllEntries();
        for (SqlScript.Entry entry : entries) {
            String[] fields = entry.getColumnValues(sTranId);
            m_updatedSqlScript.add(getInterchangeDataRow(fields));
        }
    }
View Full Code Here

        }

        addFilterToCrom(root, filter_map, order_map);

        if (dbStruct.getRelations().getRelations().size() == 0 && tableNames.size() == 1) {
            SqlScript sql_script=dbStruct.getSqlScript();
            String sqlFilter = sql_script.getWhereClause();
            if(StringUtils.isNotEmpty(sqlFilter)){
                CROM table=root.getChild(0);
                if(table!=null){
                    String ORDER_BY="ORDER BY ";
                    int k=sqlFilter.indexOf(ORDER_BY);
View Full Code Here

        DatabaseObject[] objects = info.getDatabaseObjects();
        switch (objects.length) {
        case 0:
            return null;
        case 1:
            SqlScript existingScript = structure.getSqlScript();
            String existingWhereClause = (existingScript == null) ? "" :
                            existingScript.getWhereClause();
            BeginEndQuote quotes = structure.getBeginEndQuote();
            return new SingleTableEditorUi(objects[0], existingWhereClause, quotes);
        default:
            DbTranFilters filters = structure.getHierarchicalFilters();
            return new MultipleTableEditorUi(objects, filters);
View Full Code Here

        @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

     * A copy will be created of the <code>sqlScript</code> argument and stored in this object.
     * This means that modifying <code>sqlScript</code> after this method has been called will not
     * affect the data that is stored internally in this object.
     */
    public void setSqlScript(SqlScript newScript) {
        SqlScript old;
        synchronized (getDataLock()) {
            old = this.sqlScript;
            this.sqlScript = (newScript == null) ? new SqlScript() : newScript.getCopy();
        }
        if (differs(old, newScript)) {
            firePropertyChange(SQL_SCRIPT, old, newScript);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.database.SqlScript$Entry

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.