public static enum ServerConfig.DbUuid extends Enum<ServerConfig.DbUuid>
| Enum Constant and Description |
|---|
AUTO_BINARY
Store using native UUID in H2 and Postgres and otherwise fallback to BINARY(16).
|
AUTO_VARCHAR
Store using native UUID in H2 and Postgres and otherwise fallback to VARCHAR(40).
|
BINARY
Store using DB BINARY(16).
|
VARCHAR
Store using DB VARCHAR(40).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
useBinary()
Return true if BINARY(16) storage is preferred over VARCHAR(40).
|
boolean |
useNativeType()
Return true if native UUID type is preferred.
|
static ServerConfig.DbUuid |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerConfig.DbUuid[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConfig.DbUuid AUTO_VARCHAR
public static final ServerConfig.DbUuid AUTO_BINARY
public static final ServerConfig.DbUuid VARCHAR
public static final ServerConfig.DbUuid BINARY
public static ServerConfig.DbUuid[] values()
for (ServerConfig.DbUuid c : ServerConfig.DbUuid.values()) System.out.println(c);
public static ServerConfig.DbUuid 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 nullpublic boolean useNativeType()
public boolean useBinary()
Copyright © 2016. All rights reserved.