@WritingConverter public static enum MySqlDialect.BooleanToByteConverter extends Enum<MySqlDialect.BooleanToByteConverter> implements Converter<Boolean,Byte>
Booleans to their Byte representation. MySQL does not have a built-in
boolean type by default, so relies on using a byte instead. true maps to 1.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Byte |
convert(Boolean s) |
static MySqlDialect.BooleanToByteConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySqlDialect.BooleanToByteConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySqlDialect.BooleanToByteConverter INSTANCE
public static MySqlDialect.BooleanToByteConverter[] values()
for (MySqlDialect.BooleanToByteConverter c : MySqlDialect.BooleanToByteConverter.values()) System.out.println(c);
public static MySqlDialect.BooleanToByteConverter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.