Interface ConstraintNameAware
- All Superinterfaces:
TableNameAware
- All Known Implementing Classes:
Constraint,ForeignKey
Represents an entity that is aware of a database constraint name.
Classes implementing this interface should provide the name of a specific database constraint.
- Since:
- 0.13.3
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the database constraint associated with this entity.Retrieves type of constraint.Methods inherited from interface io.github.mfvanek.pg.model.table.TableNameAware
getTableName
-
Method Details
-
getConstraintName
String getConstraintName()Retrieves the name of the database constraint associated with this entity.- Returns:
- the name of the constraint as a non-null
String.
-
getConstraintType
ConstraintType getConstraintType()Retrieves type of constraint.- Returns:
- type of constraint
- Since:
- 0.15.0
- See Also:
-