/** Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final SQLConnection conn = getSession().getSQLConnection(); try { final ResultSet rs = conn.getSQLMetaData().getExportedKeys(getTableInfo()); final ResultSetDataSet rsds = new ResultSetDataSet(); rsds.setResultSet(rs, getSession().getProperties().getLargeResultSetObjectInfo()); return rsds; } catch (SQLException ex) { throw new DataSetException(ex); } }
@Override public void sqlResultSetAvailable( ResultSetWrapper rs, final SQLExecutionInfo info, final IDataSetUpdateableTableModel model) throws DataSetException { final ResultSetDataSet rsds = new ResultSetDataSet(); rsds.setResultSet(rs.getResultSet(), _dialectType); GUIUtils.processOnSwingEventThread( new Runnable() { public void run() { updateExplainTab(info, model, rsds); } }); }