public enum DbColumnConstraint extends Enum<DbColumnConstraint>
Enum Constant and Description |
---|
NOT_NULL
The not null constraint.
|
UNIQUE
The unique constraint.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
translate()
The default translation.
|
static DbColumnConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DbColumnConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DbColumnConstraint UNIQUE
public static final DbColumnConstraint NOT_NULL
public static DbColumnConstraint[] values()
for (DbColumnConstraint c : DbColumnConstraint.values()) System.out.println(c);
public static DbColumnConstraint 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 abstract String translate()
Copyright © 2014 Feedzai. All Rights Reserved.