Package org.jitterbit.db

Examples of org.jitterbit.db.DBConnectionInfo


    }

    private final Connection connection;

    public TableClassGenerator() throws SQLException {
        DBConnectionInfo tranDbInfo = ServerDbInfo.getTranDbConnectionInfo();
        connection = tranDbInfo.getConnection();
    }
View Full Code Here


    String driverName = ServerConfig.getOption(DBINFO_SECTION, JDBC_DRIVER_NAME_PROPERTY, DEFAULT_JDBC_DRIVER_NAME);
    String host = ServerConfig.getOption(DBINFO_SECTION, "Server", "localhost");
    int port = ServerConfig.getOption(DBINFO_SECTION, "Port", 5432);
    String user = ServerConfig.getOption(DBINFO_SECTION, "User", "jitterbit");
    String password = ServerConfig.getOption(DBINFO_SECTION, "Password", "");
    return new DBConnectionInfo(driverClass, driverName, host,
        port, db, user, password);
  }
View Full Code Here

        Map<String, DataElement> deMap = Maps.newHashMap();
        deMap.put("de1", new DataElement("My String data element"));
        deMap.put("de2", new DataElement(34));
        deMap.put("de3", new DataElement(true));
       
        DBConnectionInfo dbInfo = ServerDbInfo.getIDbConnectionInfo();
        Connection conn = null;
        try {
            conn = dbInfo.getConnection();
            conn.setAutoCommit(false);
            OperationDataElementManager ode = new OperationDataElementManager(conn);
            System.out.println(ode.addDataElements(deMap));
            System.out.println(ode.addDataElements(deMap));
           
View Full Code Here

* @since 1.3.0
*/
public class GuidToIdDbMapperTest {

    public static void main(String[] args) throws Exception {
        DBConnectionInfo tranDb = ServerDbInfo.getTranDbConnectionInfo();
        Connection conn = tranDb.getConnection();
        try {
            GuidToIdMapper mapper = new GuidToIdDbMapper(conn);
            Long id = testGetId(mapper);
            if (id != null) {
                testGetGuid(mapper, id);
View Full Code Here

* @since 1.3.0
*/
public class ServerDbInfoTest {

    public static void main(String[] args) {
        DBConnectionInfo dbInfo = ServerDbInfo.getTranDbConnectionInfo();
       
        System.out.println(dbInfo.getJdbcUrl());
        Connection conn = null;
        try {
            conn = dbInfo.getConnection();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        finally {
            if ( conn != null ) {
View Full Code Here

TOP

Related Classes of org.jitterbit.db.DBConnectionInfo

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.