this.resultSet = resultSet; try { this.rowSetMetaData = new ResultSetWrappingSqlRowSetMetaData(resultSet.getMetaData());
@Override public String[] getColumnNames() throws InvalidResultSetAccessException { if (this.columnNames == null) { this.columnNames = new String[getColumnCount()]; for (int i = 0; i < getColumnCount(); i++) { this.columnNames[i] = getColumnName(i + 1); } } return this.columnNames; }
public String[] getColumnNames() throws InvalidResultSetAccessException { if (this.columnNames == null) { this.columnNames = new String[getColumnCount()]; for (int i = 0; i < getColumnCount(); i++) { this.columnNames[i] = getColumnName(i + 1); } } return this.columnNames; }
public ResultSetWrappingSqlRowSet(ResultSet resultSet) throws InvalidResultSetAccessException { this.resultSet = resultSet; try { this.rowSetMetaData = new ResultSetWrappingSqlRowSetMetaData(resultSet.getMetaData()); } catch (SQLException se) { throw new InvalidResultSetAccessException(se); } try { ResultSetMetaData rsmd = resultSet.getMetaData(); if (rsmd != null) { int columnCount = rsmd.getColumnCount(); this.columnLabelMap = new HashMap<String, Integer>(columnCount); for (int i = 1; i <= columnCount; i++) { this.columnLabelMap.put(rsmd.getColumnLabel(i), i); } } else { this.columnLabelMap = Collections.emptyMap(); } } catch (SQLException se) { throw new InvalidResultSetAccessException(se); } }
@Override public String[] getColumnNames() throws InvalidResultSetAccessException { if (this.columnNames == null) { this.columnNames = new String[getColumnCount()]; for (int i = 0; i < getColumnCount(); i++) { this.columnNames[i] = getColumnName(i + 1); } } return this.columnNames; }
this.resultSet = resultSet; try { this.rowSetMetaData = new ResultSetWrappingSqlRowSetMetaData(resultSet.getMetaData());
this.resultSet = resultSet; try { this.rowSetMetaData = new ResultSetWrappingSqlRowSetMetaData(resultSet.getMetaData());