Hi
The documentation for Jena event handling says the following: "In the
current design, listeners are not informed of transaction boundaries,
and all events are fed to listeners as soon as they happen".
This leads me to a question. I have a piece of code as follows:
database.begin(ReadWrite.WRITE);
model = storage.database.getDefaultModel();
add statement 1 to the model
add statement 2 to the model
...
add statement N to the model
database.commit();
storage.database.end();
I have another piece of code listening for changes in the database model.
How can that listening piece of code reliably detect that *all*
statements 1 through N have been added to the model, and hence the model
can be queried for whatever was added?
thanks
graham