java.lang.Object
io.github.mmm.orm.ddl.DbElement
- Direct Known Subclasses:
DbColumnSpec,DbConstraint,DbTableSpec
Abstract base class for a database DDL element such as a table,
column or constraint.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringcreateName(DbNamingStrategy namingStrategy) getName()booleanhasName()
-
Field Details
-
name
- See Also:
-
-
Constructor Details
-
DbElement
The constructor.- Parameters:
name- thename.
-
-
Method Details
-
getName
- Returns:
- the name of the predicate (e.g. "FK_Person_Order").
-
hasName
public boolean hasName()- Returns:
trueif this constraint has an explicit name.
-
createName
- Parameters:
namingStrategy- theDbNamingStrategy.- Returns:
- the computed
constraintname.
-