Postgres DB Trigger调用Java函数 [英] Postgres DB Trigger calling Java Function

查看:789
本文介绍了Postgres DB Trigger调用Java函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在postgres DB中定义一个可以调用某些Java函数的触发器?

Is it possible to define a trigger in a postgres DB that can call some Java function?

(我相信上面的内容可以在Oracle中实现,但想知道如果它适用于postgres)。

(I believe the above is possible in Oracle, but want to know if it for postgres).

所以如果这是可能的,这是否意味着将为连接到DB的每个客户端应用程序调用Java函数当然是否定义了函数?

So if this is possible, does this mean that the Java function would be called for every client application that is connected to the DB which of course has the function defined?

Thnx。

推荐答案

PL / Java插件


PL / Java是一个免费的附加模块,它通过标准的JDBC接口将Java™存储过程,触发器和函数带到PostgreSQL™后端。

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, and Functions to the PostgreSQL™ backend via the standard JDBC interface.

我没有用它,所以我不能评论它有多好。

I haven't used it so I can't comment on how good it is.

这篇关于Postgres DB Trigger调用Java函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆