resultSet.TYPE_FORWARD_ONLY

时间:2018-11-05 16:04:05

标签: moqui

带有PostgreSQL 11.0-1的Moqui框架2.1。 使用实体查找:

<entity-find entity-name="mantle.product.asset.PhysicalInventoryCount" list="physicalInventoryCountList" >
            <limit-range start = "limitRangeStart" size="limitRangesize"/>


</entity-find>  

错误为:

Error going to absolute row number 1. Operation requires a scrollable ResultSet, but this ResultSet is FORWARD_ONLY.

然后更改:

 EntityFindBase.defaultResultSetType = ResultSet.TYPE_SCROLL_INSENSITIVE

然后一切正常。

想知道将defaultResultSetTypeTYPE_FORWARD_ONLY更改为TYPE_SCROLL_INSENSITIVE有什么副作用吗?我不熟悉JDBC,有人知道吗?

0 个答案:

没有答案