public static String getResultSetTypeString(int type) {
        switch (type) {
            case ResultSet.TYPE_FORWARD_ONLY:
                return "TYPE FORWARD ONLY (" + type + ')'; 

            case ResultSet.TYPE_SCROLL_INSENSITIVE:
                return "TYPE SCROLL INSENSITIVE (" + type + ')'; 

            case ResultSet.TYPE_SCROLL_SENSITIVE:
                return "TYPE SCROLL SENSITIVE (" + type + ')'; 

            case TYPE_SS_SCROLL_DYNAMIC: 
                return "TYPE SS SCROLL DYNAMIC (" + type + ')'; 

            case TYPE_SS_DIRECT_FORWARD_ONLY: 
                return "TYPE SS DIRECT FORWARD ONLY (" + type + ')'; 

            case TYPE_SS_SERVER_CURSOR_FORWARD_ONLY: 
                return "TYPE SS SERVER CURSOR FORWARD ONLY (" + type + ')'; 
        }

        return "UNKNOWN RESULT SET TYPE CONSTANT (" + type + ')'; 
    }
public static String getResultSetTypeString ( int type ) { switch ( type ) { case ResultSet . TYPE_FORWARD_ONLY : return "TYPE FORWARD ONLY (" + type + ')' ; case ResultSet . TYPE_SCROLL_INSENSITIVE : return "TYPE SCROLL INSENSITIVE (" + type + ')' ; case ResultSet . TYPE_SCROLL_SENSITIVE : return "TYPE SCROLL SENSITIVE (" + type + ')' ; case TYPE_SS_SCROLL_DYNAMIC : return "TYPE SS SCROLL DYNAMIC (" + type + ')' ; case TYPE_SS_DIRECT_FORWARD_ONLY : return "TYPE SS DIRECT FORWARD ONLY (" + type + ')' ; case TYPE_SS_SERVER_CURSOR_FORWARD_ONLY : return "TYPE SS SERVER CURSOR FORWARD ONLY (" + type + ')' ; } return "UNKNOWN RESULT SET TYPE CONSTANT (" + type + ')' ; }
Display the java.sql.ResultSet result set type constant corresponding to the value
supplied.

@param level a valid java.sql.ResultSet result set type constant.

@return the name of the constant, or a string indicating the constant is unknown.