try
{
XQueriesSupplier suppQueries = (XQueriesSupplier)UnoRuntime.queryInterface(
XQueriesSupplier.class, m_database.defaultConnection());
XNameAccess queries = suppQueries.getQueries();
String[] queryNames = new String[] { "parseable", "parseable native", "unparseable" };
String[][] expectedColumnNames = new String[][] {
new String[] { "ID", "Name", "Address", "City", "Postal" },
new String[] { "TABLE_CATALOG", "TABLE_SCHEMA", "TABLE_NAME", "VIEW_DEFINITION", "CHECK_OPTION", "IS_UPDATABLE", "VALID" },
new String[] { "ID_VARCHAR" }
};
for ( int i = 0; i < queryNames.length; ++i )
{
XPropertySet query = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, queries.getByName( queryNames[i] ) );
XColumnsSupplier suppCols = (XColumnsSupplier)UnoRuntime.queryInterface(
XColumnsSupplier.class, query);
XIndexAccess columns = (XIndexAccess)UnoRuntime.queryInterface(
XIndexAccess.class, suppCols.getColumns());