Class DB_Table


  • public class DB_Table
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.sql.PreparedStatement getAutoIncStmt  
      private static java.sql.PreparedStatement getColumnInfoStmt  
      private static java.sql.PreparedStatement getColumnTypeStmt  
    • Constructor Summary

      Constructors 
      Constructor Description
      DB_Table()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String createColumn​(java.lang.String colName, java.lang.String tableId, int colNum)  
      static void doTables​(java.sql.Connection conn, java.util.HashMap tableIdToNameMap)  
      static boolean reinstateAutoIncrement​(java.lang.String colName, java.lang.String tableId, java.lang.StringBuffer colDef)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • getColumnInfoStmt

        private static java.sql.PreparedStatement getColumnInfoStmt
      • getColumnTypeStmt

        private static java.sql.PreparedStatement getColumnTypeStmt
      • getAutoIncStmt

        private static java.sql.PreparedStatement getAutoIncStmt
    • Constructor Detail

      • DB_Table

        public DB_Table()
    • Method Detail

      • doTables

        public static void doTables​(java.sql.Connection conn,
                                    java.util.HashMap tableIdToNameMap)
                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • createColumn

        private static java.lang.String createColumn​(java.lang.String colName,
                                                     java.lang.String tableId,
                                                     int colNum)
                                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • reinstateAutoIncrement

        public static boolean reinstateAutoIncrement​(java.lang.String colName,
                                                     java.lang.String tableId,
                                                     java.lang.StringBuffer colDef)
                                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException