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: SqlDateCharMapping.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 SqlDateCharMapping extends SqlDateMapping {
16: public SqlDateCharMapping(DatabaseAdapter dba, Class type) {
17: super (dba, type);
18: }
19:
20: public SqlDateCharMapping(Column col) {
21: super (col);
22: }
23:
24: public SqlDateCharMapping(ClassBaseTable table,
25: int relativeFieldNumber) {
26: super (table, relativeFieldNumber);
27: }
28:
29: protected TypeInfo getTypeInfo() {
30: /* Ignore the selected JDBC type and always select CHAR. */
31: return dba.getTypeInfo(Types.CHAR);
32: }
33: }
|