public Object getRowData() { if (resultSet == null) { return null; } if (!isRowAvailable()) { throw new IllegalArgumentException(); } try { return new ResultSetMap(String.CASE_INSENSITIVE_ORDER); } catch (SQLException e) { throw new FacesException(); } }
/** * Get the actual data of this row wrapped into a map. The specification is very strict about what has to be * returned from here, so check the spec before modifying anything here. */ @Override public Map<String,Object> getRowData() { if (_resultSet == null) { return null; } else if (!isRowAvailable()) { throw new IllegalArgumentException( "the requested row is not available in the ResultSet - you have scrolled beyond the end."); } try { return new WrapResultSetMap(String.CASE_INSENSITIVE_ORDER); } catch (SQLException e) { throw new FacesException(e); } }
/** Get the actual data of this row * wrapped into a map. * The specification is very strict about what has to be * returned from here, so check the spec before * modifying anything here. */ public Object getRowData() { if (_resultSet == null) { return null; } else if (!isRowAvailable()) { throw new IllegalArgumentException( "the requested row is not available in the ResultSet - you have scrolled beyond the end."); } try { return new WrapResultSetMap(String.CASE_INSENSITIVE_ORDER); } catch (SQLException e) { throw new FacesException(e); } }
public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } if (isUpdated) { updateResultSetIfNeeded(); } int oldIndex = index; index = rowIndex; DataModelListener[] listeners = getDataModelListeners(); if ((oldIndex != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData(); } DataModelEvent event = new DataModelEvent(this, index, rowData); for (int i = 0; i < listeners.length; i++) { listeners[i].rowSelected(event); } } }
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
} else if (!isRowAvailable()) { throw new NoRowAvailableException();
} else if (!isRowAvailable()) { throw new NoRowAvailableException();
} else if (!isRowAvailable()) { throw new NoRowAvailableException();
} else if (!isRowAvailable()) { throw new NoRowAvailableException();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();