ListresultList = (List )sqlSession.select("statementId");
assume that the above SQL return no rows (i.e. there is no id greater than 100).
The variable resultList will then be an empty List, but I want it to be null instead. How can I do that?
结果:
如果没有查询到结果,将会返回一个empty的r esultlist,然后resultlist 的size 是0 而不是null.