Class TabularStructure

java.lang.Object
com.invirgance.convirgance.jdbc.schema.TabularStructure
All Implemented Interfaces:
NamedSchema
Direct Known Subclasses:
Table, View

public class TabularStructure extends Object implements NamedSchema
A way to represent different database schema objects like Tables and Views.
Author:
jbanes
  • Method Details

    • getName

      public String getName()
      Description copied from interface: NamedSchema
      Get the schema name of this database object
      Specified by:
      getName in interface NamedSchema
      Returns:
      name of the object with exact database capitalization
    • 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
    • getSchema

      public Schema getSchema()
      Returns the schema this object is apart of.
      Returns:
      The Schema
    • getType

      public String getType()
      Returns the TABLE_TYPE this object is recognized as.
      Returns:
      A String of the objects table type.
    • getColumn

      public Column getColumn(String name)
      Returns the column with the provided name. For example getting the column for first_names.
      Parameters:
      name - The name of a column.
      Returns:
      The column.
    • getColumns

      public Column[] getColumns()
      Returns all columns of this object.
      Returns:
      Array of Columns.
    • hashCode

      public int hashCode()
      Returns the hash code. Hash-code is retrieved from the record used to create this object.
      Overrides:
      hashCode in class Object
      Returns:
      A integer.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object