Package org.jitterbit.integration.database.driver

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


* @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

            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

* @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

            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

        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

        }
    }

    private DatabaseSource(ReadSourceParams params) throws ExternalDatabaseException {
        SourceId sourceId=params.sourceId;
        ConnectionParams connParams=params.connectionParameters;
        attributeLists=Maps.newHashMap();
        statementCache = Maps.newHashMap();
        fetchSize = params.fetchSize;
        sourceValueReader = new SourceValueReader();
        childTablesMap = ArrayListMultimap.create();
View Full Code Here

        deResolver = new DataElementResolver();
        deResolver.setContext(context);
    }

    public ConnectionParams convert(String driverName, WsConnectionParams wsConnParams) {
        ConnectionParams connParams = new ConnectionParams();
        connParams.setServer(convert(wsConnParams.getServer()))
                  .setPort(Port.valueOf(wsConnParams.getPort())) // The port cannot be parameterized.
                  .setDatabase(convert(wsConnParams.getDatabase()))
                  .setUser(convert(wsConnParams.getUser()))
                  .setPassword(convert(wsConnParams.getPassword()))
                  .setManualConnectionString(convert(wsConnParams.getManualConnection()))
View Full Code Here

    }

    private static ConnectionParams convertWsConnParams(String driverName, WsConnectionParams wsConnParams) {
        DataElementContext context = PreconfiguredDataElements.getContext();
        ConnectionParametersConverter converter = new ConnectionParametersConverter(context);
        ConnectionParams params = converter.convert(driverName, wsConnParams);
        logConnectionParams(params);
        return params;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.database.driver.ConnectionParams

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.