#2 - Polishing.
This commit is contained in:
@@ -71,7 +71,7 @@ public interface DatabaseClient {
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain a {@code WebClient} builder.
|
||||
* Obtain a {@code DatabaseClient} builder.
|
||||
*/
|
||||
static DatabaseClient.Builder builder() {
|
||||
return new DefaultDatabaseClientBuilder();
|
||||
@@ -219,6 +219,12 @@ public interface DatabaseClient {
|
||||
*/
|
||||
GenericInsertSpec into(String table);
|
||||
|
||||
/**
|
||||
* Specify the target {@link Class} table to insert to using the {@link Class entity class}.
|
||||
*
|
||||
* @param table must not be {@literal null}.
|
||||
* @return
|
||||
*/
|
||||
<T> TypedInsertSpec<T> into(Class<T> table);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ import org.springframework.util.Assert;
|
||||
class DefaultDatabaseClient implements DatabaseClient, ConnectionAccessor {
|
||||
|
||||
/** Logger available to subclasses */
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
private final Log logger = LogFactory.getLog(getClass());
|
||||
|
||||
private final ConnectionFactory connector;
|
||||
|
||||
@@ -72,7 +72,7 @@ class DefaultDatabaseClient implements DatabaseClient, ConnectionAccessor {
|
||||
|
||||
private final DefaultDatabaseClientBuilder builder;
|
||||
|
||||
public DefaultDatabaseClient(ConnectionFactory connector, SQLExceptionTranslator exceptionTranslator,
|
||||
DefaultDatabaseClient(ConnectionFactory connector, SQLExceptionTranslator exceptionTranslator,
|
||||
ReactiveDataAccessStrategy dataAccessStrategy, DefaultDatabaseClientBuilder builder) {
|
||||
|
||||
this.connector = connector;
|
||||
|
||||
Reference in New Issue
Block a user