@Immutable public enum PredefinedMapping extends java.lang.Enum<PredefinedMapping> implements TypeMapping
Enum Constant and Description |
---|
MYSQL_5_7 |
POSTGRESQL_10_1 |
Modifier and Type | Method and Description |
---|---|
io.spine.type.TypeName |
typeNameFor(Type type)
Obtains the name of the specified
Type . |
static PredefinedMapping |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PredefinedMapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PredefinedMapping MYSQL_5_7
public static final PredefinedMapping POSTGRESQL_10_1
public static PredefinedMapping[] values()
for (PredefinedMapping c : PredefinedMapping.values()) System.out.println(c);
public static PredefinedMapping valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic io.spine.type.TypeName typeNameFor(Type type)
TypeMapping
Type
.typeNameFor
in interface TypeMapping
type
- the type to get the name