Package com.ocient.jdbc
Class XGConnectionInfo
java.lang.Object
com.ocient.jdbc.XGConnectionInfo
public class XGConnectionInfo extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXGConnectionInfo.Builderstatic classXGConnectionInfo.Hint -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)StringgetDatabase()booleangetHint_bypassLoadBalancer()booleangetHint_bypassLoadBalancerOnHandshakeOnly()booleangetHint_bypassPropertyValidation()booleangetHint_bypassUpdateServerVersion()booleangetHint_isRedirect()CaselessPropertiesgetHint_properties()List<List<String>>getHint_secondaryInterfaces()XGConnection.SessiongetHint_session()longgetHint_timeoutMillis()StringgetHint_url()booleangetHint_usesTokenlessSSO()StringgetIp()intgetPortNum()StringgetProtocolVersion()StringgetPwd()XGConnection.TlsgetTls()StringgetUser()inthashCode()XGConnectionInfo.Hinthint()static XGConnectionInfo.BuilderprimaryConnection(String user, String pwd, String ip, int portNum, String hint_url, String database, String protocolVersion, XGConnection.Tls tls, CaselessProperties hint_properties)Creates a new primary connection to a database server.StringtoString()
-
Method Details
-
primaryConnection
public static XGConnectionInfo.Builder primaryConnection(String user, String pwd, String ip, int portNum, String hint_url, String database, String protocolVersion, XGConnection.Tls tls, CaselessProperties hint_properties)Creates a new primary connection to a database server.This method creates a new connection to the database server using the specified connection parameters. Primary connections should not bypass the load balancer, and connection property validation should be performed on the provided connection properties. Server version updates are also performed, since the primary connection should update the server version for the forked connections.
- Parameters:
user- the user name for the connectionpwd- the password for the connectionip- the IP address of the database serverportNum- the port number of the database serverhint_url- the JDBC URL for the connectiondatabase- the name of the database to connect toprotocolVersion- the version of the database protocol to usetls- the TLS configuration for the connectionhint_properties- additional connection properties to set, validated against the database- Returns:
- a new XGConnectionInfo object representing the new database connection
-
hint
-
getUser
-
getPwd
-
getIp
-
getPortNum
public int getPortNum() -
getDatabase
-
getProtocolVersion
-
getTls
-
getHint_url
-
getHint_bypassLoadBalancer
public boolean getHint_bypassLoadBalancer() -
getHint_bypassLoadBalancerOnHandshakeOnly
public boolean getHint_bypassLoadBalancerOnHandshakeOnly() -
getHint_bypassPropertyValidation
public boolean getHint_bypassPropertyValidation() -
getHint_bypassUpdateServerVersion
public boolean getHint_bypassUpdateServerVersion() -
getHint_properties
-
getHint_session
-
getHint_secondaryInterfaces
-
getHint_usesTokenlessSSO
public boolean getHint_usesTokenlessSSO() -
getHint_isRedirect
public boolean getHint_isRedirect() -
getHint_timeoutMillis
public long getHint_timeoutMillis() -
hashCode
public int hashCode() -
equals
-
toString
-