Class Schema

    • Constructor Detail

      • Schema

        public Schema()
        Default constructor.
      • Schema

        @Deprecated
        public Schema​(String name,
                      SchemaGroup group)
        Deprecated.
        Constructor.
        Parameters:
        name - the schema name, if any
        group - the schema's owning group
    • Method Detail

      • getSchemaGroup

        public SchemaGroup getSchemaGroup()
        Return the schema's group.
      • getName

        @Deprecated
        public String getName()
        Deprecated.
        Return the name of the schema, or null if none.
      • setName

        @Deprecated
        public void setName​(String name)
        Deprecated.
        Set the name of the schema. This method can only be used for schemas not attached to a group.
      • setIdentifier

        public void setIdentifier​(DBIdentifier name)
      • getTables

        public Table[] getTables()
        Return the schema's tables.
      • getTable

        @Deprecated
        public Table getTable​(String name)
        Deprecated.
        Return the table with the given name, or null if none.
      • addTable

        @Deprecated
        public Table addTable​(String name,
                              String validName)
        Deprecated.
        Add a table with a shortened (i.e., validated) name to the schema
      • removeTable

        public boolean removeTable​(Table tab)
        Remove the given table from the schema.
        Returns:
        true if the table was removed, false if not in the schema
      • importTable

        public Table importTable​(Table table)
        Import a table from another schema. Note that this method does not import foreign keys, indexes, or unique constraints.
      • getSequences

        public Sequence[] getSequences()
        Return the schema's sequences.
      • getSequence

        @Deprecated
        public Sequence getSequence​(String name)
        Deprecated.
        Return the sequence with the given name, or null if none.
      • removeSequence

        public boolean removeSequence​(Sequence seq)
        Remove the given sequence from the schema.
        Returns:
        true if the sequence was removed, false if not in the schema
      • importSequence

        public Sequence importSequence​(Sequence seq)
        Import a sequence from another schema.