// Path: source/trunk/commondao/src/main/java/cn/org/zeronote/orm/dao/ResultSetExtractor.java
// public interface ResultSetExtractor<T> extends ResultSetHandler<T> {
// 
// 	/**
// 	 * Implementations must implement this method to process the entire ResultSet.
// 	 * 
// 	 * @param rs ResultSet to extract data from. Implementations should not close this: it will be closed by the calling JdbcTemplate.
// 	 * @return an arbitrary result object, or <code>null</code> if none (the extractor will typically be stateful in the latter case).
// 	 * @throws SQLException if a SQLException is encountered getting column values or navigating (that is, there's no need to catch SQLException)
// 	 */
// 	T handle(ResultSet rs) throws SQLException;
// }


import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import cn.org.zeronote.orm.dao.ResultSetExtractor;
/**
 * 
 */
package cn.org.zeronote.orm.extractor;




/**
 * MapList装载器
 * @author <a href='mailto:lizheng8318@gmail.com'>lizheng</a>
 *
 */
public class MapListResultSetExtractor implements ResultSetExtractor<List<Map<String,Object>>> {
	
	/**
	 * 
	 */
	public MapListResultSetExtractor() {
	}

	/*
	 * (non-Javadoc)
	 * @see com.ailk.aiip.apps.wasp.collect.common.orm.ResultSetExtractor#extractData(java.sql.ResultSet)
	 */
	@Override
// Path: source/trunk/commondao/src/main/java/cn/org/zeronote/orm/dao/ResultSetExtractor.java
// public interface ResultSetExtractor<T> extends ResultSetHandler<T> {
// 
// 	/**
// 	 * Implementations must implement this method to process the entire ResultSet.
// 	 * 
// 	 * @param rs ResultSet to extract data from. Implementations should not close this: it will be closed by the calling JdbcTemplate.
// 	 * @return an arbitrary result object, or <code>null</code> if none (the extractor will typically be stateful in the latter case).
// 	 * @throws SQLException if a SQLException is encountered getting column values or navigating (that is, there's no need to catch SQLException)
// 	 */
// 	T handle(ResultSet rs) throws SQLException;
// }


// Path: source/trunk/commondao/src/main/java/cn/org/zeronote/orm/extractor/MapListResultSetExtractor.java
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import cn.org.zeronote.orm.dao.ResultSetExtractor;

/**
 * 
 */
package cn.org.zeronote.orm.extractor;




/**
 * MapList装载器
 * @author <a href='mailto:lizheng8318@gmail.com'>lizheng</a>
 *
 */
public class MapListResultSetExtractor implements ResultSetExtractor<List<Map<String,Object>>> {
	
	/**
	 * 
	 */
	public MapListResultSetExtractor() {
	}

	/*
	 * (non-Javadoc)
	 * @see com.ailk.aiip.apps.wasp.collect.common.orm.ResultSetExtractor#extractData(java.sql.ResultSet)
	 */
	@Override
	public List<Map<String,Object>> handle(ResultSet rs) throws SQLException {