public class JDBCClientImpl extends Object implements JDBCClient
DEFAULT_DS_NAME, DEFAULT_PROVIDER_CLASS| Constructor and Description |
|---|
JDBCClientImpl(Vertx vertx,
DataSource dataSource) |
JDBCClientImpl(Vertx vertx,
JsonObject config,
String datasourceName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the client
|
JDBCClient |
getConnection(Handler<AsyncResult<SQLConnection>> handler)
Returns a connection that can be used to perform SQL operations on.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createNonShared, createShared, createSharedpublic JDBCClientImpl(Vertx vertx, DataSource dataSource)
public JDBCClientImpl(Vertx vertx, JsonObject config, String datasourceName)
public void close()
JDBCClientclose in interface JDBCClientpublic JDBCClient getConnection(Handler<AsyncResult<SQLConnection>> handler)
JDBCClientgetConnection in interface JDBCClienthandler - the handler which is called when the JdbcConnection object is ready for use.Copyright © 2015. All Rights Reserved.