public enum ZeroDateOption extends Enum<ZeroDateOption>
This option indicates special handling when MySQL server returning "zero date".
| Enum Constant and Description |
|---|
EXCEPTION
Just throw a exception when MySQL server return "zero date".
|
USE_NULL
Use
null when MySQL server return "zero date". |
USE_ROUND
Use "round" date (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static ZeroDateOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZeroDateOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZeroDateOption EXCEPTION
Now will throws R2dbcNonTransientResourceException.
public static final ZeroDateOption USE_NULL
null when MySQL server return "zero date".public static final ZeroDateOption USE_ROUND
This option is only for compatibility with certain code and NOT recommended.
public static ZeroDateOption[] values()
for (ZeroDateOption c : ZeroDateOption.values()) System.out.println(c);
public static ZeroDateOption 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–2023 asyncer.io. All rights reserved.