Tools.setUNOPropertyValue(xRowSet, "ActiveConnection", DBConnection);
Tools.setUNOPropertyValue(xRowSet, "Command", Command);
Tools.setUNOPropertyValue(xRowSet, "CommandType", new Integer(com.sun.star.sdb.CommandType.COMMAND)); // CommandType
xExecute.executeWithCompletion(xInteraction);
// create the ResultSet to access the data
XResultSetAccess xResultAccess = (XResultSetAccess) UnoRuntime.queryInterface(XResultSetAccess.class, xRowSet);
ResultSet = xResultAccess.createResultSet();
xResultSetRow = (com.sun.star.sdbc.XRow) UnoRuntime.queryInterface(com.sun.star.sdbc.XRow.class, ResultSet);
XColumnsSupplier xDBCols = (XColumnsSupplier) UnoRuntime.queryInterface(XColumnsSupplier.class, ResultSet);
xColumns = xDBCols.getColumns();
String[] sElementNames = xColumns.getElementNames();
CommandType = com.sun.star.sdb.CommandType.COMMAND;