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

public class Column extends Object implements NamedSchema
Represents a column in a table. Can be used to create logic that depends on column metadata like data-type, null-ability or parent. You can get this object through DatabaseSchemaLayout.getAllStructures() and use the returned array then calling TabularStructure.getColumn(name).
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
    • getParent

      public TabularStructure getParent()
      Returns the parent object of this, like a view or table.
      Returns:
      TabularStructure
    • isNullable

      public boolean isNullable()
      Returns if this column can store null values.
      Returns:
      True if null values are allowed.
    • getType

      public String getType()
      Returns the column's data type.
      Returns:
      A String representing the data type.
    • getJDBCType

      public JDBCType getJDBCType()
      Returns the JDBCType (data-type) for this column.
      Returns:
      The JDBCType.
    • getTypeClass

      public Class getTypeClass()
      Returns the Object class that this column stores.
      Returns:
      A Class.
    • getDefault

      public Object getDefault()
      The default value for this column Example: if the column is of type DATE, and CURRENT_DATE is set as the default value.
      Returns:
      Object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object