public static class MySqlConnectionInfo.Builder extends Object
This class provides following setters;
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
void |
addProperties(List<String> properties)
Add properties.
|
void |
addProperty(String property)
Add a property.
|
MySqlConnectionInfo |
build()
Builds MySqlConnectionInfo.
|
MySqlConnectionInfo.Builder |
url(String url)
Set host name, port number and options by URL of a remote MySQL.
|
public void addProperty(String property)
property
- public void addProperties(List<String> properties)
properties
- public MySqlConnectionInfo.Builder url(String url) throws URISyntaxException
url
- URL of a remote MySQL (e.g.
jdbc:mysql://localhost:8888/something_table?cacheServerConfiguration=true)URISyntaxException
public MySqlConnectionInfo build()
Copyright © 2020. All rights reserved.