| Modifier and Type | Field and Description |
|---|---|
| private transient Timer | |
| private NativeMessageBuilder | |
| private Throwable | forceClosedReason
Why was this session implicitly closed, if known? |
| private boolean | isClosed
Has this session been closed? |
| private long | lastQueryFinishedTime
When did the last query finish? |
| private CopyOnWriteArrayList | |
| private boolean | needsPing
Does this connection need to be tested? |
| private String | queryComment
The comment (if any) to prepend to all queries sent to the server (to show up in "SHOW PROCESSLIST") |
| private static final long | |
| private static final String | |
| private CacheAdapter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(Session.
SessionEventListener instance.Overrides com. Implements com. Add listener for this session status changes. |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public < extends T extends Resultset> TResultset | Returns: a ResultSet holding the resultsQuery objectthe SQL statement to be executed query, int rows limit maxRows, NativePacketPayload packet, boolean whether a stream result should be created streamResults, ProtocolEntityFactory<T, NativePacketPayload> resultSetFactory, ColumnDefinition use this metadata instead of the one provided on wire cachedMetadata, boolean is it a batch query isBatch)Send a query to the server. |
| private String | |
| public void | forceClose()
Overrides com. Implements com. Clobbers the physical network connection and marks this session as closed. |
| public Timer | |
| public int | |
| public long | |
| public long | |
| public Throwable | |
| public String | |
| public long | |
| public InputStream | |
| public NetworkResources | |
| public String | |
| public NativeProtocol | |
| public String | getQueryComment()
Overrides com. Implements com. Returns the comment that will be prepended to all statements sent to the server. |
| public SocketAddress | |
| public int | |
| public NativePacketPayload | Returns: A packet to send data withReturns the packet used for sending data (used by PreparedStatement) with position set to 0. |
| public long | |
| public int | |
| public boolean | |
| public void | |
| protected void | |
| public <T extends Resultset> T | invokeQueryInterceptorsPost(Supplier<String> sql, Query interceptedQuery, T originalResultSet, boolean forceExecute)
|
| public <T extends Resultset> T | |
| protected void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isSetNeededForAutoCommitMode(boolean autoCommitFlag)
Overrides com. Implements com.
|
| public boolean | isSSLEstablished()
Overrides com. Implements com.
|
| public void | loadServerVariables(Lock
synchronization lock lock, String driver version string version)Loads pertinent server variables so that the driver can configure itself. |
| public void | |
| public String | Returns: server variable valueserver variable name varName)Get the variable value from server. |
| public void | quit()
Overrides com. Implements com. Log-off of the MySQL server and close the socket. |
| public void | removeListener(Session.
SessionEventListener instance.Overrides com. Implements com. Remove session listener. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setQueryComment(String
query comment string comment)Overrides com. Implements com. Sets the comment that will be prepended to all statements sent to the server. |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | |
| public void |
| cancelTimer | back to summary |
|---|---|
| private transient Timer cancelTimer | |
| commandBuilder | back to summary |
|---|---|
| private NativeMessageBuilder commandBuilder | |
| forceClosedReason | back to summary |
|---|---|
| private Throwable forceClosedReason Why was this session implicitly closed, if known? (for diagnostics) | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed Has this session been closed? | |
| lastQueryFinishedTime | back to summary |
|---|---|
| private long lastQueryFinishedTime When did the last query finish? | |
| listeners | back to summary |
|---|---|
| private CopyOnWriteArrayList<WeakReference<Session. | |
| needsPing | back to summary |
|---|---|
| private boolean needsPing Does this connection need to be tested? | |
| queryComment | back to summary |
|---|---|
| private String queryComment The comment (if any) to prepend to all queries sent to the server (to show up in "SHOW PROCESSLIST") | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SERVER_VERSION_STRING_VAR_NAME | back to summary |
|---|---|
| private static final String SERVER_VERSION_STRING_VAR_NAME | |
| serverConfigCache | back to summary |
|---|---|
| private CacheAdapter<String, Map<String, String>> serverConfigCache | |
| NativeSession | back to summary |
|---|---|
| public NativeSession(HostInfo hostInfo, PropertySet propSet) | |
| addListener | back to summary |
|---|---|
| public void addListener(Session. Overrides com. Implements com. Doc from com. Add listener for this session status changes.
| |
| checkClosed | back to summary |
|---|---|
| public void checkClosed() | |
| clearInputStream | back to summary |
|---|---|
| public void clearInputStream() | |
| connect | back to summary |
|---|---|
| public void connect(HostInfo hi, String user, String password, String database, int loginTimeout, TransactionEventHandler transactionManager) throws IOException | |
| createConfigCacheIfNeeded | back to summary |
|---|---|
| private void createConfigCacheIfNeeded(Lock lock) | |
| disableMultiQueries | back to summary |
|---|---|
| public void disableMultiQueries() | |
| dumpPacketRingBuffer | back to summary |
|---|---|
| public void dumpPacketRingBuffer() | |
| enableMultiQueries | back to summary |
|---|---|
| public void enableMultiQueries() | |
| execSQL | back to summary |
|---|---|
| public <T extends Resultset> T execSQL(Query callingQuery, String query, int maxRows, NativePacketPayload packet, boolean streamResults, ProtocolEntityFactory<T, NativePacketPayload> resultSetFactory, ColumnDefinition cachedMetadata, boolean isBatch) Send a query to the server. Returns one of the ResultSet objects. To ensure that Statement's queries are serialized, calls to this method should be enclosed in a connection locked block.
| |
| findProcessHost | back to summary |
|---|---|
| private String findProcessHost(long threadId) | |
| forceClose | back to summary |
|---|---|
| public void forceClose() Overrides com. Implements com. Doc from com. Clobbers the physical network connection and marks this session as closed.
| |
| getCancelTimer | back to summary |
|---|---|
| public Timer getCancelTimer() | |
| getCommandCount | back to summary |
|---|---|
| public int getCommandCount() | |
| getConnectionCreationTimeMillis | back to summary |
|---|---|
| public long getConnectionCreationTimeMillis() | |
| getCurrentTimeNanosOrMillis | back to summary |
|---|---|
| public long getCurrentTimeNanosOrMillis() | |
| getForceClosedReason | back to summary |
|---|---|
| public Throwable getForceClosedReason() | |
| getIdentifierQuoteString | back to summary |
|---|---|
| public String getIdentifierQuoteString() Overrides com. Implements com.
| |
| getIdleFor | back to summary |
|---|---|
| public long getIdleFor() | |
| getLocalInfileInputStream | back to summary |
|---|---|
| public InputStream getLocalInfileInputStream() | |
| getNetworkResources | back to summary |
|---|---|
| public NetworkResources getNetworkResources() | |
| getProcessHost | back to summary |
|---|---|
| public String getProcessHost() Implements com.
| |
| getProtocol | back to summary |
|---|---|
| public NativeProtocol getProtocol() | |
| getQueryComment | back to summary |
|---|---|
| public String getQueryComment() Overrides com. Implements com. Doc from com. Returns the comment that will be prepended to all statements sent to the server. | |
| getRemoteSocketAddress | back to summary |
|---|---|
| public SocketAddress getRemoteSocketAddress() Overrides com. Implements com.
| |
| getSessionMaxRows | back to summary |
|---|---|
| public int getSessionMaxRows() | |
| getSharedSendPacket | back to summary |
|---|---|
| public NativePacketPayload getSharedSendPacket() Returns the packet used for sending data (used by PreparedStatement) with position set to 0.
| |
| getSlowQueryThreshold | back to summary |
|---|---|
| public long getSlowQueryThreshold() | |
| getSocketTimeout | back to summary |
|---|---|
| public int getSocketTimeout() | |
| hadWarnings | back to summary |
|---|---|
| public boolean hadWarnings() | |
| invokeCleanupListeners | back to summary |
|---|---|
| public void invokeCleanupListeners(Throwable whyCleanedUp) | |
| invokeNormalCloseListeners | back to summary |
|---|---|
| protected void invokeNormalCloseListeners() | |
| invokeQueryInterceptorsPost | back to summary |
|---|---|
| public <T extends Resultset> T invokeQueryInterceptorsPost(Supplier<String> sql, Query interceptedQuery, T originalResultSet, boolean forceExecute) | |
| invokeQueryInterceptorsPre | back to summary |
|---|---|
| public <T extends Resultset> T invokeQueryInterceptorsPre(Supplier<String> sql, Query interceptedQuery, boolean forceExecute) | |
| invokeReconnectListeners | back to summary |
|---|---|
| protected void invokeReconnectListeners() | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements com.
| |
| isNeedsPing | back to summary |
|---|---|
| public boolean isNeedsPing() | |
| isServerLocal | back to summary |
|---|---|
| public boolean isServerLocal(Session sess) | |
| isSetNeededForAutoCommitMode | back to summary |
|---|---|
| public boolean isSetNeededForAutoCommitMode(boolean autoCommitFlag) Overrides com. Implements com.
| |
| isSSLEstablished | back to summary |
|---|---|
| public boolean isSSLEstablished() Overrides com. Implements com.
| |
| loadServerVariables | back to summary |
|---|---|
| public void loadServerVariables(Lock lock, String version) Loads pertinent server variables so that the driver can configure itself. | |
| ping | back to summary |
|---|---|
| public void ping(boolean checkForClosedConnection, int timeoutMillis) | |
| queryServerVariable | back to summary |
|---|---|
| public String queryServerVariable(String varName) Get the variable value from server. | |
| quit | back to summary |
|---|---|
| public void quit() Overrides com. Implements com. Doc from com. Log-off of the MySQL server and close the socket.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(Session. Overrides com. Implements com. Doc from com. Remove session listener.
| |
| resetSessionState | back to summary |
|---|---|
| public void resetSessionState() | |
| setConnectionCreationTimeMillis | back to summary |
|---|---|
| public void setConnectionCreationTimeMillis(long connectionCreationTimeMillis) | |
| setForceClosedReason | back to summary |
|---|---|
| public void setForceClosedReason(Throwable forceClosedReason) | |
| setLocalInfileInputStream | back to summary |
|---|---|
| public void setLocalInfileInputStream(InputStream stream) | |
| setNeedsPing | back to summary |
|---|---|
| public void setNeedsPing(boolean needsPing) | |
| setQueryComment | back to summary |
|---|---|
| public void setQueryComment(String comment) Overrides com. Implements com. Doc from com. Sets the comment that will be prepended to all statements sent to the server. Do not use slash-star or star-slash tokens in the comment as these will be added by the driver itself. | |
| setQueryInterceptors | back to summary |
|---|---|
| public void setQueryInterceptors(List<QueryInterceptor> queryInterceptors) | |
| setSessionMaxRows | back to summary |
|---|---|
| public void setSessionMaxRows(int sessionMaxRows) | |
| setSessionVariables | back to summary |
|---|---|
| public void setSessionVariables() | |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(int milliseconds) | |
| shouldIntercept | back to summary |
|---|---|
| public boolean shouldIntercept() | |
| shutdownServer | back to summary |
|---|---|
| public void shutdownServer() Used by MiniAdmin to shutdown a MySQL server | |