* greater then 0 (because JAR file contains at least one entry).
*/
public void _connectToCache() {
boolean result = true ;
XCachedDynamicResultSetFactory setFac = null ;
try {
Object fac = ((XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.ucb.CachedDynamicResultSetFactory") ;
setFac = (XCachedDynamicResultSetFactory) UnoRuntime.queryInterface
(XCachedDynamicResultSetFactory.class, fac) ;
} catch (com.sun.star.uno.Exception e) {
log.println("Cant instantiate a service") ;
e.printStackTrace(log) ;
result = false ;
}
XDynamicResultSet rmtSet = setFac.createCachedDynamicResultSet(null, null) ;
try {
oObj.connectToCache(resSet, rmtSet, null, null) ;
} catch (com.sun.star.ucb.ListenerAlreadySetException e) {
log.println("!!! Unexpected exception :" + e) ;