1 | public class StringFunctionsTab extends BaseDataSetTab↵ | | 1 | public class SystemFunctionsTab extends BaseDataSetTab↵
|
2 | {↵ | | 2 | {↵
|
3 | /** Internationalized strings for this class. */↵ | | 3 | /** Internationalized strings for this class. */↵
|
4 | private static final StringManager s_stringMgr =↵ | | 4 | private static final StringManager s_stringMgr =↵
|
5 | StringManagerFactory.getStringManager(StringFunctionsTab.class);↵ | | 5 | StringManagerFactory.getStringManager(SystemFunctionsTab.class);↵
|
6 | ↵ | | 6 | ↵
|
7 | ↵ | | 7 | ↵
|
8 | /**↵ | | 8 | /**↵
|
9 | * Return the title for the tab.↵ | | 9 | * Return the title for the tab.↵
|
10 | *↵ | | 10 | *↵
|
11 | * @return The title for the tab.↵ | | 11 | * @return The title for the tab.↵
|
12 | */↵ | | 12 | */↵
|
13 | public String getTitle()↵ | | 13 | public String getTitle()↵
|
14 | {↵ | | 14 | {↵
|
15 | // i18n[StringFunctionsTab.title=String Functions]↵ | | 15 | // i18n[SystemFunctionsTab.title=System Functions]↵
|
16 | return s_stringMgr.getString("StringFunctionsTab.title");↵ | | 16 | return s_stringMgr.getString("SystemFunctionsTab.title");↵
|
17 | }↵ | | 17 | }↵
|
|
18 | /**↵ | | 18 | /**↵
|
19 | * Return the hint for the tab.↵ | | 19 | * Return the hint for the tab.↵
|
20 | *↵ | | 20 | *↵
|
21 | * @return The hint for the tab.↵ | | 21 | * @return The hint for the tab.↵
|
22 | */↵ | | 22 | */↵
|
23 | public String getHint()↵ | | 23 | public String getHint()↵
|
24 | {↵ | | 24 | {↵
|
25 | // i18n[StringFunctionsTab.hint=Show all the string functions available in DBMS]↵ | | 25 | // i18n[SystemFunctionsTab.hint=Show all the system functions available in DBMS]↵
|
26 | return s_stringMgr.getString("StringFunctionsTab.hint");↵ | | 26 | return s_stringMgr.getString("SystemFunctionsTab.hint");↵
|
27 | }↵ | | 27 | }↵
|
|
28 | /**↵ | | 28 | /**↵
|
29 | * Create the <TT>IDataSet</TT> to be displayed in this tab.↵ | | 29 | * Create the <TT>IDataSet</TT> to be displayed in this tab.↵
|
30 | */↵ | | 30 | */↵
|
31 | protected IDataSet createDataSet() throws DataSetException↵ | | 31 | protected IDataSet createDataSet() throws DataSetException↵
|
32 | {↵ | | 32 | {↵
|
33 | final ISession session = getSession();↵ | | 33 | final ISession session = getSession();↵
|
34 | try↵ | | 34 | try↵
|
35 | {↵ | | 35 | {↵
|
36 | final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();↵ | | 36 | final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();↵
|
37 | return new ObjectArrayDataSet(md.getStringFunctions());↵ | | 37 | return new ObjectArrayDataSet(md.getSystemFunctions());↵
|
38 | }↵ | | 38 | }↵
|
39 | catch (SQLException ex)↵ | | 39 | catch (SQLException ex)↵
|
40 | {↵ | | 40 | {↵
|
41 | throw new DataSetException(ex) | | 41 | throw new DataSetException(ex)
|