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

org.nutz.dao.sql.PojoCallback Maven / Gradle / Ivy

package org.nutz.dao.sql;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * POJO 查询语句回调对象
 * 
 * @author zozoh([email protected])
 */
public interface PojoCallback {

    /**
     * @param conn
     *            数据库连接
     * @param rs
     *            结果集
     * @param pojo
     *            SQL语句
     * @param stmt TODO
     * @return 对象会保存在 Pojo 的 result 对象中
     * @throws SQLException
     *             SQL 发生错误
     */
    Object invoke(Connection conn, ResultSet rs, Pojo pojo, Statement stmt) throws SQLException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy