/** * Submits this operation for execution in the executor service. The operation is executed with connection autoCommit = true, * i.e. non-transactionally. */ public <A> Future<A> submit(DB<A> op) { return withConnection(op, true); }
/** * Submits this operation for execution in the executor service. The operation is executed as a transaction. */ public <A> Future<A> transact(DB<A> op) { return withConnection(transactional(op), false); }