public final class MssqlConnectionFactoryProvider extends Object implements ConnectionFactoryProvider
ConnectionFactoryProvider for creating MssqlConnectionFactorys.| Modifier and Type | Field and Description |
|---|---|
static String |
ALTERNATE_MSSQL_DRIVER
Driver option value.
|
static Option<String> |
APPLICATION_NAME
Application name.
|
static Option<UUID> |
CONNECTION_ID
Connection Id
|
static Option<String> |
HOSTNAME_IN_CERTIFICATE
Expected Hostname in SSL certificate.
|
static String |
MSSQL_DRIVER
Driver option value.
|
static Option<Object> |
PREFER_CURSORED_EXECUTION
Configure whether to prefer cursored execution on a statement-by-statement basis.
|
static Option<Boolean> |
SEND_STRING_PARAMETERS_AS_UNICODE
Configure whether to send character data as unicode (NVARCHAR, NCHAR, NTEXT) or whether to use the database encoding.
|
static Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> |
SSL_CONTEXT_BUILDER_CUSTOMIZER
Customizer
Function for SslContextBuilder. |
static Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> |
SSL_TUNNEL
Enable SSL tunnel usage to encrypt all traffic right from the connect phase by providing a customizer
Function. |
static Option<Boolean> |
TCP_KEEPALIVE
Enable/Disable TCP KeepAlive.
|
static Option<Boolean> |
TCP_NODELAY
Enable/Disable TCP NoDelay.
|
static Option<Boolean> |
TRUST_SERVER_CERTIFICATE
Allow using SSL by fully trusting the server certificate.
|
static Option<File> |
TRUST_STORE
Path to the certificate TrustStore file.
|
static Option<char[]> |
TRUST_STORE_PASSWORD
Password used to check the integrity of the TrustStore data.
|
static Option<String> |
TRUST_STORE_TYPE
Type of the TrustStore.
|
| Constructor and Description |
|---|
MssqlConnectionFactoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
MssqlConnectionFactory |
create(ConnectionFactoryOptions connectionFactoryOptions) |
String |
getDriver() |
boolean |
supports(ConnectionFactoryOptions connectionFactoryOptions) |
public static final Option<String> HOSTNAME_IN_CERTIFICATE
public static final Option<Object> PREFER_CURSORED_EXECUTION
Boolean, a Predicate, or a class name. The Predicate
accepts the SQL query string and returns a boolean flag indicating preference.
true prefers cursors, false prefers direct execution.public static final Option<Boolean> SEND_STRING_PARAMETERS_AS_UNICODE
CharSequence data is sent using the database-specific collation such as ASCII/MBCS instead of Unicode.public static final Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> SSL_CONTEXT_BUILDER_CUSTOMIZER
Function for SslContextBuilder.public static final Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> SSL_TUNNEL
Function. This option is required when using a SSL tunnel (e.g. stunnel or other
SSL terminator) in front of the SQL server and it is not related to SQL Server's built-in SSL support.public static final Option<Boolean> TCP_KEEPALIVE
public static final Option<Boolean> TCP_NODELAY
public static final Option<Boolean> TRUST_SERVER_CERTIFICATE
public static final Option<String> TRUST_STORE_TYPE
public static final Option<File> TRUST_STORE
public static final Option<char[]> TRUST_STORE_PASSWORD
public static final String MSSQL_DRIVER
public static final String ALTERNATE_MSSQL_DRIVER
public MssqlConnectionFactory create(ConnectionFactoryOptions connectionFactoryOptions)
create in interface ConnectionFactoryProviderpublic boolean supports(ConnectionFactoryOptions connectionFactoryOptions)
supports in interface ConnectionFactoryProviderpublic String getDriver()
getDriver in interface ConnectionFactoryProviderCopyright © 2023. All rights reserved.