Function java_begin_document
Enters stream mode (asynchronuous protocol).
The statements are sent to the back-end in one XML stream.
Use this protocol mode when you have a large number of set operations and you don't expect an exception. Any exception raised during stream mode is reported when java_end_document() is called.