XAConnectionBuilder
, OracleXAConnectionBuilder
public abstract class OracleXAConnectionBuilderImpl extends Object implements OracleXAConnectionBuilder
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 |
---|---|
OracleXAConnectionBuilderImpl() |
protected String user
protected String password
protected String serviceName
protected String instanceName
protected OracleShardingKey shardingKey
protected OracleShardingKey superShardingKey
protected GSSCredential gssCredential
protected SSLContext sslContext
public abstract OracleXAConnection build() throws SQLException
build
in interface OracleXAConnectionBuilder
build
in interface XAConnectionBuilder
SQLException
OracleXAConnectionBuilder.build()
public OracleXAConnectionBuilderImpl password(String password)
password
in interface OracleXAConnectionBuilder
password
in interface XAConnectionBuilder
password
- Password to be a part of the connection requestOracleXAConnectionBuilder.password(java.lang.String)
public OracleXAConnectionBuilderImpl user(String user)
user
in interface OracleXAConnectionBuilder
user
in interface XAConnectionBuilder
user
- User Name to be a part of the connection requestOracleXAConnectionBuilder.user(java.lang.String)
public OracleXAConnectionBuilderImpl serviceName(String serviceName)
serviceName
- Service name to be part of the connection requestoracle.jdbc.OracleXAConnectionBuilder#serviceName(java.lang.String)
public OracleXAConnectionBuilderImpl instanceName(String instanceName)
instanceName
- Instance name to be part of the connection requestoracle.jdbc.OracleXAConnectionBuilder#instanceName(java.lang.String)
public OracleXAConnectionBuilderImpl shardingKey(OracleShardingKey shardingKey)
shardingKey
in interface OracleXAConnectionBuilder
shardingKey
- Sharding Key object that needs to be part of connection requestOracleXAConnectionBuilder.shardingKey(oracle.jdbc.OracleShardingKey)
public OracleXAConnectionBuilderImpl superShardingKey(OracleShardingKey superShardingKey)
superShardingKey
in interface OracleXAConnectionBuilder
superShardingKey
- Super Sharding Key object that needs to be part of connection requestOracleXAConnectionBuilder.superShardingKey(oracle.jdbc.OracleShardingKey)
public OracleXAConnectionBuilderImpl shardingKey(ShardingKey shardingKey)
shardingKey
in interface OracleXAConnectionBuilder
shardingKey
in interface XAConnectionBuilder
shardingKey
- Sharding Key object that needs to be part of connection requestOracleXAConnectionBuilder.shardingKey(oracle.jdbc.OracleShardingKey)
public OracleXAConnectionBuilderImpl superShardingKey(ShardingKey superShardingKey)
superShardingKey
in interface OracleXAConnectionBuilder
superShardingKey
in interface XAConnectionBuilder
superShardingKey
- Super Sharding Key object that needs to be part of connection requestOracleXAConnectionBuilder.superShardingKey(oracle.jdbc.OracleShardingKey)
public OracleXAConnectionBuilderImpl gssCredential(GSSCredential credential)
gssCredential
in interface OracleXAConnectionBuilder
credential
- used to authenticate the connection. Not null.public OracleXAConnectionBuilderImpl sslContext(SSLContext sslContext)
sslContext
in interface OracleXAConnectionBuilder
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()
public OracleConnectionBuilderImpl getOracleConnectionBuilder(OracleConnectionBuilderImpl connBldr)
connBldr
- The connection builder instance that needs to be initialized with this builder attributes.