public abstract static class JdbcIO.DataSourceConfiguration
extends java.lang.Object
implements java.io.Serializable
DataSource
, either providing directly a DataSource
or all
properties allowing to create a DataSource
.Constructor and Description |
---|
DataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
static JdbcIO.DataSourceConfiguration |
create(javax.sql.DataSource dataSource) |
static JdbcIO.DataSourceConfiguration |
create(java.lang.String driverClassName,
java.lang.String url) |
JdbcIO.DataSourceConfiguration |
withConnectionProperties(java.lang.String connectionProperties)
Sets the connection properties passed to driver.connect(...).
|
JdbcIO.DataSourceConfiguration |
withPassword(java.lang.String password) |
JdbcIO.DataSourceConfiguration |
withUsername(java.lang.String username) |
public static JdbcIO.DataSourceConfiguration create(javax.sql.DataSource dataSource)
public static JdbcIO.DataSourceConfiguration create(java.lang.String driverClassName, java.lang.String url)
public JdbcIO.DataSourceConfiguration withUsername(java.lang.String username)
public JdbcIO.DataSourceConfiguration withPassword(java.lang.String password)
public JdbcIO.DataSourceConfiguration withConnectionProperties(java.lang.String connectionProperties)
NOTE - The "user" and "password" properties can be add via withUsername(String)
,
withPassword(String)
, so they do not need to be included here.