* and no exception rizes while method call, FAILED otherwise. <p>
*/
public void _deleteRows() {
XRowLocate xRowLocate = (XRowLocate)
UnoRuntime.queryInterface(XRowLocate.class, oObj);
XResultSet xResultSet = (XResultSet)
UnoRuntime.queryInterface(XResultSet.class, oObj);
if (xRowLocate == null || xResultSet == null) {
log.println("The test must be modified according to "+
"component testcase");
throw new StatusException(Status.failed(
"The component doesn't support one of the "+
"required interfaces"));
}
int rowsBefore = 0, rowsAfter = 0;
Object bkmrk = null;
try {
xResultSet.last();
rowsBefore = xResultSet.getRow();
xResultSet.first();
bkmrk = xRowLocate.getBookmark();
oObj.deleteRows(new Object[] {bkmrk});
xResultSet.last();
rowsAfter = xResultSet.getRow();
} catch(com.sun.star.sdbc.SQLException e) {
log.println("SQLException:" + e);
tRes.tested("deleteRows()", false);
return;
}