解决方案 »

  1.   

    Dao是接口,RuntimeExceptionDao 是类,都继承CloseableIterable<T>Proxy to a Dao that wraps each Exception and rethrows it as RuntimeException. You can use this if your usage pattern is to ignore all exceptions. That's not a pattern that I like so it's not the default.代理一个Dao,包装每个异常重新抛出RuntimeException。你可以使用这个如果你使用模式是忽略所有的异常。这不是一个模式,我喜欢所以它不是默认。参考:http://ormlite.com/javadoc/ormlite-core/com/j256/ormlite/dao/RuntimeExceptionDao.html