JSqlParser能够解析SQL语句并它翻译成一个Java类层次。它产生的层次可以使用访问者模式导航。
示例代码:
if (statement instanceof Insert) { // insert case } else if (statement instanceof Update) { // update case }
JSqlParser 0.9.7 发布了,JSqlParser 能够解析 SQL 语句并它翻译成一个 Java 类层次。 更新日志如下: support getting jdbc parameter index Removed limitation of LongValue to accept only java.util.Long parsable values. introduced NOT without parenthesis for column only conditions introduced more complex expressions within CASE - statements improved Postgresql JSON - support integrated some Postgresql...
评论