public abstract class UCPConnectionBuilderImpl extends Object implements UCPConnectionBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
labels |
protected String |
password |
protected Properties |
pdbRoles |
protected Properties |
proxyProperties |
protected int |
proxyType |
protected String |
serviceName |
protected OracleShardingKey |
shardingKey |
protected OracleShardingKey |
superShardingKey |
protected String |
user |
| Constructor and Description |
|---|
UCPConnectionBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
abstract Connection |
build()
Builds the connection object.
|
UCPConnectionBuilder |
labels(Properties labels)
Sets the labels attribute on the builder
|
UCPConnectionBuilder |
password(String password)
Sets the password attribute on the builder
|
UCPConnectionBuilder |
pdbRoles(Properties pdbRoles)
Sets the PDB roles to be set on the connection from the pool in connection
repurposing case for a multitenant database.
|
UCPConnectionBuilder |
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
|
UCPConnectionBuilder |
serviceName(String serviceName)
Sets the service name attribute on the builder
|
UCPConnectionBuilder |
shardingKey(OracleShardingKey shardingKey) |
UCPConnectionBuilder |
superShardingKey(OracleShardingKey superShardingKey) |
UCPConnectionBuilder |
user(String user)
Sets the user attribute on the builder
|
protected String user
protected String password
protected Properties labels
protected String serviceName
protected int proxyType
protected Properties proxyProperties
protected OracleShardingKey shardingKey
protected OracleShardingKey superShardingKey
protected Properties pdbRoles
public UCPConnectionBuilder user(String user)
user in interface UCPConnectionBuilderuser - the database user on whose behalf the connection is being madeUCPConnectionBuilder.user(java.lang.String)public UCPConnectionBuilder password(String password)
password in interface UCPConnectionBuilderpassword - UCPConnectionBuilder.password(java.lang.String)public UCPConnectionBuilder labels(Properties labels)
labels in interface UCPConnectionBuilderlabels - The requested connection labels.UCPConnectionBuilder.labels(java.util.Properties)public UCPConnectionBuilder serviceName(String serviceName)
serviceName in interface UCPConnectionBuilderserviceName - to retrieve the connectionUCPConnectionBuilder.serviceName(java.lang.String)public UCPConnectionBuilder proxyProperties(int proxyType, Properties proxyProperties)
proxyProperties in interface UCPConnectionBuilderproxyType - create proxy session of this typeproxyProperties - connection with these proxy propertiesfor valid combinations of the proxy session
properties,
UCPConnectionBuilder.proxyProperties(int, java.util.Properties)public UCPConnectionBuilder shardingKey(OracleShardingKey shardingKey)
shardingKey in interface UCPConnectionBuildershardingKey - UCPConnectionBuilder.shardingKey(oracle.jdbc.OracleShardingKey)public UCPConnectionBuilder superShardingKey(OracleShardingKey superShardingKey)
superShardingKey in interface UCPConnectionBuildersuperShardingKey - UCPConnectionBuilder.superShardingKey(oracle.jdbc.OracleShardingKey)public UCPConnectionBuilder pdbRoles(Properties pdbRoles)
pdbRoles in interface UCPConnectionBuilderpdbRoles - PDB roles and their passwords passed in as key value pairsUCPConnectionBuilder.pdbRoles(java.util.Properties)public abstract Connection build() throws SQLException
build in interface UCPConnectionBuilderSQLException - if there is a failure in building the connection.UCPConnectionBuilder.build()
Copyright © 2008, 2016, Oracle. All rights reserved.