new DefaultExecuteListener() { @Override public void executeStart(ExecuteContext ctx) { DSL.using(ctx.connection()).execute("SET plv8.start_proc = 'plv8_init'"); } }
/** * Default implementation for preparing a statement. Subclasses may override * this method. */ protected void prepare(ExecuteContext ctx) throws SQLException { ctx.statement(ctx.connection().prepareStatement(ctx.sql())); }
/** * Default implementation for preparing a statement. Subclasses may override * this method. */ protected void prepare(ExecuteContext ctx) throws SQLException { ctx.statement(ctx.connection().prepareStatement(ctx.sql())); }
ctx.statement(ctx.connection().prepareStatement(ctx.sql(), type, concurrency)); ctx.statement(ctx.connection().prepareStatement(ctx.sql(), type, concurrency, resultSetHoldability)); ctx.statement(ctx.connection().prepareStatement(ctx.sql(), TYPE_SCROLL_SENSITIVE, CONCUR_UPDATABLE)); ctx.statement(ctx.connection().prepareStatement(ctx.sql()));
ctx.statement(ctx.connection().prepareStatement(ctx.sql(), type, concurrency)); ctx.statement(ctx.connection().prepareStatement(ctx.sql(), type, concurrency, resultSetHoldability)); ctx.statement(ctx.connection().prepareStatement(ctx.sql(), TYPE_SCROLL_SENSITIVE, CONCUR_UPDATABLE)); ctx.statement(ctx.connection().prepareStatement(ctx.sql()));
@Override protected final void prepare(ExecuteContext ctx) throws SQLException { Connection connection = ctx.connection();
@Override protected final void prepare(ExecuteContext ctx) throws SQLException { Connection connection = ctx.connection();
private final int[] executePrepared() { ExecuteContext ctx = new DefaultExecuteContext(configuration, new Query[] { query }); ExecuteListener listener = new ExecuteListeners(ctx); Connection connection = ctx.connection();
private final int[] executePrepared() { ExecuteContext ctx = new DefaultExecuteContext(configuration, new Query[] { query }); ExecuteListener listener = ExecuteListeners.get(ctx); Connection connection = ctx.connection();
if (asList(POSTGRES).contains(ctx.family()) && f != 0 && ctx.connection().getAutoCommit()) log.info("Fetch Size", "A fetch size of " + f + " was set on a auto-commit PostgreSQL connection, which is not recommended. See http://jdbc.postgresql.org/documentation/head/query.html#query-with-cursor");
ExecuteContext ctx = new DefaultExecuteContext(configuration, queries); ExecuteListener listener = new ExecuteListeners(ctx); Connection connection = ctx.connection();
Connection connection = ctx.connection();
static int[] execute(final Configuration configuration, final Query[] queries) { ExecuteContext ctx = new DefaultExecuteContext(configuration, queries); ExecuteListener listener = ExecuteListeners.get(ctx); Connection connection = ctx.connection();
Connection connection = ctx.connection();
if (ctx.connection() == null) { throw new DetachedException("Cannot execute query. No Connection configured");