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

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


public class DatabaseInfoRetrieverTest {

    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()) {
View Full Code Here


public class DatabaseColumnRetrieverTest {

    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

                    throws java.rmi.RemoteException {
        ExternalApiSupport eas = null;
        try {
            LOG.info("Entering JdbcInfoProvider.getAllDatabaseObjects()");
            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);
View Full Code Here

        TestConnectionResult result = null;
        ExternalApiSupport eas = null;
        try {
            LOG.info("Entering JdbcInfoProvider.testConnection()");
            eas = ExternalApiSupport.forCall(user, password);
            ConnectionFactory connectionFactory = createConnectionFactory(
                            eas, driverName, wsConnParams, sourceGuid, targetGuid);
            ConnectionTester tester = new ConnectionTester(connectionFactory);
            result = tester.testConnection();
        } catch (Exception err) {
            convert(err, "testConnection");
View Full Code Here

TOP

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

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.