public abstract class AbstractJDBCAction<T> extends Object implements Handler<Future<T>>
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
conn |
protected Vertx |
vertx |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJDBCAction(Vertx vertx,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
execute(Connection conn) |
void |
execute(Handler<AsyncResult<T>> resultHandler) |
void |
handle(Future<T> future) |
protected abstract String |
name() |
protected static void |
safeClose(Connection conn) |
protected static void |
safeClose(ResultSet rs) |
protected final Vertx vertx
protected final Connection conn
protected AbstractJDBCAction(Vertx vertx, Connection conn)
public void execute(Handler<AsyncResult<T>> resultHandler)
protected abstract T execute(Connection conn) throws SQLException
SQLExceptionprotected abstract String name()
protected static void safeClose(Connection conn)
protected static void safeClose(ResultSet rs)
Copyright © 2015. All Rights Reserved.