public interface MySqlNativeTypeMetadata
MySqlReadableMetadata.getNativeTypeMetadata()| Modifier and Type | Method and Description |
|---|---|
int |
getTypeId()
Gets the native type identifier, e.g.
|
boolean |
isBinary()
Checks if the value is binary data.
|
boolean |
isEnum()
Checks if the value type is enum.
|
boolean |
isNotNull()
Checks if the value is not null.
|
boolean |
isSet()
Checks if the value type is set.
|
boolean |
isUnsigned()
Checks if the value is an unsigned number.
|
int getTypeId()
3 for INT.
Note: It can not check if the current type is unsigned or not, and some types will use the same
identifier. e.g. TEXT and BLOB are using 252.
boolean isNotNull()
boolean isUnsigned()
Note: IEEE-754 floating types (e.g. DOUBLE/FLOAT) do not support it in MySQL 8.0+. When creating a column as an unsigned floating type, the server may report a warning.
boolean isBinary()
boolean isEnum()
boolean isSet()
Copyright © 2018–2024 asyncer.io. All rights reserved.