Class DB_Key


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

      Fields 
      Modifier and Type Field Description
      private static java.sql.PreparedStatement getReferenceCols  
      private static boolean printedHeader  
    • Constructor Summary

      Constructors 
      Constructor Description
      DB_Key()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void createKeysFrom​(java.sql.ResultSet rs)  
      private static java.lang.StringBuffer createKeyString​(java.lang.String tableId, java.lang.String tableName, java.sql.ResultSet aKey)  
      static void doKeys​(java.sql.Connection conn)  
      private static java.lang.String expandKeyType​(char keyType)  
      (package private) static void makeDeferredClauses​(java.lang.StringBuffer buffer, java.sql.ResultSet constraint, int stateColumn)  
      private static java.lang.String makeFKReferenceClause​(java.lang.String constraintId, char deleteChar, char updateChar)  
      private static void printHeader()  
      • Methods inherited from class java.lang.Object

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

      • getReferenceCols

        private static java.sql.PreparedStatement getReferenceCols
      • printedHeader

        private static boolean printedHeader
    • Constructor Detail

      • DB_Key

        public DB_Key()
    • Method Detail

      • doKeys

        public static void doKeys​(java.sql.Connection conn)
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • createKeysFrom

        private static void createKeysFrom​(java.sql.ResultSet rs)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • createKeyString

        private static java.lang.StringBuffer createKeyString​(java.lang.String tableId,
                                                              java.lang.String tableName,
                                                              java.sql.ResultSet aKey)
                                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • expandKeyType

        private static java.lang.String expandKeyType​(char keyType)
      • makeFKReferenceClause

        private static java.lang.String makeFKReferenceClause​(java.lang.String constraintId,
                                                              char deleteChar,
                                                              char updateChar)
                                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • makeDeferredClauses

        static void makeDeferredClauses​(java.lang.StringBuffer buffer,
                                        java.sql.ResultSet constraint,
                                        int stateColumn)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • printHeader

        private static void printHeader()