Package org.jitterbit.integration.database.info

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


        printInfo(TableSearchFilter.ALL_OBJECTS);
    }
   
    public void printInfo(TableSearchFilter filter) throws SQLException {
        retriever.setSearchFilter(filter);
        DatabaseInfo info = retriever.getInfo();
        System.out.println("Quotes: " + info.getBeginEndQuote());
        System.out.println("Tables: ");
        for (DatabaseObject o : info.getObjects()) {
            System.out.println(o.getName() + " [" + o.getClass().getSimpleName() + "]");
        }
    }
View Full Code Here


    public static void main(String[] args) throws Exception {
        ConnectionParams params = createParams();
        SourceId sourceGuid = new SourceId("475118e7-1b59-4371-bc09-598c19b12385");
        ConnectionFactory connectionFactory = new DefaultConnectionFactory(params, sourceGuid, null);
        DatabaseInfoRetriever r = new DatabaseInfoRetriever(connectionFactory);
        DatabaseInfo info = r.getInfo();
        System.out.println("Quote: " + info.getBeginEndQuote());
        System.out.println("Tables:");
        for (DatabaseObject o : info.getObjects()) {
            System.out.println(o);
        }
    }
View Full Code Here

            eas = ExternalApiSupport.forCall(user, password);
            ConnectionFactory connectionFactory = createConnectionFactory(
                            eas, driverName, wsConnParams, sourceGuid, targetGuid);
            DatabaseInfoRetriever worker = new DatabaseInfoRetriever(connectionFactory);
            worker.setFilter(filter);
            DatabaseInfo dbInfo = worker.getInfo();
            logDbInfo(dbInfo);
            WsJdbcDatabaseInfo wsInfo = convertDatabaseObjects(dbInfo.getObjects());
            wsInfo.setQuotes(convertBeginEndQuotes(dbInfo.getBeginEndQuote()));
            return wsInfo;
        } catch (Exception err) {
            convert(err, "getAllDatabaseObjects");
        } finally {
            ExternalApiSupport.safeDispose(eas);
View Full Code Here

        }
        try {
            DatabaseMetaData metaData = conn.getMetaData();
            List<DatabaseObject> objs = collectTables(metaData);
            BeginEndQuote quotes = getBeginEndQuotes(metaData);
            return new DatabaseInfo(objs, quotes);
        } finally {
            KongaDbUtils.close(conn);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.database.info.DatabaseInfo

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.