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