Class DbTableSpec

java.lang.Object
io.github.mmm.orm.ddl.DbElement
io.github.mmm.orm.ddl.DbTableSpec

public final class DbTableSpec extends DbElement
DbElement for a database table.
  • Constructor Details

    • DbTableSpec

      public DbTableSpec(String name, io.github.mmm.entity.bean.EntityBean entity)
      The constructor.
      Parameters:
      name - the name.
      entity - the EntityBean.
      See Also:
  • Method Details

    • getEntity

      public io.github.mmm.entity.bean.EntityBean getEntity()
      Returns:
      the associated EntityBean. It is strictly forbidden to mutate this object and doing so will cause harm and might be explicitly prevented in future releases.
    • createName

      public String createName(DbNamingStrategy namingStrategy)
      Specified by:
      createName in class DbElement
      Parameters:
      namingStrategy - the DbNamingStrategy.
      Returns:
      the computed constraint name.
    • of

      public static DbTableSpec of(io.github.mmm.entity.bean.EntityBean entity)
      Parameters:
      entity - the EntityBean.
      Returns:
      the corresponding DbTableSpec.