Class DbElement

java.lang.Object
io.github.mmm.orm.ddl.DbElement
Direct Known Subclasses:
DbColumnSpec, DbConstraint, DbTableSpec

public abstract class DbElement extends Object
Abstract base class for a database DDL element such as a table, column or constraint.
  • Field Details

  • Constructor Details

    • DbElement

      public DbElement(String name)
      The constructor.
      Parameters:
      name - the name.
  • Method Details

    • getName

      public String getName()
      Returns:
      the name of the predicate (e.g. "FK_Person_Order").
    • hasName

      public boolean hasName()
      Returns:
      true if this constraint has an explicit name.
    • createName

      public abstract String createName(DbNamingStrategy namingStrategy)
      Parameters:
      namingStrategy - the DbNamingStrategy.
      Returns:
      the computed constraint name.