UCPXAConnectionBuilderpublic abstract class UCPXAConnectionBuilderImpl extends Object implements UCPXAConnectionBuilder
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
isBuilt |
|
protected Properties |
labels |
|
protected OpaqueString |
password |
|
protected Properties |
pdbRoles |
|
protected Properties |
proxyProperties |
|
protected int |
proxyType |
|
protected String |
serviceName |
|
protected OracleShardingKey |
shardingKey |
|
protected OracleShardingKey |
superShardingKey |
|
protected String |
user |
| Constructor | Description |
|---|---|
UCPXAConnectionBuilderImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract XAConnection |
build() |
Builds the XA connection object.
|
UCPXAConnectionBuilder |
labels(Properties labels) |
Sets the labels attribute on the builder
|
UCPXAConnectionBuilder |
password(String password) |
Sets the password attribute on the builder
|
UCPXAConnectionBuilder |
pdbRoles(Properties pdbRoles) |
Sets the PDB roles to be set on the connection from the pool in connection
repurposing case for a multitenant database.
|
UCPXAConnectionBuilder |
proxyProperties(int proxyType,
Properties proxyProperties) |
Sets the proxy properties on the builder that is used to create proxy
session of the particular type as specified by the parameter proxyType
|
UCPXAConnectionBuilder |
serviceName(String serviceName) |
Sets the service name attribute on the builder
|
UCPXAConnectionBuilder |
shardingKey(OracleShardingKey shardingKey) |
|
UCPXAConnectionBuilder |
superShardingKey(OracleShardingKey superShardingKey) |
|
UCPXAConnectionBuilder |
user(String user) |
Sets the user attribute on the builder
|
protected String user
protected OpaqueString password
protected Properties labels
protected String serviceName
protected int proxyType
protected Properties proxyProperties
protected boolean isBuilt
protected OracleShardingKey shardingKey
protected OracleShardingKey superShardingKey
protected Properties pdbRoles
public UCPXAConnectionBuilder user(String user)
user in interface UCPXAConnectionBuilderuser - the database user on whose behalf the connection is being madeUCPXAConnectionBuilder.user(java.lang.String)public UCPXAConnectionBuilder password(String password)
password in interface UCPXAConnectionBuilderpassword - UCPXAConnectionBuilder.password(java.lang.String)public UCPXAConnectionBuilder labels(Properties labels)
labels in interface UCPXAConnectionBuilderlabels - The requested connection labels.UCPXAConnectionBuilder.labels(java.util.Properties)public UCPXAConnectionBuilder serviceName(String serviceName)
serviceName in interface UCPXAConnectionBuilderserviceName - to retrieve the connectionUCPXAConnectionBuilder.serviceName(java.lang.String)public UCPXAConnectionBuilder proxyProperties(int proxyType, Properties proxyProperties)
proxyProperties in interface UCPXAConnectionBuilderproxyType - create proxy session of this typeproxyProperties - connection with these proxy propertiesUCPXAConnectionBuilder.proxyProperties(int,
java.util.Properties)public UCPXAConnectionBuilder shardingKey(OracleShardingKey shardingKey)
shardingKey in interface UCPXAConnectionBuildershardingKey - Sharding Key object that needs to be part of connection requestUCPXAConnectionBuilder.shardingKey(oracle.jdbc.OracleShardingKey)public UCPXAConnectionBuilder superShardingKey(OracleShardingKey superShardingKey)
superShardingKey in interface UCPXAConnectionBuildersuperShardingKey - Super shardingKey key object that needs to be part of connection
requestUCPXAConnectionBuilder.superShardingKey(oracle.jdbc.OracleShardingKey)public UCPXAConnectionBuilder pdbRoles(Properties pdbRoles)
pdbRoles in interface UCPXAConnectionBuilderpdbRoles - PDB roles and their passwords passed in as key value pairsUCPXAConnectionBuilder.pdbRoles(java.util.Properties)public abstract XAConnection build() throws SQLException
build in interface UCPXAConnectionBuilderSQLException - if there is a failure in building the connection.UCPXAConnectionBuilder.build()
Copyright © 2008, 2017, Oracle. All rights reserved.