Class Table

  • All Implemented Interfaces:
    java.lang.Comparable<Table>

    public class Table
    extends java.lang.Object
    implements java.lang.Comparable<Table>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.logging.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      Table​(java.lang.String tableCatalog, java.lang.String tableSchema, java.lang.String tableName, java.lang.String tableType, java.lang.String remarks, java.lang.String typeCatalog, java.lang.String typeSchema, java.lang.String typeName, java.lang.String selfReferenceColName, java.lang.String referenceGeneration)  
    • Field Detail

      • LOGGER

        public static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • Table

        public Table​(java.lang.String tableCatalog,
                     java.lang.String tableSchema,
                     java.lang.String tableName,
                     java.lang.String tableType,
                     java.lang.String remarks,
                     java.lang.String typeCatalog,
                     java.lang.String typeSchema,
                     java.lang.String typeName,
                     java.lang.String selfReferenceColName,
                     java.lang.String referenceGeneration)
    • Method Detail

      • getTables

        public static java.util.Collection<Table> getTables​(java.sql.DatabaseMetaData metaData)
                                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getColumns

        public void getColumns​(java.sql.DatabaseMetaData metaData)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getIndices

        public void getIndices​(java.sql.DatabaseMetaData metaData,
                               boolean approximate)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getPrimaryKey

        public void getPrimaryKey​(java.sql.DatabaseMetaData metaData)
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • compareTo

        public int compareTo​(Table o)
        Specified by:
        compareTo in interface java.lang.Comparable<Table>
      • add

        public boolean add​(Column column)
      • contains

        public boolean contains​(Column column)
      • containsIndexKey

        public boolean containsIndexKey​(java.lang.String indexName)
      • get

        public Index get​(java.lang.String indexName)
      • 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