| Modifier and Type | Field and Description |
|---|---|
| private AutoSave | |
| private final CachedQueryCreateAction | |
| private int | |
| private int | |
| private final int | |
| protected final QueryExecutorCloseAction | |
| private final boolean | |
| private final String | |
| private final EscapeSyntaxCallMode | |
| private boolean | |
| protected final ResourceLock | |
| protected final Condition | |
| private static final Logger | |
| protected final boolean | |
| private final ArrayList | |
| private final TreeMap | |
| protected final PGStream | |
| private PreferQueryMode | |
| private final boolean | |
| private final boolean | |
| private @MonotonicNonNull String | |
| private int | |
| private boolean | |
| private final LruCache | |
| private TransactionState | |
| private final String | |
| private @Nullable SQLWarning |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort()
Implements org. Abort at network level without sending the Terminate message to the backend. |
| public void | |
| public void | |
| public final CachedQuery | |
| public final CachedQuery | |
| public CachedQuery | |
| public final CachedQuery | |
| public void | |
| protected QueryExecutorCloseAction | |
| public final CachedQuery | createQuery(String sql, boolean escapeProcessing, boolean isParameterized, @Nullable String... columnNames)
|
| public CachedQuery | |
| public final Object | createQueryKey(String sql, boolean escapeProcessing, boolean isParameterized, @Nullable String... columnNames)
|
| public AutoSave | |
| public int | getBackendPID()
Implements org. Return the process ID (PID) of the backend server process handling this connection. |
| public Closeable | getCloseAction()
Implements org. Returns an action that would close the connection cleanly. |
| public String | |
| public Encoding | |
| public EscapeSyntaxCallMode | |
| public HostSpec | |
| public int | |
| public PGNotification[] | getNotifications()
Implements org. Retrieve and clear the set of asynchronous notifications pending on this connection. |
| public final @Nullable String | getParameterStatus(String parameterName)
Implements org.
|
| public final Map | |
| public PreferQueryMode | |
| public boolean | |
| public String | getServerVersion()
Implements org. Return the server version from the server_version GUC. |
| public int | getServerVersionNum()
Implements org. Get a machine-readable server version. |
| public boolean | getStandardConformingStrings()
Implements org. Returns whether the server treats string-literals according to the SQL standard or if it uses traditional PostgreSQL escaping rules. |
| public TransactionState | getTransactionState()
Implements org. Get the current transaction state of this connection. |
| public String | |
| public @Nullable SQLWarning | getWarnings()
Implements org. Retrieve and clear the chain of warnings accumulated on this connection. |
| protected boolean | |
| public boolean | isClosed()
Implements org. Check if this connection is closed. |
| public boolean | |
| public boolean | |
| public boolean | |
| protected void | onParameterStatus(String
case-insensitive case-preserving name of parameter to create or update parameterName, String new value of parameter parameterStatus)Update the parameter status map in response to a new ParameterStatus wire protocol message. |
| public void | |
| protected abstract void | sendCloseMessage()
Deprecated
use
getCloseAction() instead
Sends "terminate connection" message to the backend. |
| public void | sendQueryCancel()
Implements org. Sends a query cancellation for this connection. |
| public void | |
| public void | |
| public void | |
| public void | setFlushCacheOnDeallocate(boolean
true if statement cache should be reset when "deallocate/discard" message observed flushCacheOnDeallocate)Implements org. By default, the connection resets statement cache in case deallocate all/discard all message is observed. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | |
| protected boolean |
| autoSave | back to summary |
|---|---|
| private AutoSave autoSave | |
| cachedQueryCreateAction | back to summary |
|---|---|
| private final CachedQueryCreateAction cachedQueryCreateAction | |
| cancelKey | back to summary |
|---|---|
| private int cancelKey | |
| cancelPid | back to summary |
|---|---|
| private int cancelPid | |
| cancelSignalTimeout | back to summary |
|---|---|
| private final int cancelSignalTimeout | |
| closeAction | back to summary |
|---|---|
| protected final QueryExecutorCloseAction closeAction | |
| columnSanitiserDisabled | back to summary |
|---|---|
| private final boolean columnSanitiserDisabled | |
| database | back to summary |
|---|---|
| private final String database | |
| escapeSyntaxCallMode | back to summary |
|---|---|
| private final EscapeSyntaxCallMode escapeSyntaxCallMode | |
| flushCacheOnDeallocate | back to summary |
|---|---|
| private boolean flushCacheOnDeallocate | |
| lock | back to summary |
|---|---|
| protected final ResourceLock lock | |
| lockCondition | back to summary |
|---|---|
| protected final Condition lockCondition | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| logServerErrorDetail | back to summary |
|---|---|
| protected final boolean logServerErrorDetail | |
| notifications | back to summary |
|---|---|
| private final ArrayList<PGNotification> notifications | |
| parameterStatuses | back to summary |
|---|---|
| private final TreeMap<String, String> parameterStatuses | |
| pgStream | back to summary |
|---|---|
| protected final PGStream pgStream | |
| preferQueryMode | back to summary |
|---|---|
| private PreferQueryMode preferQueryMode | |
| quoteReturningIdentifiers | back to summary |
|---|---|
| private final boolean quoteReturningIdentifiers | |
| reWriteBatchedInserts | back to summary |
|---|---|
| private final boolean reWriteBatchedInserts | |
| serverVersion | back to summary |
|---|---|
| private @MonotonicNonNull String serverVersion | |
| serverVersionNum | back to summary |
|---|---|
| private int serverVersionNum | |
| standardConformingStrings | back to summary |
|---|---|
| private boolean standardConformingStrings | |
| statementCache | back to summary |
|---|---|
| private final LruCache<Object, CachedQuery> statementCache | |
| transactionState | back to summary |
|---|---|
| private TransactionState transactionState | |
| user | back to summary |
|---|---|
| private final String user | |
| warnings | back to summary |
|---|---|
| private @Nullable SQLWarning warnings | |
| QueryExecutorBase | back to summary |
|---|---|
protected QueryExecutorBase(PGStream pgStream, int cancelSignalTimeout, Properties info) throws SQLException
| |
| abort | back to summary |
|---|---|
| public void abort() Implements org. Doc from org. Abort at network level without sending the Terminate message to the backend.
| |
| addNotification | back to summary |
|---|---|
| public void addNotification(PGNotification notification) | |
| addWarning | back to summary |
|---|---|
| public void addWarning(SQLWarning newWarning) | |
| borrowCallableQuery | back to summary |
|---|---|
| public final CachedQuery borrowCallableQuery(String sql) throws SQLException Implements org.
| |
| borrowQuery | back to summary |
|---|---|
| public final CachedQuery borrowQuery(String sql) throws SQLException Implements org.
| |
| borrowQueryByKey | back to summary |
|---|---|
| public CachedQuery borrowQueryByKey(Object key) throws SQLException Implements org.
| |
| borrowReturningQuery | back to summary |
|---|---|
public final CachedQuery borrowReturningQuery(String sql, @Nullable String[] columnNames) throws SQLException
| |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close this connection cleanly.
| |
| createCloseAction | back to summary |
|---|---|
| protected QueryExecutorCloseAction createCloseAction() | |
| createQuery | back to summary |
|---|---|
public final CachedQuery createQuery(String sql, boolean escapeProcessing, boolean isParameterized, @Nullable String... columnNames) throws SQLException
| |
| createQueryByKey | back to summary |
|---|---|
| public CachedQuery createQueryByKey(Object key) throws SQLException Implements org.
| |
| createQueryKey | back to summary |
|---|---|
public final Object createQueryKey(String sql, boolean escapeProcessing, boolean isParameterized, @Nullable String... columnNames)
| |
| getAutoSave | back to summary |
|---|---|
| public AutoSave getAutoSave() Implements org.
| |
| getBackendPID | back to summary |
|---|---|
| public int getBackendPID() Implements org. Doc from org. Return the process ID (PID) of the backend server process handling this connection.
| |
| getCloseAction | back to summary |
|---|---|
| public Closeable getCloseAction() Implements org. Doc from org. Returns an action that would close the connection cleanly.
The returned object should refer only the minimum subset of objects required
for proper resource cleanup. For instance, it should better not hold a strong reference to
| |
| getDatabase | back to summary |
|---|---|
| public String getDatabase() Implements org.
| |
| getEncoding | back to summary |
|---|---|
| public Encoding getEncoding() Implements org.
| |
| getEscapeSyntaxCallMode | back to summary |
|---|---|
| public EscapeSyntaxCallMode getEscapeSyntaxCallMode() Implements org.
| |
| getHostSpec | back to summary |
|---|---|
| public HostSpec getHostSpec() Implements org.
| |
| getNetworkTimeout | back to summary |
|---|---|
| public int getNetworkTimeout() throws IOException Implements org.
| |
| getNotifications | back to summary |
|---|---|
| public PGNotification[] getNotifications() throws SQLException Implements org. Doc from org. Retrieve and clear the set of asynchronous notifications pending on this connection.
| |
| getParameterStatus | back to summary |
|---|---|
| public final @Nullable String getParameterStatus(String parameterName) Implements org.
| |
| getParameterStatuses | back to summary |
|---|---|
| public final Map Implements org.
| |
| getPreferQueryMode | back to summary |
|---|---|
| public PreferQueryMode getPreferQueryMode() Implements org.
| |
| getQuoteReturningIdentifiers | back to summary |
|---|---|
| public boolean getQuoteReturningIdentifiers() Implements org.
| |
| getServerVersion | back to summary |
|---|---|
| public String getServerVersion() Implements org. Doc from org. Return the server version from the server_version GUC. Note that there's no requirement for this to be numeric or of the form x.y.z. PostgreSQL development releases usually have the format x.ydevel e.g. 9.4devel; betas usually x.ybetan e.g. 9.4beta1. The --with-extra-version configure option may add an arbitrary string to this. Don't use this string for logic, only use it when displaying the server version to the user. Prefer getServerVersionNum() for all logic purposes. | |
| getServerVersionNum | back to summary |
|---|---|
| public int getServerVersionNum() Implements org. Doc from org. Get a machine-readable server version. This returns the value of the server_version_num GUC. If no such GUC exists, it falls back on attempting to parse the text server version for the major version. If there's no minor version (e.g. a devel or beta release) then the minor version is set to zero. If the version could not be parsed, zero is returned.
| |
| getStandardConformingStrings | back to summary |
|---|---|
| public boolean getStandardConformingStrings() Implements org. Doc from org. Returns whether the server treats string-literals according to the SQL standard or if it uses
traditional PostgreSQL escaping rules. Versions up to 8.1 always treated backslashes as escape
characters in string-literals. Since 8.2, this depends on the value of the
| |
| getTransactionState | back to summary |
|---|---|
| public TransactionState getTransactionState() Implements org. Doc from org. Get the current transaction state of this connection.
| |
| getUser | back to summary |
|---|---|
| public String getUser() Implements org.
| |
| getWarnings | back to summary |
|---|---|
| public @Nullable SQLWarning getWarnings() Implements org. Doc from org. Retrieve and clear the chain of warnings accumulated on this connection.
| |
| hasNotifications | back to summary |
|---|---|
| protected boolean hasNotifications() | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements org. Doc from org. Check if this connection is closed.
| |
| isColumnSanitiserDisabled | back to summary |
|---|---|
| public boolean isColumnSanitiserDisabled() Implements org.
| |
| isFlushCacheOnDeallocate | back to summary |
|---|---|
| public boolean isFlushCacheOnDeallocate() | |
| isReWriteBatchedInsertsEnabled | back to summary |
|---|---|
| public boolean isReWriteBatchedInsertsEnabled() Implements org.
| |
| onParameterStatus | back to summary |
|---|---|
| protected void onParameterStatus(String parameterName, String parameterStatus) Update the parameter status map in response to a new ParameterStatus wire protocol message. The server sends ParameterStatus messages when GUC_REPORT settings are initially assigned and whenever they change. A future version may invoke a client-defined listener class at this point, so this should be the only access path. Keys are case-insensitive and case-preserving. The server doesn't provide a way to report deletion of a reportable parameter so we don't expose one here. | |
| releaseQuery | back to summary |
|---|---|
| public void releaseQuery(CachedQuery cachedQuery) Implements org.
| |
| sendCloseMessage | back to summary |
|---|---|
| protected abstract void sendCloseMessage() throws IOException
Deprecated use Sends "terminate connection" message to the backend.
| |
| sendQueryCancel | back to summary |
|---|---|
| public void sendQueryCancel() throws SQLException Implements org. Doc from org. Sends a query cancellation for this connection.
| |
| setAutoSave | back to summary |
|---|---|
| public void setAutoSave(AutoSave autoSave) Implements org.
| |
| setBackendKeyData | back to summary |
|---|---|
| public void setBackendKeyData(int cancelPid, int cancelKey) | |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(Encoding encoding) throws IOException | |
| setFlushCacheOnDeallocate | back to summary |
|---|---|
| public void setFlushCacheOnDeallocate(boolean flushCacheOnDeallocate) Implements org. Doc from org. By default, the connection resets statement cache in case deallocate all/discard all message is observed. This API allows to disable that feature for testing purposes.
| |
| setNetworkTimeout | back to summary |
|---|---|
| public void setNetworkTimeout(int milliseconds) throws IOException Implements org.
| |
| setPreferQueryMode | back to summary |
|---|---|
| public void setPreferQueryMode(PreferQueryMode mode) Implements org. | |
| setServerVersion | back to summary |
|---|---|
| public void setServerVersion(String serverVersion) | |
| setServerVersionNum | back to summary |
|---|---|
| public void setServerVersionNum(int serverVersionNum) | |
| setStandardConformingStrings | back to summary |
|---|---|
| public void setStandardConformingStrings(boolean value) | |
| setTransactionState | back to summary |
|---|---|
| public void setTransactionState(TransactionState state) | |
| willHealOnRetry | back to summary |
|---|---|
| public boolean willHealOnRetry(SQLException e) Implements org.
| |
| willHealViaReparse | back to summary |
|---|---|
| protected boolean willHealViaReparse(SQLException e) | |