Hi,

When is the Trigger.init() method called?
Docs have this to say:
"This method is called by the database engine once when initializing the trigger. It is called when the trigger is created, as well as when the database is opened."

So the follow-up question is:
When is a trigger created?
1) Before handling the first connection to database?
2) When the trigger is called for the first time by some connection?

The reason I am asking is that I would like to do some initialization before accepting any connections. One practical reason for this is that I would like to avoid all possibilities for deadlocks that might occur when
many connections are possibly locking tables (exclusively).

And by definition DatabaseEventListener can not be used for that because it can only be registered when connecting to a database.

- Rami

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to