| Modifier and Type | Field and Description |
|---|---|
| protected RuntimeProperty | |
| protected RuntimeProperty | |
| protected RuntimeProperty | |
| protected RuntimeProperty | |
| protected long | connectionCreationTimeMillis
The point in time when this connection was created |
| protected RuntimeProperty | |
| private ProfilerEventHandler | eventSink
The event sink to use for profiling |
| protected ExceptionInterceptor | |
| protected RuntimeProperty | |
| protected HostInfo | |
| private final Lock | |
| protected transient Log | log
The logger we're going to use |
| protected RuntimeProperty | |
| protected MessageBuilder | |
| protected static final Log | NULL_LOGGER
Null logger shared by all connections at startup |
| protected PropertySet | |
| protected transient Protocol | |
| protected int | sessionMaxRows
The max-rows setting for current session |
| private TelemetryHandler | telemetryHandler
The telemetry handler to process telemetry operations |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(Session.
SessionEventListener instance.Implements com. Add listener for this session status changes. |
| public void | changeUser(String
DB user name user, String DB user password password, String database name database)Implements com. Re-authenticates as the given user and password |
| public void | forceClose()
Implements com. Clobbers the physical network connection and marks this session as closed. |
| public DataStoreMetadata | |
| public ExceptionInterceptor | |
| public HostInfo | |
| public String | |
| public Log | getLog()
Implements com. Returns the log mechanism that should be used to log information from/for this Session. |
| public <M extends Message> MessageBuilder | |
| public ProfilerEventHandler | getProfilerEventHandler()
Implements com. Returns the current ProfilerEventHandler or initializes a new one if none exists. |
| public PropertySet | |
| public String | getQueryComment()
Implements com. Returns the comment that will be prepended to all statements sent to the server. |
| public String | |
| public SocketAddress | |
| public ServerSession | |
| public Lock | |
| public TelemetryHandler | |
| public long | |
| public boolean | isSetNeededForAutoCommitMode(boolean autoCommitFlag)
Implements com.
|
| public boolean | |
| public void | |
| public void | removeListener(Session.
SessionEventListener instance.Implements com. Remove session listener. |
| public void | setExceptionInterceptor(ExceptionInterceptor exceptionInterceptor)
Implements com.
|
| public void | setQueryComment(String
query comment string comment)Implements com. Sets the comment that will be prepended to all statements sent to the server. |
| public void | setTelemetryHandler(TelemetryHandler telemetryHandler)
Implements com.
|
| public boolean | versionMeetsMinimum(int
major version number major, int minor version number minor, int sub-minor version number subminor)Implements com. Does the version of the MySQL server we are connected to meet the given minimums? |
| autoReconnect | back to summary |
|---|---|
| protected RuntimeProperty<Boolean> autoReconnect | |
| autoReconnectForPools | back to summary |
|---|---|
| protected RuntimeProperty<Boolean> autoReconnectForPools | |
| cacheServerConfiguration | back to summary |
|---|---|
| protected RuntimeProperty<Boolean> cacheServerConfiguration | |
| characterEncoding | back to summary |
|---|---|
| protected RuntimeProperty<String> characterEncoding | |
| connectionCreationTimeMillis | back to summary |
|---|---|
| protected long connectionCreationTimeMillis The point in time when this connection was created | |
| disconnectOnExpiredPasswords | back to summary |
|---|---|
| protected RuntimeProperty<Boolean> disconnectOnExpiredPasswords | |
| eventSink | back to summary |
|---|---|
| private ProfilerEventHandler eventSink The event sink to use for profiling | |
| exceptionInterceptor | back to summary |
|---|---|
| protected ExceptionInterceptor exceptionInterceptor | |
| gatherPerfMetrics | back to summary |
|---|---|
| protected RuntimeProperty<Boolean> gatherPerfMetrics | |
| hostInfo | back to summary |
|---|---|
| protected HostInfo hostInfo | |
| lock | back to summary |
|---|---|
| private final Lock lock | |
| log | back to summary |
|---|---|
| protected transient Log log The logger we're going to use | |
| maintainTimeStats | back to summary |
|---|---|
| protected RuntimeProperty<Boolean> maintainTimeStats | |
| messageBuilder | back to summary |
|---|---|
| protected MessageBuilder<? extends Message> messageBuilder | |
| NULL_LOGGER | back to summary |
|---|---|
| protected static final Log NULL_LOGGER Null logger shared by all connections at startup | |
| propertySet | back to summary |
|---|---|
| protected PropertySet propertySet | |
| protocol | back to summary |
|---|---|
| protected transient Protocol<? extends Message> protocol | |
| sessionMaxRows | back to summary |
|---|---|
| protected int sessionMaxRows The max-rows setting for current session | |
| telemetryHandler | back to summary |
|---|---|
| private TelemetryHandler telemetryHandler The telemetry handler to process telemetry operations | |
| CoreSession | back to summary |
|---|---|
| public CoreSession(HostInfo hostInfo, PropertySet propSet) | |
| addListener | back to summary |
|---|---|
| public void addListener(Session. Implements com. Doc from com. Add listener for this session status changes.
| |
| changeUser | back to summary |
|---|---|
| public void changeUser(String user, String password, String database) Implements com. Doc from com. Re-authenticates as the given user and password | |
| forceClose | back to summary |
|---|---|
| public void forceClose() Implements com. Doc from com. Clobbers the physical network connection and marks this session as closed.
| |
| getDataStoreMetadata | back to summary |
|---|---|
| public DataStoreMetadata getDataStoreMetadata() Implements com.
| |
| getExceptionInterceptor | back to summary |
|---|---|
| public ExceptionInterceptor getExceptionInterceptor() Implements com.
| |
| getHostInfo | back to summary |
|---|---|
| public HostInfo getHostInfo() Implements com.
| |
| getIdentifierQuoteString | back to summary |
|---|---|
| public String getIdentifierQuoteString() Implements com.
| |
| getLog | back to summary |
|---|---|
| public Log getLog() Implements com. Doc from com. Returns the log mechanism that should be used to log information from/for this Session. | |
| getMessageBuilder | back to summary |
|---|---|
| public <M extends Message> MessageBuilder Implements com.
| |
| getProfilerEventHandler | back to summary |
|---|---|
| public ProfilerEventHandler getProfilerEventHandler() Implements com. Doc from com. Returns the current ProfilerEventHandler or initializes a new one if none exists.
| |
| getPropertySet | back to summary |
|---|---|
| public PropertySet getPropertySet() Implements com.
| |
| getQueryComment | back to summary |
|---|---|
| public String getQueryComment() Implements com. Doc from com. Returns the comment that will be prepended to all statements sent to the server. | |
| getQueryTimingUnits | back to summary |
|---|---|
| public String getQueryTimingUnits() Implements com.
| |
| getRemoteSocketAddress | back to summary |
|---|---|
| public SocketAddress getRemoteSocketAddress() Implements com.
| |
| getServerSession | back to summary |
|---|---|
| public ServerSession getServerSession() Implements com.
| |
| getSessionLock | back to summary |
|---|---|
| public Lock getSessionLock() Implements com.
| |
| getTelemetryHandler | back to summary |
|---|---|
| public TelemetryHandler getTelemetryHandler() Implements com.
| |
| getThreadId | back to summary |
|---|---|
| public long getThreadId() Implements com.
| |
| isSetNeededForAutoCommitMode | back to summary |
|---|---|
| public boolean isSetNeededForAutoCommitMode(boolean autoCommitFlag) Implements com.
| |
| isSSLEstablished | back to summary |
|---|---|
| public boolean isSSLEstablished() Implements com.
| |
| quit | back to summary |
|---|---|
| public void quit() Implements com. Doc from com. Log-off of the MySQL server and close the socket.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(Session. Implements com. Doc from com. Remove session listener.
| |
| setExceptionInterceptor | back to summary |
|---|---|
| public void setExceptionInterceptor(ExceptionInterceptor exceptionInterceptor) Implements com.
| |
| setQueryComment | back to summary |
|---|---|
| public void setQueryComment(String comment) 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. | |
| setTelemetryHandler | back to summary |
|---|---|
| public void setTelemetryHandler(TelemetryHandler telemetryHandler) Implements com.
| |
| versionMeetsMinimum | back to summary |
|---|---|
| public boolean versionMeetsMinimum(int major, int minor, int subminor) Implements com. Doc from com. Does the version of the MySQL server we are connected to meet the given minimums?
| |