Module io.github.mmm.entity.bean
Class NotNullConstraint
- java.lang.Object
-
- io.github.mmm.entity.bean.sql.constraint.Constraint
-
- io.github.mmm.entity.bean.sql.constraint.NotNullConstraint
-
public final class NotNullConstraint extends Constraint
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description NotNullConstraint(io.github.mmm.property.ReadableProperty<?> column)The constructor.NotNullConstraint(String name, io.github.mmm.value.PropertyPath<?> column)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()-
Methods inherited from class io.github.mmm.entity.bean.sql.constraint.Constraint
createName, createName, getColumns, getName, toString, toString, toStringColumns
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
Type"NOT NULL".- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
Suggested prefix for thename: "NN_".- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein classConstraint- Returns:
- the type of this
Constraint(e.g. "CHECK" or "FOREIGN KEY").
-
-