public static boolean isColumnNullable ( Connection conn , String table , String column ) throws SQLException { ResultSet rs = getColumnMetaData ( conn , table , column ) ; try { return rs . getString ( "IS_NULLABLE" ) . equals ( "YES" ) ; } finally { rs . close ( ) ; } }
Determines whether or not the specified column accepts null values .