public static class DatabaseConnectionString.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DatabaseConnectionString |
build() |
DatabaseConnectionString.Builder |
copy(DatabaseConnectionString model) |
DatabaseConnectionString.Builder |
hostName(String hostName)
The host name of the database or the SCAN name in case of a RAC database.
|
DatabaseConnectionString.Builder |
port(Integer port)
The port used to connect to the database.
|
DatabaseConnectionString.Builder |
protocol(DatabaseConnectionString.Protocol protocol)
The protocol used to connect to the database.
|
DatabaseConnectionString.Builder |
service(String service)
The service name of the database.
|
public DatabaseConnectionString.Builder hostName(String hostName)
The host name of the database or the SCAN name in case of a RAC database.
hostName
- the value to setpublic DatabaseConnectionString.Builder port(Integer port)
The port used to connect to the database.
port
- the value to setpublic DatabaseConnectionString.Builder service(String service)
The service name of the database.
service
- the value to setpublic DatabaseConnectionString.Builder protocol(DatabaseConnectionString.Protocol protocol)
The protocol used to connect to the database.
protocol
- the value to setpublic DatabaseConnectionString build()
public DatabaseConnectionString.Builder copy(DatabaseConnectionString model)
Copyright © 2016–2024. All rights reserved.