java:将 DynaBean (apache-commons-beanutils) 转换为列表
我使用 apache-commons-beanutils DynaBean 类从数据库中获取行并在 mysql 函数之外处理它们。
有没有办法将 DynaBean 转换为列表,而无需迭代每一行并手动创建列表?
谢谢!
I use apache-commons-beanutils DynaBean class in order to fetch rows from a database and to handle them outside of the mysql function.
is there a way to convert a DynaBean to a List without iterating through each row and manually creating the list ?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止我没有得到任何答案,所以我编写了一个函数来迭代行并创建一个 HashMap 类型(字符串,对象)的 ArrayList。
so far I didn't get any answers so I wrote the function that iterates through the rows and creates an ArrayList of HashMap type (String, Object).