public static class JdbcOptions.Builder extends Object
JdbcOptions
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JdbcOptions |
build() |
JdbcOptions.Builder |
setDBUrl(String dbURL)
required, JDBC DB url.
|
JdbcOptions.Builder |
setDialect(JdbcDialect dialect)
optional, Handle the SQL dialect of jdbc driver.
|
JdbcOptions.Builder |
setDriverName(String driverName)
optional, driver name, dialect has a default driver name, See
JdbcDialect.defaultDriverName() . |
JdbcOptions.Builder |
setPassword(String password)
optional, password.
|
JdbcOptions.Builder |
setTableName(String tableName)
required, table name.
|
JdbcOptions.Builder |
setUsername(String username)
optional, user name.
|
public JdbcOptions.Builder setTableName(String tableName)
public JdbcOptions.Builder setUsername(String username)
public JdbcOptions.Builder setPassword(String password)
public JdbcOptions.Builder setDriverName(String driverName)
JdbcDialect.defaultDriverName()
.public JdbcOptions.Builder setDBUrl(String dbURL)
public JdbcOptions.Builder setDialect(JdbcDialect dialect)
JdbcDialects.get(java.lang.String)
from DB url.public JdbcOptions build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.