public class DefaultColumnConstraint
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
defaultText |
protected boolean |
isExpression |
| Constructor and Description |
|---|
DefaultColumnConstraint(boolean isExpression,
java.lang.String defaultText) |
DefaultColumnConstraint(DEFAULT defaultAnnotation)
Configurator would parse this annotation in following order: Fetching DEFAULT.expression(), if not set (default value) than
next step, otherwise creating DEFAULT constraint with this expression. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
protected final boolean isExpression
protected final java.lang.String defaultText
public DefaultColumnConstraint(boolean isExpression,
java.lang.String defaultText)
public DefaultColumnConstraint(DEFAULT defaultAnnotation)
DEFAULT.expression(), if not set (default value) than
next step, otherwise creating DEFAULT constraint with this expression.
DEFAULT.literalValue(), if not set (default value)
than next step, otherwise creating DEFAULT constraint with this value.
DEFAULT.predefinedLiteralValue(), if not set
(default value) than next step, otherwise using one of predefined literals such as TRUE or
CURRENT_DATE defined in LiteralValues.
DEFAULT.signedInteger(), if not set than would be
created DEFAULT constraint with value 0 (DEFAULT 0)defaultAnnotation - annotation to process