Package org.jitterbit.integration.server.db.lookup

Examples of org.jitterbit.integration.server.db.lookup.DbExecute


     */
    public DbExecute getDbExecute(IntegrationEntityId entityId, ConnectionParams params)
                                        throws ServerDbException, ServerAccessException, SQLException {
        Key key = new Key(entityId, params);
        synchronized (lock) {
            DbExecute exec = dbExecutes.get(key);
            if (exec == null) {
                exec = createAndStoreDbExecute(key);
            }
            return exec;
        }
View Full Code Here


    }

    private DbExecute createAndStoreDbExecute(Key key)
                                        throws ServerDbException, ServerAccessException, SQLException {
        Connection conn = connectToExternalDB(key);
        DbExecute exec = new DefaultDbExecute(conn);
        dbExecutes.put(key, exec);
        return exec;
    }
View Full Code Here

    @Override
    protected DbExecuteResult doWork(JdbcSession session) throws EngineSessionException, ServerAccessException,
                    ServerDbException {
        try {
            DbExecute exec = session.getDbExecute(entityId, connParams);
            exec.setAutoCommit(autoCommit);
            return exec.execute(sql, maxNumberOfRows);
        } catch (SQLException e) {
            throw new EngineSessionException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.db.lookup.DbExecute

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.