|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Deprecated Classes | |
com.ibatis.dao.client.template.JtaDaoTemplate
Use JdbcDaoTemplate instead. Both have the same interface, so simply changing your code to extend JdbcDaoTemplate should work without any change in behaviour. |
|
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.DeprecatedRowHandlerAdapter
No substitute. |
Deprecated Methods | |
com.ibatis.sqlmap.client.SqlMapClient.getSession()
Use openSession() instead. THIS METHOD WILL BE REMOVED BEFORE FINAL RELEASE. |
|
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.getSession()
Use openSession() |
|
com.ibatis.sqlmap.client.SqlMapTransactionManager.getUserConnection()
Use getCurrentConnection() instead. |
|
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.getUserConnection()
|
|
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.getUserConnection()
|
|
com.ibatis.db.sqlmap.RowHandlerAdapter.handleRow(Object, List)
Use handleRow(Object) |
|
com.ibatis.sqlmap.client.event.RowHandler.handleRow(Object, List)
THIS WILL BE REMOVED BY FINAL RELEASE Use RowHandler.handleRow(Object) instead. queryForList(String,Object,RowHandler) has been renamed BACK to queryWithRowHandler(String,Object,RowHandler). The new signature is: void queryWithRowHandler(String id, Object parameterObject, RowHandler rowHandler) throws SQLException; The RowHandler interface will also be changed back to the original strategy used in 1.x. That is, there will no longer be a List parameter in the method signature of the handleRow() method. The new signature is: public void handleRow(Object valueObject); This was necessary to make the API more flexible. Many people complained about the change because they did not want to return a list. They may have been using a RowHandler to build a Map, or even aggregate into a single result object. In these cases the List parameter and return type on the RowHandler API was unecessary, confusing and extra overhead. WHAT SHOULD YOU DO? Well, basically your RowHandlers will need to be changed to handle the List themselves. For example:
|
|
com.ibatis.sqlmap.engine.mapping.statement.DefaultRowHandler.handleRow(Object, List)
Use handleRow(Object). |
|
com.ibatis.dao.client.template.SqlMapDaoTemplate.queryForList(String, Object, RowHandler)
Use queryWithRowHandler instead. |
|
com.ibatis.sqlmap.client.SqlMapExecutor.queryForList(String, Object, RowHandler)
Use queryWithRowHandler instead (requires RowHandler interface change) THIS WILL BE REMOVED BY FINAL 2.0 RELEASE |
|
com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(String, Object, RowHandler)
|
|
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(String, Object, RowHandler)
Use queryWithRowHandler(String, Object, RowHandler). |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |