java.lang.Object
com.invirgance.convirgance.jdbc.schema.Schema
All Implemented Interfaces:
NamedSchema

public class Schema extends Object implements NamedSchema
Used when creating logic based on database schema properties. Example: Getting a specific table from a imaginary "unlicensed_users" schema. Or comparing the tables between two different schemas.
Author:
jbanes
  • Method Details

    • getCatalog

      public Catalog getCatalog()
      Returns the table Catalog.
      Returns:
      The Catalog.
    • getName

      public String getName()
      Returns the value Schema's name.
      Specified by:
      getName in interface NamedSchema
      Returns:
      The name.
    • getQuotedName

      public String getQuotedName()
      Description copied from interface: NamedSchema
      Get the schema name of this database object quoted for use in a SQL statement
      Specified by:
      getQuotedName in interface NamedSchema
      Returns:
      name of the object quoted for use in a SQL statement
    • isDefault

      public boolean isDefault()
      Returns if this is the default schema.
      Returns:
      True if default, otherwise false.
    • getTable

      public Table getTable(String name)
      Gets the Table with the provided name (case-insensitive).
      Parameters:
      name - Table name.
      Returns:
      The requested table.
    • getTables

      public Table[] getTables()
      Returns all the Tables in the current Schema.
      Returns:
      An array of Tables.
    • getView

      public View getView(String name)
      Gets the View with the provided name (case-insensitive).
      Parameters:
      name - The View's name.
      Returns:
      The specified View.
    • getViews

      public View[] getViews()
      Gets all the Views of the current schema.
      Returns:
      An array of Views.
    • toString

      public String toString()
      Overrides:
      toString in class Object