DatabaseClient
support instead.@Deprecated public interface DatabaseClient
Use one of the static factory methods create(ConnectionFactory)
or obtain a builder()
to create an instance.
Modifier and Type | Interface and Description |
---|---|
static interface |
DatabaseClient.BindSpec<S extends DatabaseClient.BindSpec<S>>
Deprecated.
Contract for specifying parameter bindings.
|
static interface |
DatabaseClient.Builder
Deprecated.
A mutable builder for creating a
DatabaseClient . |
static interface |
DatabaseClient.DeleteFromSpec
Deprecated.
Contract for specifying
DELETE options leading to the exchange. |
static interface |
DatabaseClient.DeleteMatchingSpec
Deprecated.
Contract for specifying
DELETE options leading to the exchange. |
static interface |
DatabaseClient.DeleteSpec
Deprecated.
Contract for specifying
DELETE options leading to the exchange. |
static interface |
DatabaseClient.GenericExecuteSpec
Deprecated.
Contract for specifying a SQL call along with options leading to the exchange.
|
static interface |
DatabaseClient.GenericInsertSpec<T>
Deprecated.
Contract for specifying
INSERT options leading to the exchange. |
static interface |
DatabaseClient.GenericSelectSpec
Deprecated.
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.GenericUpdateSpec
Deprecated.
Contract for specifying
UPDATE options leading to the exchange. |
static interface |
DatabaseClient.InsertIntoSpec
Deprecated.
Contract for specifying
INSERT options leading to the exchange. |
static interface |
DatabaseClient.InsertSpec<T>
Deprecated.
Contract for specifying
INSERT options leading to the exchange. |
static interface |
DatabaseClient.SelectFromSpec
Deprecated.
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.SelectSpec<S extends DatabaseClient.SelectSpec<S>>
Deprecated.
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.StatementFilterSpec<S extends DatabaseClient.StatementFilterSpec<S>>
Deprecated.
Contract for applying a
StatementFilterFunction . |
static interface |
DatabaseClient.TypedDeleteSpec<T>
Deprecated.
Contract for specifying
DELETE options leading to the exchange. |
static interface |
DatabaseClient.TypedExecuteSpec<T>
Deprecated.
Contract for specifying a SQL call along with options leading to the exchange.
|
static interface |
DatabaseClient.TypedInsertSpec<T>
Deprecated.
Contract for specifying
INSERT options leading the exchange. |
static interface |
DatabaseClient.TypedSelectSpec<T>
Deprecated.
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.TypedUpdateSpec<T>
Deprecated.
Contract for specifying
UPDATE options leading to the exchange. |
static interface |
DatabaseClient.UpdateMatchingSpec
Deprecated.
Contract for specifying
UPDATE options leading to the exchange. |
static interface |
DatabaseClient.UpdateSpec
Deprecated.
Contract for specifying
UPDATE options leading to the exchange. |
static interface |
DatabaseClient.UpdateTableSpec
Deprecated.
Contract for specifying
UPDATE options leading to the exchange. |
Modifier and Type | Method and Description |
---|---|
static DatabaseClient.Builder |
builder()
Deprecated.
Obtain a
DatabaseClient builder. |
static DatabaseClient |
create(ConnectionFactory factory)
Deprecated.
Creates a
DatabaseClient that will use the provided ConnectionFactory . |
DatabaseClient.DeleteFromSpec |
delete()
Deprecated.
Prepare an SQL DELETE call.
|
DatabaseClient.GenericExecuteSpec |
execute(String sql)
Deprecated.
Specify a static
sql string to execute. |
DatabaseClient.GenericExecuteSpec |
execute(Supplier<String> sqlSupplier)
Deprecated.
Specify a
SQL supplier that provides SQL to execute. |
ConnectionFactory |
getConnectionFactory()
Deprecated.
Return the
ConnectionFactory that this client uses. |
DatabaseClient.InsertIntoSpec |
insert()
Deprecated.
Prepare an SQL INSERT call.
|
DatabaseClient.Builder |
mutate()
Deprecated.
Return a builder to mutate properties of this database client.
|
DatabaseClient.SelectFromSpec |
select()
Deprecated.
Prepare an SQL SELECT call.
|
DatabaseClient.UpdateTableSpec |
update()
Deprecated.
Prepare an SQL UPDATE call.
|
ConnectionFactory getConnectionFactory()
ConnectionFactory
that this client uses.DatabaseClient.GenericExecuteSpec execute(String sql)
sql
string to execute. Contract for specifying a SQL call along with options leading to
the exchange. The SQL string can contain either native parameter bind markers or named parameters (e.g.
:foo, :bar) when NamedParameterExpander
is enabled.sql
- must not be null or empty.DatabaseClient.GenericExecuteSpec
.NamedParameterExpander
,
DatabaseClient.Builder.namedParameters(boolean)
DatabaseClient.GenericExecuteSpec execute(Supplier<String> sqlSupplier)
SQL supplier
that provides SQL to execute. Contract for specifying a SQL call along with
options leading to the exchange. The SQL string can contain either native parameter bind markers or named
parameters (e.g. :foo, :bar) when NamedParameterExpander
is enabled.
Accepts PreparedOperation
as SQL and binding Supplier
.
sqlSupplier
- must not be null.DatabaseClient.GenericExecuteSpec
.NamedParameterExpander
,
DatabaseClient.Builder.namedParameters(boolean)
,
PreparedOperation
DatabaseClient.SelectFromSpec select()
DatabaseClient.InsertIntoSpec insert()
DatabaseClient.UpdateTableSpec update()
DatabaseClient.DeleteFromSpec delete()
DatabaseClient.Builder mutate()
static DatabaseClient create(ConnectionFactory factory)
DatabaseClient
that will use the provided ConnectionFactory
.factory
- The ConnectionFactory
to use for obtaining connections.DatabaseClient
. Guaranteed to be not null.static DatabaseClient.Builder builder()
DatabaseClient
builder.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.