01: /*
02: * User: mrettig
03: * Date: Jun 26, 2002
04: * Time: 6:58:53 PM
05: */
06: package net.sourceforge.jaxor.mappers;
07:
08: import net.sourceforge.jaxor.MetaField;
09: import net.sourceforge.jaxor.api.Mapper;
10:
11: import java.sql.ResultSet;
12: import java.sql.SQLException;
13: import java.sql.Types;
14:
15: public class BigDecimalMapper extends MapperBase {
16:
17: public Object getValueFromResultSet(ResultSet rs, MetaField field)
18: throws SQLException {
19: return rs.getBigDecimal(field.getColumn());
20: }
21:
22: public int getSQLType() {
23: return Types.NUMERIC;
24: }
25:
26: }
|