Class DbQualifiedName

java.lang.Object
io.github.mmm.orm.metadata.DbQualifiedName

public final class DbQualifiedName extends Object
A potentially qualified identifier consisting of catalog, schema, and name. The name is always required, while the other attributes can be null. In such case the default values of the database connection will apply.
Since:
1.0.0
  • Constructor Details

    • DbQualifiedName

      public DbQualifiedName(DbName catalog, DbName schema, DbName name)
      The constructor.
      Parameters:
      catalog - the catalog.
      schema - the schema.
      name - the name.
  • Method Details

    • getCatalog

      public DbName getCatalog()
      Returns:
      the DbName of the catalog (a database in the DB server aka cluster) or null for no catalog.
    • getSchema

      public DbName getSchema()
      Returns:
      the DbName of the schema (namespace containing tables) or null for no schema.
    • getName

      public DbName getName()
      Returns:
      the DbName with the local database name. May not be null.
    • hasQualifier

      public boolean hasQualifier()
      Returns:
      true if this DbQualifiedName has a qualifier (catalog or schema), false otherwise (actually unqualified).
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object