package org.fugerit.java.core.db.dao.rse;

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

import org.fugerit.java.core.db.dao.RSExtractor;

public class DoubleRSE implements RSExtractor {

	public static final RSExtractor DEFAULT = new DoubleRSE();
	
	public Object extractNext(ResultSet rs) throws SQLException {
		Object o = rs.getObject( 1 );
		if ( o != null ) {
			o = new Double( rs.getDouble( 1 ) );
		}
		return o;
	}

}
