public final class ConnectionContext extends Object implements CodecContext
WARNING: Do NOT change any data outside of this project, try to configure ConnectionFactoryOptions or
MySqlConnectionConfiguration to control connection context and client behavior.
| Modifier and Type | Method and Description |
|---|---|
Capability |
getCapability() |
CharCollation |
getClientCollation()
Gets the
CharCollation that the client is using. |
int |
getConnectionId()
Get the connection identifier that is specified by server.
|
int |
getLocalInfileBufferSize()
Gets the local infile buffer size.
|
@Nullable Path |
getLocalInfilePath()
Gets the allowed local infile path.
|
short |
getServerStatuses()
Get the bitmap of server statuses.
|
ServerVersion |
getServerVersion()
Gets the MySQL server version, which is available after database user logon.
|
ZoneId |
getTimeZone()
Gets the
ZoneId of connection. |
ZeroDateOption |
getZeroDateOption()
Gets the option for zero date handling which is set by connection configuration.
|
boolean |
isLockWaitTimeoutSupported()
Checks if the server supports InnoDB lock wait timeout.
|
boolean |
isMariaDb()
Checks server is MariaDB or not.
|
boolean |
isNoBackslashEscapes() |
boolean |
isPreserveInstants()
Checks if the connection is set to preserve instants, i.e.
|
boolean |
isStatementTimeoutSupported()
Checks if the server supports statement timeout.
|
void |
setServerStatuses(short serverStatuses)
Updates server statuses.
|
public int getConnectionId()
public ServerVersion getServerVersion()
CodecContextgetServerVersion in interface CodecContextServerVersion.public Capability getCapability()
public CharCollation getClientCollation()
CodecContextCharCollation that the client is using.getClientCollation in interface CodecContextCharCollation.public boolean isPreserveInstants()
CodecContextisPreserveInstants in interface CodecContextpublic ZoneId getTimeZone()
CodecContextZoneId of connection.getTimeZone in interface CodecContextZoneId.public boolean isMariaDb()
CodecContextisMariaDb in interface CodecContextpublic boolean isNoBackslashEscapes()
public ZeroDateOption getZeroDateOption()
CodecContextgetZeroDateOption in interface CodecContextZeroDateOption.@Nullable public @Nullable Path getLocalInfilePath()
public int getLocalInfileBufferSize()
public boolean isLockWaitTimeoutSupported()
public boolean isStatementTimeoutSupported()
public short getServerStatuses()
public void setServerStatuses(short serverStatuses)
serverStatuses - the bitmap of server statuses.Copyright © 2018–2024 asyncer.io. All rights reserved.