138139140141142143144145146147148
} catch (com.sun.star.ucb.ListenerAlreadySetException e) { e.printStackTrace(log); } try { set.last() ; rowCount = set.getRow(); log.println("Number of rows in result set: " + rowCount); } catch (com.sun.star.sdbc.SQLException e) { log.println("Exception occured while accessing "+ "sorted result set :");
949596979899100101102103104
} else { try { XResultSet resSetS = resSet.getStaticResultSet() ; XResultSet resSetStubS = resSetStub.getStaticResultSet() ; resSetStubS.last() ; int stubRowNum = resSetStubS.getRow() ; resSetS.last() ; int setRowNum = resSetS.getRow() ;
165166167168169170171172173174175
XResultSet statResSet = resSet.getStaticResultSet() ; statRmtSet.last() ; int rmtRowNum = statRmtSet.getRow() ; statResSet.last() ; int resRowNum = statResSet.getRow() ; result = rmtRowNum == resRowNum && resRowNum > 0 ; log.println("Number of rows : destination=" + rmtRowNum +
8687888990919293949596
if (resSetStub == null) { log.println("!!! Method returned null !!!") ; result = false ; } else { try { resSetStub.last() ; int stubRowNum = resSetStub.getRow() ; resSet.last() ; int setRowNum = resSet.getRow() ;
919293949596979899100101
} else { try { resSetStub.last() ; int stubRowNum = resSetStub.getRow() ; resSet.last() ; int setRowNum = resSet.getRow() ; result = stubRowNum == setRowNum && setRowNum > 0 ; log.println("Number of rows : stub=" + stubRowNum +
530531532533534535536537538539540
XResultSetUpdate updt = (XResultSetUpdate) UnoRuntime.queryInterface (XResultSetUpdate.class, set) ; int count = 0 ; set.last() ; int rowNum = set.getRow() ; set.first() ; for (int i = 0; i < rowNum; i++) { updt.deleteRow() ;
516517518519520521522523524525526
538539540541542543544545546547548
505506507508509510511512513514515
new ifc.sdbc._XResultSetUpdate.UpdateTester() { String lastUpdate = null ; public int rowCount() throws SQLException { int prevPos = xResSet.getRow() ; xResSet.last() ; int count = xResSet.getRow() ; xResSet.absolute(prevPos) ; return count ; }
701702703704705706707708709710711
new ifc.sdbc._XResultSetUpdate.UpdateTester() { String lastUpdate = null; public int rowCount() throws SQLException { int prevPos = xResSet.getRow(); xResSet.last(); int count = xResSet.getRow(); xResSet.absolute(prevPos); return count;