Package org.jitterbit.integration.server.db.infoprovider

Examples of org.jitterbit.integration.server.db.infoprovider.DatabaseColumnRetriever


    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);
        DatabaseColumnRetriever r = new DatabaseColumnRetriever(connectionFactory);
        DatabaseObject table = new DatabaseTable("OrderDetail", "public");
        r.populateColumns(new DatabaseObject[] { table });
        for (DatabaseColumn col : table.getAllColumns()) {
            System.out.println(col);
        }
    }
View Full Code Here


            LOG.info("Entering JdbcInfoProvider.getTableInfo()");
            eas = ExternalApiSupport.forCall(user, password);
            DefaultConnectionFactory connectionFactory = createConnectionFactory(
                            eas, driverName, wsConnParams, sourceGuid, targetGuid);
            BeginEndQuote quotes = convertWsBeginEndQuote(wsQuotes);
            DatabaseColumnRetriever worker = createColumnRetriever(connectionFactory, quotes);
            DatabaseObject[] tables = convertIncomingTableInfo(wsTables);
            worker.populateColumns(tables);
            logTableInfo(tables, quotes);
            return convertDatabaseObjects(tables);
        } catch (Exception err) {
            convert(err, "getTableInfo");
        } finally {
View Full Code Here

        return null;
    }

    private DatabaseColumnRetriever createColumnRetriever(DefaultConnectionFactory connectionFactory,
                    BeginEndQuote quotes) throws ServerConfigurationException {
        DatabaseColumnRetriever worker = new DatabaseColumnRetriever(connectionFactory);
        worker.setLogger(LOG);
        worker.setBeginEndQuote(quotes);
        worker.setInformix(connectionFactory.isInformixConnection());
        return worker;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.db.infoprovider.DatabaseColumnRetriever

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.