ConnectionBuilder
, OracleConnectionBuilder
public abstract class OracleConnectionBuilderImpl extends Object implements OracleConnectionBuilder
Modifier and Type | Field | Description |
---|---|---|
protected GSSCredential |
gssCredential |
|
protected String |
instanceName |
|
protected String |
password |
|
protected String |
serviceName |
|
protected OracleShardingKey |
shardingKey |
|
protected SSLContext |
sslContext |
|
protected OracleShardingKey |
superShardingKey |
|
protected String |
user |
Constructor | Description |
---|---|
OracleConnectionBuilderImpl() |
protected String user
protected String password
protected String serviceName
protected String instanceName
protected OracleShardingKey shardingKey
protected OracleShardingKey superShardingKey
protected SSLContext sslContext
protected GSSCredential gssCredential
public abstract OracleConnection build() throws SQLException
build
in interface ConnectionBuilder
build
in interface OracleConnectionBuilder
SQLException
OracleConnectionBuilder.build()
public OracleConnectionBuilderImpl password(String password)
password
in interface ConnectionBuilder
password
in interface OracleConnectionBuilder
password
- Password to be a part of the connection requestOracleConnectionBuilder.password(java.lang.String)
public OracleConnectionBuilderImpl user(String user)
user
in interface ConnectionBuilder
user
in interface OracleConnectionBuilder
user
- User Name to be a part of the connection requestOracleConnectionBuilder.user(java.lang.String)
public OracleConnectionBuilderImpl serviceName(String serviceName)
serviceName
- Service name to be part of the connection requestpublic OracleConnectionBuilderImpl instanceName(String instanceName)
instanceName
- Instance name to be part of the connection requestpublic OracleConnectionBuilderImpl shardingKey(OracleShardingKey shardingKey)
shardingKey
in interface OracleConnectionBuilder
shardingKey
- Sharding Key object that needs to be part of connection requestOracleConnectionBuilder.shardingKey(oracle.jdbc.OracleShardingKey)
public OracleConnectionBuilderImpl superShardingKey(OracleShardingKey superShardingKey)
superShardingKey
in interface OracleConnectionBuilder
superShardingKey
- Super Sharding Key object that needs to be part of connection requestOracleConnectionBuilder.superShardingKey(oracle.jdbc.OracleShardingKey)
public OracleConnectionBuilderImpl shardingKey(ShardingKey shardingKey)
shardingKey
in interface ConnectionBuilder
shardingKey
in interface OracleConnectionBuilder
shardingKey
- Sharding Key object that needs to be part of connection requestOracleConnectionBuilder.shardingKey(oracle.jdbc.OracleShardingKey)
public OracleConnectionBuilderImpl superShardingKey(ShardingKey superShardingKey)
superShardingKey
in interface ConnectionBuilder
superShardingKey
in interface OracleConnectionBuilder
superShardingKey
- Super Sharding Key object that needs to be part of connection requestOracleConnectionBuilder.superShardingKey(oracle.jdbc.OracleShardingKey)
public OracleConnectionBuilderImpl gssCredential(GSSCredential credential)
gssCredential
in interface OracleConnectionBuilder
credential
- used to authenticate the connection. Not null.public OracleConnectionBuilderImpl sslContext(SSLContext sslContext)
sslContext
in interface OracleConnectionBuilder
sslContext
- An SSLContext to set. May be null.public final SSLContext getSSLContext()
public String getUser()
public String getPassword()
public String getServiceName()
public String getInstanceName()
public OracleShardingKeyImpl getShardingKey()
public OracleShardingKeyImpl getSuperShardingKey()
public GSSCredential getGSSCredential()