JSqlParser能够解析SQL语句并它翻译成一个Java类层次。它产生的层次可以使用访问者模式导航。

示例代码:

if (statement instanceof Insert) {
   // insert case
}
else if (statement instanceof UpDate) {
   // update case
}
JSqlParser 0.9.7 发布,SQL 解析工具
JSqlParser 0.9.7 发布了,JSqlParser 能够解析 SQL 语句并它翻译成一个 Java 类层次。更新日志如下:support getting jdbc parameter indexRemoved limitation of LongValue to accept only java.util.Long parsable values.introduced NOT without parenthesis for column only conditions

发布于 2017-03-14 04:27:36 | 90 次阅读


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务