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