public class JDBCConnectionRetrievalInfo extends Object implements ConnectionRetrievalInfo
ConnectionRetrievalInfo| Modifier and Type | Class and Description |
|---|---|
static class |
JDBCConnectionRetrievalInfo.Builder
JDBCConnectionRetrievalInfo object builder class
|
| Constructor and Description |
|---|
JDBCConnectionRetrievalInfo(JDBCConnectionRetrievalInfo copyCri)
Copy constructor
|
JDBCConnectionRetrievalInfo(String user,
String password)
Constructor.
|
JDBCConnectionRetrievalInfo(String user,
String password,
Properties labels)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String key,
String value)
Adds a connection label to this connection retrieval information object.
|
static JDBCConnectionRetrievalInfo.Builder |
createBuilder() |
boolean |
equals(Object obj)
Checks equality.
|
ConnectionRetrievalInfo |
getCopyWithNewProxyProperties(int type,
Properties newProxyProps)
Clones this connection retrieval object and adds a new set of proxy properties
|
ConnectionRetrievalInfo |
getCopyWithNoLabels()
Clones this connection retrieval object but removes all the connection
labels associated.
|
ConnectionRetrievalInfo |
getCopyWithService(String newService)
Clones this connection retrieval object with default service
|
Properties |
getLabels()
Retrieves all the connection labels stored on this connection
retrieval information object.
|
String |
getPassword()
Gets the password.
|
Properties |
getPdbRoles()
Retrieves the PDB roles if set on the connection retrieval information
object.
|
Properties |
getProxyProperties()
Retrieves all the dual session proxy properties on this connection
retrieval information object.
|
int |
getProxyType() |
String |
getServiceName()
Retrieves the service name if set on the connection retrieval information
object.
|
OracleShardingKey |
getShardingKey()
Retrieves the Sharding Key object if set on the connection retrieval
information object.
|
OracleShardingKey |
getSuperShardingKey()
Retrieves the super sharding key if set on the connection retrieval information
object.
|
String |
getUser()
Gets the user.
|
int |
hashCode()
Gets a hash code for this object.
|
void |
removeLabel(String key)
Removes the connection label with the given key from this connection
retrieval information object.
|
String |
stringValue() |
String |
toString() |
public JDBCConnectionRetrievalInfo(String user, String password)
user. - password. - public JDBCConnectionRetrievalInfo(String user, String password, Properties labels)
user. - password. - labels - The requested connection labels.public JDBCConnectionRetrievalInfo(JDBCConnectionRetrievalInfo copyCri)
copyCri - public boolean equals(Object obj)
equals in interface ConnectionRetrievalInfoequals in class Objectobj - the object to compare this withpublic int hashCode()
hashCode in interface ConnectionRetrievalInfohashCode in class Objectpublic String getUser()
public String getPassword()
public void addLabel(String key, String value) throws UniversalConnectionPoolException
addLabel in interface ConnectionRetrievalInfokey - The key of the connection label to be added. Cannot be
null or an empty string.value - The value of the connection label to be added. Can be
null or an empty string.UniversalConnectionPoolException - If the key is null
or an empty string.public void removeLabel(String key) throws UniversalConnectionPoolException
removeLabel in interface ConnectionRetrievalInfokey - The key of the connection label to be removed. Cannot be
null or an empty string.UniversalConnectionPoolException - If the key is null
or an empty string.public ConnectionRetrievalInfo getCopyWithNoLabels()
getCopyWithNoLabels in interface ConnectionRetrievalInfoConnectionRetrievalInfo object with all
connection labels removed.public ConnectionRetrievalInfo getCopyWithNewProxyProperties(int type, Properties newProxyProps)
type - proxy type to be set on the new CRI object copy.newProxyProps - proxy properties to be set on the new CRI object copy.ConnectionRetrievalInfo object with new proxy
properties.public ConnectionRetrievalInfo getCopyWithService(String newService)
newService - the service name to be set on the
cloned CRI objectConnectionRetrievalInfo object with new service
name as specified by the parameterpublic Properties getLabels()
getLabels in interface ConnectionRetrievalInfojava.util.Properties object storing all the
stored labels as key/value pairs. Returns null
if there are no stored labels on this connection retrieval info
object.public Properties getProxyProperties()
java.util.Properties object storing all the proxy
properties. Returns null if there are no dual session
proxy properties on this connection retrieval info object.public int getProxyType()
public String getServiceName()
public OracleShardingKey getShardingKey()
public OracleShardingKey getSuperShardingKey()
public Properties getPdbRoles()
public String toString()
toString in class ObjectObject.toString()public String stringValue()
public static JDBCConnectionRetrievalInfo.Builder createBuilder()
Copyright © 2008, 2016, Oracle. All rights reserved.