KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > BooleanCharMapping


1 /*
2  * Copyright 2002 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: BooleanCharMapping.java,v 1.1 2002/11/24 06:02:47 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13 import java.sql.Types JavaDoc;
14
15
16 public class BooleanCharMapping extends BooleanMapping
17 {
18     public BooleanCharMapping(DatabaseAdapter dba, Class JavaDoc type)
19     {
20         super(dba, type);
21     }
22
23     public BooleanCharMapping(Column col)
24     {
25         super(col);
26     }
27
28     public BooleanCharMapping(ClassBaseTable table, int relativeFieldNumber)
29     {
30         super(table, relativeFieldNumber);
31     }
32
33     protected TypeInfo getTypeInfo()
34     {
35         /* Ignore the selected JDBC type and always select CHAR. */
36         return dba.getTypeInfo(Types.CHAR);
37     }
38 }
39
Popular Tags