Class Database


  • public class Database
    extends Object
    • Method Detail

      • getDialect

        public Dialect getDialect()
      • toIdentifier

        public Identifier toIdentifier​(String text)
        Wrap the raw name of a database object in it's Identifier form accounting for quoting from any of:
        • explicit quoting in the name itself
        • global request to quote all identifiers

        NOTE : quoting from database keywords happens only when building physical identifiers

        Parameters:
        text - The raw object name
        Returns:
        The wrapped Identifier form
      • getDefaultNamespace

        public Namespace getDefaultNamespace()
        Returns:
        The default namespace, with a null catalog and schema which will have to be interpreted with defaults at runtime.
        See Also:
        SqlStringGenerationContext
      • getPhysicalImplicitNamespaceName

        public Namespace.Name getPhysicalImplicitNamespaceName()
        Returns:
        The implicit name of the default namespace, with a null catalog and schema which will have to be interpreted with defaults at runtime.
        See Also:
        SqlStringGenerationContext
      • adjustDefaultNamespace

        public Namespace adjustDefaultNamespace​(String implicitCatalogName,
                                                String implicitSchemaName)
      • addAuxiliaryDatabaseObject

        public void addAuxiliaryDatabaseObject​(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
      • addInitCommand

        public void addInitCommand​(InitCommand initCommand)