简体   繁体   English

jOOQ-侦听器

[英]jOOQ - Listener

I'm using jOOQ to interact with a local MySQL database. 我正在使用jOOQ与本地MySQL数据库进行交互。 More specifically I'm using the only jOOQ generated DAOs stored in a static class. 更具体地说,我使用的是存储在静态类中的唯一jOOQ生成的DAO。 I wish if there were some "ready to use" listeners to catch insert / update / delete queries (don't care about select / fetch ones). 我希望是否有一些“准备使用”的侦听器来捕获插入/更新/删除查询(不在乎选择/获取查询)。 If not, any suggestion on how to code one, if it is possible to make a generic one. 如果没有,那么就如何编写通用代码提出任何建议。

I'm not sure what you mean by "using the only jOOQ generated DAOs", but there are two listeners that might apply to your case 我不确定“使用唯一的jOOQ生成的DAO”是什么意思,但是有两个侦听器可能适用于您的情况

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM