Code example for ResultSetMetaData

Methods: getColumnCount

0
 
    @Override 
    public int getColumnCount() { 
        try { 
            ResultSetMetaData metaData = rs.getMetaData();
            return metaData.getColumnCount();
        } catch (SQLException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    @Override 
    public byte[] getBlob(int columnIndex) {
        try { 
            return rs.getBytes(columnIndex);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    @Override