public final class ColumnDefinition extends Object
| Modifier and Type | Field and Description |
|---|---|
static short |
BINARY |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isBinary()
Checks if value is binary data.
|
boolean |
isEnum()
Checks if value type is enum.
|
boolean |
isNotNull()
Checks if value is not null.
|
boolean |
isSet()
Checks if value type is set.
|
boolean |
isUnsigned()
Checks if value is an unsigned number.
|
static ColumnDefinition |
of(int definitions)
Creates a
ColumnDefinition with column definitions bitmap. |
static ColumnDefinition |
of(int definitions,
int collationId)
Creates a
ColumnDefinition with column definitions bitmap. |
String |
toString() |
public static final short BINARY
public boolean isNotNull()
public boolean isUnsigned()
Note: IEEE-754 floating types (e.g. DOUBLE/FLOAT) do not supports it in MySQL 8.0+. When creating a column as an unsigned floating type, the server may report a warning.
public boolean isBinary()
public boolean isEnum()
public boolean isSet()
public static ColumnDefinition of(int definitions)
ColumnDefinition with column definitions bitmap. It will unset all unknown or useless
flags.definitions - the column definitions bitmap.ColumnDefinition without unknown or useless flags.public static ColumnDefinition of(int definitions, int collationId)
ColumnDefinition with column definitions bitmap. It will unset all unknown or useless
flags.definitions - the column definitions bitmap.collationId - the collation id.ColumnDefinition without unknown or useless flags.Copyright © 2018–2023 asyncer.io. All rights reserved.