Giter Site home page Giter Site logo

zondacker / dbhelper Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 7.0 123 KB

DbHelper是支持定制化SQL、存储过程以及高级映射的高效性轻量级持久层框架,其主要就完成2件事情:封装JDBC操作;利用反射打通Java类与SQL语句之间的相互转换。DbHelper的主要设计目的是让我们对执行SQL语句时对输入输出的数据管理更加方便,高效快捷地写出SQL和方便地获取SQL的执行结果。经过长期的维护,目前DbHelper支持返回的数据类型基本囊括了各种项目所需,包括分页、POJO、Array、Map、List<String>、List<POJO>、List<Array>、List<Map>等等,以及其他各种数据类型。

Java 100.00%

dbhelper's People

Contributors

zondacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dbhelper's Issues

DbHelper分页查询如果查询结果集为空时,会出现莫名其妙诡异的类型转换异常

最近在使用该插件的时候,发现分页查询的时候,如果结果集是空的时候,会返回一个PageList.EMPTY_PAGE,这个静态全局final的空分页对象有一个暗坑,就是如果这个时候上层程序员不清楚底层逻辑,直接拿这个list往里面塞了某个类型的对象进去,会导致该全局对象被污染,进而导致系统出现很多莫名其妙的类型转换异常。PS:这个异常困扰了我们团队很久 。。。(╥╯^╰╥)
如果需要修复的话,可以参考一下Collections.emptyList() 方法,Apache的该方法很显然自己声明了一个私有内部类,并且该类没有提供add方法。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.