KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > type > TrueFalseType


1 //$Id: TrueFalseType.java,v 1.1 2004/06/03 16:31:30 steveebersole Exp $
2
package org.hibernate.type;
3
4 /**
5  * <tt>true_false</tt>: A type that maps an SQL CHAR(1) to a Java Boolean.
6  * @author Gavin King
7  */

8 public class TrueFalseType extends CharBooleanType {
9
10     protected final String JavaDoc getTrueString() {
11         return "T";
12     }
13     protected final String JavaDoc getFalseString() {
14         return "F";
15     }
16     public String JavaDoc getName() { return "true_false"; }
17
18 }
19
20
21
22
23
24
25
26
Popular Tags