All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xiaoleilu.hutool.db.handler.EntityListHandler Maven / Gradle / Ivy

package com.xiaoleilu.hutool.db.handler;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.xiaoleilu.hutool.db.Entity;

/**
 * 结果集处理类 ,处理出的结果为Entity列表
 * @author loolly
 *
 */
public class EntityListHandler implements RsHandler>{
	
	/**
	 * 创建一个 EntityListHandler对象
	 * @return EntityListHandler对象
	 */
	public static EntityListHandler create() {
		return new EntityListHandler();
	}

	@Override
	public List handle(ResultSet rs) throws SQLException {
		return HandleHelper.handleRs(rs, new ArrayList());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy