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

org.nutz.dao.impl.sql.pojo.PojoFetchObjectCallback Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.impl.sql.pojo;

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

import org.nutz.dao.sql.Pojo;
import org.nutz.dao.sql.PojoCallback;

public class PojoFetchObjectCallback implements PojoCallback {

    public Object invoke(Connection conn, ResultSet rs, Pojo pojo, Statement stmt)
            throws SQLException {
        if (null != rs && rs.next()) {
            return rs.getObject(1);
        }
        return null;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy