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 is C3P0
|
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 |
createNonShared(Vertx vertx,
JsonObject config)
Deprecated.
|
static JDBCClient |
createShared(Vertx vertx,
JsonObject config)
Like
createShared(io.vertx.rxjava.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,
Handler<AsyncResult<JsonArray>> handler)
Execute a one shot SQL statement that returns a single SQL row.
|
Observable<JsonArray> |
querySingleObservable(String sql)
Deprecated.
use
rxQuerySingle(java.lang.String) instead |
SQLOperations |
querySingleWithParams(String sql,
JsonArray arguments,
Handler<AsyncResult<JsonArray>> handler)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
Observable<JsonArray> |
querySingleWithParamsObservable(String sql,
JsonArray arguments)
Deprecated.
|
Single<JsonArray> |
rxQuerySingle(String sql)
Execute a one shot SQL statement that returns a single SQL row.
|
Single<JsonArray> |
rxQuerySingleWithParams(String sql,
JsonArray arguments)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
String |
toString() |
call, callObservable, callWithParams, callWithParamsObservable, close, close, closeObservable, getConnection, getConnectionObservable, newInstance, query, queryObservable, queryStream, queryStreamObservable, queryStreamWithParams, queryStreamWithParamsObservable, queryWithParams, queryWithParamsObservable, rxCall, rxCallWithParams, rxClose, rxGetConnection, rxQuery, rxQueryStream, rxQueryStreamWithParams, rxQueryWithParams, rxUpdate, rxUpdateWithParams, update, updateObservable, updateWithParams, updateWithParamsObservable
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 handler@Deprecated public Observable<JsonArray> querySingleObservable(String sql)
rxQuerySingle(java.lang.String)
insteadquerySingleObservable
in class SQLClient
sql
- the statement to executepublic Single<JsonArray> rxQuerySingle(String sql)
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 handler@Deprecated public Observable<JsonArray> querySingleWithParamsObservable(String sql, JsonArray arguments)
rxQuerySingleWithParams(java.lang.String, io.vertx.core.json.JsonArray)
insteadquerySingleWithParamsObservable
in class SQLClient
sql
- the statement to executearguments
- the argumentspublic Single<JsonArray> rxQuerySingleWithParams(String sql, JsonArray arguments)
rxQuerySingleWithParams
in class SQLClient
sql
- the statement to executearguments
- the arguments@Deprecated public static JDBCClient createNonShared(Vertx vertx, JsonObject config)
vertx
- config
- public 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.rxjava.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 © 2023 Eclipse. All rights reserved.