Class Namespace


  • public class Namespace
    extends java.lang.Object
    Represents a namespace (named schema/catalog pair) with a Database and manages objects defined within.
    • Method Detail

      • getTables

        public java.util.Collection<Table> getTables()
      • locateTable

        public Table locateTable​(Identifier logicalTableName)
        Returns the table with the specified logical table name.
        Parameters:
        logicalTableName - - the logical name of the table
        Returns:
        the table with the specified table name, or null if there is no table with the specified table name.
      • createTable

        public Table createTable​(Identifier logicalTableName,
                                 boolean isAbstract)
        Creates a mapping Table instance.
        Parameters:
        logicalTableName - The logical table name
        Returns:
        the created table.
      • createSequence

        public Sequence createSequence​(Identifier logicalName,
                                       int initialValue,
                                       int increment)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getSequences

        public java.lang.Iterable<Sequence> getSequences()