Code example for BeanPropertyRowMapper

0
	public Page findAll(String tableName,final PageRequest pageRequest) { 
		return pageQuery("select * from "+tableName+" /~ order by [sortColumns] ~/",pageRequest); 
	} 
	 
	public Page pageQuery(String query,PageRequest pageRequest) { 
		return pageQuery(query,pageRequest,new BeanPropertyRowMapper(getEntityClass()), "select count(*) "); 
	} 
	 
	public Page pageQuery(String query,PageRequest pageRequest,RowMapper rowMapper, String countQuerySelectPrefix) { 
		String countQuery = countQuerySelectPrefix + SqlRemoveUtils.removeSelect(query); 
		return pageQuery(query,countQuery,pageRequest,rowMapper); 
	} 
	 
	public Page pageQuery(String query,PageRequest pageRequest,String countQueryPrefix,RowMapper rowMapper) { 
		String countQuery = countQueryPrefix + SqlRemoveUtils.removeSelect(query); 
		return pageQuery(query,countQuery,pageRequest,rowMapper); 
	} 
	 
	public Page pageQuery(String query,String countQuery,final PageRequest pageRequest,RowMapper rowMapper) { 
		final int totalCount = queryTotalCount(countQuery,pageRequest); 
Experience pair programming with AI  Get Codota for Java