Examples of ConnectionParams


Examples of org.jitterbit.integration.database.driver.ConnectionParams

    private boolean shouldRowIdsBeRemovedFromInformixTables(DatabaseStructure dbStruct) {
        return isInformix(dbStruct) && !dbStruct.hasManualSqlStatement() && !dbStruct.getIncludeRowIdInInformixTables();
    }

    private boolean isInformix(DatabaseStructure dbStruct) {
        ConnectionParams params = dbStruct.getConnectionParameters();
        DriverDescriptor driver = params.getDriver();
        return InformixUtils.isInformix(driver);
    }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

    private boolean checkAutomaticMode(SourceTarget st) {
        try {
            DriverDescriptor driver = dbLocation.getDriver();
            assert (driver != null);
            ConnectionParams params = dbLocation.getConnectionParams();
            driver.checkConnectionParams(params);
            return true;
        } catch (InvalidConnectionParamsException ex) {
            handlePreConnectionError(st, ex);
            return false;
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

        }

        @Override
        protected void runImpl() throws InterruptedException {
            DbObjectsModel model = view.getModel();
            ConnectionParams params = model.getDatabase().getConnectionParams();
            infoProvider.getDatabaseObjects(params, model.getSourceId(), model.getTargetId(), filter, callback);
        }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

                SourcesTabRow row = getDefinition();
                if (row == null) {
                    throw new ServerDbException("Could not find the deployed definition of the Source with GUID "
                                    + sourceId);
                }
                ConnectionParams params = new ConnectionParams();
                params.setServer(row.get_locator())
                      .setDatabase(row.get_dbname())
                      .setUser(row.get_login())
                      .setPassword(decryptPassword(row.get_password()))
                      .setPort(Port.valueOf(row.get_port()))
                      .setDriverName(row.get_driver())
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

                TargetsTabRow row = getDefinition();
                if (row == null) {
                    throw new ServerDbException("Could not find the deployed definition of the Target with GUID "
                                    + targetId);
                }
                ConnectionParams params = new ConnectionParams();
                params.setServer(row.get_locator())
                      .setDatabase(row.get_dbname())
                      .setUser(row.get_login())
                      .setPassword(decryptPassword(row.get_password()))
                      .setPort(Port.valueOf(row.get_port()))
                      .setDriverName(row.get_driver())
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

* @since 3.0.0
*/
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());
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

            System.out.println(o);
        }
    }

    private static ConnectionParams createParams() {
        ConnectionParams params = new ConnectionParams();
        params.setServer("linuxdoc")
              .setDatabase("Test")
              .setUser("user1")
              .setDriverName("PostgreSQL");
        return params;
    }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

* @since 3.0.0
*/
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 });
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

            System.out.println(col);
        }
    }

    private static ConnectionParams createParams() {
        ConnectionParams params = new ConnectionParams();
        params.setServer("linuxdoc")
              .setDatabase("Test")
              .setUser("user1")
              .setDriverName("PostgreSQL");
        return params;
    }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.ConnectionParams

        params.includeNulls = keyValues.getBoolean("jitterbit.target.db.include_null_in_sql_statement", false);
        return params;
    }

    private static ConnectionParams toConnectionParams(WsConnectionParams ws) {
        ConnectionParams params = new ConnectionParams();
        params.setDriverName(ws.getDriverName())
              .setServer(ws.getServer())
              .setDatabase(ws.getDatabase())
              .setPort(Port.valueOf(ws.getPort()))
              .setUser(ws.getUser())
              .setPassword(ws.getPassword())
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.