V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
gongzili456
V2EX  ›  程序员

动手写 Active Record

  •  
  •   gongzili456 ·
    gongzili456 · 2014-07-23 18:54:02 +08:00 · 2403 次点击
    这是一个创建于 3562 天前的主题,其中的信息可能已经有所发展或是发生改变。
    自己封装了一个active record模式的通用方法。
    https://github.com/gongzili456/JActiveRecord
    写的不好,请各位给提提建议,共同进步。
    第 1 条附言  ·  2014-07-25 18:20:11 +08:00
    项目已重构,移至https://github.com/gongzili456/geeekrDB
    2 条回复    2014-07-24 13:38:30 +08:00
    incompatible
        1
    incompatible  
       2014-07-23 19:51:14 +08:00
    DbServer的insert()、update()、delete()中没有关闭Connection和Statement
    gongzili456
        2
    gongzili456  
    OP
       2014-07-24 13:38:30 +08:00
    @incompatible 已修改,谢谢提醒!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1027 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:09 · PVG 04:09 · LAX 13:09 · JFK 16:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.