Hi,

Yes, I think you could use the DatabaseEventListener. See the test case
TestDatabaseEventListener for how to use it. Currently, triggers on
metadata tables are not supported unfortunately.

Regards,
Thomas



On Mon, Dec 23, 2013 at 4:30 AM, Vonmist <[email protected]> wrote:

>
> Is there any way for a trigger to work on creation/drop table? i saw
> something on DDL being able to do something about it? Please help, thanks!
>
> Can event listener be used to monitor the database and when there is a
> creation/drop of table? So when creation/drop event happen, the setProgress
> method will run and my code will be inside setProgess method? If possible,
> is there an example on it>
>
> Thanks
>
>
>
> --
> View this message in context:
> http://h2-database.66688.n3.nabble.com/Is-there-any-way-a-trigger-can-be-invoked-when-a-new-table-is-created-tp4028099.html
> Sent from the H2 Database mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to