public class JDBCClient extends SQLClient
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<JDBCClient> |
__TYPE_ARG |
static String |
DEFAULT_DS_NAME
The name of the default data source
|
static String |
DEFAULT_PROVIDER_CLASS
The default data source provider for this pool,
loaded from JVM system properties with the key.
|
Constructor and Description |
---|
JDBCClient(JDBCClient delegate) |
JDBCClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static JDBCClient |
create(Vertx vertx,
JsonObject config)
Create a JDBC client which maintains its own data source.
|
static JDBCClient |
createShared(Vertx vertx,
JsonObject config)
Like
createShared(io.vertx.reactivex.core.Vertx, io.vertx.core.json.JsonObject, java.lang.String) but with the default data source name |
static JDBCClient |
createShared(Vertx vertx,
JsonObject config,
String dataSourceName)
Create a JDBC client which shares its data source with any other JDBC clients created with the same
data source name
|
boolean |
equals(Object o) |
JDBCClient |
getDelegate() |
int |
hashCode() |
static JDBCClient |
newInstance(JDBCClient arg) |
SQLOperations |
querySingle(String sql)
Execute a one shot SQL statement that returns a single SQL row.
|
SQLOperations |
querySingle(String sql,
Handler<AsyncResult<JsonArray>> handler)
Execute a one shot SQL statement that returns a single SQL row.
|
SQLOperations |
querySingleWithParams(String sql,
JsonArray arguments)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
SQLOperations |
querySingleWithParams(String sql,
JsonArray arguments,
Handler<AsyncResult<JsonArray>> handler)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
Maybe<JsonArray> |
rxQuerySingle(String sql)
Execute a one shot SQL statement that returns a single SQL row.
|
Maybe<JsonArray> |
rxQuerySingleWithParams(String sql,
JsonArray arguments)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
String |
toString() |
call, call, callWithParams, callWithParams, close, close, getConnection, getConnection, newInstance, query, query, queryStream, queryStream, queryStreamWithParams, queryStreamWithParams, queryWithParams, queryWithParams, rxCall, rxCallWithParams, rxClose, rxGetConnection, rxQuery, rxQueryStream, rxQueryStreamWithParams, rxQueryWithParams, rxUpdate, rxUpdateWithParams, update, update, updateWithParams, updateWithParams
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<JDBCClient> __TYPE_ARG
public static final String DEFAULT_PROVIDER_CLASS
public static final String DEFAULT_DS_NAME
public JDBCClient(JDBCClient delegate)
public JDBCClient(Object delegate)
public JDBCClient getDelegate()
getDelegate
in interface SQLOperations
getDelegate
in class SQLClient
public SQLOperations querySingle(String sql, Handler<AsyncResult<JsonArray>> handler)
querySingle
in interface SQLOperations
querySingle
in class SQLClient
sql
- the statement to executehandler
- the result handlerpublic SQLOperations querySingle(String sql)
querySingle
in interface SQLOperations
querySingle
in class SQLClient
sql
- the statement to executepublic Maybe<JsonArray> rxQuerySingle(String sql)
rxQuerySingle
in interface SQLOperations
rxQuerySingle
in class SQLClient
sql
- the statement to executepublic SQLOperations querySingleWithParams(String sql, JsonArray arguments, Handler<AsyncResult<JsonArray>> handler)
querySingleWithParams
in interface SQLOperations
querySingleWithParams
in class SQLClient
sql
- the statement to executearguments
- the argumentshandler
- the result handlerpublic SQLOperations querySingleWithParams(String sql, JsonArray arguments)
querySingleWithParams
in interface SQLOperations
querySingleWithParams
in class SQLClient
sql
- the statement to executearguments
- the argumentspublic Maybe<JsonArray> rxQuerySingleWithParams(String sql, JsonArray arguments)
rxQuerySingleWithParams
in interface SQLOperations
rxQuerySingleWithParams
in class SQLClient
sql
- the statement to executearguments
- the argumentspublic static JDBCClient create(Vertx vertx, JsonObject config)
vertx
- the Vert.x instanceconfig
- the configurationpublic static JDBCClient createShared(Vertx vertx, JsonObject config, String dataSourceName)
vertx
- the Vert.x instanceconfig
- the configurationdataSourceName
- the data source namepublic static JDBCClient createShared(Vertx vertx, JsonObject config)
createShared(io.vertx.reactivex.core.Vertx, io.vertx.core.json.JsonObject, java.lang.String)
but with the default data source namevertx
- the Vert.x instanceconfig
- the configurationpublic static JDBCClient newInstance(JDBCClient arg)
Copyright © 2024 Eclipse. All rights reserved.