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

org.sfm.jdbc.impl.getter.RowIdResultSetGetter Maven / Gradle / Ivy

package org.sfm.jdbc.impl.getter;

import org.sfm.reflect.Getter;

import java.sql.ResultSet;
import java.sql.RowId;
import java.sql.SQLException;

public final class RowIdResultSetGetter implements Getter {
	private final int column;
	
	public RowIdResultSetGetter(final int column) {
		this.column = column;
	}

	public RowId get(final ResultSet target) throws SQLException {
		return target.getRowId(column);
	}

    @Override
    public String toString() {
        return "RowIdResultSetGetter{" +
                "column=" + column +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy