예제 #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);
            }
          });
    }