Code example for ResultSetMetaData

Methods: getColumnName

0
            throws SQLException 
    { 
        SQLDataHandler handler = m_default;
        if ( m_overrides != null && m_overrides.size() > 0 ) {
            ResultSetMetaData metadata = rset.getMetaData();
            String name = metadata.getColumnName(rcol);
            SQLDataHandler h = 
                (SQLDataHandler)m_overrides.get(name);
            if ( h != null )
                handler = h;
        } 
 
        handler.process(t, trow, rset, rcol);
    } 
 
    /** 
     * @see dartie.prefuse.data.io.sql.SQLDataHandler#getDataType(java.lang.String, int) 
     */ 
    public Class getDataType(String columnName, int sqlType) {
        SQLDataHandler handler = m_default;
        if ( m_overrides != null && m_overrides.size() > 0 ) {