Class AbstractCatalog

    • Constructor Detail

      • AbstractCatalog

        public AbstractCatalog​(String name,
                               String defaultDatabase)
    • Method Detail

      • getName

        public String getName()
      • getDefaultDatabase

        public String getDefaultDatabase()
        Description copied from interface: Catalog
        Get the name of the default database for this catalog. The default database will be the current database for the catalog when user's session doesn't specify a current database. The value probably comes from configuration, will not change for the life time of the catalog instance.

        If the default database is null, users will need to set a current database themselves or qualify identifiers at least with the database name when using the catalog.

        Specified by:
        getDefaultDatabase in interface Catalog
        Returns:
        the name of the current database