Examples of DatabaseObject


Examples of org.jitterbit.integration.database.info.DatabaseObject

        }
    }

    private static Node buildFlatTree(DatabaseStructure structure) {
        DatabaseObject[] tables = structure.getDatabaseObjects();
        DatabaseObject table = tables[0];
        return new Node(table);
    }
View Full Code Here

Examples of org.jitterbit.integration.database.info.DatabaseObject

        }

        private Node getNodeForTable(String tableName) {
            Node node = nameToNode.get(tableName);
            if (node == null) {
                DatabaseObject table = nameToTable.get(tableName);
                if (table == null) {
                    throw new RuntimeException("Unknown table: " + tableName);
                }
                node = new Node(table);
                nameToNode.put(tableName, node);
View Full Code Here

Examples of org.jitterbit.integration.database.info.DatabaseObject

    @Override
    public DatabaseObject apply(WsJdbcDatabaseObject wsObj) {
        String schema = wsObj.getSchemaName();
        String name = wsObj.getObjectName();
        DatabaseObjectType type = DatabaseObjectType.valueOf(wsObj.getObjectType());
        DatabaseObject table;
        switch (type) {
        case TABLE:
            table = new DatabaseTable(name, schema);
            break;
        case VIEW:
View Full Code Here

Examples of org.jitterbit.integration.database.info.DatabaseObject

        converted = Maps.newLinkedHashMap();
    }
   
    public KList<TableRelationship> convert() {
        for (DbTranRelations.Relation r : serverForm) {
            DatabaseObject parent = getParentObject(r);
            if (parent == null) {
                continue;
            }
            DatabaseObject child = getChildObject(r);
            if (child == null) {
                continue;
            }
            DatabaseColumn parentField = getParentField(parent, r);
            if (parentField == null) {
View Full Code Here

Examples of org.jitterbit.integration.database.info.DatabaseObject

    private List<DatabaseObject> collectTables(DatabaseMetaData metaData) throws SQLException {
        List<DatabaseObject> objs = Lists.newArrayList();
        ResultSet rs = metaData.getTables(null, null, searchFilter.getSearchString(), searchFilter.getObjectTypeNames());
        try {
            while (rs.next()) {
                DatabaseObject o = createTableObject(rs);
                if (o != null) {
                    objs.add(o);
                }
            }
            return objs;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.