01: /*
02: * User: mrettig
03: * Date: Jun 26, 2002
04: * Time: 7:00:48 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 BooleanMapper extends MapperBase {
16:
17: public Object getValueFromResultSet(ResultSet rs, MetaField field)
18: throws SQLException {
19: return new Boolean(rs.getBoolean(field.getColumn()));
20: }
21:
22: public int getSQLType() {
23: return Types.BIT;
24: }
25: }
|