/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final ISQLConnection conn = getSession().getSQLConnection(); final SQLDatabaseMetaData dmd = conn.getSQLMetaData(); ITableInfo ti = getTableInfo(); if (! "TABLE".equalsIgnoreCase(ti.getType())) { // Frontbase describes it's tables as "BASE TABLE". if (!DialectFactory.isFrontBase(dmd)) { return null; } } ResultSetDataSet rsds = dmd.getIndexInfo(getTableInfo(), indexIndices, true); rsds.next(null); String indexName = (String)rsds.get(1); if (indexName == null) { rsds.removeRow(0); } rsds.resetCursor(); return rsds; }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final ISQLConnection conn = getSession().getSQLConnection(); final SQLDatabaseMetaData dmd = conn.getSQLMetaData(); ITableInfo ti = getTableInfo(); if (! "TABLE".equalsIgnoreCase(ti.getType())) { // Frontbase describes it's tables as "BASE TABLE". if (!DialectFactory.isFrontBase(dmd)) { return null; } } ResultSetDataSet rsds = dmd.getIndexInfo(getTableInfo(), indexIndices, true); rsds.next(null); String indexName = (String)rsds.get(1); if (indexName == null) { rsds.removeRow(0); } rsds.resetCursor(); return rsds; }
_rsds.resetCursor(); _dataSetViewerFindDecorator.getDataSetViewer().show(_rsds, null); initContinueReadChannel(_dataSetViewerFindDecorator); _rsds.resetCursor(); _dataSetViewerFindDecorator.getDataSetViewer().show(_rsds, null); initContinueReadChannel(_dataSetViewerFindDecorator);
_rsds.resetCursor(); _dataSetViewerFindDecorator.getDataSetViewer().show(_rsds, null); initContinueReadChannel(_dataSetViewerFindDecorator); _rsds.resetCursor(); _dataSetViewerFindDecorator.getDataSetViewer().show(_rsds, null); initContinueReadChannel(_dataSetViewerFindDecorator);