Пример #1
0
 /** 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);
   }
 }
Пример #2
0
    @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);
            }
          });
    }