public static class ConnectionParameters.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ConnectionParameters |
build()
Builds a new ConnectionParameters instance.
|
ConnectionParameters.Builder |
catalog(java.lang.String catalog)
Sets the database catalog name.
|
ConnectionParameters.Builder |
connectionProperties(java.util.Properties connectionProperties)
Sets the connection properties.
|
ConnectionParameters.Builder |
driverClassName(java.lang.String driverClassName)
Sets the JDBC driver class name.
|
ConnectionParameters.Builder |
jdbcUrl(java.lang.String jdbcUrl)
Sets the JDBC URL.
|
ConnectionParameters.Builder |
password(java.lang.String password)
Sets the password for authentication.
|
ConnectionParameters.Builder |
schema(java.lang.String schema)
Sets the database schema name.
|
ConnectionParameters.Builder |
username(java.lang.String username)
Sets the username for authentication.
|
public ConnectionParameters.Builder jdbcUrl(java.lang.String jdbcUrl)
jdbcUrl - the JDBC URL, must not be null or emptyjava.lang.IllegalArgumentException - if jdbcUrl is null or emptypublic ConnectionParameters.Builder username(java.lang.String username)
username - the username, may be nullpublic ConnectionParameters.Builder password(java.lang.String password)
password - the password, may be nullpublic ConnectionParameters.Builder connectionProperties(java.util.Properties connectionProperties)
connectionProperties - the connection properties, may be nullpublic ConnectionParameters.Builder driverClassName(java.lang.String driverClassName)
driverClassName - the driver class name, may be nullpublic ConnectionParameters.Builder catalog(java.lang.String catalog)
catalog - the catalog name, may be nullpublic ConnectionParameters.Builder schema(java.lang.String schema)
schema - the schema name, may be nullpublic ConnectionParameters build()
java.lang.IllegalStateException - if required fields are not set