01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: DateCharMapping.java,v 1.1 2002/11/24 06:02:47 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import java.sql.Types;
14:
15: public class DateCharMapping extends DateMapping {
16: public DateCharMapping(DatabaseAdapter dba, Class type) {
17: super (dba, type);
18: }
19:
20: public DateCharMapping(Column col) {
21: super (col);
22: }
23:
24: public DateCharMapping(ClassBaseTable table, int relativeFieldNumber) {
25: super (table, relativeFieldNumber);
26: }
27:
28: protected TypeInfo getTypeInfo() {
29: /* Ignore the selected JDBC type and always select CHAR. */
30: return dba.getTypeInfo(Types.CHAR);
31: }
32: }
|