1 | public class ProcedureColumnsTab extends BaseProcedureTab↵ | | 1 | public class VersionColumnsTab extends BaseTableTab↵
|
2 | {↵ | | 2 | {↵
|
| | | 3 | ↵
|
3 | /** Internationalized strings for this class. */↵ | | 4 | /** Internationalized strings for this class. */↵
|
4 | private static final StringManager s_stringMgr =↵ | | 5 | private static final StringManager s_stringMgr =↵
|
5 | StringManagerFactory.getStringManager(ProcedureColumnsTab.class);↵ | | 6 | StringManagerFactory.getStringManager(VersionColumnsTab.class);↵
|
6 | ↵ | | 7 | ↵
|
7 | /**↵ | | 8 | /**↵
|
8 | * Return the title for the tab.↵ | | 9 | * Return the title for the tab.↵
|
9 | *↵ | | 10 | *↵
|
10 | * @return The title for the tab.↵ | | 11 | * @return The title for the tab.↵
|
11 | */↵ | | 12 | */↵
|
12 | public String getTitle()↵ | | 13 | public String getTitle()↵
|
13 | {↵ | | 14 | {↵
|
14 | //i18n[ProcedureColumnsTab.title=Columns]↵ | | 15 | //i18n[VersionColumnsTab.title=Versions]↵
|
15 | return s_stringMgr.getString("ProcedureColumnsTab.title");↵ | | 16 | return s_stringMgr.getString("VersionColumnsTab.title");↵
|
16 | }↵ | | 17 | }↵
|
|
17 | /**↵ | | 18 | /**↵
|
18 | * Return the hint for the tab.↵ | | 19 | * Return the hint for the tab.↵
|
19 | *↵ | | 20 | *↵
|
20 | * @return The hint for the tab.↵ | | 21 | * @return The hint for the tab.↵
|
21 | */↵ | | 22 | */↵
|
22 | public String getHint()↵ | | 23 | public String getHint()↵
|
23 | {↵ | | 24 | {↵
|
24 | //i18n[ProcedureColumnsTab.hint=Show columns for the selected procedure] ↵ | | 25 | //i18n[VersionColumnsTab.hint=Show columns that are automatically ↵
|
| | | 26 | //updated when the row is updated]↵
|
25 | return s_stringMgr.getString("ProcedureColumnsTab.hint");↵ | | 27 | return s_stringMgr.getString("VersionColumnsTab.hint");↵
|
26 | }↵ | | 28 | }↵
|
|
27 | /**↵ | | 29 | /**↵
|
28 | * Create the <TT>IDataSet</TT> to be displayed in this tab.↵ | | 30 | * Create the <TT>IDataSet</TT> to be displayed in this tab.↵
|
29 | */↵ | | 31 | */↵
|
30 | protected IDataSet createDataSet() throws DataSetException↵ | | 32 | protected IDataSet createDataSet() throws DataSetException↵
|
31 | {↵ | | 33 | {↵
|
32 | final ISQLConnection conn =↵ | | 34 | final SQLDatabaseMetaData md = ↵
|
33 | getSession().getSQLConnection();↵ | | 35 | getSession().getSQLConnection()↵
|
34 | return conn.getSQLMetaData().getProcedure↵ | | 36 | .getSQLMetaData();↵
|
35 | ColumnsDataSet(getProcedureInfo()) | | 37 | return md.getVersionColumnsDataSet(getTableInfo())
|