312313314315316317318319
connection.commit(); connection.close(); } } catch(SQLException ex) { throw new SailException("database error while listing versions",ex); } }
334335336337338339340341
} finally { connection.close(); } } catch(SQLException ex) { throw new SailException("database error while listing versions",ex); } }
356357358359360361362363
380381382383384385386387
408409410411412413414415
439440441442443444445446
throw new RepositoryException("database error while committing/closing connection"); } } }; } catch(SQLException ex) { throw new SailException("database error while listing versions",ex); } }
469470471472473474475476
82838485868788899091
addTransactionListener(engine); initialized = true; } catch (SQLException e) { log.error("error initializing reasoning database",e); throw new SailException("error initializing reasoning database",e); } } } }
164165166167168169170171172173174
connection.commit(); } finally { connection.close(); } } catch (SQLException ex) { throw new SailException("cannot store program in database",ex); } engine.loadPrograms(); // now add all added rules to the reasoner
231232233234235236237238239240241
connection.commit(); } finally { connection.close(); } } catch (SQLException ex) { throw new SailException("cannot store program in database",ex); } engine.loadPrograms(); // if rules have been removed, clean up