| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public static QueryExecutor | Returns: the new, initialized, connectionat least one host and port to connect to; multiple elements for round-robin
failover hostSpecs, Properties extra properties controlling the connection; notably, "password" if present
supplies the password to authenticate with. info)Establishes and initializes a new connection. |
| public abstract QueryExecutor | Returns: the new, initialized, connection, ornull if this protocol version is not
supported by the server.at least one host and port to connect to; multiple elements for round-robin
failover hostSpecs, Properties extra properties controlling the connection; notably, "password" if present
supplies the password to authenticate with. info)Implementation of |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| ConnectionFactory | back to summary |
|---|---|
| public ConnectionFactory() | |
| closeStream | back to summary |
|---|---|
| protected void closeStream(@Nullable PGStream newStream) Safely close the given stream. | |
| openConnection | back to summary |
|---|---|
| public static QueryExecutor openConnection(HostSpec[] hostSpecs, Properties info) throws SQLException Establishes and initializes a new connection. If the "protocolVersion" property is specified, only that protocol version is tried. Otherwise, all protocols are tried in order, falling back to older protocols as necessary. Currently, protocol versions 3 (7.4+) is supported.
| |
| openConnectionImpl | back to summary |
|---|---|
| public abstract QueryExecutor openConnectionImpl(HostSpec[] hostSpecs, Properties info) throws SQLException Implementation of
| |