java - what is the replacement of getJdbcTemplate() in spring.jdbc 4.2.5 i m using spring-4.2.5,spring-jdbc.4.2.5.mvn3 -
@override public page<keyclient> getkeyclients(keyclient searchclient, list<integer> selectedclients, boolean isexclude, int pageno, int pagesize) throws dataaccessexception { stringbuffer query = new stringbuffer(get_client_list); stringbuffer query1 = new stringbuffer(get_client_list_count); /*stringbuffer query2 = new stringbuffer(get_client_list1); stringbuffer query3 = new stringbuffer(get_client_list_count1);*/ /*map<string, object> params = new hashmap<string, object>(); params = buildqueryforclients(searchclient, selectedclients, isexclude, query);*/ object[] params = buildqueryforclients(searchclient, selectedclients, isexclude, query, query1); paginationhelper<keyclient> ph = new paginationhelper<keyclient>(); return ph.fetchpage(getjdbctemplate(), query1.tostring(), query.tostring(), params, pageno, pagesize, new singlecolumnrowmapper<keyclient>(){}.
there error in return statement getjdbctemplate() error is- method getjdbctemplate() undefined type mednextcommondaoimpl.
see 4.2.5 docs class jdbcdaosupport
method getjdbctemplate()
:
public final jdbctemplate getjdbctemplate() return jdbctemplate dao, pre-initialized datasource or set explicitly.
Comments
Post a Comment