question: public static String formatType ( Connection conn , int pgType , int typeMod ) throws SQLException { PreparedStatement prep = conn . prepareStatement ( "select typname from pg_catalog.pg_type where oid = ? and typtypmod = ?" ) ; prep . setInt ( 1 , pgType ) ; prep . setInt ( 2 , typeMod ) ; ResultSet rs = prep . executeQuery ( ) ; if ( rs . next ( ) ) { return rs . getString ( 1 ) ; } return null ; }
target:  Check if the current session has access to this table. This method is called by the database.