public final class Capability extends Object
Some flags should not be disabled by driver or always enabled. These flags may have no getter or builder setter, or neither.
| Modifier and Type | Field and Description |
|---|---|
static Capability |
DEFAULT
The default capabilities for a MySQL connection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Capability |
extendMariaDb(long hiCapabilities)
Extends MariaDB capabilities.
|
int |
getBaseBitmap()
Get the lower 32-bits bitmap of
this. |
int |
getExtendBitmap()
Get the higher 32-bits bitmap of
this. |
int |
hashCode() |
boolean |
isCompression()
Checks if any compression enabled.
|
boolean |
isConnectionAttributesAllowed()
Checks if the connection contains connection attributes.
|
boolean |
isConnectWithDatabase()
Checks if the connection will be connected and logon with a database.
|
boolean |
isEofDeprecated()
Checks if server marks EOF message as deprecated.
|
boolean |
isMariaDb()
Checks if the connection is using MariaDB capabilities.
|
boolean |
isMultiStatementsAllowed()
Checks if server supports multiple-statement.
|
boolean |
isPluginAuthAllowed()
Checks if allow authentication plugin type name.
|
boolean |
isProtocol41()
Checks if the connection is using protocol 4.1.
|
boolean |
isSaltSecured()
Checks if server uses more than 8 bytes of salt.
|
boolean |
isSslEnabled()
Checks if the connection enabled SSL.
|
boolean |
isTransactionAllowed()
Checks if server supports transaction.
|
boolean |
isVarIntSizedAuthAllowed()
Checks if allow to use var-integer sized bytes to encode client authentication.
|
boolean |
isZlibCompression()
Checks if zlib compression enabled.
|
boolean |
isZstdCompression()
Checks if zstd compression enabled.
|
static Capability |
of(long capabilities)
Creates a
Capability with capabilities bitmap. |
String |
toString() |
public static final Capability DEFAULT
public boolean isMariaDb()
public boolean isConnectWithDatabase()
public boolean isSslEnabled()
public boolean isProtocol41()
public boolean isVarIntSizedAuthAllowed()
public boolean isPluginAuthAllowed()
public boolean isConnectionAttributesAllowed()
public boolean isMultiStatementsAllowed()
public boolean isEofDeprecated()
public boolean isSaltSecured()
public boolean isTransactionAllowed()
public boolean isCompression()
public boolean isZlibCompression()
public boolean isZstdCompression()
public Capability extendMariaDb(long hiCapabilities)
hiCapabilities - the bitmap of extend capabilities.Capability takes base and extend capabilities.public int getBaseBitmap()
this.public int getExtendBitmap()
this.public static Capability of(long capabilities)
Capability with capabilities bitmap. It will unset all unknown flags.capabilities - the bitmap of capabilities.Capability without unknown flags.Copyright © 2018–2024 asyncer.io. All rights reserved.