summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Database/RowSet.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Database/RowSet.java')
-rw-r--r--odk/examples/DevelopersGuide/Database/RowSet.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/odk/examples/DevelopersGuide/Database/RowSet.java b/odk/examples/DevelopersGuide/Database/RowSet.java
index 9b67a5078613..4c783bf965f1 100644
--- a/odk/examples/DevelopersGuide/Database/RowSet.java
+++ b/odk/examples/DevelopersGuide/Database/RowSet.java
@@ -74,17 +74,7 @@ public class RowSet
System.exit(0);
}
- public static void printDataSources() throws com.sun.star.uno.Exception
- {
- // create a DatabaseContext and print all DataSource names
- XNameAccess xNameAccess = UnoRuntime.queryInterface(
- XNameAccess.class,
- xMCF.createInstanceWithContext("com.sun.star.sdb.DatabaseContext",
- xContext));
- String aNames [] = xNameAccess.getElementNames();
- for(int i=0;i<aNames.length;++i)
- System.out.println(aNames[i]);
- }
+
private static void useRowSet() throws com.sun.star.uno.Exception
{