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

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


        setCanContinue(true);
    }

    @Override
    public void applyTo(DatabaseStructure s) {
        DbFields fields = new DbFields();
        Collection<DatabaseColumn> keys = ui.getSelectedColumns();
        fields.addUpdateKeys(keys);
        s.setDbFields(fields);
        if (keys.isEmpty()) {
            fields.removeEntry(DbFields.SOURCE_UPDATE_VALUES);
        }
    }
View Full Code Here


            Object value = getValueAt(row, 2);
            return Boolean.TRUE.equals(value);
        }

        public void setSelectedColumns(DatabaseStructure struct, DatabaseObject obj) {
            DbFields fields = struct.getDbFields();
            Set<DatabaseColumn> keys = Sets.newHashSet(fields.getUpdateKeys(obj));
            for (int row = 0; row < getRowCount(); ++row) {
                DatabaseColumn col = getRowObjectAt(row);
                boolean selected = keys.contains(col);
                setValueAt(selected, row, 2);
            }
View Full Code Here

        return null;
    }

    @Override
    public void applyTo(DatabaseStructure s) {
        DbFields dbFields = s.getDbFields();
        addFieldInformation(dbFields);
        if (primaryKeys != null) {
            dbFields.addUpdateKeys(primaryKeys);
        } else {
            dbFields.addUpdateKeys(dbObject.getPrimaryKeys());
        }
        s.setDbFields(dbFields);
    }
View Full Code Here

    public PrimaryKeys[] getSelectedKeys() {
        return primaryKeyDefiner.getPrimaryKeys();
    }

    public DbFields createDbFields() {
        DbFields dbFields = new DbFields();
        dbFields.addUpdateKeys(getSelectedKeyColumns());
        return dbFields;
    }
View Full Code Here

        s.setDatabaseObjectsUsage(usage);
        SqlScript script = new SqlScript();
        script.setManualSqlStatement(statementDetails.getName());
        s.setSqlScript(script);
        s.setDbTables(new DbTables());
        s.setDbFields(new DbFields());
        s.setHierarchicalFilters(new DbTranFilters());
        s.setRelations(new DbTranRelations());
    }
View Full Code Here

        String[] fields = dbTables.getColumnValues(sTranId, bIsSource);
        m_updatedDbTables.add(getInterchangeDataRow(fields));
    }

    private void addDbFields(DatabaseStructure dbStructure, String sTranId) {
        DbFields dbFields = dbStructure.getDbFields();
        DbFields.Entry[] entries = dbFields.getAllEntries();
        for (DbFields.Entry entry : entries) {
            String[] fields = entry.getColumnValues(sTranId);
            m_updatedDbFields.add(getInterchangeDataRow(fields));
        }
    }
View Full Code Here

          }
          DatabaseObject[] rawObjectsFromStructure=getDatabaseObjectsFromStructure(dbStruct);
            boolean bOldVersion=(rawObjectsFromStructure.length == 0);
          if(bOldVersion){
              log("Old-style version - it has either been downloaded from a server, or was created in an earlier version.");
            DbFields dbf=dbStruct.getDbFields();
          Entry entry=dbf.getEntry(DbFields.UPDATE_KEYS);
          if(entry!=null){
            String str=entry.getKeyFields();
            StringTokenizer tk=new StringTokenizer(str,",", false);
            while(tk.hasMoreTokens()){
              String token=tk.nextToken();
View Full Code Here

     * the data that is stored internally in this object.
     *
     * @see #getDbFields()
     */
    public final void setDbFields(DbFields newFields) {
        DbFields old;
        synchronized (getDataLock()) {
            old = this.dbFields;
            this.dbFields = (newFields == null) ? new DbFields() : newFields.getCopy();
        }
        if (differs(newFields, old)) {
            firePropertyChange(DB_FIELDS, old, newFields);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.database.DbFields$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.