/** * Attempts to return the transaction isolation level for this Connection object to the one given. * @param handler the handler called when this operation completes. * @return */ public io.vertx.rxjava.ext.sql.SQLConnection getTransactionIsolation(Handler<AsyncResult<TransactionIsolation>> handler) { delegate.getTransactionIsolation(handler); return this; }
/** * Attempts to return the transaction isolation level for this Connection object to the one given. * @param handler the handler called when this operation completes. * @return */ public io.vertx.rxjava.ext.sql.SQLConnection getTransactionIsolation(Handler<AsyncResult<TransactionIsolation>> handler) { delegate.getTransactionIsolation(handler); return this; }
@Override public SQLConnection getTransactionIsolation(Handler<AsyncResult<TransactionIsolation>> handler) { delegate.getTransactionIsolation(handler); return this; } }
@Test public void testGetSet() { SQLConnection conn = connection(); conn.getTransactionIsolation(txIsolation -> { if (txIsolation.failed()) { fail(txIsolation.cause()); return; } conn.setTransactionIsolation(txIsolation.result(), res -> { if (res.failed()) { fail(res.cause()); } testComplete(); }); }); await(); }