public interface CharCollation
| Modifier and Type | Field and Description |
|---|---|
static int |
BINARY_ID
The binary collation.
|
| Modifier and Type | Method and Description |
|---|---|
static CharCollation |
clientCharCollation()
WARNING: this method is internal method in `r2dbc-mysql`, it is UNSTABLE and may change.
|
static CharCollation |
fromId(int id,
ServerVersion version)
Obtain an instance of
CharCollation from the identifier and server version, if not found, it
will fallback to UTF-8. |
int |
getByteSize()
Get the maximum byte width/size of the character collation.
|
Charset |
getCharset()
Get the most suitable character set.
|
int |
getId()
Get the character collation identifier.
|
String |
getName()
Get the name of the character collation.
|
static final int BINARY_ID
int getId()
String getName()
int getByteSize()
Charset getCharset()
Charset.static CharCollation fromId(int id, ServerVersion version)
CharCollation from the identifier and server version, if not found, it
will fallback to UTF-8. (i.e. utf8mb4)id - character collation identifier.version - the version of MySQL server.CharCollation.IllegalArgumentException - if version is null.static CharCollation clientCharCollation()
Copyright © 2018–2023 asyncer.io. All rights reserved.